core-js
3.51.0 · 19 Oct 2026MIT100.8M / weekRepositoryHomepagenpmAtom feed
Upgrading core-js From 3.39.0 to 3.40.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
Error.isError - New
We have no bulletproof way to polyfill this method / check if the object is an error, so it's a rather naive implementation that is marked as
.sham - New
Added a fix of V8 < 12.8 / NodeJS < 22.10 bug with handling infinite length of set-like objects in
Setmethods - New
Optimized
DataView.prototype.{ getFloat16, setFloat16 }performance, #1379, thanks @LeviPesin
- New
5 other lines we could not sort, mostly version bumps
- 3.40.0
Updated the way async disposing of only sync disposable resources, tc39/proposal-explicit-resource-management/218
- 3.40.0
Reuse
IteratorResultobjects when possible, tc39/proposal-iterator-sequencing/17, tc39/proposal-iterator-sequencing/18, December 2024 TC39 meeting - 3.40.0
Dropped unneeded feature detection of non-standard
%TypedArray%.prototype.toSpliced - 3.40.0
Dropped possible re-usage of some non-standard / early stage features (like
Math.scale) available on global - 3.40.0
Some other minor improvements
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.