Update dependency core-js to v2.6.12 #36
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.6.5->2.6.12Release Notes
zloirock/core-js (core-js)
v2.6.12Compare Source
Arrayby copy proposal:Array.prototype.toReversedArray.prototype.toSortedArray.prototype.toSplicedArray.prototype.with%TypedArray%.prototype.toReversed%TypedArray%.prototype.toSorted%TypedArray%.prototype.withes.namespace modules,/es/and/stable/namespaces entriesJSON.parsesource text access Stage 3 proposalJSON.parsepatched for supportsourceinreviverfunction argumentsJSON.rawJSONJSON.isRawJSONJSON.stringifypatched for supportJSON.rawJSONArrayBuffer.prototype.transferand friends Stage 3 proposal:ArrayBuffer.prototype.detachedArrayBuffer.prototype.transfer(only in runtimes with nativestructuredClonewithArrayBuffertransfer support)ArrayBuffer.prototype.transferToFixedLength(only in runtimes with nativestructuredClonewithArrayBuffertransfer support)ArrayBuffer.prototype.transfer, but without properstructuredClone, addedArrayBuffertransfer support tostructuredClonepolyfillAsyncIteratorhelpers, proposal-iterator-helpers/262InstallErrorCauseremoved fromSuppressedError, January 2023 TC39 meeting, proposal-explicit-resource-management/145{ AsyncDisposableStack, DisposableStack }.prototype.use, proposal-explicit-resource-management/143Symbolpredicates Stage 2 proposalSymbol.isRegisteredSymbol.isWellKnownNumber.rangeStage 1 proposal and method renamed toIterator.rangeFunction.prototype.unThisStage 0 proposal and method renamed toFunction.prototype.demethodizeString.prototype.toWellFormedToStringconversion bugJSON.stringifysymbols handling fixJSON.{ parse, stringify }bugs (numbers instead of strings as keys in replacer, handling negative zeroes, spaces, some more handling symbols cases, etc.)ToStringconversion of some accessorsArrayBufferandDataViewmethodsDataViewand%TypedArray%polyfills optimizations=in theatobpolyfillString.prototype.{ trim, trimEnd, trimRight },parse(Int|Float),Number,atob, andURLpolyfills in some ancient enginesRegExp.prototype.flagsmarked as fixed from V8 ~ Chrome 111core-js-builder3.27.2 - 2023.01.19
Setmethods proposal updates:Set-like objects on early exit, proposal-set-methods/85webpackdev server bug on IE global methods, #1161String.{ raw, cooked }error with empty template arrayError.captureStackTraceinstead of stack parsing in new error classes / wrappers where it's possiblePromise.{ allSettled, any }feature detection, Hermes issueArrayby copy proposal marked as supported from V8 ~ Chrome 110selfmarked as fixed in Deno 1.29.3, deno/17362core-js-bundle3.27.1 - 2022.12.30
WeakMapkeysString.dedentin MS Edge3.27.0 - 2022.12.26
IteratorIterator.fromIterator.prototype.dropIterator.prototype.everyIterator.prototype.filterIterator.prototype.findIterator.prototype.flatMapIterator.prototype.forEachIterator.prototype.mapIterator.prototype.reduceIterator.prototype.someIterator.prototype.takeIterator.prototype.toArrayIterator.prototype.toAsyncIterator.prototype[@​@​toStringTag]AsyncIteratorAsyncIterator.fromAsyncIterator.prototype.dropAsyncIterator.prototype.everyAsyncIterator.prototype.filterAsyncIterator.prototype.findAsyncIterator.prototype.flatMapAsyncIterator.prototype.forEachAsyncIterator.prototype.mapAsyncIterator.prototype.reduceAsyncIterator.prototype.someAsyncIterator.prototype.takeAsyncIterator.prototype.toArrayAsyncIterator.prototype[@​@​toStringTag]/actual/entries, unconditional forced replacement disabled for features that survived to Stage 3.fromaccept strings,.flatMapthrows on strings returned from the callback, proposal-iterator-helpers/244, proposal-iterator-helpers/250.fromand.flatMapthrows on non-object iterators, proposal-iterator-helpers/253Setmethods proposal:Set.prototype.intersectionSet.prototype.unionSet.prototype.differenceSet.prototype.symmetricDifferenceSet.prototype.isSubsetOfSet.prototype.isSupersetOfSet.prototype.isDisjointFromSet-like objects as an argument, not all iterablesSets asthis, no@@​speciessupport, and other minor changes/actual/entries, unconditional forced replacement changed to feature detection/actual/namespace)/full/namespace), those methods are available with fallbacks to old semantics (in addition toSet-like, they accept iterable objects). This behavior will be removed from the next major releaseString.prototype.isWellFormedString.prototype.toWellFormed/actual/entries, disabled unconditional forced replacementusingstatement" and split into 2 (sync and async) proposalsSymbol.disposeSymbol.asyncDisposeSuppressedErrorDisposableStackDisposableStack.prototype.disposeDisposableStack.prototype.useDisposableStack.prototype.adoptDisposableStack.prototype.deferDisposableStack.prototype.moveDisposableStack.prototype[@​@​dispose]AsyncDisposableStackAsyncDisposableStack.prototype.disposeAsyncAsyncDisposableStack.prototype.useAsyncDisposableStack.prototype.adoptAsyncDisposableStack.prototype.deferAsyncDisposableStack.prototype.moveAsyncDisposableStack.prototype[@​@​asyncDispose]Iterator.prototype[@​@​dispose]AsyncIterator.prototype[@​@​asyncDispose]/actual/namespace entries for Stage 3 proposalString.dedentstage 2 proposalString.dedentreact-nativetarget for React Native with bundled Hermes.oculustarget was renamed toquest.opera_mobiletarget name is confusing since it contains data for the Chromium-based Android version, but iOS Opera is Safari-based. Soopera_mobiletarget was renamed toopera-android.androidtarget name is also confusing for someone - that means Android WebView, some think thinks that it's Chrome for Android, but they have some differences. For avoiding confusion, addedchrome-androidtarget.firefox-androidtarget.oculusandopera_mobilefields are available in the compat data till the next major release.Array.fromAsyncmarked as supported from Bun 0.3.0String.prototype.{ isWellFormed, toWellFormed }marked as supported from Bun 0.4.0Arrayby copy proposal marked as supported from Deno 1.27, deno/16429{ Map, WeakMap }.prototype.emplacebecame stricter by the spec draft@@​speciespattern) of some.prototypemethods from the new collections methods proposal and theArraydeduplication proposal that most likely will not be implemented since it contradicts the current TC39 policyNumberconstructor, #1154, #1155, thanks @trososset(Timeout|Interval|Immediate)extra arguments fix for Bun 0.3.0- (similarly to IE9-), bun/1633structuredClone, #11563.26.1 - 2022.11.14
Array.fromAsyncsince it's on Stage 3function-uncurry-thishelper where it's not required - minor optimization and preventing problems in some broken environments, a workaround of #1141Array.prototype.{ group, groupToMap }in V8 ~ Chromium 108, proposal-array-grouping/443.26.0 - 2022.10.24
Array.fromAsyncproposal:%Array.prototype.values%usage in array-like branch, proposal-array-from-async/30String.prototype.isWellFormedString.prototype.toWellFormedAsyncIteratorhelpers, proposal-iterator-helpers/239{ Iterator, AsyncIterator }.prototype.flatMapsupports returning both - iterables and iterators, proposal-iterator-helpers/233.nextin missed cases of{ Iterator, AsyncIterator }.from, proposal-iterator-helpers/232selfpolyfill as a part of The Minimum Common Web Platform API, specification, #1118inverseoption tocore-js-compat, #1119formatoption tocore-js-builder, #11203.25.5 - 2022.10.04
3.25.4 - 2022.10.03
Function.prototype.{ call, apply, bind }on string methods, #1128[Serializable]and[Transferable]objects in thestructuredClonepolyfill. Mainly, for better error messages if polyfilling of cloning such types is impossibleArray.prototype.{ group, groupToMap }marked as supported from V8 ~ Chromium 1083.25.3 - 2022.09.26
Array.prototype.groupToMapin the pure version for returning wrappedMapinstancesArray.prototype.{ findLast, findLastIndex }in/stage/4entry3.25.2 - 2022.09.19
document.allas a callable in some missed cases3.25.1 - 2022.09.08
sideEffectsfield tocore-js-purepackage.jsonfor better tree shaking, #1117semverdependency fromcore-js-compatsemverpackage (ironically) added a breaking change and dropped NodeJS 8 support in the minor7.1version, after thatsemverincore-js-compatwas pinned to7.0since for avoiding breaking changes it should support NodeJS 8. However, sincecore-js-compatis usually used with other packages that usesemverdependency, it causes multiple duplication ofsemverin dependencies. So I decided to removesemverdependency and replace it with a couple of simple helpers.3.25.0 - 2022.08.25
Object.prototype.__proto__polyfilldocument.allas an object in some missed cases, see ECMAScript Annex B 3.6%WrapForValid(Async)IteratorPrototype%.return, proposal-iterator-helpers/215.returnin%IteratorHelperPrototype%.return, #1116valueshould be created beforedone).lengthsettingArrayBuffer.lengthin V8 ~ Chrome 27-WeakMapfor internal states with multiplecore-jscopiesFileListin thestructuredClonepolyfill extended to some more old engines versionsTypeErrorincore-js-compat/core-js-builderin case of passing invalid module names / filters for avoiding unexpected result, related to #1115esmodulescore-js-compat/core-js-buildertarget3.24.1 - 2022.07.30
IS_BROWSERdetection to avoid a false positive withjsdom, #1110@@​speciessupport inPromisein some old engines{ Array, %TypedArray% }.prototype.{ findLast, findLastIndex }marked as shipped in FF1043.24.0 - 2022.07.25
.asIndexedPairsrenamed to.indexed, proposal-iterator-helpers/183:Iterator.prototype.asIndexedPairs->Iterator.prototype.indexedAsyncIterator.prototype.asIndexedPairs->AsyncIterator.prototype.indexed%AsyncFromSyncIteratorPrototype%inAsyncIterator.fromandIterator.prototype.toAsync, proposal-iterator-helpers/182, proposal-iterator-helpers/202%WrapForValidAsyncIteratorPrototype%.next, proposal-iterator-helpers/197%WrapForValid(Async)IteratorPrototype%.next, proposal-iterator-helpers/197 and proposal-iterator-helpers/205.next/.returnto an underlying iterator by the extended iterator protocol, a part of proposal-iterator-helpers/194.throwmethods removed from all wrappers / helpers prototypes, a part of proposal-iterator-helpers/194{ Iterator, AsyncIterator }.prototype.flatMapproxy iterators on.return, proposal-iterator-helpers/195RangeErroronNaNin{ Iterator, AsyncIterator }.prototype.{ drop, take }, proposal-iterator-helpers/181%TypedArray%.prototype.toSplicedmethod removed from the change array by copy proposal and marked as obsolete incore-js, proposal-change-array-by-copy/88Promisewithunhandledrejectionevent support (browser style) in Deno < 1.24core-js-compat/core-js-builderand added compat data for them:bun), compat data for 0.1.1-0.1.5, #1103hermes), compat data for 0.1-0.11, #1099oculus), compat data mapping for 3.0-22.0, #10983.23.5 - 2022.07.18
structuredClonefeature detection, #11063.23.4 - 2022.07.10
core-jsstructuredClonebugs (1774866 (fixed in FF104) and 1777321 (still not fixed)) that now can clone errors, but.stackof the clone is an empty string{ Map, WeakMap }.prototype.emplacelogic, #11023.23.3 - 2022.06.26
%TypedArray%.prototype.toSplicedfollowing proposal-change-array-by-copy/893.23.2 - 2022.06.21
%TypedArray%constructors in new methods, #1092 (comment)3.23.1 - 2022.06.14
core-jscopies, #1091vflag toRegExp.prototype.flagsimplementation in case if current V8 bugs will not be fixed before this flag implementation3.23.0 - 2022.06.14
Arrayfind from last moved to the stable ES, according to June 2022 TC39 meeting:Array.prototype.findLastArray.prototype.findLastIndex%TypedArray%.prototype.findLast%TypedArray%.prototype.findLastIndexArraygrouping proposal renamed, according to June 2022 TC39 meeting:Array.prototype.groupBy->Array.prototype.groupArray.prototype.groupByToMap->Array.prototype.groupToMap%TypedArray%.prototype.withfollowing proposal-change-array-by-copy/86, according to June 2022 TC39 meetingSymbol.metadataKeyreplacesSymbol.metadataArray.prototype.pushpolyfill with some fixes for modern enginesArray.prototype.unshiftpolyfill with some fixes for modern enginesRegExp.prototype.flagsin the actual version of V8MathandNumberconstantsArrayBufferDetachingprotector cell invalidation and performance degradation onstructuredClonefeature detection, one more case of #679structuredClonethat can not cloneDOMException(just in case for future versions that will fix other issues)3.22.8 - 2022.06.02
ToBigInt/ToNumberconversion of the argument passed to%TypedArray%.prototype.fillin V8 ~ Chrome < 59, Safari < 14.1, FF < 55, Edge <=18DeletePropertyOrThrowin IE9-TypeErrorinstead ofError) on incorrectexecresult inRegExp.prototype.testpolyfill{ actual, full, features }/typed-array/atentries3.22.7 - 2022.05.24
3.22.6 - 2022.05.23
ToNumberconversion on arguments ofMath.{ fround, trunc }polyfillsArray.prototype.includesmarked as fixed in FF1023.22.5 - 2022.05.10
.prototypeis non-writable.prototypeis not definedstruturedClonethat returnsnullif cloned object contains multiple references to one error3.22.4 - 2022.05.03
.lengthof polyfilled functions even in compressed code (excepting some ancient engines).nameof polyfilled accessors (excepting some ancient engines)ToStringconversion of polyfilled accessors3.22.3 - 2022.04.28
Array.prototype.includesbroken on sparse arrays3.22.2 - 2022.04.21
URLSearchParamsin IE8- that was broken in the previous release__lookupGetter__entries3.22.1 - 2022.04.20
RegExpflags handlingfetchAPI3.22.0 - 2022.04.15
Arrayby copy proposal:/actual/entry points for methods from this proposalArray.prototype.toSplicedthrows aTypeErrorinstead ofRangeErrorif the result length is more thanMAX_SAFE_INTEGER, proposal-change-array-by-copy/70atob/btoafixes:atobdoes not ignore spaces, node/42530atobdoes not validate encoding, node/42646/full/namespace as the replacement for/features/since it's more descriptive in context of the rest namespaces (/es/⊆/stable/⊆/actual/⊆/full/)%TypedArray%.prototype.groupBywas removed from theArraygrouping proposal a long time ago. We can't completely remove this method since it's a breaking change. But this proposal has been promoted to stage 3 - so the proposal should be promoted without this method, this method should not be available in/actual/entries - but it should be available in early-stage entries to avoid breakage.Errorfeatures with wrappedErrorconstructors, #1061nullandundefinedallowed as the second argument ofstructuredClone, #1056core-js-compat->core-js-builder->core-js-bundleoutput. That mean that if the output contains, for example,es.object.has-own, the legacy reference to it,esnext.object.has-own, no longer added.core-js-builderandcore-js-compat, now it'smodulesandexcludeoptionstargetsoption ofcore-js-compatmeans that thetargetsfilter just will not be applied, so the result will contain modules required for all possible engines.stackproperty onDOMExceptionmarked as supported from Deno 1.153.21.1 - 2022.02.17
Array.prototype.{ groupBy, groupByToMap }implementationcore-js-compattargets parser transforms engine names to lower caseatob/btoamarked as fixed in NodeJS 17.53.21.0 - 2022.02.02
atobbtoa3.20.3 - 2022.01.15
Function#bindpolyfills, uses only nativeFunction#bindin the internalsstructuredCloneshould throw an error if no arguments passed__core-js_shared__3.20.2 - 2022.01.02
Object.{ defineProperty, defineProperties }bug, Babel issue%TypedArray%.prototype.setbugs, affects modern engines (like Chrome < 95 or Safari < 14.1)3.20.1 - 2021.12.23
Promise.prototype.then, #10263.20.0 - 2021.12.16
structuredClonemethod from the HTML spec, see MDNhtml/5749DOMExceptionpolyfill, the Web IDL spec, see MDNDOMExceptionand its attributes polyfills with fixes of many different engines bugsDOMException#stackproperty polyfill in engines that should have itDOMExceptionimplementations where it's possible (for example, in old NodeJS where it's not exposed as global)causeon all Error typesError.prototype.toStringmethod polyfill with fixes of many different bugs of JS enginesNumber.prototype.toExponentialmethod polyfill with fixes of many different bugs of JS enginesArraygrouping proposal:Array.prototype.groupByToMapmethod@@​speciessupportArrayby copy stage 2 proposal:Array.prototype.toReversedArray.prototype.toSortedArray.prototype.toSplicedArray.prototype.with%TypedArray%.prototype.toReversed%TypedArray%.prototype.toSorted%TypedArray%.prototype.toSpliced%TypedArray%.prototype.withIterator.prototype.toAsyncmethod from the iterator helpers stage 2 proposalArray.fromAsyncproposal moved to stage 2String.cookedstage 1 proposalFunction.prototype.unThisstage 0 proposalFunction.{ isCallable, isConstructor }stage 0 proposal:Function.isCallableFunction.isConstructorString#atafter loading obsoleteString#atproposal module, #1019Array.prototype.{ values, @​@​iterator }.namein V8 ~ Chrome 45-core-js/actual/**namespace3.19.3 - 2021.12.06
URLSearchParamsiterator.nextthat should be enumerable by the specSubscription3.19.2 - 2021.11.29
RegExp#stickyflag, #1008, #1015Function#namepolyfill, #1010, thanks @ildar-shaimordanovArray.prototype[@​@​species]URLandURLSearchParams3.19.1 - 2021.11.03
ArrayBuffers are non-extensible, butObject.isExtensibledoes not report it:Object.{ isExtensible, isSealed, isFrozen }andReflect.isExtensibleArrayBuffers as collections keysObject#toStringonAggregateErrorin IE10-WeakMapin IE8-.findLastmethods family marked as supported from Chrome 97web.modules3.19.0 - 2021.10.25
core-jsfor preventing possible cases of breaking / observing the internal state by patching / deleting of them.call/.applyprototype methods that could be patchedinstanceofoperator - implicit.prototype/@@​hasInstanceaccess that could be patchedRegExp#test,String#matchand some over methods - implicit.execandRegExpwell-known symbols access that could be patchedErrorstack from extra entries experimentally added toAggregateError, #996, in case lack of problems it will be extended to other casesSymbolsupport, new well-known symbols created with usageSymbol.forfor ensuring the same keys in different realms, #998processpolyfill bug that incorrectly reports V8 version that's used in some cases ofcore-jsfeature detectionmessageAggregateErrorargumentMath.scale, a spec draft bugcore-js-builderwork in NodeJS 17, added a workaround ofwebpack+ NodeJS 17 issue3.18.3 - 2021.10.13
AggregateErrorconstructor that should containErrorconstructorAggregateError.prototypeproperties descriptorsInstallErrorCauseinternal operationObject.hasOwnmarked as supported from Safari 15.13.18.2 - 2021.10.06
{ Array, %TypedArray% }.fromAsyncerrors moved to the promise, per the latest changes of the spec draftToInteger(OrInfinity)operation returns+0for-0argument, ES2020+ updateNumberconstructor wrapperString.rawwith extra arguments3.18.1 - 2021.09.27
String.prototype.substrfeature detection and compat data.forEachfrom prototypes of some DOM collections where it shouldn't be, #988, #987, thanks @moorejscausetoAggregateErrorconstructor implementation (still without adding to the feature detection).atand.findLastmethods marked as supported in Safari TP3.18.0 - 2021.09.20
Array.fromAsyncstage 1 proposal:Array.fromAsync%TypedArray%.fromAsync.nameand.toString()on polyfilled functions improved in many different casesIsConstructorandIsCallablechecksGetMethodoperationparseInt/parseFloatwith boxed symbolses.array.{ index-of, last-index-of }compat data3.17.3 - 2021.09.09
%IteratorPrototype%and%AsyncIteratorPrototype%in the futureDOMTokenList.prototype.{ forEach, @​@​iterator, keys, values, entries }in old WebKit versions whereelement.classListis not an instance of globalDOMTokenList3.17.2 - 2021.09.03
3.17.1 - 2021.09.02
modules-by-versionsdata3.17.0 - 2021.09.02
Object.prototype.hasOwnProperty(Object.hasOwn) proposal moved to the stable ES, per August 2021 TC39 meeting.at) proposal moved to the stable ES, per August 2021 TC39 meetingString.prototype.at. It was not exposed because of the conflict with the alternative obsolete proposal (that will be completely removed in the next major version). For the backward compatibility, in the case of loading this proposal, it will be overwritten.3.16.4 - 2021.08.29
AsyncFromSyncIteratormade stricter, related mainly toAsyncIterator.fromandAsyncIterator.prototype.flatMap.nextarguments in(Async)Iteratormethods is aligned with the current spec draft (mainly - ignoring the first passed to.nextargument in built-in generators).next,.return,.throwmethods onAsyncIteratorhelpers proxy iterators aligned with the current spec draft (built-in async generators) (mainly - some early errors moved to returned promises)3.16.3 - 2021.08.25
CreateAsyncFromSyncIteratorsemantic inAsyncIterator.from, related to #765Object.prototype, #9733.16.2 - 2021.08.17
Object.create(null)on WSH, #9703.16.1 - 2021.08.09
3.16.0 - 2021.07.30
Arrayfind from last proposal moved to the stage 3, July 2021 TC39 meetingArrayfiltering stage 1 proposal:Array.prototype.filterRejectreplacesArray.prototype.filterOut%TypedArray%.prototype.filterRejectreplaces%TypedArray%.prototype.filterOutArraygrouping stage 1 proposal:Array.prototype.groupBy%TypedArray%.prototype.groupBy@@​toPrimitivein some cases ofToPrimitiveinternal logic made stricterRequestwith polyfilledURLSearchParams, #965Object.create(null)on WSH, #966RegExp#execDate.prototype.getYearfeature detectiondenotarget incore-js-compat/core-js-builderObject.hasOwnmarked as supported from V8 9.3 and FF92Date.prototype.getYearmarked as not supported in IE8-summaryoption tocore-js-builder, see more info in theREADME, #9103.15.2 - 2021.06.29
zone.jsloaded beforecore-js, #9533.15.1 - 2021.06.23
RegExpconstructor, #9483.15.0 - 2021.06.21
RegExpnamed capture groups polyfill, #521, #944RegExpdotAllflag polyfill, #792, #944Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.