@forge/bundler 4.17.2-next.1 → 4.17.2-next.10
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 +63 -0
- package/out/config/node.d.ts +2 -1
- package/out/config/node.d.ts.map +1 -1
- package/out/config/node.js +7 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,68 @@
|
|
|
1
1
|
# @forge/bundler
|
|
2
2
|
|
|
3
|
+
## 4.17.2-next.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [a15c732]
|
|
8
|
+
- @forge/cli-shared@5.2.0-next.8
|
|
9
|
+
- @forge/lint@5.2.2-next.8
|
|
10
|
+
|
|
11
|
+
## 4.17.2-next.9
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [d4f9acd]
|
|
16
|
+
- @forge/api@3.8.1-next.0
|
|
17
|
+
|
|
18
|
+
## 4.17.2-next.8
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- @forge/cli-shared@5.1.1-next.7
|
|
23
|
+
- @forge/lint@5.2.2-next.7
|
|
24
|
+
|
|
25
|
+
## 4.17.2-next.7
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- @forge/cli-shared@5.1.1-next.6
|
|
30
|
+
- @forge/lint@5.2.2-next.6
|
|
31
|
+
|
|
32
|
+
## 4.17.2-next.6
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- @forge/cli-shared@5.1.1-next.5
|
|
37
|
+
- @forge/lint@5.2.2-next.5
|
|
38
|
+
|
|
39
|
+
## 4.17.2-next.5
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- @forge/cli-shared@5.1.1-next.4
|
|
44
|
+
- @forge/lint@5.2.2-next.4
|
|
45
|
+
|
|
46
|
+
## 4.17.2-next.4
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- 860ba4e: Allow providing Node runtime wrapper path directly
|
|
51
|
+
|
|
52
|
+
## 4.17.2-next.3
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- @forge/cli-shared@5.1.1-next.3
|
|
57
|
+
- @forge/lint@5.2.2-next.3
|
|
58
|
+
|
|
59
|
+
## 4.17.2-next.2
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- @forge/cli-shared@5.1.1-next.2
|
|
64
|
+
- @forge/lint@5.2.2-next.2
|
|
65
|
+
|
|
3
66
|
## 4.17.2-next.1
|
|
4
67
|
|
|
5
68
|
### Patch Changes
|
package/out/config/node.d.ts
CHANGED
|
@@ -22,7 +22,8 @@ export interface WrapperProvider {
|
|
|
22
22
|
}
|
|
23
23
|
export declare class LocalWrapperProvider implements WrapperProvider {
|
|
24
24
|
private readonly filesystemReader;
|
|
25
|
-
|
|
25
|
+
private readonly path;
|
|
26
|
+
constructor(filesystemReader: FileSystemReader, path?: string);
|
|
26
27
|
getNodeRuntimeWrapper(): Promise<WrapperScript>;
|
|
27
28
|
}
|
|
28
29
|
export declare class NetworkWrapperProvider implements WrapperProvider {
|
package/out/config/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/config/node.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAuB,MAAM,mBAAmB,CAAC;AAEhG,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EAGpB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,wBAAwB,iBAAiB,CAAC;AACvD,eAAO,MAAM,0BAA0B,YAAY,CAAC;AACpD,eAAO,MAAM,yBAAyB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AC;CAuCtD;AAED,eAAO,MAAM,kBAAkB;sBAA8C,gBAAgB;mDAW5F,CAAC;AAEF,eAAO,MAAM,yBAAyB,oBAClB,eAAe,mBACnB,mBAAmB,EAAE,UAAU,aAAa,KAAG,mBA4D5D,CAAC"}
|
package/out/config/node.js
CHANGED
|
@@ -32,11 +32,13 @@ class ParseWrapperCDNIndexError extends cli_shared_1.BaseError {
|
|
|
32
32
|
exports.ParseWrapperCDNIndexError = ParseWrapperCDNIndexError;
|
|
33
33
|
class LocalWrapperProvider {
|
|
34
34
|
filesystemReader;
|
|
35
|
-
|
|
35
|
+
path;
|
|
36
|
+
constructor(filesystemReader, path = exports.LOCAL_WRAPPER_PATH) {
|
|
36
37
|
this.filesystemReader = filesystemReader;
|
|
38
|
+
this.path = path;
|
|
37
39
|
}
|
|
38
40
|
async getNodeRuntimeWrapper() {
|
|
39
|
-
const wrapper = await this.filesystemReader.readFileAsync(
|
|
41
|
+
const wrapper = await this.filesystemReader.readFileAsync(this.path);
|
|
40
42
|
if (!wrapper) {
|
|
41
43
|
throw new LocalWrapperNotFoundError();
|
|
42
44
|
}
|
|
@@ -95,6 +97,9 @@ const getWrapperProvider = ({ fileSystemReader }) => {
|
|
|
95
97
|
if (process.env.FORGE_USE_LOCAL_WRAPPER === 'true') {
|
|
96
98
|
return new LocalWrapperProvider(fileSystemReader);
|
|
97
99
|
}
|
|
100
|
+
if (process.env.FORGE_WRAPPER_PATH) {
|
|
101
|
+
return new LocalWrapperProvider(fileSystemReader, process.env.FORGE_WRAPPER_PATH);
|
|
102
|
+
}
|
|
98
103
|
return new NetworkWrapperProvider(FORGE_RUNTIME_CDN);
|
|
99
104
|
};
|
|
100
105
|
exports.getWrapperProvider = getWrapperProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bundler",
|
|
3
|
-
"version": "4.17.2-next.
|
|
3
|
+
"version": "4.17.2-next.10",
|
|
4
4
|
"description": "Default bundler for Forge apps",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Atlassian",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"@babel/plugin-transform-optional-chaining": "^7.23.4",
|
|
20
20
|
"@babel/plugin-transform-react-jsx": "^7.23.4",
|
|
21
21
|
"@babel/preset-typescript": "^7.23.3",
|
|
22
|
-
"@forge/api": "3.8.0",
|
|
22
|
+
"@forge/api": "3.8.1-next.0",
|
|
23
23
|
"@forge/babel-plugin-transform-ui": "1.1.18",
|
|
24
|
-
"@forge/cli-shared": "5.
|
|
25
|
-
"@forge/lint": "5.2.2-next.
|
|
24
|
+
"@forge/cli-shared": "5.2.0-next.8",
|
|
25
|
+
"@forge/lint": "5.2.2-next.8",
|
|
26
26
|
"@forge/util": "1.4.3",
|
|
27
27
|
"assert": "^2.1.0",
|
|
28
28
|
"babel-loader": "^8.3.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@atlassian/xen-test-util": "^4.2.0",
|
|
61
|
-
"@forge/runtime": "5.9.0-next.
|
|
61
|
+
"@forge/runtime": "5.9.0-next.1",
|
|
62
62
|
"@types/jest": "^29.5.12",
|
|
63
63
|
"@types/node": "14.18.63",
|
|
64
64
|
"@types/react": "^18.2.64",
|