@atlaspack/core 2.16.2-canary.191 → 2.16.2-canary.193
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 +30 -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 +17 -17
- package/src/atlaspack-v3/AtlaspackV3.ts +12 -3
- package/src/requests/AssetGraphRequestRust.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @atlaspack/core
|
|
2
2
|
|
|
3
|
+
## 2.24.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#767](https://github.com/atlassian-labs/atlaspack/pull/767) [`038e87a`](https://github.com/atlassian-labs/atlaspack/commit/038e87a7858d39556d59d3a2d17db534d45f62c6) Thanks [@marcins](https://github.com/marcins)! - Implement a new feature `allowExplicitTargetEntries` where entries provided as entries can be filtered by the source property in targets to allow different targets to be built for different subsets of entries.
|
|
8
|
+
|
|
9
|
+
- [#769](https://github.com/atlassian-labs/atlaspack/pull/769) [`f6532d7`](https://github.com/atlassian-labs/atlaspack/commit/f6532d7a4f7f007bd4e5e36af04dd466f0b9f572) Thanks [@marcins](https://github.com/marcins)! - Adds a new feature to support adding custom `env` properties in a target, that are available in the Environment during the build. A new feature flag `customEnvInTargets` has been added to gate this feature.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#780](https://github.com/atlassian-labs/atlaspack/pull/780) [`eedcbc4`](https://github.com/atlassian-labs/atlaspack/commit/eedcbc408fc1e86a2a8e25f1a41c57146d8529e1) Thanks [@JakeLane](https://github.com/JakeLane)! - Fix isStaticBindingSafe in v3
|
|
14
|
+
|
|
15
|
+
- [#776](https://github.com/atlassian-labs/atlaspack/pull/776) [`5a0363f`](https://github.com/atlassian-labs/atlaspack/commit/5a0363f1086e81068959b87e92064bed5a11a9b4) Thanks [@benjervis](https://github.com/benjervis)! - Guard against empty buffers being returned from JS workers, when using the V3 asset graph build
|
|
16
|
+
|
|
17
|
+
- [#771](https://github.com/atlassian-labs/atlaspack/pull/771) [`8604d2a`](https://github.com/atlassian-labs/atlaspack/commit/8604d2a49ace5e9194ec4f76e71f06b93610f6b4) Thanks [@benjervis](https://github.com/benjervis)! - Fixes a small error with inline bundle packaging resulting from an incorrect comparison.
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`7a52bab`](https://github.com/atlassian-labs/atlaspack/commit/7a52bab6281e8edbfa66af248eb6f872c6b4b7bd), [`eedcbc4`](https://github.com/atlassian-labs/atlaspack/commit/eedcbc408fc1e86a2a8e25f1a41c57146d8529e1), [`5a0363f`](https://github.com/atlassian-labs/atlaspack/commit/5a0363f1086e81068959b87e92064bed5a11a9b4), [`038e87a`](https://github.com/atlassian-labs/atlaspack/commit/038e87a7858d39556d59d3a2d17db534d45f62c6), [`f6532d7`](https://github.com/atlassian-labs/atlaspack/commit/f6532d7a4f7f007bd4e5e36af04dd466f0b9f572), [`0684997`](https://github.com/atlassian-labs/atlaspack/commit/0684997c127a6204af1376b36e556fddd1ba5557), [`602f8ed`](https://github.com/atlassian-labs/atlaspack/commit/602f8ed9d8381301df8b2cc82c1d5cf6f2f94fec)]:
|
|
20
|
+
- @atlaspack/feature-flags@2.25.0
|
|
21
|
+
- @atlaspack/rust@3.8.0
|
|
22
|
+
- @atlaspack/cache@3.2.25
|
|
23
|
+
- @atlaspack/fs@2.15.25
|
|
24
|
+
- @atlaspack/graph@3.5.19
|
|
25
|
+
- @atlaspack/utils@2.19.2
|
|
26
|
+
- @atlaspack/logger@2.14.22
|
|
27
|
+
- @atlaspack/plugin@2.14.30
|
|
28
|
+
- @atlaspack/profiler@2.14.27
|
|
29
|
+
- @atlaspack/types@2.15.20
|
|
30
|
+
- @atlaspack/workers@2.14.30
|
|
31
|
+
- @atlaspack/package-manager@2.14.30
|
|
32
|
+
|
|
3
33
|
## 2.23.5
|
|
4
34
|
|
|
5
35
|
### Patch 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.16.2-canary.
|
|
3
|
+
"version": "2.16.2-canary.193+686a398fa",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,21 +23,21 @@
|
|
|
23
23
|
"build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaspack/build-cache": "2.13.3-canary.
|
|
27
|
-
"@atlaspack/cache": "3.1.1-canary.
|
|
28
|
-
"@atlaspack/diagnostic": "2.14.1-canary.
|
|
29
|
-
"@atlaspack/events": "2.14.1-canary.
|
|
30
|
-
"@atlaspack/feature-flags": "2.14.1-canary.
|
|
31
|
-
"@atlaspack/fs": "2.14.5-canary.
|
|
32
|
-
"@atlaspack/graph": "3.4.1-canary.
|
|
33
|
-
"@atlaspack/logger": "2.14.5-canary.
|
|
34
|
-
"@atlaspack/package-manager": "2.14.5-canary.
|
|
35
|
-
"@atlaspack/plugin": "2.14.5-canary.
|
|
36
|
-
"@atlaspack/profiler": "2.14.1-canary.
|
|
37
|
-
"@atlaspack/rust": "3.2.1-canary.
|
|
38
|
-
"@atlaspack/types": "2.14.5-canary.
|
|
39
|
-
"@atlaspack/utils": "2.14.5-canary.
|
|
40
|
-
"@atlaspack/workers": "2.14.5-canary.
|
|
26
|
+
"@atlaspack/build-cache": "2.13.3-canary.261+686a398fa",
|
|
27
|
+
"@atlaspack/cache": "3.1.1-canary.193+686a398fa",
|
|
28
|
+
"@atlaspack/diagnostic": "2.14.1-canary.261+686a398fa",
|
|
29
|
+
"@atlaspack/events": "2.14.1-canary.261+686a398fa",
|
|
30
|
+
"@atlaspack/feature-flags": "2.14.1-canary.261+686a398fa",
|
|
31
|
+
"@atlaspack/fs": "2.14.5-canary.193+686a398fa",
|
|
32
|
+
"@atlaspack/graph": "3.4.1-canary.261+686a398fa",
|
|
33
|
+
"@atlaspack/logger": "2.14.5-canary.193+686a398fa",
|
|
34
|
+
"@atlaspack/package-manager": "2.14.5-canary.193+686a398fa",
|
|
35
|
+
"@atlaspack/plugin": "2.14.5-canary.193+686a398fa",
|
|
36
|
+
"@atlaspack/profiler": "2.14.1-canary.261+686a398fa",
|
|
37
|
+
"@atlaspack/rust": "3.2.1-canary.193+686a398fa",
|
|
38
|
+
"@atlaspack/types": "2.14.5-canary.193+686a398fa",
|
|
39
|
+
"@atlaspack/utils": "2.14.5-canary.193+686a398fa",
|
|
40
|
+
"@atlaspack/workers": "2.14.5-canary.193+686a398fa",
|
|
41
41
|
"@mischnic/json-sourcemap": "^0.1.0",
|
|
42
42
|
"@parcel/source-map": "^2.1.1",
|
|
43
43
|
"base-x": "^3.0.8",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"./src/serializerCore.js": "./src/serializerCore.browser.js"
|
|
63
63
|
},
|
|
64
64
|
"type": "commonjs",
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "686a398faa1f9e19cbf9274add2c46e246bafba8"
|
|
66
66
|
}
|
|
@@ -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
|
}
|