Skip to content

Commit

Permalink
v3.38.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Aug 20, 2024
1 parent ad0b715 commit d1e7889
Show file tree
Hide file tree
Showing 13 changed files with 133 additions and 54 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Changelog
##### Unreleased
- Nothing

##### [3.38.1 - 2024.08.20](https://github.com/zloirock/core-js/releases/tag/v3.38.1)
- Changes [v3.38.0...v3.38.1](https://github.com/zloirock/core-js/compare/v3.38.0...v3.38.1)
- 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)
- Some stylistic changes and minor optimizations
- Compat data improvements:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
### Installation:[](#index)
```sh
// global version
npm install --save core-js@3.38.0
npm install --save core-js@3.38.1
// version without global namespace pollution
npm install --save core-js-pure@3.38.0
npm install --save core-js-pure@3.38.1
// bundled global version
npm install --save core-js-bundle@3.38.0
npm install --save core-js-bundle@3.38.1
```

Or you can use `core-js` [from CDN](https://www.jsdelivr.com/package/npm/core-js-bundle).
Expand Down
2 changes: 1 addition & 1 deletion deno/corejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

*Example*:
```js
import 'https://deno.land/x/corejs@v3.38.0/index.js'; // <- at the top of your entry point
import 'https://deno.land/x/corejs@v3.38.1/index.js'; // <- at the top of your entry point

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

Expand Down
47 changes: 24 additions & 23 deletions deno/corejs/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* core-js 3.38.0
* core-js 3.38.1
* © 2014-2024 Denis Pushkarev (zloirock.ru)
* license: https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE
* license: https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE
* source: https://github.com/zloirock/core-js
*/
!function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
Expand Down Expand Up @@ -1035,10 +1035,10 @@ var SHARED = '__core-js_shared__';
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});

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

Expand Down Expand Up @@ -3898,7 +3898,7 @@ if (FORCED_PROMISE_CONSTRUCTOR) {
reactions: new Queue(),
rejection: false,
state: PENDING,
value: undefined
value: null
});
};

Expand Down Expand Up @@ -7417,14 +7417,14 @@ defineBuiltIns(AsyncDisposableStackPrototype, {
var loop = function () {
if (i) {
var disposeMethod = stack[--i];
stack[i] = undefined;
stack[i] = null;
try {
Promise.resolve(disposeMethod()).then(loop, handleError);
} catch (error) {
handleError(error);
}
} else {
internalState.stack = undefined;
internalState.stack = null;
thrown ? reject(suppressed) : resolve(undefined);
}
};
Expand Down Expand Up @@ -9047,8 +9047,8 @@ module.exports = {
setInternalState(that, {
type: CONSTRUCTOR_NAME,
index: create(null),
first: undefined,
last: undefined,
first: null,
last: null,
size: 0
});
if (!DESCRIPTORS) that.size = 0;
Expand All @@ -9073,7 +9073,7 @@ module.exports = {
key: key,
value: value,
previous: previous = state.last,
next: undefined,
next: null,
removed: false
};
if (!state.first) state.first = entry;
Expand Down Expand Up @@ -9107,10 +9107,10 @@ module.exports = {
var entry = state.first;
while (entry) {
entry.removed = true;
if (entry.previous) entry.previous = entry.previous.next = undefined;
if (entry.previous) entry.previous = entry.previous.next = null;
entry = entry.next;
}
state.first = state.last = undefined;
state.first = state.last = null;
state.index = create(null);
if (DESCRIPTORS) state.size = 0;
else that.size = 0;
Expand Down Expand Up @@ -9202,7 +9202,7 @@ module.exports = {
target: iterated,
state: getInternalCollectionState(iterated),
kind: kind,
last: undefined
last: null
});
}, function () {
var state = getInternalIteratorState(this);
Expand All @@ -9213,7 +9213,7 @@ module.exports = {
// get next entry
if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
// or finish the iteration
state.target = undefined;
state.target = null;
return createIterResultObject(undefined, true);
}
// return step by kind
Expand Down Expand Up @@ -9531,7 +9531,7 @@ module.exports = {
setInternalState(that, {
type: CONSTRUCTOR_NAME,
id: id++,
frozen: undefined
frozen: null
});
if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
});
Expand Down Expand Up @@ -9579,7 +9579,7 @@ module.exports = {
if (isObject(key)) {
var data = getWeakData(key);
if (data === true) return uncaughtFrozenStore(state).get(key);
return data ? data[state.id] : undefined;
if (data) return data[state.id];
}
},
// `WeakMap.prototype.set(key, value)` method
Expand Down Expand Up @@ -9986,7 +9986,7 @@ defineBuiltIns(DisposableStackPrototype, {
var suppressed;
while (i) {
var disposeMethod = stack[--i];
stack[i] = undefined;
stack[i] = null;
try {
disposeMethod();
} catch (errorResult) {
Expand All @@ -9998,7 +9998,7 @@ defineBuiltIns(DisposableStackPrototype, {
}
}
}
internalState.stack = undefined;
internalState.stack = null;
if (thrown) throw suppressed;
},
use: function use(value) {
Expand Down Expand Up @@ -12430,16 +12430,16 @@ var getSubscriptionObserverInternalState = getterFor(SUBSCRIPTION_OBSERVER);

var SubscriptionState = function (observer) {
this.observer = anObject(observer);
this.cleanup = undefined;
this.subscriptionObserver = undefined;
this.cleanup = null;
this.subscriptionObserver = null;
};

SubscriptionState.prototype = {
type: SUBSCRIPTION,
clean: function () {
var cleanup = this.cleanup;
if (cleanup) {
this.cleanup = undefined;
this.cleanup = null;
try {
cleanup();
} catch (error) {
Expand All @@ -12453,10 +12453,10 @@ SubscriptionState.prototype = {
var subscriptionObserver = this.subscriptionObserver;
subscription.closed = true;
if (subscriptionObserver) subscriptionObserver.closed = true;
} this.observer = undefined;
} this.observer = null;
},
isClosed: function () {
return this.observer === undefined;
return this.observer === null;
}
};

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

0 comments on commit d1e7889

Please sign in to comment.