@atlaspack/core 2.24.0 → 2.24.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 +26 -0
- package/lib/atlaspack-v3/AtlaspackV3.js +7 -3
- package/lib/requests/AssetGraphRequestRust.js +1 -1
- package/lib/types/atlaspack-v3/AtlaspackV3.d.ts +1 -1
- package/package.json +18 -18
- package/src/atlaspack-v3/AtlaspackV3.ts +12 -3
- package/src/requests/AssetGraphRequestRust.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaspack/core
|
|
2
2
|
|
|
3
|
+
## 2.24.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#785](https://github.com/atlassian-labs/atlaspack/pull/785) [`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922) Thanks [@matt-koko](https://github.com/matt-koko)! - We need to re-publish every package in Atlaspack with the corrected types field.
|
|
8
|
+
|
|
9
|
+
- [#421](https://github.com/atlassian-labs/atlaspack/pull/421) [`686a398`](https://github.com/atlassian-labs/atlaspack/commit/686a398faa1f9e19cbf9274add2c46e246bafba8) Thanks [@mattcompiles](https://github.com/mattcompiles)! - - Fix native respondToFsEvents API
|
|
10
|
+
- Fix native handling of failed requests, allowing them to rebuild when necessary
|
|
11
|
+
- Fix native environment id type
|
|
12
|
+
- Updated dependencies [[`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922), [`686a398`](https://github.com/atlassian-labs/atlaspack/commit/686a398faa1f9e19cbf9274add2c46e246bafba8)]:
|
|
13
|
+
- @atlaspack/build-cache@2.13.6
|
|
14
|
+
- @atlaspack/cache@3.2.26
|
|
15
|
+
- @atlaspack/diagnostic@2.14.4
|
|
16
|
+
- @atlaspack/feature-flags@2.25.1
|
|
17
|
+
- @atlaspack/fs@2.15.26
|
|
18
|
+
- @atlaspack/graph@3.5.20
|
|
19
|
+
- @atlaspack/logger@2.14.23
|
|
20
|
+
- @atlaspack/package-manager@2.14.31
|
|
21
|
+
- @atlaspack/plugin@2.14.31
|
|
22
|
+
- @atlaspack/profiler@2.14.28
|
|
23
|
+
- @atlaspack/rust@3.8.1
|
|
24
|
+
- @atlaspack/types@2.15.21
|
|
25
|
+
- @atlaspack/utils@2.19.3
|
|
26
|
+
- @atlaspack/workers@2.14.31
|
|
27
|
+
- @atlaspack/events@2.14.4
|
|
28
|
+
|
|
3
29
|
## 2.24.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
|
@@ -79,9 +79,13 @@ class AtlaspackV3 {
|
|
|
79
79
|
}
|
|
80
80
|
return graph;
|
|
81
81
|
}
|
|
82
|
-
respondToFsEvents(events) {
|
|
83
|
-
// @ts-expect-error
|
|
84
|
-
|
|
82
|
+
async respondToFsEvents(events) {
|
|
83
|
+
// @ts-expect-error TS2488
|
|
84
|
+
let [needsRebuild, error] = await (0, _rust().atlaspackNapiRespondToFsEvents)(this._atlaspack_napi, events);
|
|
85
|
+
if (error) {
|
|
86
|
+
throw new Error(error);
|
|
87
|
+
}
|
|
88
|
+
return needsRebuild;
|
|
85
89
|
}
|
|
86
90
|
}
|
|
87
91
|
exports.AtlaspackV3 = AtlaspackV3;
|
|
@@ -120,7 +120,7 @@ function getAssetGraph(serializedGraph) {
|
|
|
120
120
|
let envKey = [env.context, env.engines.atlaspack, env.engines.browsers, env.engines.electron, env.engines.node, env.includeNodeModules, env.isLibrary, env.outputFormat, env.shouldScopeHoist, env.shouldOptimize, env.sourceType].join(':');
|
|
121
121
|
let envId = envs.get(envKey);
|
|
122
122
|
if (envId == null) {
|
|
123
|
-
envId = envs.size
|
|
123
|
+
envId = `${envs.size}`;
|
|
124
124
|
envs.set(envKey, envId);
|
|
125
125
|
}
|
|
126
126
|
return envId;
|
|
@@ -22,5 +22,5 @@ export declare class AtlaspackV3 {
|
|
|
22
22
|
static create({ fs, packageManager, threads, lmdb, napiWorkerPool, ...options }: AtlaspackV3Options): Promise<AtlaspackV3>;
|
|
23
23
|
end(): void;
|
|
24
24
|
buildAssetGraph(): Promise<any>;
|
|
25
|
-
respondToFsEvents(events: Array<Event>): boolean
|
|
25
|
+
respondToFsEvents(events: Array<Event>): Promise<boolean>;
|
|
26
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/core",
|
|
3
|
-
"version": "2.24.
|
|
3
|
+
"version": "2.24.1",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"main": "./lib/index.js",
|
|
13
13
|
"source": "./src/index.ts",
|
|
14
|
-
"types": "./lib/index.d.ts",
|
|
14
|
+
"types": "./lib/types/index.d.ts",
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">= 16.0.0"
|
|
17
17
|
},
|
|
@@ -24,21 +24,21 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@mischnic/json-sourcemap": "^0.1.0",
|
|
27
|
-
"@atlaspack/build-cache": "2.13.
|
|
28
|
-
"@atlaspack/cache": "3.2.
|
|
29
|
-
"@atlaspack/diagnostic": "2.14.
|
|
30
|
-
"@atlaspack/events": "2.14.
|
|
31
|
-
"@atlaspack/feature-flags": "2.25.
|
|
32
|
-
"@atlaspack/fs": "2.15.
|
|
33
|
-
"@atlaspack/graph": "3.5.
|
|
34
|
-
"@atlaspack/logger": "2.14.
|
|
35
|
-
"@atlaspack/package-manager": "2.14.
|
|
36
|
-
"@atlaspack/plugin": "2.14.
|
|
37
|
-
"@atlaspack/profiler": "2.14.
|
|
38
|
-
"@atlaspack/rust": "3.8.
|
|
39
|
-
"@atlaspack/types": "2.15.
|
|
40
|
-
"@atlaspack/utils": "2.19.
|
|
41
|
-
"@atlaspack/workers": "2.14.
|
|
27
|
+
"@atlaspack/build-cache": "2.13.6",
|
|
28
|
+
"@atlaspack/cache": "3.2.26",
|
|
29
|
+
"@atlaspack/diagnostic": "2.14.4",
|
|
30
|
+
"@atlaspack/events": "2.14.4",
|
|
31
|
+
"@atlaspack/feature-flags": "2.25.1",
|
|
32
|
+
"@atlaspack/fs": "2.15.26",
|
|
33
|
+
"@atlaspack/graph": "3.5.20",
|
|
34
|
+
"@atlaspack/logger": "2.14.23",
|
|
35
|
+
"@atlaspack/package-manager": "2.14.31",
|
|
36
|
+
"@atlaspack/plugin": "2.14.31",
|
|
37
|
+
"@atlaspack/profiler": "2.14.28",
|
|
38
|
+
"@atlaspack/rust": "3.8.1",
|
|
39
|
+
"@atlaspack/types": "2.15.21",
|
|
40
|
+
"@atlaspack/utils": "2.19.3",
|
|
41
|
+
"@atlaspack/workers": "2.14.31",
|
|
42
42
|
"@parcel/source-map": "^2.1.1",
|
|
43
43
|
"base-x": "^3.0.8",
|
|
44
44
|
"browserslist": "^4.6.6",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"semver": "^7.5.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@atlaspack/babel-register": "2.14.
|
|
54
|
+
"@atlaspack/babel-register": "2.14.4",
|
|
55
55
|
"@types/node": ">= 18",
|
|
56
56
|
"rfdc": "1",
|
|
57
57
|
"jest-diff": "*",
|
|
@@ -106,8 +106,17 @@ export class AtlaspackV3 {
|
|
|
106
106
|
return graph;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
respondToFsEvents(events: Array<Event>): boolean {
|
|
110
|
-
// @ts-expect-error
|
|
111
|
-
|
|
109
|
+
async respondToFsEvents(events: Array<Event>): Promise<boolean> {
|
|
110
|
+
// @ts-expect-error TS2488
|
|
111
|
+
let [needsRebuild, error] = await atlaspackNapiRespondToFsEvents(
|
|
112
|
+
this._atlaspack_napi,
|
|
113
|
+
events,
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
if (error) {
|
|
117
|
+
throw new Error(error);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return needsRebuild;
|
|
112
121
|
}
|
|
113
122
|
}
|