@atlaspack/query 2.14.5-dev.14 → 2.14.5-dev.55
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 +36 -0
- package/lib/bin.js +3 -0
- package/lib/deep-imports.js +8 -1
- package/lib/index.js +8 -7
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,41 @@
|
|
1
1
|
# @atlaspack/query
|
2
2
|
|
3
|
+
## 2.14.9
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`1940859`](https://github.com/atlassian-labs/atlaspack/commit/194085942f0e86532e9d039fc3f8039badce4594), [`15b6155`](https://github.com/atlassian-labs/atlaspack/commit/15b61556e9114203ebbc9de94b864118ca764598), [`124b7ff`](https://github.com/atlassian-labs/atlaspack/commit/124b7fff44f71aac9fbad289a9a9509b3dfc9aaa), [`209692f`](https://github.com/atlassian-labs/atlaspack/commit/209692ffb11eae103a0d65c5e1118a5aa1625818), [`d04de26`](https://github.com/atlassian-labs/atlaspack/commit/d04de26af684d7abfba5091fbe3df16a12cd0ebc)]:
|
8
|
+
- @atlaspack/core@2.17.4
|
9
|
+
- @atlaspack/cache@3.2.4
|
10
|
+
- @atlaspack/graph@3.4.7
|
11
|
+
|
12
|
+
## 2.14.8
|
13
|
+
|
14
|
+
### Patch Changes
|
15
|
+
|
16
|
+
- Updated dependencies [[`30f6017`](https://github.com/atlassian-labs/atlaspack/commit/30f60175ba4d272c5fc193973c63bc298584775b), [`3a3e8e7`](https://github.com/atlassian-labs/atlaspack/commit/3a3e8e7be9e2dffd7304436d792f0f595d59665a), [`15c1e3c`](https://github.com/atlassian-labs/atlaspack/commit/15c1e3c0628bae4c768d76cf3afc53d6d0d7ce7c)]:
|
17
|
+
- @atlaspack/core@2.17.3
|
18
|
+
- @atlaspack/cache@3.2.3
|
19
|
+
- @atlaspack/graph@3.4.6
|
20
|
+
|
21
|
+
## 2.14.7
|
22
|
+
|
23
|
+
### Patch Changes
|
24
|
+
|
25
|
+
- Updated dependencies []:
|
26
|
+
- @atlaspack/cache@3.2.2
|
27
|
+
- @atlaspack/core@2.17.2
|
28
|
+
- @atlaspack/graph@3.4.5
|
29
|
+
|
30
|
+
## 2.14.6
|
31
|
+
|
32
|
+
### Patch Changes
|
33
|
+
|
34
|
+
- Updated dependencies []:
|
35
|
+
- @atlaspack/cache@3.2.1
|
36
|
+
- @atlaspack/core@2.17.1
|
37
|
+
- @atlaspack/graph@3.4.4
|
38
|
+
|
3
39
|
## 2.14.5
|
4
40
|
|
5
41
|
### Patch Changes
|
package/lib/bin.js
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
'use strict';
|
3
3
|
|
4
|
+
if (process.env.ATLASPACK_BUILD_ENV !== 'production' || process.env.ATLASPACK_SELF_BUILD) {
|
5
|
+
require('@atlaspack/babel-register');
|
6
|
+
}
|
4
7
|
const run = require('./cli').run;
|
5
8
|
require('v8-compile-cache');
|
6
9
|
run(process.argv.slice(2));
|
package/lib/deep-imports.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
/* eslint-disable monorepo/no-internal-import */
|
4
|
-
const v = {
|
4
|
+
const v = process.env.ATLASPACK_BUILD_ENV === 'production' ? {
|
5
5
|
// Split up require specifier to outsmart packages/dev/babel-register/babel-plugin-module-translate.js
|
6
6
|
// $FlowFixMe(unsupported-syntax)
|
7
7
|
AssetGraph: require('@atlaspack/core' + '/lib/AssetGraph').default,
|
@@ -15,5 +15,12 @@ const v = {
|
|
15
15
|
Priority: require('@atlaspack/core' + '/lib/types').Priority,
|
16
16
|
// $FlowFixMe(unsupported-syntax)
|
17
17
|
fromProjectPathRelative: require('@atlaspack/core' + '/lib/projectPath').fromProjectPathRelative
|
18
|
+
} : {
|
19
|
+
AssetGraph: require('@atlaspack/core/src/AssetGraph').default,
|
20
|
+
BundleGraph: require('@atlaspack/core/src/BundleGraph'),
|
21
|
+
RequestTracker: require('@atlaspack/core/src/RequestTracker'),
|
22
|
+
LMDBLiteCache: require('@atlaspack/cache/src/LMDBLiteCache').LMDBLiteCache,
|
23
|
+
Priority: require('@atlaspack/core/src/types').Priority,
|
24
|
+
fromProjectPathRelative: require('@atlaspack/core/src/projectPath').fromProjectPathRelative
|
18
25
|
};
|
19
26
|
module.exports = v;
|
package/lib/index.js
CHANGED
@@ -54,12 +54,7 @@ const {
|
|
54
54
|
LMDBLiteCache
|
55
55
|
} = require('./deep-imports.js');
|
56
56
|
async function loadGraphs(cacheDir) {
|
57
|
-
|
58
|
-
let {
|
59
|
-
requestGraphBlob,
|
60
|
-
bundleGraphBlob,
|
61
|
-
assetGraphBlob
|
62
|
-
} = function getMostRecentCacheBlobs() {
|
57
|
+
function getMostRecentCacheBlobs() {
|
63
58
|
let files = _fs().default.readdirSync(cacheDir);
|
64
59
|
let result = {};
|
65
60
|
let blobsToFind = [{
|
@@ -86,7 +81,13 @@ async function loadGraphs(cacheDir) {
|
|
86
81
|
}
|
87
82
|
}
|
88
83
|
return result;
|
89
|
-
}
|
84
|
+
}
|
85
|
+
let cacheInfo = new Map();
|
86
|
+
let {
|
87
|
+
requestGraphBlob,
|
88
|
+
bundleGraphBlob,
|
89
|
+
assetGraphBlob
|
90
|
+
} = getMostRecentCacheBlobs();
|
90
91
|
const cache = new LMDBLiteCache(cacheDir);
|
91
92
|
|
92
93
|
// Get requestTracker
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaspack/query",
|
3
|
-
"version": "2.14.5-dev.
|
3
|
+
"version": "2.14.5-dev.55+5a11f33c5",
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -18,9 +18,9 @@
|
|
18
18
|
},
|
19
19
|
"main": "src/index.js",
|
20
20
|
"dependencies": {
|
21
|
-
"@atlaspack/cache": "3.1.1-dev.
|
22
|
-
"@atlaspack/core": "2.16.2-dev.
|
23
|
-
"@atlaspack/graph": "3.4.1-dev.
|
21
|
+
"@atlaspack/cache": "3.1.1-dev.55+5a11f33c5",
|
22
|
+
"@atlaspack/core": "2.16.2-dev.55+5a11f33c5",
|
23
|
+
"@atlaspack/graph": "3.4.1-dev.123+5a11f33c5",
|
24
24
|
"nullthrows": "^1.1.1",
|
25
25
|
"table": "^6.8.1",
|
26
26
|
"v8-compile-cache": "^2.0.0"
|
@@ -31,5 +31,5 @@
|
|
31
31
|
"rimraf": "^5.0.5"
|
32
32
|
},
|
33
33
|
"type": "commonjs",
|
34
|
-
"gitHead": "
|
34
|
+
"gitHead": "5a11f33c51ff74d1cf8d4b72cfa0fda833aa980a"
|
35
35
|
}
|