Skip to content

chore: uncloneables - #1262

Open
avivkeller wants to merge 1 commit into
mainfrom
uncloneables
Open

avivkeller wants to merge 1 commit into
mainfrom
uncloneables

Conversation

@avivkeller

@avivkeller avivkeller commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Fixes #1201 by toCloneable(obj)-ing.

Note, while this can be done without a dependency to simplify ignore functions, URLs, and similar, using a dependency allows us to be a lot more broad in what we reject and not need to "worry about it", so to speak. I should disclose that this is a dependency I created specifically for this purpose, since one did not already exist.

@avivkeller
avivkeller requested a review from a team as a code owner November 26, 2026 19:40
@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
df53f2a 2026-11-26T19:40:04.658Z View logs ↗

@ovflowd ovflowd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm -1 adding a new dependency just to clone objects.

  • Brand new package
  • We very recently made a campaign exactly to reduce amount of packages, with the trade-off of bringing code here if the code is small instead of adding a package
  • The package is also massive for something as simple as just cloning an object, I don't think it is warranted such a complex library for this.
  • I don't see reasons state here on the PR on why doing this, what are the trade-offs, performance, security, why current approach is not enough.

@avivkeller

avivkeller commented Nov 28, 2026 •

Copy link
Copy Markdown
Member Author

Yeah, the alternative is just ignorring items that are functions... it's much smaller, a bit more brittle tho

This branch had an error being deployed

1 failed deployment
Preview – api-docs-tooling — df53f2a8 Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

html: a custom bundler fails with DataCloneError unless threads is 1

2 participants