Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: zloirock/core-js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.19.3
Choose a base ref
...
head repository: zloirock/core-js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.20.0
Choose a head ref

Commits on Dec 6, 2021

  1. disable tests of ToLength logic in ArrayIterator since it's not f…

    …ixed even in modern WebKit, but not very significant
    zloirock committed Dec 6, 2021
    Copy the full SHA
    bafb1b9 View commit details
  2. Copy the full SHA
    71e7c18 View commit details
  3. Copy the full SHA
    bb0690d View commit details
  4. update dependencies

    zloirock committed Dec 6, 2021
    Copy the full SHA
    1ebaa10 View commit details

Commits on Dec 7, 2021

  1. bring the obsolete String#at module semantics closer to the modern …

    …`String#at` for avoid the most conflicts
    zloirock committed Dec 7, 2021
    Copy the full SHA
    361c025 View commit details
  2. update dependencies

    zloirock committed Dec 7, 2021
    Copy the full SHA
    58405bf View commit details

Commits on Dec 8, 2021

  1. update the changelog

    zloirock committed Dec 8, 2021
    Copy the full SHA
    06c8c20 View commit details

Commits on Dec 9, 2021

  1. Copy the full SHA
    46cd568 View commit details
  2. Copy the full SHA
    5357af7 View commit details
  3. Copy the full SHA
    1506f22 View commit details
  4. Copy the full SHA
    26ad141 View commit details
  5. Copy the full SHA
    afaf348 View commit details
  6. Copy the full SHA
    99408bb View commit details
  7. Copy the full SHA
    c342983 View commit details
  8. refatoring

    zloirock committed Dec 9, 2021
    Copy the full SHA
    36bd972 View commit details
  9. update docs

    zloirock committed Dec 9, 2021
    Copy the full SHA
    8b4642d View commit details
  10. refactor tests

    zloirock committed Dec 9, 2021
    Copy the full SHA
    203bb9b View commit details
  11. Copy the full SHA
    bba1898 View commit details
  12. Copy the full SHA
    0e0f223 View commit details
  13. refactoring

    zloirock committed Dec 9, 2021
    Copy the full SHA
    8eb5f39 View commit details
  14. Copy the full SHA
    a531017 View commit details
  15. update docs

    zloirock committed Dec 9, 2021
    Copy the full SHA
    e100268 View commit details
  16. prefer assert.same

    zloirock committed Dec 9, 2021
    Copy the full SHA
    0810670 View commit details
  17. Copy the full SHA
    bc65dac View commit details
  18. Copy the full SHA
    f793cc3 View commit details
  19. Copy the full SHA
    c88ea38 View commit details
  20. Copy the full SHA
    b5e442f View commit details
  21. Copy the full SHA
    dc10e71 View commit details
  22. Copy the full SHA
    405b93e View commit details
  23. add typed array methods

    zloirock committed Dec 9, 2021
    Copy the full SHA
    414047b View commit details
  24. some unification

    zloirock committed Dec 9, 2021
    Copy the full SHA
    05eba7e View commit details
  25. add entries tests

    zloirock committed Dec 9, 2021
    Copy the full SHA
    15ddd58 View commit details
  26. add some tests

    zloirock committed Dec 9, 2021
    Copy the full SHA
    afa8716 View commit details
  27. refactoring

    zloirock committed Dec 9, 2021
    Copy the full SHA
    e8070c3 View commit details
  28. add compat data tests

    zloirock committed Dec 9, 2021
    Copy the full SHA
    ad8edbb View commit details
  29. refactoring

    zloirock committed Dec 9, 2021
    Copy the full SHA
    af9c3a0 View commit details
  30. Copy the full SHA
    36eb31d View commit details
  31. update docs

    zloirock committed Dec 9, 2021
    Copy the full SHA
    3a0838f View commit details
  32. fix linting

    zloirock committed Dec 9, 2021
    Copy the full SHA
    1bee4f2 View commit details
  33. refactor tests

    zloirock committed Dec 9, 2021
    Copy the full SHA
    5fd4508 View commit details
  34. Copy the full SHA
    9ee6b9b View commit details
  35. feat: add array.groupByMap

    Jack-Works authored and zloirock committed Dec 9, 2021
    Copy the full SHA
    488bb27 View commit details
  36. Copy the full SHA
    4d91951 View commit details
  37. october 2021

    zloirock committed Dec 9, 2021
    Copy the full SHA
    99e62c6 View commit details
  38. add Array#groupByMap

    zloirock committed Dec 9, 2021
    Copy the full SHA
    87cef2f View commit details
  39. update docs

    zloirock committed Dec 9, 2021
    Copy the full SHA
    c44b668 View commit details
  40. refactor tests

    zloirock committed Dec 9, 2021
    Copy the full SHA
    bcda388 View commit details
  41. Copy the full SHA
    65c36d8 View commit details
  42. Copy the full SHA
    ea9f3af View commit details
  43. detect some more bugs

    zloirock committed Dec 9, 2021
    Copy the full SHA
    a9df8d5 View commit details
Showing 1,220 changed files with 10,155 additions and 2,462 deletions.
7 changes: 4 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -108,7 +108,7 @@ const base = {
// disallow unnecessary labels
'no-extra-label': ERROR,
// disallow fallthrough of case statements
'no-fallthrough': ERROR,
'no-fallthrough': [ERROR, { commentPattern: 'break omitted' }],
// disallow the use of leading or trailing decimal points in numeric literals
'no-floating-decimal': ERROR,
// disallow reassignments of native objects
@@ -1119,11 +1119,12 @@ module.exports = {
'tests/compat/**',
],
globals: {
compositeKey: READONLY,
compositeSymbol: READONLY,
AsyncIterator: READONLY,
Iterator: READONLY,
Observable: READONLY,
compositeKey: READONLY,
compositeSymbol: READONLY,
structuredClone: READONLY,
},
},
{
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@ jobs:
package.json
packages/*/package.json
- run: npm i
- run: npx playwright install-deps
- run: npm run ci-karma

tests:
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@ node_modules/
/packages/core-js-compat/external.json
/packages/core-js-compat/modules.json
/packages/core-js-compat/modules-by-versions.json
/packages/core-js-pure/actual/
/packages/core-js-pure/es/
/packages/core-js-pure/features/
/packages/core-js-pure/internals/
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,45 @@
##### Unreleased
- Nothing

##### 3.20.0 - 2021.12.16
- Added `structuredClone` method [from the HTML spec](https://html.spec.whatwg.org/multipage/structured-data.html#dom-structuredclone), [see MDN](https://developer.mozilla.org/en-US/docs/Web/API/structuredClone)
- Includes all cases of cloning and transferring of required ECMAScript and platform types that can be polyfilled, for the details see [the caveats](https://github.com/zloirock/core-js#caveats-when-using-structuredclone-polyfill)
- Uses native structured cloning algorithm implementations where it's possible
- Includes the new semantic of errors cloning from [`html/5749`](https://github.com/whatwg/html/pull/5749)
- Added `DOMException` polyfill, [the Web IDL spec](https://webidl.spec.whatwg.org/#idl-DOMException), [see MDN](https://developer.mozilla.org/en-US/docs/Web/API/DOMException)
- Includes `DOMException` and its attributes polyfills with fixes of many different engines bugs
- Includes `DOMException#stack` property polyfill in engines that should have it
- Reuses native `DOMException` implementations where it's possible (for example, in old NodeJS where it's not exposed as global)
- Added [support of `cause` on all Error types](https://github.com/tc39/proposal-error-cause)
- Added `Error.prototype.toString` method polyfill with fixes of many different bugs of JS engines
- Added `Number.prototype.toExponential` method polyfill with fixes of many different bugs of JS engines
- [`Array` grouping proposal](https://github.com/tc39/proposal-array-grouping):
- Moved to the stage 3
- Added `Array.prototype.groupByToMap` method
- Removed `@@species` support
- Added [change `Array` by copy stage 2 proposal](https://github.com/tc39/proposal-change-array-by-copy):
- `Array.prototype.toReversed`
- `Array.prototype.toSorted`
- `Array.prototype.toSpliced`
- `Array.prototype.with`
- `%TypedArray%.prototype.toReversed`
- `%TypedArray%.prototype.toSorted`
- `%TypedArray%.prototype.toSpliced`
- `%TypedArray%.prototype.with`
- Added `Iterator.prototype.toAsync` method from [the iterator helpers stage 2 proposal](https://github.com/tc39/proposal-iterator-helpers)
- [`Array.fromAsync` proposal](https://github.com/tc39/proposal-array-from-async) moved to stage 2
- Added [`String.cooked` stage 1 proposal](https://github.com/tc39/proposal-string-cooked):
- Added [`Function.prototype.unThis` stage 0 proposal](https://github.com/js-choi/proposal-function-un-this)
- Added [`Function.{ isCallable, isConstructor }` stage 0 proposal](https://github.com/caitp/TC39-Proposals/blob/trunk/tc39-reflect-isconstructor-iscallable.md):
- `Function.isCallable`
- `Function.isConstructor`
- Added a workaround of most cases breakage modern `String#at` after loading obsolete `String#at` proposal module, [#1019](https://github.com/zloirock/core-js/issues/1019)
- Fixed `Array.prototype.{ values, @@iterator }.name` in V8 ~ Chrome 45-
- Fixed validation of typed arrays in typed arrays iteration methods in V8 ~ Chrome 50-
- Extension of the API, [#1012](https://github.com/zloirock/core-js/issues/1012)
- Added a new `core-js/actual/**` namespace
- Added entry points for each finished post-ES6 proposal

##### 3.19.3 - 2021.12.06
- Fixed internal slots check in methods of some built-in types, [#1017](https://github.com/zloirock/core-js/issues/1017)
- Fixed `URLSearchParams` iterator `.next` that should be enumerable [by the spec](https://webidl.spec.whatwg.org/#es-iterator-prototype-object)
Loading