NewAI Enhanced
3.48.0 - 2026.01.21
v3.48.0
Breaking Changes
- None
Features
- Map upsert proposal moved to stable ES (January 2026 TC39):
Map.prototype.getOrInsert(),Map.prototype.getOrInsertComputed(),WeakMap.prototype.getOrInsert(),WeakMap.prototype.getOrInsertComputed() - Added
es.namespace modules and/es/and/stable/namespace entries for upsert methods
Fixes
- Fixed
CreateDataProperty/CreateDataPropertyOrThrowusage in missed cases - Fixed Safari < 13 bug with non-writable array
.lengthproperty - Improved RegExp constructor polyfill (NCG and
dotAll)
Compat Data Updates
- Map upsert shipped in Chrome 145 (V8)
- Joint iteration proposal shipped in Firefox 148
Iterator.concatshipped in Bun 1.3.7- Added Rhino 1.9.0, Deno 2.6, Opera Android 93/94, Electron 41 compat mappings
Iterator.prototype.flatMapnow marked supported from Safari 26.2 and Bun 1.2.21 (WebKit bug workaround)Uint8Array.prototype.setFromHexnow marked supported from Chromium 144 (V8 bug workaround for ResizableArrayBuffer length-tracking views)
- Changes v3.47.0...v3.48.0 (126 commits)
Mapupsert proposal:- Built-ins:
Map.prototype.getOrInsertMap.prototype.getOrInsertComputedWeakMap.prototype.getOrInsertWeakMap.prototype.getOrInsertComputed
- Moved to stable ES, January 2026 TC39 meeting
- Added
es.namespace modules,/es/and/stable/namespaces entries
- Built-ins:
- Use
CreateDataProperty/CreateDataPropertyOrThrowin some missed cases, #1497 - Minor fix / optimization in the
RegExpconstructor (NCG anddotAll) polyfill - Added some more workarounds for a Safari < 13 bug with silent ignore of non-writable array
.length - Added detection of a Webkit bug:
Iterator.prototype.flatMapthrows on iterator withoutreturnmethod - Added detection of a V8 ~ Chromium < 144 bug:
Uint8Array.prototype.setFromHexthrows an error on length-tracking views over ResizableArrayBuffer - Compat data improvements:
Mapupsert proposal features marked as shipped in V8 ~ Chrome 145- Joint iteration proposal features marked as shipped in FF148
Iterator.concatmarked as shipped in Bun 1.3.7- Added Rhino 1.9.0 compat data
- Added Deno 2.6 compat data mapping
- Added Opera Android 93 and 94 compat data mapping
- Added Electron 41 compat data mapping
Iterator.prototype.flatMapmarked as supported from Safari 26.2 and Bun 1.2.21 because of a bug: throws on iterator withoutreturnmethodUint8Array.prototype.setFromHexmarked as supported from V8 ~ Chromium 144 because of a bug: throws an error on length-tracking views over ResizableArrayBuffer