@rushstack/package-extractor 0.12.3 → 0.12.5

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,51 @@
1
1
  {
2
2
  "name": "@rushstack/package-extractor",
3
3
  "entries": [
4
+ {
5
+ "version": "0.12.5",
6
+ "tag": "@rushstack/package-extractor_v0.12.5",
7
+ "date": "Tue, 24 Feb 2026 01:13:27 GMT",
8
+ "comments": {
9
+ "dependency": [
10
+ {
11
+ "comment": "Updating dependency \"@rushstack/node-core-library\" to `5.20.2`"
12
+ },
13
+ {
14
+ "comment": "Updating dependency \"@rushstack/terminal\" to `0.22.2`"
15
+ },
16
+ {
17
+ "comment": "Updating dependency \"@rushstack/ts-command-line\" to `5.3.2`"
18
+ },
19
+ {
20
+ "comment": "Updating dependency \"@rushstack/heft-webpack5-plugin\" to `1.3.4`"
21
+ },
22
+ {
23
+ "comment": "Updating dependency \"@rushstack/heft\" to `1.2.4`"
24
+ },
25
+ {
26
+ "comment": "Updating dependency \"@rushstack/webpack-preserve-dynamic-require-plugin\" to `0.12.5`"
27
+ }
28
+ ]
29
+ }
30
+ },
31
+ {
32
+ "version": "0.12.4",
33
+ "tag": "@rushstack/package-extractor_v0.12.4",
34
+ "date": "Mon, 23 Feb 2026 00:42:21 GMT",
35
+ "comments": {
36
+ "dependency": [
37
+ {
38
+ "comment": "Updating dependency \"@rushstack/heft-webpack5-plugin\" to `1.3.3`"
39
+ },
40
+ {
41
+ "comment": "Updating dependency \"@rushstack/heft\" to `1.2.3`"
42
+ },
43
+ {
44
+ "comment": "Updating dependency \"@rushstack/webpack-preserve-dynamic-require-plugin\" to `0.12.4`"
45
+ }
46
+ ]
47
+ }
48
+ },
4
49
  {
5
50
  "version": "0.12.3",
6
51
  "tag": "@rushstack/package-extractor_v0.12.3",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # Change Log - @rushstack/package-extractor
2
2
 
3
- This log was last generated on Fri, 20 Feb 2026 16:14:49 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 24 Feb 2026 01:13:27 GMT and should not be manually modified.
4
+
5
+ ## 0.12.5
6
+ Tue, 24 Feb 2026 01:13:27 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 0.12.4
11
+ Mon, 23 Feb 2026 00:42:21 GMT
12
+
13
+ _Version update only_
4
14
 
5
15
  ## 0.12.3
6
16
  Fri, 20 Feb 2026 16:14:49 GMT
@@ -58171,6 +58171,21 @@ class FileSystem {
58171
58171
  typeof typedError.errno === 'number' &&
58172
58172
  typeof typedError.syscall === 'string');
58173
58173
  }
58174
+ static _handleLinkExistError(linkFn, options, error) {
58175
+ switch (options.alreadyExistsBehavior) {
58176
+ case AlreadyExistsBehavior.Ignore:
58177
+ break;
58178
+ case AlreadyExistsBehavior.Overwrite:
58179
+ // fsx.linkSync does not allow overwriting so we must manually delete. If it's
58180
+ // a folder, it will throw an error.
58181
+ this.deleteFile(options.newLinkPath);
58182
+ linkFn();
58183
+ break;
58184
+ case AlreadyExistsBehavior.Error:
58185
+ default:
58186
+ throw error;
58187
+ }
58188
+ }
58174
58189
  static _handleLink(linkFn, options) {
58175
58190
  try {
58176
58191
  linkFn();
@@ -58178,19 +58193,7 @@ class FileSystem {
58178
58193
  catch (error) {
58179
58194
  if (FileSystem.isExistError(error)) {
58180
58195
  // Link exists, handle it
58181
- switch (options.alreadyExistsBehavior) {
58182
- case AlreadyExistsBehavior.Ignore:
58183
- break;
58184
- case AlreadyExistsBehavior.Overwrite:
58185
- // fsx.linkSync does not allow overwriting so we must manually delete. If it's
58186
- // a folder, it will throw an error.
58187
- this.deleteFile(options.newLinkPath);
58188
- linkFn();
58189
- break;
58190
- case AlreadyExistsBehavior.Error:
58191
- default:
58192
- throw error;
58193
- }
58196
+ FileSystem._handleLinkExistError(linkFn, options, error);
58194
58197
  }
58195
58198
  else {
58196
58199
  // When attempting to create a link in a directory that does not exist, an ENOENT
@@ -58200,7 +58203,19 @@ class FileSystem {
58200
58203
  if (FileSystem.isNotExistError(error) &&
58201
58204
  (!options.linkTargetMustExist || FileSystem.exists(options.linkTargetPath))) {
58202
58205
  this.ensureFolder(nodeJsPath.dirname(options.newLinkPath));
58203
- linkFn();
58206
+ try {
58207
+ linkFn();
58208
+ }
58209
+ catch (retryError) {
58210
+ if (FileSystem.isExistError(retryError)) {
58211
+ // Another concurrent process may have created the link between the ensureFolder
58212
+ // call and the retry; handle it the same way as the initial exist error.
58213
+ FileSystem._handleLinkExistError(linkFn, options, retryError);
58214
+ }
58215
+ else {
58216
+ throw retryError;
58217
+ }
58218
+ }
58204
58219
  }
58205
58220
  else {
58206
58221
  throw error;
@@ -58208,6 +58223,21 @@ class FileSystem {
58208
58223
  }
58209
58224
  }
58210
58225
  }
58226
+ static async _handleLinkExistErrorAsync(linkFn, options, error) {
58227
+ switch (options.alreadyExistsBehavior) {
58228
+ case AlreadyExistsBehavior.Ignore:
58229
+ break;
58230
+ case AlreadyExistsBehavior.Overwrite:
58231
+ // fsx.linkSync does not allow overwriting so we must manually delete. If it's
58232
+ // a folder, it will throw an error.
58233
+ await this.deleteFileAsync(options.newLinkPath);
58234
+ await linkFn();
58235
+ break;
58236
+ case AlreadyExistsBehavior.Error:
58237
+ default:
58238
+ throw error;
58239
+ }
58240
+ }
58211
58241
  static async _handleLinkAsync(linkFn, options) {
58212
58242
  try {
58213
58243
  await linkFn();
@@ -58215,19 +58245,7 @@ class FileSystem {
58215
58245
  catch (error) {
58216
58246
  if (FileSystem.isExistError(error)) {
58217
58247
  // Link exists, handle it
58218
- switch (options.alreadyExistsBehavior) {
58219
- case AlreadyExistsBehavior.Ignore:
58220
- break;
58221
- case AlreadyExistsBehavior.Overwrite:
58222
- // fsx.linkSync does not allow overwriting so we must manually delete. If it's
58223
- // a folder, it will throw an error.
58224
- await this.deleteFileAsync(options.newLinkPath);
58225
- await linkFn();
58226
- break;
58227
- case AlreadyExistsBehavior.Error:
58228
- default:
58229
- throw error;
58230
- }
58248
+ await FileSystem._handleLinkExistErrorAsync(linkFn, options, error);
58231
58249
  }
58232
58250
  else {
58233
58251
  // When attempting to create a link in a directory that does not exist, an ENOENT
@@ -58237,7 +58255,19 @@ class FileSystem {
58237
58255
  if (FileSystem.isNotExistError(error) &&
58238
58256
  (!options.linkTargetMustExist || (await FileSystem.existsAsync(options.linkTargetPath)))) {
58239
58257
  await this.ensureFolderAsync(nodeJsPath.dirname(options.newLinkPath));
58240
- await linkFn();
58258
+ try {
58259
+ await linkFn();
58260
+ }
58261
+ catch (retryError) {
58262
+ if (FileSystem.isExistError(retryError)) {
58263
+ // Another concurrent process may have created the link between the ensureFolderAsync
58264
+ // call and the retry; handle it the same way as the initial exist error.
58265
+ await FileSystem._handleLinkExistErrorAsync(linkFn, options, retryError);
58266
+ }
58267
+ else {
58268
+ throw retryError;
58269
+ }
58270
+ }
58241
58271
  }
58242
58272
  else {
58243
58273
  throw error;