Skip to content

Commit d1e7889

Browse files
committed
v3.38.1
1 parent ad0b715 commit d1e7889

File tree

13 files changed

+133
-54
lines changed

13 files changed

+133
-54
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.38.1 - 2024.08.20](https://github.com/zloirock/core-js/releases/tag/v3.38.1)
6+
- Changes [v3.38.0...v3.38.1](https://github.com/zloirock/core-js/compare/v3.38.0...v3.38.1)
37
- Fixed some cases of `URLSearchParams` percent decoding, [#1357](https://github.com/zloirock/core-js/issues/1357), [#1361](https://github.com/zloirock/core-js/pull/1361), thanks [**@slowcheetah**](https://github.com/slowcheetah)
48
- Some stylistic changes and minor optimizations
59
- Compat data improvements:

README.md

Lines changed: 3 additions & 3 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 [email protected].0
215+
npm install --save [email protected].1
216216
// version without global namespace pollution
217-
npm install --save [email protected].0
217+
npm install --save [email protected].1
218218
// bundled global version
219-
npm install --save [email protected].0
219+
npm install --save [email protected].1
220220
```
221221

222222
Or you can use `core-js` [from CDN](https://www.jsdelivr.com/package/npm/core-js-bundle).

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/[email protected].0/index.js'; // <- at the top of your entry point
32+
import 'https://deno.land/x/[email protected].1/index.js'; // <- at the top of your entry point
3333

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

deno/corejs/index.js

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* core-js 3.38.0
2+
* core-js 3.38.1
33
* © 2014-2024 Denis Pushkarev (zloirock.ru)
4-
* license: https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE
4+
* license: https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE
55
* source: https://github.com/zloirock/core-js
66
*/
77
!function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
@@ -1035,10 +1035,10 @@ var SHARED = '__core-js_shared__';
10351035
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
10361036

10371037
(store.versions || (store.versions = [])).push({
1038-
version: '3.38.0',
1038+
version: '3.38.1',
10391039
mode: IS_PURE ? 'pure' : 'global',
10401040
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
1041-
license: 'https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE',
1041+
license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
10421042
source: 'https://github.com/zloirock/core-js'
10431043
});
10441044

@@ -3898,7 +3898,7 @@ if (FORCED_PROMISE_CONSTRUCTOR) {
38983898
reactions: new Queue(),
38993899
rejection: false,
39003900
state: PENDING,
3901-
value: undefined
3901+
value: null
39023902
});
39033903
};
39043904

@@ -7417,14 +7417,14 @@ defineBuiltIns(AsyncDisposableStackPrototype, {
74177417
var loop = function () {
74187418
if (i) {
74197419
var disposeMethod = stack[--i];
7420-
stack[i] = undefined;
7420+
stack[i] = null;
74217421
try {
74227422
Promise.resolve(disposeMethod()).then(loop, handleError);
74237423
} catch (error) {
74247424
handleError(error);
74257425
}
74267426
} else {
7427-
internalState.stack = undefined;
7427+
internalState.stack = null;
74287428
thrown ? reject(suppressed) : resolve(undefined);
74297429
}
74307430
};
@@ -9047,8 +9047,8 @@ module.exports = {
90479047
setInternalState(that, {
90489048
type: CONSTRUCTOR_NAME,
90499049
index: create(null),
9050-
first: undefined,
9051-
last: undefined,
9050+
first: null,
9051+
last: null,
90529052
size: 0
90539053
});
90549054
if (!DESCRIPTORS) that.size = 0;
@@ -9073,7 +9073,7 @@ module.exports = {
90739073
key: key,
90749074
value: value,
90759075
previous: previous = state.last,
9076-
next: undefined,
9076+
next: null,
90779077
removed: false
90789078
};
90799079
if (!state.first) state.first = entry;
@@ -9107,10 +9107,10 @@ module.exports = {
91079107
var entry = state.first;
91089108
while (entry) {
91099109
entry.removed = true;
9110-
if (entry.previous) entry.previous = entry.previous.next = undefined;
9110+
if (entry.previous) entry.previous = entry.previous.next = null;
91119111
entry = entry.next;
91129112
}
9113-
state.first = state.last = undefined;
9113+
state.first = state.last = null;
91149114
state.index = create(null);
91159115
if (DESCRIPTORS) state.size = 0;
91169116
else that.size = 0;
@@ -9202,7 +9202,7 @@ module.exports = {
92029202
target: iterated,
92039203
state: getInternalCollectionState(iterated),
92049204
kind: kind,
9205-
last: undefined
9205+
last: null
92069206
});
92079207
}, function () {
92089208
var state = getInternalIteratorState(this);
@@ -9213,7 +9213,7 @@ module.exports = {
92139213
// get next entry
92149214
if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
92159215
// or finish the iteration
9216-
state.target = undefined;
9216+
state.target = null;
92179217
return createIterResultObject(undefined, true);
92189218
}
92199219
// return step by kind
@@ -9531,7 +9531,7 @@ module.exports = {
95319531
setInternalState(that, {
95329532
type: CONSTRUCTOR_NAME,
95339533
id: id++,
9534-
frozen: undefined
9534+
frozen: null
95359535
});
95369536
if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
95379537
});
@@ -9579,7 +9579,7 @@ module.exports = {
95799579
if (isObject(key)) {
95809580
var data = getWeakData(key);
95819581
if (data === true) return uncaughtFrozenStore(state).get(key);
9582-
return data ? data[state.id] : undefined;
9582+
if (data) return data[state.id];
95839583
}
95849584
},
95859585
// `WeakMap.prototype.set(key, value)` method
@@ -9986,7 +9986,7 @@ defineBuiltIns(DisposableStackPrototype, {
99869986
var suppressed;
99879987
while (i) {
99889988
var disposeMethod = stack[--i];
9989-
stack[i] = undefined;
9989+
stack[i] = null;
99909990
try {
99919991
disposeMethod();
99929992
} catch (errorResult) {
@@ -9998,7 +9998,7 @@ defineBuiltIns(DisposableStackPrototype, {
99989998
}
99999999
}
1000010000
}
10001-
internalState.stack = undefined;
10001+
internalState.stack = null;
1000210002
if (thrown) throw suppressed;
1000310003
},
1000410004
use: function use(value) {
@@ -12430,16 +12430,16 @@ var getSubscriptionObserverInternalState = getterFor(SUBSCRIPTION_OBSERVER);
1243012430

1243112431
var SubscriptionState = function (observer) {
1243212432
this.observer = anObject(observer);
12433-
this.cleanup = undefined;
12434-
this.subscriptionObserver = undefined;
12433+
this.cleanup = null;
12434+
this.subscriptionObserver = null;
1243512435
};
1243612436

1243712437
SubscriptionState.prototype = {
1243812438
type: SUBSCRIPTION,
1243912439
clean: function () {
1244012440
var cleanup = this.cleanup;
1244112441
if (cleanup) {
12442-
this.cleanup = undefined;
12442+
this.cleanup = null;
1244312443
try {
1244412444
cleanup();
1244512445
} catch (error) {
@@ -12453,10 +12453,10 @@ SubscriptionState.prototype = {
1245312453
var subscriptionObserver = this.subscriptionObserver;
1245412454
subscription.closed = true;
1245512455
if (subscriptionObserver) subscriptionObserver.closed = true;
12456-
} this.observer = undefined;
12456+
} this.observer = null;
1245712457
},
1245812458
isClosed: function () {
12459-
return this.observer === undefined;
12459+
return this.observer === null;
1246012460
}
1246112461
};
1246212462

@@ -13900,6 +13900,7 @@ var dedentStringsArray = function (template) {
1390013900
lines[lines.length - 2] = '';
1390113901
lines[lines.length - 1] = '';
1390213902
}
13903+
// eslint-disable-next-line sonar/no-redundant-assignments -- false positive, https://github.com/SonarSource/SonarJS/issues/4767
1390313904
for (var j = 2; j < lines.length; j += 2) {
1390413905
var text = lines[j];
1390513906
var lineContainsTemplateExpression = j + 1 === lines.length && !lastSplit;

0 commit comments

Comments
 (0)