Skip to content

Commit 598d0b2

Browse files
committed
3.37.0
1 parent 88b57ee commit 598d0b2

File tree

18 files changed

+1957
-1522
lines changed

18 files changed

+1957
-1522
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Changelog
22
##### Unreleased
3+
- Nothing
4+
5+
##### [3.37.0 - 2024.04.17](https://github.com/zloirock/core-js/releases/tag/v3.37.0)
6+
- Changes [v3.36.1...v3.37.0](https://github.com/zloirock/core-js/compare/v3.36.1...v3.37.0)
37
- [New `Set` methods proposal](https://github.com/tc39/proposal-set-methods):
48
- Built-ins:
59
- `Set.prototype.intersection`

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,11 @@ structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
212212
### Installation:[](#index)
213213
```sh
214214
// global version
215-
npm install --save core-js@3.36.1
215+
npm install --save core-js@3.37.0
216216
// version without global namespace pollution
217-
npm install --save core-js-pure@3.36.1
217+
npm install --save core-js-pure@3.37.0
218218
// bundled global version
219-
npm install --save core-js-bundle@3.36.1
219+
npm install --save core-js-bundle@3.37.0
220220
```
221221

222222
Or you can use `core-js` [from CDN](https://www.jsdelivr.com/package/npm/core-js-bundle).
@@ -313,9 +313,9 @@ import 'regenerator-runtime/runtime';
313313

314314
#### `@babel/preset-env`[](#index)
315315

316-
[`@babel/preset-env`](https://github.com/babel/babel/tree/master/packages/babel-preset-env) has `useBuiltIns` option, which optimizes working with global version of `core-js`. With `useBuiltIns` option, you should also set `corejs` option to used version of `core-js`, like `corejs: '3.36'`.
316+
[`@babel/preset-env`](https://github.com/babel/babel/tree/master/packages/babel-preset-env) has `useBuiltIns` option, which optimizes working with global version of `core-js`. With `useBuiltIns` option, you should also set `corejs` option to used version of `core-js`, like `corejs: '3.37'`.
317317

318-
> **Warning!** Recommended to specify used minor `core-js` version, like `corejs: '3.36'`, instead of `corejs: 3`, since with `corejs: 3` will not be injected modules which were added in minor `core-js` releases.
318+
> **Warning!** Recommended to specify used minor `core-js` version, like `corejs: '3.37'`, instead of `corejs: 3`, since with `corejs: 3` will not be injected modules which were added in minor `core-js` releases.
319319
320320
- `useBuiltIns: 'entry'` replaces imports of `core-js` to import only required for a target environment modules. So, for example,
321321
```js
@@ -370,7 +370,7 @@ import 'core-js/modules/es.array.of';
370370
var array = Array.of(1, 2, 3);
371371
```
372372

373-
By default, `@babel/preset-env` with `useBuiltIns: 'usage'` option only polyfills stable features, but you can enable polyfilling of proposals by `proposals` option, as `corejs: { version: '3.36', proposals: true }`.
373+
By default, `@babel/preset-env` with `useBuiltIns: 'usage'` option only polyfills stable features, but you can enable polyfilling of proposals by `proposals` option, as `corejs: { version: '3.37', proposals: true }`.
374374

375375
> **Warning!** In the case of `useBuiltIns: 'usage'`, you should not add `core-js` imports by yourself, they will be added automatically.
376376
@@ -406,7 +406,7 @@ Fast JavaScript transpiler `swc` [contains integration with `core-js`](https://s
406406
"env": {
407407
"targets": "> 0.25%, not dead",
408408
"mode": "entry",
409-
"coreJs": "3.36"
409+
"coreJs": "3.37"
410410
}
411411
}
412412
```

deno/corejs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
*Example*:
3131
```js
32-
import 'https://deno.land/x/corejs@v3.36.1/index.js'; // <- at the top of your entry point
32+
import 'https://deno.land/x/corejs@v3.37.0/index.js'; // <- at the top of your entry point
3333

3434
Object.hasOwn({ foo: 42 }, 'foo'); // => true
3535

0 commit comments

Comments
 (0)