v3.38.0
版本发布时间: 2024-08-05 02:18:48
zloirock/core-js最新发布版本:v3.38.1(2024-08-20 19:37:57)
- Changes v3.37.1...v3.38.0
-
RegExp.escape
proposal:- Built-ins:
-
RegExp.escape
-
- Moved to stage 3, June 2024 and July 2024 TC39 meetings
- Updated the way of escaping, regex-escaping/77
- Throw an error on non-strings, regex-escaping/58
- Added
/actual/
namespace entries, unconditional forced replacement changed to feature detection
- Built-ins:
-
Promise.try
proposal:- Built-ins:
-
Promise.try
-
- Moved to stage 3, June 2024 TC39 meeting
- Added
/actual/
namespace entries, unconditional forced replacement changed to feature detection
- Built-ins:
-
Uint8Array
to / from base64 and hex stage 3 proposal:- Built-ins:
-
Uint8Array.fromBase64
-
Uint8Array.fromHex
-
Uint8Array.prototype.setFromBase64
-
Uint8Array.prototype.setFromHex
-
Uint8Array.prototype.toBase64
-
Uint8Array.prototype.toHex
-
- Added
Uint8Array.prototype.{ setFromBase64, setFromHex }
methods - Added
Uint8Array.fromBase64
andUint8Array.prototype.setFromBase64
lastChunkHandling
option, proposal-arraybuffer-base64/33 - Added
Uint8Array.prototype.toBase64
omitPadding
option, proposal-arraybuffer-base64/60 - Added throwing a
TypeError
on arrays backed by detached buffers - Unconditional forced replacement changed to feature detection
- Built-ins:
- Fixed
RegExp
named capture groups polyfill in combination with non-capturing groups, #1352, thanks @Ulop - Improved some cases of environment detection
- Uses
process.getBuiltinModule
for getting built-in NodeJS modules where it's available - Uses
https
instead ofhttp
inURL
constructor feature detection to avoid extra notifications from some overly vigilant security scanners, #1345 - Some minor optimizations
- Updated
browserslist
incore-js-compat
dependencies that fixes an upstream issue with incorrect interpretation of somebrowserslist
queries, #1344, browserslist/829, browserslist/836 - Compat data improvements:
- Added Safari 18.0 compat data:
- Fixed
Object.groupBy
andMap.groupBy
to work for non-objects - Fixed throwing a
RangeError
ifSet
methods are called on an object with negative size property - Fixed
Set.prototype.symmetricDifference
to callthis.has
in each iteration - Fixed
Array.fromAsync
to not call theArray
constructor twice - Added
URL.parse
- Fixed
-
Math.f16round
andDataView.prototype.{ getFloat16, setFloat16 }
marked as shipped from FF129 -
Symbol.asyncDispose
added and marked as supported from V8 ~ Chromium 127 -
Promise.try
added and marked as supported from V8 ~ Chromium 128 - Added Deno 1.44 and 1.45 compat data mapping
-
self
descriptor is broken in Deno 1.45.3 (again) - Added Electron 32 and 33 compat data mapping
- Added Opera Android 83 compat data mapping
- Added Samsung Internet 27 compat data mapping
- Added Oculus Quest Browser 34 compat data mapping
- Added Safari 18.0 compat data: