@atlaspack/core 2.12.1-canary.3552 → 2.12.1-canary.3554

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.
@@ -191,11 +191,7 @@ function getAssetGraph(serializedGraph, options) {
191
191
  deps.set(id, dependency);
192
192
  dependency.id = id;
193
193
  dependency.env.id = getEnvId(dependency.env);
194
-
195
- // Dependency.symbols are always set to an empty map when scope hoisting
196
- // is enabled. Some tests will fail if this is not the case. We should
197
- // make this consistant when we re-visit packaging.
198
- if (dependency.symbols != null || dependency.env.shouldScopeHoist) {
194
+ if (dependency.symbols != null) {
199
195
  var _dependency$symbols;
200
196
  dependency.symbols = new Map((_dependency$symbols = dependency.symbols) === null || _dependency$symbols === void 0 ? void 0 : _dependency$symbols.map(mapSymbols));
201
197
  }
@@ -120,7 +120,7 @@ function assetGraphDiff(jsAssetGraph, rustAssetGraph) {
120
120
  '$.value.outputHash',
121
121
  // ignore correspondingRequest from all nodes
122
122
  '$.correspondingRequest'];
123
- console.log((0, _jestDiff().diff)(compactDeep(rustNode, ignoredPatterns), compactDeep(jsNode, ignoredPatterns)));
123
+ console.log((0, _jestDiff().diff)(compactDeep(jsNode, ignoredPatterns), compactDeep(rustNode, ignoredPatterns)));
124
124
  }
125
125
  console.log('Missing', missing);
126
126
  console.log('Extra', extra);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.12.1-canary.3552+d02f73b63",
3
+ "version": "2.12.1-canary.3554+379cf6bae",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,21 +20,21 @@
20
20
  "check-ts": "tsc --noEmit index.d.ts"
21
21
  },
22
22
  "dependencies": {
23
- "@atlaspack/build-cache": "2.12.1-canary.3552+d02f73b63",
24
- "@atlaspack/cache": "2.12.1-canary.3552+d02f73b63",
25
- "@atlaspack/diagnostic": "2.12.1-canary.3552+d02f73b63",
26
- "@atlaspack/events": "2.12.1-canary.3552+d02f73b63",
27
- "@atlaspack/feature-flags": "2.12.1-canary.3552+d02f73b63",
28
- "@atlaspack/fs": "2.12.1-canary.3552+d02f73b63",
29
- "@atlaspack/graph": "3.2.1-canary.3552+d02f73b63",
30
- "@atlaspack/logger": "2.12.1-canary.3552+d02f73b63",
31
- "@atlaspack/package-manager": "2.12.1-canary.3552+d02f73b63",
32
- "@atlaspack/plugin": "2.12.1-canary.3552+d02f73b63",
33
- "@atlaspack/profiler": "2.12.1-canary.3552+d02f73b63",
34
- "@atlaspack/rust": "2.12.1-canary.3552+d02f73b63",
35
- "@atlaspack/types": "2.12.1-canary.3552+d02f73b63",
36
- "@atlaspack/utils": "2.12.1-canary.3552+d02f73b63",
37
- "@atlaspack/workers": "2.12.1-canary.3552+d02f73b63",
23
+ "@atlaspack/build-cache": "2.12.1-canary.3554+379cf6bae",
24
+ "@atlaspack/cache": "2.12.1-canary.3554+379cf6bae",
25
+ "@atlaspack/diagnostic": "2.12.1-canary.3554+379cf6bae",
26
+ "@atlaspack/events": "2.12.1-canary.3554+379cf6bae",
27
+ "@atlaspack/feature-flags": "2.12.1-canary.3554+379cf6bae",
28
+ "@atlaspack/fs": "2.12.1-canary.3554+379cf6bae",
29
+ "@atlaspack/graph": "3.2.1-canary.3554+379cf6bae",
30
+ "@atlaspack/logger": "2.12.1-canary.3554+379cf6bae",
31
+ "@atlaspack/package-manager": "2.12.1-canary.3554+379cf6bae",
32
+ "@atlaspack/plugin": "2.12.1-canary.3554+379cf6bae",
33
+ "@atlaspack/profiler": "2.12.1-canary.3554+379cf6bae",
34
+ "@atlaspack/rust": "2.12.1-canary.3554+379cf6bae",
35
+ "@atlaspack/types": "2.12.1-canary.3554+379cf6bae",
36
+ "@atlaspack/utils": "2.12.1-canary.3554+379cf6bae",
37
+ "@atlaspack/workers": "2.12.1-canary.3554+379cf6bae",
38
38
  "@mischnic/json-sourcemap": "^0.1.0",
39
39
  "@parcel/source-map": "^2.1.1",
40
40
  "base-x": "^3.0.8",
@@ -66,5 +66,5 @@
66
66
  "browser": {
67
67
  "./src/serializerCore.js": "./src/serializerCore.browser.js"
68
68
  },
69
- "gitHead": "d02f73b6354b81f42133225feeb56481cbbdec3b"
69
+ "gitHead": "379cf6baef3e1a78dc1a9c2e58428491f67543f5"
70
70
  }
@@ -221,10 +221,7 @@ function getAssetGraph(serializedGraph, options) {
221
221
  dependency.id = id;
222
222
  dependency.env.id = getEnvId(dependency.env);
223
223
 
224
- // Dependency.symbols are always set to an empty map when scope hoisting
225
- // is enabled. Some tests will fail if this is not the case. We should
226
- // make this consistant when we re-visit packaging.
227
- if (dependency.symbols != null || dependency.env.shouldScopeHoist) {
224
+ if (dependency.symbols != null) {
228
225
  dependency.symbols = new Map(dependency.symbols?.map(mapSymbols));
229
226
  }
230
227
 
@@ -130,10 +130,11 @@ function assetGraphDiff(jsAssetGraph: AssetGraph, rustAssetGraph: AssetGraph) {
130
130
  // ignore correspondingRequest from all nodes
131
131
  '$.correspondingRequest',
132
132
  ];
133
+
133
134
  console.log(
134
135
  diff(
135
- compactDeep(rustNode, ignoredPatterns),
136
136
  compactDeep(jsNode, ignoredPatterns),
137
+ compactDeep(rustNode, ignoredPatterns),
137
138
  ),
138
139
  );
139
140
  }