@atlaspack/query 2.14.5-canary.9 → 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 CHANGED
@@ -1,5 +1,50 @@
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
+
39
+ ## 2.14.5
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies [[`2e90c9b`](https://github.com/atlassian-labs/atlaspack/commit/2e90c9bd07d7eb52645f9d84ccbb7f82685cbc8c), [`11d6f16`](https://github.com/atlassian-labs/atlaspack/commit/11d6f16b6397dee2f217167e5c98b39edb63f7a7), [`e2ba0f6`](https://github.com/atlassian-labs/atlaspack/commit/e2ba0f69702656f3d1ce95ab1454e35062b13b39), [`d2c50c2`](https://github.com/atlassian-labs/atlaspack/commit/d2c50c2c020888b33bb25b8690d9320c2b69e2a6)]:
44
+ - @atlaspack/core@2.17.0
45
+ - @atlaspack/cache@3.2.0
46
+ - @atlaspack/graph@3.4.3
47
+
3
48
  ## 2.14.4
4
49
 
5
50
  ### 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));
@@ -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
- let cacheInfo = new Map();
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-canary.9+4c1714103",
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-canary.9+4c1714103",
22
- "@atlaspack/core": "2.16.2-canary.9+4c1714103",
23
- "@atlaspack/graph": "3.4.1-canary.77+4c1714103",
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": "4c1714103dab2aa9039c488f381551d2b65d1d01"
34
+ "gitHead": "5a11f33c51ff74d1cf8d4b72cfa0fda833aa980a"
35
35
  }