Skip to content

Commit 4a322bf

Browse files
committed
v3.38.0
1 parent 3dec7dd commit 4a322bf

File tree

16 files changed

+958
-600
lines changed

16 files changed

+958
-600
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Changelog
22
##### Unreleased
3+
- Nothing
4+
5+
##### [3.38.0 - 2024.08.05](https://github.com/zloirock/core-js/releases/tag/v3.38.0)
6+
- Changes [v3.37.1...v3.38.0](https://github.com/zloirock/core-js/compare/v3.37.1...v3.38.0)
37
- [`RegExp.escape` proposal](https://github.com/tc39/proposal-regex-escaping):
48
- Built-ins:
59
- `RegExp.escape`
@@ -13,7 +17,7 @@
1317
- Moved to stage 3, [June 2024 TC39 meeting](https://github.com/tc39/proposals/commit/de20984cd7f7bc616682c557cb839abc100422cb)
1418
- Added `/actual/` namespace entries, unconditional forced replacement changed to feature detection
1519
- [`Uint8Array` to / from base64 and hex stage 3 proposal](https://github.com/tc39/proposal-arraybuffer-base64):
16-
- Methods:
20+
- Built-ins:
1721
- `Uint8Array.fromBase64`
1822
- `Uint8Array.fromHex`
1923
- `Uint8Array.prototype.setFromBase64`

README.md

Lines changed: 7 additions & 7 deletions
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.37.1
215+
npm install --save core-js@3.38.0
216216
// version without global namespace pollution
217-
npm install --save core-js-pure@3.37.1
217+
npm install --save core-js-pure@3.38.0
218218
// bundled global version
219-
npm install --save core-js-bundle@3.37.1
219+
npm install --save core-js-bundle@3.38.0
220220
```
221221

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

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

317-
[`@babel/preset-env`](https://github.com/babel/babel/tree/master/packages/babel-preset-env) has `useBuiltIns` option, which optimizes working with 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.37'`.
317+
[`@babel/preset-env`](https://github.com/babel/babel/tree/master/packages/babel-preset-env) has `useBuiltIns` option, which optimizes working with 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.38'`.
318318

319319
> [!IMPORTANT]
320-
> 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.
320+
> Recommended to specify used minor `core-js` version, like `corejs: '3.38'`, instead of `corejs: 3`, since with `corejs: 3` will not be injected modules which were added in minor `core-js` releases.
321321
322322
---
323323

@@ -374,7 +374,7 @@ import 'core-js/modules/es.array.of';
374374
var array = Array.of(1, 2, 3);
375375
```
376376

377-
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.37', proposals: true }`.
377+
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.38', proposals: true }`.
378378

379379
> [!IMPORTANT]
380380
> In the case of `useBuiltIns: 'usage'`, you should not add `core-js` imports by yourself, they will be added automatically.
@@ -412,7 +412,7 @@ Fast JavaScript transpiler `swc` [contains integration with `core-js`](https://s
412412
"env": {
413413
"targets": "> 0.25%, not dead",
414414
"mode": "entry",
415-
"coreJs": "3.37"
415+
"coreJs": "3.38"
416416
}
417417
}
418418
```

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

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

0 commit comments

Comments
 (0)