@atlaspack/core 2.14.1-dev.27 → 2.14.1-dev.35
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 +33 -0
- package/lib/RequestTracker.js +1 -1
- package/lib/resolveOptions.js +13 -2
- package/package.json +18 -18
- package/src/RequestTracker.js +8 -5
- package/src/resolveOptions.js +19 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @atlaspack/core
|
|
2
2
|
|
|
3
|
+
## 2.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#486](https://github.com/atlassian-labs/atlaspack/pull/486) [`87087f4`](https://github.com/atlassian-labs/atlaspack/commit/87087f44f348ac583a27ea0819122e191ba80f8d) Thanks [@yamadapc](https://github.com/yamadapc)! - Add environment variable to skip cache invalidation
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#450](https://github.com/atlassian-labs/atlaspack/pull/450) [`b9d41b1`](https://github.com/atlassian-labs/atlaspack/commit/b9d41b175ad5771651a5b0278a5a0147e669234a) Thanks [@benjervis](https://github.com/benjervis)! - Remove the Atlaspack engines compatibility check
|
|
12
|
+
|
|
13
|
+
- [#420](https://github.com/atlassian-labs/atlaspack/pull/420) [`e1422ad`](https://github.com/atlassian-labs/atlaspack/commit/e1422ad0a801faaa4bc4f1023bed042ffe236e9b) Thanks [@JakeLane](https://github.com/JakeLane)! - Support async script runtime in conditional bundling
|
|
14
|
+
|
|
15
|
+
- [#472](https://github.com/atlassian-labs/atlaspack/pull/472) [`7e357fb`](https://github.com/atlassian-labs/atlaspack/commit/7e357fb173e7958da330e3721667fa5749420952) Thanks [@yamadapc](https://github.com/yamadapc)! - Fix segmentation fault on exit on certain cases
|
|
16
|
+
|
|
17
|
+
- [#478](https://github.com/atlassian-labs/atlaspack/pull/478) [`570493b`](https://github.com/atlassian-labs/atlaspack/commit/570493beaf754e7985aebc7daaaf6dfcfa8fe56b) Thanks [@yamadapc](https://github.com/yamadapc)! - The first attempt at Version Packages didn't include the built artifacts.
|
|
18
|
+
This has hopefully been fixed, so this change will force those packages to re-release.
|
|
19
|
+
- Updated dependencies [[`80bd57b`](https://github.com/atlassian-labs/atlaspack/commit/80bd57b9f9e966563957dee0780d956a682eb2d4), [`ae70b81`](https://github.com/atlassian-labs/atlaspack/commit/ae70b810384cf58f9c57d341ab4c925c7bb2060c), [`ce13d5e`](https://github.com/atlassian-labs/atlaspack/commit/ce13d5e885d55518ee6318e7a72e3a6e4e5126f2), [`4aab060`](https://github.com/atlassian-labs/atlaspack/commit/4aab0605c0d4ee8e0dcc3ffa1162eae5b360b677), [`c0a61a9`](https://github.com/atlassian-labs/atlaspack/commit/c0a61a92405b6830fe39cc17622cc2e97bf02dd7), [`cb35e7d`](https://github.com/atlassian-labs/atlaspack/commit/cb35e7d2b90b372de8401792915f12f410508d24), [`e1422ad`](https://github.com/atlassian-labs/atlaspack/commit/e1422ad0a801faaa4bc4f1023bed042ffe236e9b), [`6ec11f1`](https://github.com/atlassian-labs/atlaspack/commit/6ec11f10a9366fb8a9fc0475c7678235056bd80e), [`570493b`](https://github.com/atlassian-labs/atlaspack/commit/570493beaf754e7985aebc7daaaf6dfcfa8fe56b)]:
|
|
20
|
+
- @atlaspack/fs@2.14.1
|
|
21
|
+
- @atlaspack/rust@3.0.1
|
|
22
|
+
- @atlaspack/utils@2.14.1
|
|
23
|
+
- @atlaspack/feature-flags@2.14.1
|
|
24
|
+
- @atlaspack/diagnostic@2.14.1
|
|
25
|
+
- @atlaspack/graph@3.4.1
|
|
26
|
+
- @atlaspack/logger@2.14.1
|
|
27
|
+
- @atlaspack/package-manager@2.14.1
|
|
28
|
+
- @atlaspack/plugin@2.14.1
|
|
29
|
+
- @atlaspack/profiler@2.14.1
|
|
30
|
+
- @atlaspack/types@2.14.1
|
|
31
|
+
- @atlaspack/workers@2.14.1
|
|
32
|
+
- @atlaspack/events@2.14.1
|
|
33
|
+
- @atlaspack/build-cache@2.13.3
|
|
34
|
+
- @atlaspack/cache@2.13.3
|
|
35
|
+
|
|
3
36
|
## 2.14.0
|
|
4
37
|
|
|
5
38
|
### Minor Changes
|
package/lib/RequestTracker.js
CHANGED
|
@@ -1100,7 +1100,7 @@ async function loadRequestGraph(options) {
|
|
|
1100
1100
|
});
|
|
1101
1101
|
}, 5000);
|
|
1102
1102
|
let startTime = Date.now();
|
|
1103
|
-
let events = await options.inputFS.getEventsSince(options.watchDir, snapshotPath, opts);
|
|
1103
|
+
let events = process.env.ATLASPACK_BYPASS_CACHE_INVALIDATION === 'true' ? [] : await options.inputFS.getEventsSince(options.watchDir, snapshotPath, opts);
|
|
1104
1104
|
clearTimeout(timeout);
|
|
1105
1105
|
_logger().default.verbose({
|
|
1106
1106
|
origin: '@atlaspack/core',
|
package/lib/resolveOptions.js
CHANGED
|
@@ -139,8 +139,19 @@ async function resolveOptions(initialOptions) {
|
|
|
139
139
|
// where symlinked dependencies outside the project root need to trigger HMR
|
|
140
140
|
// updates. Default to the project root if not provided.
|
|
141
141
|
let watchDir = initialOptions.watchDir != null ? _path().default.resolve(initialOptions.watchDir) : projectRoot;
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
let cache = function createCache() {
|
|
143
|
+
if (initialOptions.cache) {
|
|
144
|
+
return initialOptions.cache;
|
|
145
|
+
}
|
|
146
|
+
const needsRustLmdbCache = (0, _featureFlags().getFeatureFlag)('atlaspackV3');
|
|
147
|
+
if (!needsRustLmdbCache && !(outputFS instanceof _fs().NodeFS)) {
|
|
148
|
+
return new (_cache().FSCache)(outputFS, cacheDir);
|
|
149
|
+
}
|
|
150
|
+
if (needsRustLmdbCache || (0, _featureFlags().getFeatureFlag)('useLmdbJsLite')) {
|
|
151
|
+
return new (_cache().LMDBLiteCache)(cacheDir);
|
|
152
|
+
}
|
|
153
|
+
return new (_cache().LMDBCache)(cacheDir);
|
|
154
|
+
}();
|
|
144
155
|
let mode = initialOptions.mode ?? 'development';
|
|
145
156
|
let shouldOptimize = (initialOptions === null || initialOptions === void 0 || (_initialOptions$defau = initialOptions.defaultTargetOptions) === null || _initialOptions$defau === void 0 ? void 0 : _initialOptions$defau.shouldOptimize) ?? mode === 'production';
|
|
146
157
|
let publicUrl = (initialOptions === null || initialOptions === void 0 || (_initialOptions$defau2 = initialOptions.defaultTargetOptions) === null || _initialOptions$defau2 === void 0 ? void 0 : _initialOptions$defau2.publicUrl) ?? '/';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/core",
|
|
3
|
-
"version": "2.14.1-dev.
|
|
3
|
+
"version": "2.14.1-dev.35+14abbc50e",
|
|
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.13.3-dev.
|
|
24
|
-
"@atlaspack/cache": "2.13.3-dev.
|
|
25
|
-
"@atlaspack/diagnostic": "2.14.1-dev.
|
|
26
|
-
"@atlaspack/events": "2.14.1-dev.
|
|
27
|
-
"@atlaspack/feature-flags": "2.14.1-dev.
|
|
28
|
-
"@atlaspack/fs": "2.14.1-dev.
|
|
29
|
-
"@atlaspack/graph": "3.4.1-dev.
|
|
30
|
-
"@atlaspack/logger": "2.14.1-dev.
|
|
31
|
-
"@atlaspack/package-manager": "2.14.1-dev.
|
|
32
|
-
"@atlaspack/plugin": "2.14.1-dev.
|
|
33
|
-
"@atlaspack/profiler": "2.14.1-dev.
|
|
34
|
-
"@atlaspack/rust": "3.0.1-dev.
|
|
35
|
-
"@atlaspack/types": "2.14.1-dev.
|
|
36
|
-
"@atlaspack/utils": "2.14.1-dev.
|
|
37
|
-
"@atlaspack/workers": "2.14.1-dev.
|
|
23
|
+
"@atlaspack/build-cache": "2.13.3-dev.35+14abbc50e",
|
|
24
|
+
"@atlaspack/cache": "2.13.3-dev.35+14abbc50e",
|
|
25
|
+
"@atlaspack/diagnostic": "2.14.1-dev.35+14abbc50e",
|
|
26
|
+
"@atlaspack/events": "2.14.1-dev.35+14abbc50e",
|
|
27
|
+
"@atlaspack/feature-flags": "2.14.1-dev.35+14abbc50e",
|
|
28
|
+
"@atlaspack/fs": "2.14.1-dev.35+14abbc50e",
|
|
29
|
+
"@atlaspack/graph": "3.4.1-dev.35+14abbc50e",
|
|
30
|
+
"@atlaspack/logger": "2.14.1-dev.35+14abbc50e",
|
|
31
|
+
"@atlaspack/package-manager": "2.14.1-dev.35+14abbc50e",
|
|
32
|
+
"@atlaspack/plugin": "2.14.1-dev.35+14abbc50e",
|
|
33
|
+
"@atlaspack/profiler": "2.14.1-dev.35+14abbc50e",
|
|
34
|
+
"@atlaspack/rust": "3.0.1-dev.35+14abbc50e",
|
|
35
|
+
"@atlaspack/types": "2.14.1-dev.35+14abbc50e",
|
|
36
|
+
"@atlaspack/utils": "2.14.1-dev.35+14abbc50e",
|
|
37
|
+
"@atlaspack/workers": "2.14.1-dev.35+14abbc50e",
|
|
38
38
|
"@mischnic/json-sourcemap": "^0.1.0",
|
|
39
39
|
"@parcel/source-map": "^2.1.1",
|
|
40
40
|
"base-x": "^3.0.8",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"semver": "^7.5.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@atlaspack/babel-register": "2.14.
|
|
51
|
+
"@atlaspack/babel-register": "2.14.1",
|
|
52
52
|
"@types/node": ">= 18",
|
|
53
53
|
"graphviz": "^0.0.9",
|
|
54
54
|
"jest-diff": "*",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"./src/serializerCore.js": "./src/serializerCore.browser.js"
|
|
68
68
|
},
|
|
69
69
|
"type": "commonjs",
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "14abbc50e6cf49bb10df409aebdbdb9ff42c06a1"
|
|
71
71
|
}
|
package/src/RequestTracker.js
CHANGED
|
@@ -1697,11 +1697,14 @@ async function loadRequestGraph(options): Async<RequestGraph> {
|
|
|
1697
1697
|
});
|
|
1698
1698
|
}, 5000);
|
|
1699
1699
|
let startTime = Date.now();
|
|
1700
|
-
let events =
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1700
|
+
let events =
|
|
1701
|
+
process.env.ATLASPACK_BYPASS_CACHE_INVALIDATION === 'true'
|
|
1702
|
+
? []
|
|
1703
|
+
: await options.inputFS.getEventsSince(
|
|
1704
|
+
options.watchDir,
|
|
1705
|
+
snapshotPath,
|
|
1706
|
+
opts,
|
|
1707
|
+
);
|
|
1705
1708
|
clearTimeout(timeout);
|
|
1706
1709
|
|
|
1707
1710
|
logger.verbose({
|
package/src/resolveOptions.js
CHANGED
|
@@ -146,14 +146,25 @@ export default async function resolveOptions(
|
|
|
146
146
|
? path.resolve(initialOptions.watchDir)
|
|
147
147
|
: projectRoot;
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
149
|
+
function createCache() {
|
|
150
|
+
if (initialOptions.cache) {
|
|
151
|
+
return initialOptions.cache;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const needsRustLmdbCache = getFeatureFlag('atlaspackV3');
|
|
155
|
+
|
|
156
|
+
if (!needsRustLmdbCache && !(outputFS instanceof NodeFS)) {
|
|
157
|
+
return new FSCache(outputFS, cacheDir);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (needsRustLmdbCache || getFeatureFlag('useLmdbJsLite')) {
|
|
161
|
+
return new LMDBLiteCache(cacheDir);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
return new LMDBCache(cacheDir);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
let cache = createCache();
|
|
157
168
|
|
|
158
169
|
let mode = initialOptions.mode ?? 'development';
|
|
159
170
|
let shouldOptimize =
|