Skip to content

Commit 149541a

Browse files
committed
v3.41.0
1 parent c57da2e commit 149541a

File tree

15 files changed

+1817
-1593
lines changed

15 files changed

+1817
-1593
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.41.0 - 2025.03.01](https://github.com/zloirock/core-js/releases/tag/v3.41.0)
6+
- Changes [v3.40.0...v3.41.0](https://github.com/zloirock/core-js/compare/v3.40.0...v3.41.0) (85 commits)
37
- [`RegExp.escape` proposal](https://github.com/tc39/proposal-regex-escaping):
48
- Built-ins:
59
- `RegExp.escape`

README.md

+7-7
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.40.0
219+
npm install --save core-js@3.41.0
220220
// version without global namespace pollution
221-
npm install --save core-js-pure@3.40.0
221+
npm install --save core-js-pure@3.41.0
222222
// bundled global version
223-
npm install --save core-js-bundle@3.40.0
223+
npm install --save core-js-bundle@3.41.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.40'`.
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'`.
322322

323323
> [!IMPORTANT]
324-
> It is recommended to specify the used minor `core-js` version, like `corejs: '3.40'`, 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.41'`, 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.40', 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.41', 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.40"
423+
"coreJs": "3.41"
424424
}
425425
}
426426
```

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

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

0 commit comments

Comments
 (0)