@forge/bundler 4.17.4 → 4.17.5-next.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 +18 -0
- package/out/config/node.d.ts +2 -2
- package/out/config/node.d.ts.map +1 -1
- package/out/config/node.js +12 -5
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @forge/bundler
|
|
2
2
|
|
|
3
|
+
## 4.17.5-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c9077a2: Rename function getEnvironment to getEnvironmentConfig
|
|
8
|
+
- 07355ac: Use staging runtime wrapper for dev & staging environments
|
|
9
|
+
- Updated dependencies [c9077a2]
|
|
10
|
+
- Updated dependencies [07355ac]
|
|
11
|
+
- @forge/cli-shared@5.3.2-next.1
|
|
12
|
+
- @forge/lint@5.3.1-next.1
|
|
13
|
+
|
|
14
|
+
## 4.17.5-next.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- @forge/cli-shared@5.3.2-next.0
|
|
19
|
+
- @forge/lint@5.3.1-next.0
|
|
20
|
+
|
|
3
21
|
## 4.17.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/out/config/node.d.ts
CHANGED
|
@@ -27,9 +27,9 @@ export declare class LocalWrapperProvider implements WrapperProvider {
|
|
|
27
27
|
getNodeRuntimeWrapper(): Promise<WrapperScript>;
|
|
28
28
|
}
|
|
29
29
|
export declare class NetworkWrapperProvider implements WrapperProvider {
|
|
30
|
-
private readonly cdnUrl;
|
|
31
30
|
private wrapper;
|
|
32
|
-
|
|
31
|
+
protected cdnUrl: string;
|
|
32
|
+
constructor();
|
|
33
33
|
private getWrapperPathFromIndex;
|
|
34
34
|
getNodeRuntimeWrapper(): Promise<WrapperScript>;
|
|
35
35
|
}
|
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,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/config/node.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAA6C,MAAM,mBAAmB,CAAC;AAEtH,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,iBAAiB,CAAC;AAWxD,eAAO,MAAM,kBAAkB,QAAwF,CAAC;AAExH,qBAAa,yBAA0B,SAAQ,SAAS;;CAIvD;AAED,qBAAa,mBAAoB,SAAQ,SAAS;gBACpC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;CAGhD;AAED,qBAAa,yBAA0B,SAAQ,SAAS;gBAC1C,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS;CAG3D;AAED,oBAAY,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,qBAAqB,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;CACjD;AAED,qBAAa,oBAAqB,YAAW,eAAe;IAExD,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,IAAI;gBADJ,gBAAgB,EAAE,gBAAgB,EAClC,IAAI,GAAE,MAA2B;IAE9C,qBAAqB,IAAI,OAAO,CAAC,aAAa,CAAC;CAUtD;AAED,qBAAa,sBAAuB,YAAW,eAAe;IAC5D,OAAO,CAAC,OAAO,CAA4B;IAC3C,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;;YAKX,uBAAuB;IAS/B,qBAAqB,IAAI,OAAO,CAAC,aAAa,CAAC;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
|
@@ -10,7 +10,14 @@ const common_1 = require("./common");
|
|
|
10
10
|
exports.NODE_WEBPACK_CONFIG_NAME = 'node-runtime';
|
|
11
11
|
exports.NODE_WEBPACK_USER_CODE_DIR = 'bundled';
|
|
12
12
|
exports.NODE_RUNTIME_VERSION_FILE = 'runtime.json';
|
|
13
|
-
|
|
13
|
+
var RuntimeCDN;
|
|
14
|
+
(function (RuntimeCDN) {
|
|
15
|
+
RuntimeCDN["DEV"] = "https://forge-node-runtime.stg-east.frontend.public.atl-paas.net/";
|
|
16
|
+
RuntimeCDN["STG"] = "https://forge-node-runtime.stg-east.frontend.public.atl-paas.net/";
|
|
17
|
+
RuntimeCDN["PROD"] = "https://forge-node-runtime.prod-east.frontend.public.atl-paas.net/";
|
|
18
|
+
RuntimeCDN["FEDRAMP_MODERATE_STAGING"] = "https://forge-node-runtime.prod-east.frontend.public.atl-paas.net/";
|
|
19
|
+
RuntimeCDN["FEDRAMP_MODERATE_PROD"] = "https://forge-node-runtime.prod-east.frontend.public.atl-paas.net/";
|
|
20
|
+
})(RuntimeCDN || (RuntimeCDN = {}));
|
|
14
21
|
exports.LOCAL_WRAPPER_PATH = path_1.default.resolve(__dirname, '..', '..', '..', 'forge-node-runtime', 'dist', 'wrapper.js');
|
|
15
22
|
class LocalWrapperNotFoundError extends cli_shared_1.UserError {
|
|
16
23
|
constructor() {
|
|
@@ -50,10 +57,10 @@ class LocalWrapperProvider {
|
|
|
50
57
|
}
|
|
51
58
|
exports.LocalWrapperProvider = LocalWrapperProvider;
|
|
52
59
|
class NetworkWrapperProvider {
|
|
53
|
-
cdnUrl;
|
|
54
60
|
wrapper;
|
|
55
|
-
|
|
56
|
-
|
|
61
|
+
cdnUrl;
|
|
62
|
+
constructor() {
|
|
63
|
+
this.cdnUrl = (0, cli_shared_1.getEnvironmentConfig)(RuntimeCDN);
|
|
57
64
|
}
|
|
58
65
|
async getWrapperPathFromIndex(htmlContent, requestId) {
|
|
59
66
|
const html = cheerio_1.default.load(htmlContent);
|
|
@@ -100,7 +107,7 @@ const getWrapperProvider = ({ fileSystemReader }) => {
|
|
|
100
107
|
if (process.env.FORGE_WRAPPER_PATH) {
|
|
101
108
|
return new LocalWrapperProvider(fileSystemReader, process.env.FORGE_WRAPPER_PATH);
|
|
102
109
|
}
|
|
103
|
-
return new NetworkWrapperProvider(
|
|
110
|
+
return new NetworkWrapperProvider();
|
|
104
111
|
};
|
|
105
112
|
exports.getWrapperProvider = getWrapperProvider;
|
|
106
113
|
const getNodeRuntimeBuildConfig = (wrapperProvider) => (entrypoints, config) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bundler",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.5-next.1",
|
|
4
4
|
"description": "Default bundler for Forge apps",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Atlassian",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@babel/preset-typescript": "^7.23.3",
|
|
22
22
|
"@forge/api": "3.9.0",
|
|
23
23
|
"@forge/babel-plugin-transform-ui": "1.1.18",
|
|
24
|
-
"@forge/cli-shared": "5.3.1",
|
|
25
|
-
"@forge/lint": "5.3.
|
|
24
|
+
"@forge/cli-shared": "5.3.2-next.1",
|
|
25
|
+
"@forge/lint": "5.3.1-next.1",
|
|
26
26
|
"@forge/util": "1.4.4",
|
|
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.10.0",
|
|
61
|
+
"@forge/runtime": "5.10.1-next.0",
|
|
62
62
|
"@types/jest": "^29.5.12",
|
|
63
63
|
"@types/node": "14.18.63",
|
|
64
64
|
"@types/react": "^18.2.64",
|