@atlaspack/package-manager 2.14.5-canary.12 → 2.14.5-canary.121

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.md CHANGED
@@ -1,5 +1,144 @@
1
1
  # @atlaspack/package-manager
2
2
 
3
+ ## 2.14.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/fs@2.15.12
9
+ - @atlaspack/logger@2.14.12
10
+ - @atlaspack/utils@2.16.1
11
+ - @atlaspack/node-resolver-core@3.5.17
12
+ - @atlaspack/workers@2.14.17
13
+ - @atlaspack/types@2.15.7
14
+
15
+ ## 2.14.16
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [[`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
20
+ - @atlaspack/utils@2.16.0
21
+ - @atlaspack/fs@2.15.11
22
+ - @atlaspack/node-resolver-core@3.5.16
23
+ - @atlaspack/workers@2.14.16
24
+ - @atlaspack/types@2.15.6
25
+
26
+ ## 2.14.15
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies []:
31
+ - @atlaspack/fs@2.15.10
32
+ - @atlaspack/utils@2.15.3
33
+ - @atlaspack/node-resolver-core@3.5.15
34
+ - @atlaspack/types@2.15.5
35
+ - @atlaspack/workers@2.14.15
36
+
37
+ ## 2.14.14
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies []:
42
+ - @atlaspack/fs@2.15.9
43
+ - @atlaspack/utils@2.15.2
44
+ - @atlaspack/node-resolver-core@3.5.14
45
+ - @atlaspack/types@2.15.4
46
+ - @atlaspack/workers@2.14.14
47
+
48
+ ## 2.14.13
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [[`ef3d622`](https://github.com/atlassian-labs/atlaspack/commit/ef3d6228f4e006702198a19c61e051d194d325cb)]:
53
+ - @atlaspack/workers@2.14.13
54
+ - @atlaspack/logger@2.14.11
55
+ - @atlaspack/fs@2.15.8
56
+ - @atlaspack/types@2.15.3
57
+ - @atlaspack/utils@2.15.1
58
+ - @atlaspack/node-resolver-core@3.5.13
59
+
60
+ ## 2.14.12
61
+
62
+ ### Patch Changes
63
+
64
+ - Updated dependencies [[`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
65
+ - @atlaspack/utils@2.15.0
66
+ - @atlaspack/fs@2.15.7
67
+ - @atlaspack/node-resolver-core@3.5.12
68
+ - @atlaspack/workers@2.14.12
69
+ - @atlaspack/types@2.15.2
70
+
71
+ ## 2.14.11
72
+
73
+ ### Patch Changes
74
+
75
+ - Updated dependencies []:
76
+ - @atlaspack/fs@2.15.6
77
+ - @atlaspack/utils@2.14.11
78
+ - @atlaspack/node-resolver-core@3.5.11
79
+ - @atlaspack/types@2.15.1
80
+ - @atlaspack/workers@2.14.11
81
+
82
+ ## 2.14.10
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies [[`0999fb7`](https://github.com/atlassian-labs/atlaspack/commit/0999fb78da519a6c7582d212883e515fcf6c1252), [`51aba5f`](https://github.com/atlassian-labs/atlaspack/commit/51aba5fc0e49235ee06bbc3c376f48c3e7da5c4b), [`1e32d4e`](https://github.com/atlassian-labs/atlaspack/commit/1e32d4eae6b3af3968e8a0ef97d35b4347fd4196)]:
87
+ - @atlaspack/fs@2.15.5
88
+ - @atlaspack/types@2.15.0
89
+ - @atlaspack/node-resolver-core@3.5.10
90
+ - @atlaspack/workers@2.14.10
91
+ - @atlaspack/logger@2.14.10
92
+ - @atlaspack/utils@2.14.10
93
+
94
+ ## 2.14.9
95
+
96
+ ### Patch Changes
97
+
98
+ - Updated dependencies [[`e4d966c`](https://github.com/atlassian-labs/atlaspack/commit/e4d966c3c9c4292c5013372ae65b10d19d4bacc6)]:
99
+ - @atlaspack/fs@2.15.4
100
+ - @atlaspack/logger@2.14.9
101
+ - @atlaspack/utils@2.14.9
102
+ - @atlaspack/node-resolver-core@3.5.9
103
+ - @atlaspack/workers@2.14.9
104
+ - @atlaspack/types@2.14.9
105
+
106
+ ## 2.14.8
107
+
108
+ ### Patch Changes
109
+
110
+ - Updated dependencies [[`3a3e8e7`](https://github.com/atlassian-labs/atlaspack/commit/3a3e8e7be9e2dffd7304436d792f0f595d59665a), [`1ab0a27`](https://github.com/atlassian-labs/atlaspack/commit/1ab0a275aeca40350415e2b03e7440d1dddc6228), [`b8a4ae8`](https://github.com/atlassian-labs/atlaspack/commit/b8a4ae8f83dc0a83d8b145c5f729936ce52080a3)]:
111
+ - @atlaspack/fs@2.15.3
112
+ - @atlaspack/utils@2.14.8
113
+ - @atlaspack/node-resolver-core@3.5.8
114
+ - @atlaspack/logger@2.14.8
115
+ - @atlaspack/types@2.14.8
116
+ - @atlaspack/workers@2.14.8
117
+
118
+ ## 2.14.7
119
+
120
+ ### Patch Changes
121
+
122
+ - Updated dependencies [[`556d6ab`](https://github.com/atlassian-labs/atlaspack/commit/556d6ab8ede759fa7f37fcd3f4da336ef1c55e8f)]:
123
+ - @atlaspack/logger@2.14.7
124
+ - @atlaspack/fs@2.15.2
125
+ - @atlaspack/utils@2.14.7
126
+ - @atlaspack/node-resolver-core@3.5.7
127
+ - @atlaspack/workers@2.14.7
128
+ - @atlaspack/types@2.14.7
129
+
130
+ ## 2.14.6
131
+
132
+ ### Patch Changes
133
+
134
+ - Updated dependencies []:
135
+ - @atlaspack/fs@2.15.1
136
+ - @atlaspack/utils@2.14.6
137
+ - @atlaspack/node-resolver-core@3.5.6
138
+ - @atlaspack/logger@2.14.6
139
+ - @atlaspack/types@2.14.6
140
+ - @atlaspack/workers@2.14.6
141
+
3
142
  ## 2.14.5
4
143
 
5
144
  ### Patch Changes
package/lib/index.js CHANGED
@@ -3495,7 +3495,8 @@ var $2oNrA = parcelRequire("2oNrA");
3495
3495
  // Package.json fields. Must match package_json.rs.
3496
3496
  const MAIN = 1;
3497
3497
  const SOURCE = 4;
3498
- const ENTRIES = MAIN | ((0, process.env.ATLASPACK_SELF_BUILD) ? SOURCE : 0);
3498
+ let ENTRIES = MAIN;
3499
+ if (process.env.ATLASPACK_REGISTER_USE_SRC === 'true') ENTRIES |= SOURCE;
3499
3500
  const NODE_MODULES = `${(0, ($parcel$interopDefault($dufqm$path))).sep}node_modules${(0, ($parcel$interopDefault($dufqm$path))).sep}`;
3500
3501
  // There can be more than one instance of NodePackageManager, but node has only a single module cache.
3501
3502
  // Therefore, the resolution cache and the map of parent to child modules should also be global.
@@ -3790,7 +3791,8 @@ class NodePackageManager {
3790
3791
  }
3791
3792
  getInvalidations(name, from) {
3792
3793
  let basedir = (0, ($parcel$interopDefault($dufqm$path))).dirname(from);
3793
- let resolved = cache.get(basedir + ':' + name);
3794
+ let cacheKey = basedir + ':' + name;
3795
+ let resolved = cache.get(cacheKey);
3794
3796
  if (resolved && (0, ($parcel$interopDefault($dufqm$path))).isAbsolute(resolved.resolved)) {
3795
3797
  let cached = invalidationsCache.get(resolved.resolved);
3796
3798
  if (cached != null) return cached;
@@ -3844,6 +3846,12 @@ class NodePackageManager {
3844
3846
  seen.add(key);
3845
3847
  let resolved = cache.get(key);
3846
3848
  if (!resolved || !(0, ($parcel$interopDefault($dufqm$path))).isAbsolute(resolved.resolved)) return;
3849
+ // During testing don't invalidate Atlaspack modules because
3850
+ // this causes failures due to multiple instances of the same module
3851
+ // existing simultaniously. This is fine when using babe;-register because
3852
+ // it has an internal module cache that NodePacakageManager does not invalidate
3853
+ // but fails when using compiled Atlaspack packages in integration tests
3854
+ if (process.env.ATLASPACK_BUILD_ENV === 'test' && name.startsWith('@atlaspack/')) return;
3847
3855
  invalidationsCache.delete(resolved.resolved);
3848
3856
  // $FlowFixMe
3849
3857
  let module1 = (0, ($parcel$interopDefault($dufqm$module)))._cache[resolved.resolved];
@@ -4016,9 +4024,9 @@ var $5cGUP = parcelRequire("5cGUP");
4016
4024
 
4017
4025
  var $3217T = parcelRequire("3217T");
4018
4026
 
4019
- var $fdbc4680a0f2f397$var$$parcel$__filename = $dufqm$path.resolve(__dirname, "../src", "installPackage.js");
4020
-
4021
4027
  var $fdbc4680a0f2f397$var$$parcel$__dirname = $dufqm$path.resolve(__dirname, "../src");
4028
+
4029
+ var $fdbc4680a0f2f397$var$$parcel$__filename = $dufqm$path.resolve(__dirname, "../src", "installPackage.js");
4022
4030
  async function $fdbc4680a0f2f397$var$install(fs, packageManager, modules, from, projectRoot, options = {}) {
4023
4031
  let { installPeers: installPeers = true, saveDev: saveDev = true, packageInstaller: packageInstaller } = options;
4024
4032
  let moduleNames = modules.map((m)=>m.name).join(', ');
@@ -4128,7 +4136,7 @@ function $fdbc4680a0f2f397$export$9c0565d18deefc7f(fs, packageManager, modules,
4128
4136
  if ((0, ($parcel$interopDefault($dufqm$atlaspackworkers))).isWorker()) {
4129
4137
  let workerApi = (0, ($parcel$interopDefault($dufqm$atlaspackworkers))).getWorkerApi();
4130
4138
  // TODO this should really be `__filename` but without the rewriting.
4131
- let bundlePath = !process.env.ATLASPACK_SELF_BUILD ? (0, ($parcel$interopDefault($dufqm$path))).join($fdbc4680a0f2f397$var$$parcel$__dirname, '..', 'lib/index.js') : $fdbc4680a0f2f397$var$$parcel$__filename;
4139
+ let bundlePath = process.env.ATLASPACK_BUILD_ENV === 'production' && !process.env.ATLASPACK_SELF_BUILD ? (0, ($parcel$interopDefault($dufqm$path))).join($fdbc4680a0f2f397$var$$parcel$__dirname, '..', 'lib/index.js') : $fdbc4680a0f2f397$var$$parcel$__filename;
4132
4140
  return workerApi.callMaster({
4133
4141
  location: bundlePath,
4134
4142
  args: [
@@ -4722,7 +4730,7 @@ function $770d99f4b6e8471f$export$2e2bcd8739ae039(childProcess) {
4722
4730
  });
4723
4731
 
4724
4732
  parcelRegister("dmfaS", function(module, exports) {
4725
- module.exports = JSON.parse("{\"name\":\"@atlaspack/package-manager\",\"version\":\"2.14.5-canary.12+143753ba0\",\"description\":\"Blazing fast, zero configuration web application bundler\",\"license\":\"(MIT OR Apache-2.0)\",\"publishConfig\":{\"access\":\"public\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/atlassian-labs/atlaspack.git\"},\"main\":\"lib/index.js\",\"source\":\"src/index.js\",\"types\":\"index.d.ts\",\"engines\":{\"node\":\">= 16.0.0\"},\"scripts\":{\"build-ts\":\"mkdir -p lib && flow-to-ts src/index.js > lib/index.d.ts\",\"check-ts\":\"tsc --noEmit index.d.ts\",\"test\":\"mocha test\"},\"targets\":{\"types\":false,\"main\":{\"includeNodeModules\":{\"@atlaspack/build-cache\":false,\"@atlaspack/diagnostic\":false,\"@atlaspack/fs\":false,\"@atlaspack/logger\":false,\"@atlaspack/node-resolver-core\":false,\"@atlaspack/types\":false,\"@atlaspack/utils\":false,\"@atlaspack/workers\":false,\"@swc/core\":false,\"semver\":false}}},\"dependencies\":{\"@atlaspack/build-cache\":\"2.13.3-canary.80+143753ba0\",\"@atlaspack/diagnostic\":\"2.14.1-canary.80+143753ba0\",\"@atlaspack/fs\":\"2.14.5-canary.12+143753ba0\",\"@atlaspack/logger\":\"2.14.5-canary.12+143753ba0\",\"@atlaspack/node-resolver-core\":\"3.5.5-canary.12+143753ba0\",\"@atlaspack/types\":\"2.14.5-canary.12+143753ba0\",\"@atlaspack/utils\":\"2.14.5-canary.12+143753ba0\",\"@atlaspack/workers\":\"2.14.5-canary.12+143753ba0\",\"@swc/core\":\"^1.10.0\",\"semver\":\"^7.5.2\"},\"devDependencies\":{\"command-exists\":\"^1.2.6\",\"cross-spawn\":\"^6.0.4\",\"nullthrows\":\"^1.1.1\",\"split2\":\"^3.1.1\"},\"browser\":{\"./src/NodePackageManager.js\":false,\"./src/Npm.js\":false,\"./src/Pnpm.js\":false,\"./src/Yarn.js\":false},\"type\":\"commonjs\",\"gitHead\":\"143753ba049078d59fbf1a8880f4c4caf2320311\"}");
4733
+ module.exports = JSON.parse("{\"name\":\"@atlaspack/package-manager\",\"version\":\"2.14.5-canary.121+18a57cf8a\",\"description\":\"Blazing fast, zero configuration web application bundler\",\"license\":\"(MIT OR Apache-2.0)\",\"publishConfig\":{\"access\":\"public\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/atlassian-labs/atlaspack.git\"},\"main\":\"lib/index.js\",\"source\":\"src/index.js\",\"types\":\"index.d.ts\",\"engines\":{\"node\":\">= 16.0.0\"},\"scripts\":{\"build-ts\":\"mkdir -p lib && flow-to-ts src/index.js > lib/index.d.ts\",\"check-ts\":\"tsc --noEmit index.d.ts\",\"test\":\"mocha test\"},\"targets\":{\"types\":false,\"main\":{\"includeNodeModules\":{\"@atlaspack/build-cache\":false,\"@atlaspack/diagnostic\":false,\"@atlaspack/fs\":false,\"@atlaspack/logger\":false,\"@atlaspack/node-resolver-core\":false,\"@atlaspack/types\":false,\"@atlaspack/utils\":false,\"@atlaspack/workers\":false,\"@swc/core\":false,\"semver\":false}}},\"dependencies\":{\"@atlaspack/build-cache\":\"2.13.3-canary.189+18a57cf8a\",\"@atlaspack/diagnostic\":\"2.14.1-canary.189+18a57cf8a\",\"@atlaspack/fs\":\"2.14.5-canary.121+18a57cf8a\",\"@atlaspack/logger\":\"2.14.5-canary.121+18a57cf8a\",\"@atlaspack/node-resolver-core\":\"3.5.5-canary.121+18a57cf8a\",\"@atlaspack/types\":\"2.14.5-canary.121+18a57cf8a\",\"@atlaspack/utils\":\"2.14.5-canary.121+18a57cf8a\",\"@atlaspack/workers\":\"2.14.5-canary.121+18a57cf8a\",\"@swc/core\":\"^1.10.0\",\"semver\":\"^7.5.2\"},\"devDependencies\":{\"command-exists\":\"^1.2.6\",\"cross-spawn\":\"^6.0.4\",\"nullthrows\":\"^1.1.1\",\"split2\":\"^3.1.1\"},\"browser\":{\"./src/NodePackageManager.js\":false,\"./src/Npm.js\":false,\"./src/Pnpm.js\":false,\"./src/Yarn.js\":false},\"type\":\"commonjs\",\"gitHead\":\"18a57cf8a4789b2de5ad8e2676f317a26cc91417\"}");
4726
4734
 
4727
4735
  });
4728
4736