-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport structuredClone
to Node v16
#40756
Comments
If the Semver-Major bit is to add a new global we could potentially backport as a requireable / importable module edit: confirmed major was due to global |
Is there any update on when or if the feature would be backported? Not waiting 2 years for another LTS release to get this would be amazing as it's such a useful addition. Currently adding lodash for the |
Yeah, it would be nice to have, but we are still discovering problems with it almost weekly and still need to ensure that it is spec-compliant or at least matches expected behavior and having nothing yet specified in the ECMAScript specification for it means that we have to piece together behavior specified elsewhere, so really it should only be used in experimental (non-production) settings probably only for academic purposes at the moment. The current implementation will very likely change and I wouldn't consider the current behavior safe to use in some cases, so I'm surprised it even shipped so soon, but that's just my opinion (and not a very developed one at that, so I digress). |
We release new LTS lines every year. The next new LTS release (Node.js 18) is planned to become LTS in October this year. |
What’s the best way to achieve identical functionality on Node 16? Would you accept a PR for the suggestion from @MylesBorins of making it a requireable function? Or would it be possible to extract this implementation and make it a third party polyfill on npm? |
I think making it an npm package is the easiest way to get it for Node.js 16.x. The original suggestion from Anna should Just Works™:
Source: #39713 (comment) |
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment. For more information on how the project manages feature requests, please consult the feature request management document. |
There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment. For more information on how the project manages feature requests, please consult the feature request management document. |
Update CONTRIBUTING.md to specify Node version v18.x. Jest's use of structuredClone necessitates that the version be >=v17.x: nodejs/node#40756
#39713 added
structuredClone
and it landed in v17Is it possible to back port it to v16? It'd be great to see it in an LTS sooner rather than later
The text was updated successfully, but these errors were encountered: