@forge/bundler 4.18.0-next.8 → 4.18.0
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 +38 -0
- package/out/config/node.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# @forge/bundler
|
|
2
2
|
|
|
3
|
+
## 4.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 90f621b: Revert cheerio upgrade
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 6c9b381: Update comment referent to node-runtime (no code change)
|
|
12
|
+
- eaa03f9: Remove FORGE_USE_LOCAL_WRAPPER variable, LocalWrapperProvider only works when FORGE_WRAPPER_PATH is set
|
|
13
|
+
- Updated dependencies [84550d3]
|
|
14
|
+
- Updated dependencies [41ba7c6]
|
|
15
|
+
- Updated dependencies [90f621b]
|
|
16
|
+
- Updated dependencies [6c9b381]
|
|
17
|
+
- Updated dependencies [694a970]
|
|
18
|
+
- @forge/cli-shared@5.4.0
|
|
19
|
+
- @forge/api@3.9.1
|
|
20
|
+
- @forge/lint@5.3.2
|
|
21
|
+
|
|
22
|
+
## 4.18.0-next.10
|
|
23
|
+
|
|
24
|
+
### Minor Changes
|
|
25
|
+
|
|
26
|
+
- 90f621b: Revert cheerio upgrade
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [90f621b]
|
|
31
|
+
- @forge/cli-shared@5.4.0-next.9
|
|
32
|
+
- @forge/lint@5.3.2-next.9
|
|
33
|
+
|
|
34
|
+
## 4.18.0-next.9
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- @forge/cli-shared@5.4.0-next.8
|
|
39
|
+
- @forge/lint@5.3.2-next.8
|
|
40
|
+
|
|
3
41
|
## 4.18.0-next.8
|
|
4
42
|
|
|
5
43
|
### Patch Changes
|
package/out/config/node.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getNodeRuntimeBuildConfig = exports.getWrapperProvider = exports.NetworkWrapperProvider = exports.LocalWrapperProvider = exports.ParseWrapperCDNIndexError = exports.WrapperNetworkError = exports.LocalWrapperNotFoundError = exports.NODE_RUNTIME_VERSION_FILE = exports.NODE_WEBPACK_USER_CODE_DIR = exports.NODE_WEBPACK_CONFIG_NAME = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const cheerio_1 = require("cheerio");
|
|
5
|
+
const cheerio_1 = tslib_1.__importDefault(require("cheerio"));
|
|
6
6
|
const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
|
|
7
7
|
const cli_shared_1 = require("@forge/cli-shared");
|
|
8
8
|
const common_1 = require("./common");
|
|
@@ -61,7 +61,7 @@ class NetworkWrapperProvider {
|
|
|
61
61
|
this.cdnUrl = (0, cli_shared_1.getEnvironmentConfig)(RuntimeCDN);
|
|
62
62
|
}
|
|
63
63
|
async getWrapperPathFromIndex(htmlContent, requestId) {
|
|
64
|
-
const html =
|
|
64
|
+
const html = cheerio_1.default.load(htmlContent);
|
|
65
65
|
const wrapperPath = html('script')?.get()?.[0]?.attribs['src'];
|
|
66
66
|
if (typeof wrapperPath !== 'string') {
|
|
67
67
|
throw new ParseWrapperCDNIndexError('Unable to parse source of runtime component.', requestId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bundler",
|
|
3
|
-
"version": "4.18.0
|
|
3
|
+
"version": "4.18.0",
|
|
4
4
|
"description": "Default bundler for Forge apps",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Atlassian",
|
|
@@ -19,17 +19,17 @@
|
|
|
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.9.1
|
|
22
|
+
"@forge/api": "3.9.1",
|
|
23
23
|
"@forge/babel-plugin-transform-ui": "1.1.18",
|
|
24
|
-
"@forge/cli-shared": "5.4.0
|
|
25
|
-
"@forge/lint": "5.3.2
|
|
24
|
+
"@forge/cli-shared": "5.4.0",
|
|
25
|
+
"@forge/lint": "5.3.2",
|
|
26
26
|
"@forge/util": "1.4.4",
|
|
27
27
|
"assert": "^2.1.0",
|
|
28
28
|
"babel-loader": "^8.3.0",
|
|
29
29
|
"browserify-zlib": "^0.2.0",
|
|
30
30
|
"buffer": "^6.0.3",
|
|
31
31
|
"chalk": "^4.1.2",
|
|
32
|
-
"cheerio": "^
|
|
32
|
+
"cheerio": "^0.22.0",
|
|
33
33
|
"console-browserify": "^1.2.0",
|
|
34
34
|
"crypto-browserify": "^3.12.0",
|
|
35
35
|
"events": "^3.3.0",
|