@rollup/wasm-node 4.40.0 → 4.40.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/dist/bin/rollup CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.40.0
5
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
4
+ Rollup.js v4.40.1
5
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -15,7 +15,7 @@ import process$1, { env } from 'node:process';
15
15
  import { performance } from 'node:perf_hooks';
16
16
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
17
17
 
18
- var version = "4.40.0";
18
+ var version = "4.40.1";
19
19
 
20
20
  const comma = ','.charCodeAt(0);
21
21
  const semicolon = ';'.charCodeAt(0);
@@ -18136,7 +18136,9 @@ class Chunk {
18136
18136
  for (const module of entryModules) {
18137
18137
  if (module.preserveSignature === 'allow-extension') {
18138
18138
  const canPreserveExports = this.canPreserveModuleExports(module);
18139
- if (canPreserveExports) {
18139
+ if (canPreserveExports &&
18140
+ !module.chunkFileNames.size &&
18141
+ module.chunkNames.every(({ isUserDefined }) => !isUserDefined)) {
18140
18142
  this.allowExtensionModules.add(module);
18141
18143
  if (!this.facadeModule) {
18142
18144
  this.facadeModule = module;
@@ -19244,12 +19246,12 @@ function analyzeModuleGraph(entries) {
19244
19246
  const awaitedDynamicImportsForCurrentEntry = new Set();
19245
19247
  dynamicImportModulesByEntry[entryIndex] = dynamicImportsForCurrentEntry;
19246
19248
  awaitedDynamicImportModulesByEntry[entryIndex] = awaitedDynamicImportsForCurrentEntry;
19247
- const modulesToHandle = new Set([currentEntry]);
19248
- for (const module of modulesToHandle) {
19249
+ const staticDependencies = new Set([currentEntry]);
19250
+ for (const module of staticDependencies) {
19249
19251
  getOrCreate(dependentEntriesByModule, module, (getNewSet)).add(entryIndex);
19250
19252
  for (const dependency of module.getDependenciesToBeIncluded()) {
19251
19253
  if (!(dependency instanceof ExternalModule)) {
19252
- modulesToHandle.add(dependency);
19254
+ staticDependencies.add(dependency);
19253
19255
  }
19254
19256
  }
19255
19257
  for (const { resolution } of module.dynamicImports) {
@@ -19259,9 +19261,12 @@ function analyzeModuleGraph(entries) {
19259
19261
  dynamicEntryModules.add(resolution);
19260
19262
  allEntriesSet.add(resolution);
19261
19263
  dynamicImportsForCurrentEntry.add(resolution);
19262
- if (resolution.includedDirectTopLevelAwaitingDynamicImporters.has(currentEntry)) {
19263
- awaitedDynamicEntryModules.add(resolution);
19264
- awaitedDynamicImportsForCurrentEntry.add(resolution);
19264
+ for (const includedDirectTopLevelAwaitingDynamicImporter of resolution.includedDirectTopLevelAwaitingDynamicImporters) {
19265
+ if (staticDependencies.has(includedDirectTopLevelAwaitingDynamicImporter)) {
19266
+ awaitedDynamicEntryModules.add(resolution);
19267
+ awaitedDynamicImportsForCurrentEntry.add(resolution);
19268
+ break;
19269
+ }
19265
19270
  }
19266
19271
  }
19267
19272
  }
@@ -21441,7 +21446,7 @@ function generateAssetFileName(name, names, source, originalFileName, originalFi
21441
21446
  : outputOptions.assetFileNames, 'output.assetFileNames', {
21442
21447
  ext: () => extname(emittedName).slice(1),
21443
21448
  extname: () => extname(emittedName),
21444
- hash: size => sourceHash.slice(0, Math.max(0, size || DEFAULT_HASH_SIZE)),
21449
+ hash: size => sourceHash.slice(0, Math.min(Math.max(0, size || DEFAULT_HASH_SIZE), MAX_HASH_SIZE)),
21445
21450
  name: () => emittedName.slice(0, Math.max(0, emittedName.length - extname(emittedName).length))
21446
21451
  }), bundle);
21447
21452
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -17,7 +17,7 @@ const native_js = require('../native.js');
17
17
  const node_perf_hooks = require('node:perf_hooks');
18
18
  const promises = require('node:fs/promises');
19
19
 
20
- var version = "4.40.0";
20
+ var version = "4.40.1";
21
21
 
22
22
  function ensureArray$1(items) {
23
23
  if (Array.isArray(items)) {
@@ -215,7 +215,7 @@ function generateAssetFileName(name, names, source, originalFileName, originalFi
215
215
  : outputOptions.assetFileNames, 'output.assetFileNames', {
216
216
  ext: () => path.extname(emittedName).slice(1),
217
217
  extname: () => path.extname(emittedName),
218
- hash: size => sourceHash.slice(0, Math.max(0, size || DEFAULT_HASH_SIZE)),
218
+ hash: size => sourceHash.slice(0, Math.min(Math.max(0, size || DEFAULT_HASH_SIZE), MAX_HASH_SIZE)),
219
219
  name: () => emittedName.slice(0, Math.max(0, emittedName.length - path.extname(emittedName).length))
220
220
  }), bundle);
221
221
  }
@@ -19614,7 +19614,9 @@ class Chunk {
19614
19614
  for (const module of entryModules) {
19615
19615
  if (module.preserveSignature === 'allow-extension') {
19616
19616
  const canPreserveExports = this.canPreserveModuleExports(module);
19617
- if (canPreserveExports) {
19617
+ if (canPreserveExports &&
19618
+ !module.chunkFileNames.size &&
19619
+ module.chunkNames.every(({ isUserDefined }) => !isUserDefined)) {
19618
19620
  this.allowExtensionModules.add(module);
19619
19621
  if (!this.facadeModule) {
19620
19622
  this.facadeModule = module;
@@ -20722,12 +20724,12 @@ function analyzeModuleGraph(entries) {
20722
20724
  const awaitedDynamicImportsForCurrentEntry = new Set();
20723
20725
  dynamicImportModulesByEntry[entryIndex] = dynamicImportsForCurrentEntry;
20724
20726
  awaitedDynamicImportModulesByEntry[entryIndex] = awaitedDynamicImportsForCurrentEntry;
20725
- const modulesToHandle = new Set([currentEntry]);
20726
- for (const module of modulesToHandle) {
20727
+ const staticDependencies = new Set([currentEntry]);
20728
+ for (const module of staticDependencies) {
20727
20729
  getOrCreate(dependentEntriesByModule, module, (getNewSet)).add(entryIndex);
20728
20730
  for (const dependency of module.getDependenciesToBeIncluded()) {
20729
20731
  if (!(dependency instanceof ExternalModule)) {
20730
- modulesToHandle.add(dependency);
20732
+ staticDependencies.add(dependency);
20731
20733
  }
20732
20734
  }
20733
20735
  for (const { resolution } of module.dynamicImports) {
@@ -20737,9 +20739,12 @@ function analyzeModuleGraph(entries) {
20737
20739
  dynamicEntryModules.add(resolution);
20738
20740
  allEntriesSet.add(resolution);
20739
20741
  dynamicImportsForCurrentEntry.add(resolution);
20740
- if (resolution.includedDirectTopLevelAwaitingDynamicImporters.has(currentEntry)) {
20741
- awaitedDynamicEntryModules.add(resolution);
20742
- awaitedDynamicImportsForCurrentEntry.add(resolution);
20742
+ for (const includedDirectTopLevelAwaitingDynamicImporter of resolution.includedDirectTopLevelAwaitingDynamicImporters) {
20743
+ if (staticDependencies.has(includedDirectTopLevelAwaitingDynamicImporter)) {
20744
+ awaitedDynamicEntryModules.add(resolution);
20745
+ awaitedDynamicImportsForCurrentEntry.add(resolution);
20746
+ break;
20747
+ }
20743
20748
  }
20744
20749
  }
20745
20750
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.40.0
4
- Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
3
+ Rollup.js v4.40.1
4
+ Mon, 28 Apr 2025 04:34:51 GMT - commit 1e6c40f49c428b7657fe3b9a2026f705acd39da1
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.40.0",
3
+ "version": "4.40.1",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -38,7 +38,7 @@
38
38
  "@codemirror/search": "^6.5.10",
39
39
  "@codemirror/state": "^6.5.2",
40
40
  "@codemirror/view": "^6.36.5",
41
- "@eslint/js": "^9.24.0",
41
+ "@eslint/js": "^9.25.1",
42
42
  "@inquirer/prompts": "^7.4.1",
43
43
  "@jridgewell/sourcemap-codec": "^1.5.0",
44
44
  "@mermaid-js/mermaid-cli": "^11.4.2",
@@ -52,7 +52,7 @@
52
52
  "@rollup/plugin-terser": "^0.4.4",
53
53
  "@rollup/plugin-typescript": "^12.1.2",
54
54
  "@rollup/pluginutils": "^5.1.4",
55
- "@shikijs/vitepress-twoslash": "^3.2.1",
55
+ "@shikijs/vitepress-twoslash": "^3.2.2",
56
56
  "@types/mocha": "^10.0.10",
57
57
  "@types/node": "^18.19.86",
58
58
  "@types/picomatch": "^4.0.0",
@@ -71,8 +71,8 @@
71
71
  "date-time": "^4.0.0",
72
72
  "es5-shim": "^4.6.7",
73
73
  "es6-shim": "^0.35.8",
74
- "eslint": "^9.24.0",
75
- "eslint-config-prettier": "^10.1.1",
74
+ "eslint": "^9.25.1",
75
+ "eslint-config-prettier": "^10.1.2",
76
76
  "eslint-plugin-prettier": "^5.2.6",
77
77
  "eslint-plugin-unicorn": "^58.0.0",
78
78
  "eslint-plugin-vue": "^10.0.0",
@@ -83,7 +83,7 @@
83
83
  "globals": "^16.0.0",
84
84
  "husky": "^9.1.7",
85
85
  "is-reference": "^3.0.3",
86
- "lint-staged": "^15.5.0",
86
+ "lint-staged": "^15.5.1",
87
87
  "locate-character": "^3.0.0",
88
88
  "magic-string": "^0.30.17",
89
89
  "mocha": "^11.1.0",
@@ -91,13 +91,13 @@
91
91
  "nyc": "^17.1.0",
92
92
  "picocolors": "^1.1.1",
93
93
  "picomatch": "^4.0.2",
94
- "pinia": "^3.0.1",
94
+ "pinia": "^3.0.2",
95
95
  "prettier": "^3.5.3",
96
96
  "prettier-plugin-organize-imports": "^4.1.0",
97
97
  "pretty-bytes": "^6.1.1",
98
98
  "pretty-ms": "^9.2.0",
99
99
  "requirejs": "^2.3.7",
100
- "rollup": "^4.39.0",
100
+ "rollup": "^4.40.0",
101
101
  "rollup-plugin-license": "^3.6.0",
102
102
  "rollup-plugin-string": "^3.0.0",
103
103
  "semver": "^7.7.1",
@@ -109,8 +109,8 @@
109
109
  "terser": "^5.39.0",
110
110
  "tslib": "^2.8.1",
111
111
  "typescript": "^5.8.3",
112
- "typescript-eslint": "^8.29.1",
113
- "vite": "^6.2.6",
112
+ "typescript-eslint": "^8.31.0",
113
+ "vite": "^6.3.2",
114
114
  "vitepress": "^1.6.3",
115
115
  "vue": "^3.5.13",
116
116
  "vue-tsc": "^2.2.8",
@@ -159,6 +159,7 @@
159
159
  "require": "./dist/parseAst.js",
160
160
  "import": "./dist/es/parseAst.js"
161
161
  },
162
- "./dist/*": "./dist/*"
162
+ "./dist/*": "./dist/*",
163
+ "./package.json": "./package.json"
163
164
  }
164
165
  }