core-js
3.51.0 · 19 Oct 2026MIT100.8M / weekRepositoryHomepagenpmAtom feed
3.51.0 is the newest release of 3.x.
In short
29 new3 fixed26 changed
Release note
Explicit Resource Management proposals:
Built-ins:
Symbol.disposeBuilt-ins:
Symbol.asyncDisposeBuilt-ins:
SuppressedErrorBuilt-ins:
DisposableStackDisposableStack.prototype.disposeDisposableStack.prototype.useDisposableStack.prototype.adoptDisposableStack.prototype.deferDisposableStack.prototype.moveDisposableStack.prototype[@@dispose]
Built-ins:
AsyncDisposableStackAsyncDisposableStack.prototype.disposeAsyncAsyncDisposableStack.prototype.useAsyncDisposableStack.prototype.adoptAsyncDisposableStack.prototype.deferAsyncDisposableStack.prototype.moveAsyncDisposableStack.prototype[@@asyncDispose]
Built-ins:
Iterator.prototype[@@dispose]Built-ins:
AsyncIterator.prototype[@@asyncDispose]Moved to stable ES, May 2025 TC39 meeting
Added
es.namespace module,/es/and/stable/namespaces entries
Built-ins:
Array.fromAsyncMoved to stable ES, May 2025 TC39 meeting
Added
es.namespace module,/es/and/stable/namespaces entries
Built-ins:
Error.isErrorMoved to stable ES, May 2025 TC39 meeting
Added
es.namespace module,/es/and/stable/namespaces entries
Added Joint iteration stage 2.7 proposal:
Added built-ins:
Iterator.zipIterator.zipKeyed
Added
Iteratorchunking stage 2 proposal:Added built-ins:
Iterator.prototype.chunksIterator.prototype.windows
Number.prototype.clampproposal:Built-ins:
Number.prototype.clampMoved to stage 2, May 2025 TC39 meeting
Math.clampwas replaced withNumber.prototype.clampRemoved a
RangeErrorifmin <= maxor+0min and-0max, tc39/proposal-math-clamp/#22
Always check regular expression flags by
flagsgetter PR. Native methods are not fixed, only own implementation updated for:RegExp.prototype[@@match]RegExp.prototype[@@replace]
Improved handling of
RegExpflags in polyfills of some methods in engines without proper support ofRegExp.prototype.flagsand without polyfill of this getterAdded feature detection for a WebKit bug that occurs when
thisis updated whileSet.prototype.differenceis being executedAdded feature detection for a WebKit bug that occurs when iterator record of a set-like object isn't called before cloning
thisin the following methods:Set.prototype.symmetricDifferenceSet.prototype.union
Added feature detection for a bug in V8 ~ Chromium < 126. Following methods should throw an error on invalid iterator:
Iterator.prototype.dropIterator.prototype.filterIterator.prototype.flatMapIterator.prototype.map
Added feature detection for a WebKit bug: incorrect exception thrown by
Iterator.fromwhen underlying iterator'sreturnmethod isnullAdded feature detection for a FF bug: incorrect exception thrown by
Array.prototype.withwhen index coercion failsAdded feature detection for a WebKit bug:
TypedArray.prototype.withshould truncate negative fractional index to zero, but instead throws an errorWorked around a bug of many different tools (example) with incorrect transforming and breaking JS syntax on getting a method from a number literal
Fixed deoptimization of the
Promisepolyfill in the pure versionAdded some missed dependencies to
/iterator/flat-mapentriesSome other minor fixes and improvements
Compat data improvements:
Added Deno 2.3 and Deno 2.3.2 compat data mapping
Updated Electron 37 compat data mapping
Added Opera Android 90 compat data mapping
Error.isErrormarked not supported in Node because of a bugSet.prototype.differencemarked as not supported in Safari and supported only from Bun 1.2.5 because of a bugSet.prototype.{ symmetricDifference, union }marked as not supported in Safari and supported only from Bun 1.2.5 because of a bugIterator.frommarked as not supported in Safari and supported only from Bun 1.2.5 because of a bugIterators closing on early errors in
Iteratorhelpers marked as implemented from FF141Array.prototype.withmarked as supported only from FF140 because it throws an incorrect exception when index coercion failsTypedArray.prototype.withmarked as unsupported in Bun and Safari because it should truncate negative fractional index to zero, but instead throws an errorDisposableStackandAsyncDisposableStackmarked as shipped in FF141 (SuppressedErrorhas a bug)AsyncDisposableStackbugs marked as fixed in Deno 2.3.2SuppressedErrorbugs (extra arguments support and arity) marked as fixed in Bun 1.2.15
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.