@rushstack/package-extractor 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.json CHANGED
@@ -1,6 +1,33 @@
1
1
  {
2
2
  "name": "@rushstack/package-extractor",
3
3
  "entries": [
4
+ {
5
+ "version": "0.11.1",
6
+ "tag": "@rushstack/package-extractor_v0.11.1",
7
+ "date": "Wed, 08 Oct 2025 00:13:28 GMT",
8
+ "comments": {
9
+ "dependency": [
10
+ {
11
+ "comment": "Updating dependency \"@rushstack/node-core-library\" to `5.17.0`"
12
+ },
13
+ {
14
+ "comment": "Updating dependency \"@rushstack/terminal\" to `0.19.1`"
15
+ },
16
+ {
17
+ "comment": "Updating dependency \"@rushstack/ts-command-line\" to `5.1.1`"
18
+ },
19
+ {
20
+ "comment": "Updating dependency \"@rushstack/heft-webpack5-plugin\" to `1.2.0`"
21
+ },
22
+ {
23
+ "comment": "Updating dependency \"@rushstack/heft\" to `1.1.1`"
24
+ },
25
+ {
26
+ "comment": "Updating dependency \"@rushstack/webpack-preserve-dynamic-require-plugin\" to `0.11.112`"
27
+ }
28
+ ]
29
+ }
30
+ },
4
31
  {
5
32
  "version": "0.11.0",
6
33
  "tag": "@rushstack/package-extractor_v0.11.0",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Change Log - @rushstack/package-extractor
2
2
 
3
- This log was last generated on Fri, 03 Oct 2025 20:09:59 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 08 Oct 2025 00:13:28 GMT and should not be manually modified.
4
+
5
+ ## 0.11.1
6
+ Wed, 08 Oct 2025 00:13:28 GMT
7
+
8
+ _Version update only_
4
9
 
5
10
  ## 0.11.0
6
11
  Fri, 03 Oct 2025 20:09:59 GMT
@@ -67783,7 +67783,10 @@ class Async {
67783
67783
  let arrayIndex = 0;
67784
67784
  let iteratorIsComplete = false;
67785
67785
  let promiseHasResolvedOrRejected = false;
67786
+ // iterator that is stored when the loop exits early due to not enough concurrency
67787
+ let nextIterator = undefined;
67786
67788
  async function queueOperationsAsync() {
67789
+ var _a;
67787
67790
  while (concurrentUnitsInProgress < concurrency &&
67788
67791
  !iteratorIsComplete &&
67789
67792
  !promiseHasResolvedOrRejected) {
@@ -67792,7 +67795,7 @@ class Async {
67792
67795
  // there will be effectively no cap on the number of operations waiting.
67793
67796
  const limitedConcurrency = !Number.isFinite(concurrency) ? 1 : concurrency;
67794
67797
  concurrentUnitsInProgress += limitedConcurrency;
67795
- const currentIteratorResult = await iterator.next();
67798
+ const currentIteratorResult = nextIterator !== null && nextIterator !== void 0 ? nextIterator : (await iterator.next());
67796
67799
  // eslint-disable-next-line require-atomic-updates
67797
67800
  iteratorIsComplete = !!currentIteratorResult.done;
67798
67801
  if (!iteratorIsComplete) {
@@ -67802,8 +67805,18 @@ class Async {
67802
67805
  const weight = Math.min(currentIteratorValue.weight, concurrency);
67803
67806
  // Remove the "lock" from the concurrency check and only apply the current weight.
67804
67807
  // This should allow other operations to execute.
67805
- concurrentUnitsInProgress += weight;
67806
67808
  concurrentUnitsInProgress -= limitedConcurrency;
67809
+ // Wait until there's enough capacity to run this job, this function will be re-entered as tasks call `onOperationCompletionAsync`
67810
+ const wouldExceedConcurrency = concurrentUnitsInProgress + weight > concurrency;
67811
+ const allowOversubscription = (_a = options === null || options === void 0 ? void 0 : options.allowOversubscription) !== null && _a !== void 0 ? _a : false;
67812
+ if (!allowOversubscription && wouldExceedConcurrency) {
67813
+ // eslint-disable-next-line require-atomic-updates
67814
+ nextIterator = currentIteratorResult;
67815
+ break;
67816
+ }
67817
+ // eslint-disable-next-line require-atomic-updates
67818
+ nextIterator = undefined;
67819
+ concurrentUnitsInProgress += weight;
67807
67820
  Promise.resolve(callback(currentIteratorValue.element, arrayIndex++))
67808
67821
  .then(async () => {
67809
67822
  // Remove the operation completely from the in progress units.