@atlaspack/core 2.15.0 → 2.15.1
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 +20 -0
- package/lib/resolveOptions.js +1 -4
- package/package.json +13 -13
- package/src/resolveOptions.js +2 -6
- package/test/Environment.test.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaspack/core
|
|
2
2
|
|
|
3
|
+
## 2.15.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#512](https://github.com/atlassian-labs/atlaspack/pull/512) [`8f4e6c1`](https://github.com/atlassian-labs/atlaspack/commit/8f4e6c1b0e7c1fd48624afda48c1dcc599f1460f) Thanks [@yamadapc](https://github.com/yamadapc)! - Remove LMDB cache back-end
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`9b85d3e`](https://github.com/atlassian-labs/atlaspack/commit/9b85d3e645b10bd027eed2304afc970a5ba40062), [`a891d65`](https://github.com/atlassian-labs/atlaspack/commit/a891d652bc4eb3d757d381adf65c5083f706effc), [`d02eab9`](https://github.com/atlassian-labs/atlaspack/commit/d02eab95eb60bf7457e0869af0b773608592c0e6), [`fb87a90`](https://github.com/atlassian-labs/atlaspack/commit/fb87a901973776b33ca4ce530e9d71669a9bd36d), [`7b9e8cf`](https://github.com/atlassian-labs/atlaspack/commit/7b9e8cf29e01a98e72e46b2b2fb74ccc514f4463), [`17b9579`](https://github.com/atlassian-labs/atlaspack/commit/17b9579484eced0ed8f23e2aba6d23b3c7238c39), [`8f4e6c1`](https://github.com/atlassian-labs/atlaspack/commit/8f4e6c1b0e7c1fd48624afda48c1dcc599f1460f)]:
|
|
10
|
+
- @atlaspack/feature-flags@2.14.2
|
|
11
|
+
- @atlaspack/rust@3.1.0
|
|
12
|
+
- @atlaspack/cache@3.0.0
|
|
13
|
+
- @atlaspack/fs@2.14.2
|
|
14
|
+
- @atlaspack/graph@3.4.2
|
|
15
|
+
- @atlaspack/utils@2.14.2
|
|
16
|
+
- @atlaspack/logger@2.14.2
|
|
17
|
+
- @atlaspack/package-manager@2.14.2
|
|
18
|
+
- @atlaspack/profiler@2.14.2
|
|
19
|
+
- @atlaspack/types@2.14.2
|
|
20
|
+
- @atlaspack/workers@2.14.2
|
|
21
|
+
- @atlaspack/plugin@2.14.2
|
|
22
|
+
|
|
3
23
|
## 2.15.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
package/lib/resolveOptions.js
CHANGED
|
@@ -147,10 +147,7 @@ async function resolveOptions(initialOptions) {
|
|
|
147
147
|
if (!needsRustLmdbCache && !(outputFS instanceof _fs().NodeFS)) {
|
|
148
148
|
return new (_cache().FSCache)(outputFS, cacheDir);
|
|
149
149
|
}
|
|
150
|
-
|
|
151
|
-
return new (_cache().LMDBLiteCache)(cacheDir);
|
|
152
|
-
}
|
|
153
|
-
return new (_cache().LMDBCache)(cacheDir);
|
|
150
|
+
return new (_cache().LMDBLiteCache)(cacheDir);
|
|
154
151
|
}();
|
|
155
152
|
let mode = initialOptions.mode ?? 'development';
|
|
156
153
|
let shouldOptimize = (initialOptions === null || initialOptions === void 0 || (_initialOptions$defau = initialOptions.defaultTargetOptions) === null || _initialOptions$defau === void 0 ? void 0 : _initialOptions$defau.shouldOptimize) ?? mode === 'production';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/core",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.1",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,20 +22,20 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@mischnic/json-sourcemap": "^0.1.0",
|
|
24
24
|
"@atlaspack/build-cache": "2.13.3",
|
|
25
|
-
"@atlaspack/cache": "
|
|
25
|
+
"@atlaspack/cache": "3.0.0",
|
|
26
26
|
"@atlaspack/diagnostic": "2.14.1",
|
|
27
27
|
"@atlaspack/events": "2.14.1",
|
|
28
|
-
"@atlaspack/feature-flags": "2.14.
|
|
29
|
-
"@atlaspack/fs": "2.14.
|
|
30
|
-
"@atlaspack/graph": "3.4.
|
|
31
|
-
"@atlaspack/logger": "2.14.
|
|
32
|
-
"@atlaspack/package-manager": "2.14.
|
|
33
|
-
"@atlaspack/plugin": "2.14.
|
|
34
|
-
"@atlaspack/profiler": "2.14.
|
|
35
|
-
"@atlaspack/rust": "3.0
|
|
36
|
-
"@atlaspack/types": "2.14.
|
|
37
|
-
"@atlaspack/utils": "2.14.
|
|
38
|
-
"@atlaspack/workers": "2.14.
|
|
28
|
+
"@atlaspack/feature-flags": "2.14.2",
|
|
29
|
+
"@atlaspack/fs": "2.14.2",
|
|
30
|
+
"@atlaspack/graph": "3.4.2",
|
|
31
|
+
"@atlaspack/logger": "2.14.2",
|
|
32
|
+
"@atlaspack/package-manager": "2.14.2",
|
|
33
|
+
"@atlaspack/plugin": "2.14.2",
|
|
34
|
+
"@atlaspack/profiler": "2.14.2",
|
|
35
|
+
"@atlaspack/rust": "3.1.0",
|
|
36
|
+
"@atlaspack/types": "2.14.2",
|
|
37
|
+
"@atlaspack/utils": "2.14.2",
|
|
38
|
+
"@atlaspack/workers": "2.14.2",
|
|
39
39
|
"@parcel/source-map": "^2.1.1",
|
|
40
40
|
"base-x": "^3.0.8",
|
|
41
41
|
"browserslist": "^4.6.6",
|
package/src/resolveOptions.js
CHANGED
|
@@ -12,7 +12,7 @@ import type {AtlaspackOptions} from './types';
|
|
|
12
12
|
import path from 'path';
|
|
13
13
|
import {hashString} from '@atlaspack/rust';
|
|
14
14
|
import {NodeFS, NodeVCSAwareFS} from '@atlaspack/fs';
|
|
15
|
-
import {
|
|
15
|
+
import {LMDBLiteCache, FSCache} from '@atlaspack/cache';
|
|
16
16
|
import {getFeatureFlag, getFeatureFlagValue} from '@atlaspack/feature-flags';
|
|
17
17
|
import {NodePackageManager} from '@atlaspack/package-manager';
|
|
18
18
|
import {
|
|
@@ -157,11 +157,7 @@ export default async function resolveOptions(
|
|
|
157
157
|
return new FSCache(outputFS, cacheDir);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
|
|
161
|
-
return new LMDBLiteCache(cacheDir);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
return new LMDBCache(cacheDir);
|
|
160
|
+
return new LMDBLiteCache(cacheDir);
|
|
165
161
|
}
|
|
166
162
|
|
|
167
163
|
let cache = createCache();
|
package/test/Environment.test.js
CHANGED
|
@@ -108,7 +108,11 @@ describe('Environment', () => {
|
|
|
108
108
|
|
|
109
109
|
describe('createEnvironment', function () {
|
|
110
110
|
it('returns a stable hash', () => {
|
|
111
|
-
|
|
111
|
+
try {
|
|
112
|
+
initializeMonitoring();
|
|
113
|
+
} catch (_err) {
|
|
114
|
+
/* ignore */
|
|
115
|
+
}
|
|
112
116
|
const environment = createEnvironment({});
|
|
113
117
|
expect(environment.id).toEqual('d821e85f6b50315e');
|
|
114
118
|
});
|