Skip to content

Commit ce8281c

Browse files
committed
v3.42.0
1 parent 62a96b5 commit ce8281c

File tree

14 files changed

+359
-191
lines changed

14 files changed

+359
-191
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Changelog
22
##### Unreleased
3+
- Nothing
4+
5+
##### [3.42.0 - 2025.04.30](https://github.com/zloirock/core-js/releases/tag/v3.42.0)
6+
- Changes [v3.41.0...v3.42.0](https://github.com/zloirock/core-js/compare/v3.41.0...v3.42.0) (142 commits)
37
- [`Map` upsert proposal](https://github.com/tc39/proposal-upsert):
48
- Moved to stage 2.7, [April 2025 TC39 meeting](https://x.com/robpalmer2/status/1911882240109261148)
59
- Validation order of `WeakMap.prototype.getOrInsertComputed` updated following [tc39/proposal-upsert#79](https://github.com/tc39/proposal-upsert/pull/79)

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
216216
### Installation:[](#index)
217217
```sh
218218
// global version
219-
npm install --save core-js@3.41.0
219+
npm install --save core-js@3.42.0
220220
// version without global namespace pollution
221-
npm install --save core-js-pure@3.41.0
221+
npm install --save core-js-pure@3.42.0
222222
// bundled global version
223-
npm install --save core-js-bundle@3.41.0
223+
npm install --save core-js-bundle@3.42.0
224224
```
225225

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

319319
#### `@babel/preset-env`[](#index)
320320

321-
[`@babel/preset-env`](https://github.com/babel/babel/tree/master/packages/babel-preset-env) has `useBuiltIns` option, which optimizes the use of the global version of `core-js`. With `useBuiltIns` option, you should also set `corejs` option to the used version of `core-js`, like `corejs: '3.41'`.
321+
[`@babel/preset-env`](https://github.com/babel/babel/tree/master/packages/babel-preset-env) has `useBuiltIns` option, which optimizes the use of the global version of `core-js`. With `useBuiltIns` option, you should also set `corejs` option to the used version of `core-js`, like `corejs: '3.42'`.
322322

323323
> [!IMPORTANT]
324-
> It is recommended to specify the used minor `core-js` version, like `corejs: '3.41'`, instead of `corejs: 3`, since with `corejs: 3` will not be injected modules which were added in minor `core-js` releases.
324+
> It is recommended to specify the used minor `core-js` version, like `corejs: '3.42'`, instead of `corejs: 3`, since with `corejs: 3` will not be injected modules which were added in minor `core-js` releases.
325325
326326
---
327327

@@ -382,7 +382,7 @@ import 'core-js/modules/es.array.of';
382382
var array = Array.of(1, 2, 3);
383383
```
384384

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

387387
> [!IMPORTANT]
388388
> In the case of `useBuiltIns: 'usage'`, you should not add `core-js` imports by yourself, they will be added automatically.
@@ -420,7 +420,7 @@ Fast JavaScript transpiler `swc` [contains integration with `core-js`](https://s
420420
"env": {
421421
"targets": "> 0.25%, not dead",
422422
"mode": "entry",
423-
"coreJs": "3.41"
423+
"coreJs": "3.42"
424424
}
425425
}
426426
```

deno/corejs/README.md

Lines changed: 1 addition & 1 deletion
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.41.0/index.js'; // <- at the top of your entry point
32+
import 'https://deno.land/x/corejs@v3.42.0/index.js'; // <- at the top of your entry point
3333

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

0 commit comments

Comments
 (0)