@forge/bundler 4.18.0-next.9 → 4.18.1-next.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 CHANGED
@@ -1,5 +1,43 @@
1
1
  # @forge/bundler
2
2
 
3
+ ## 4.18.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @forge/cli-shared@5.4.1-next.0
8
+ - @forge/lint@5.3.3-next.0
9
+
10
+ ## 4.18.0
11
+
12
+ ### Minor Changes
13
+
14
+ - 90f621b: Revert cheerio upgrade
15
+
16
+ ### Patch Changes
17
+
18
+ - 6c9b381: Update comment referent to node-runtime (no code change)
19
+ - eaa03f9: Remove FORGE_USE_LOCAL_WRAPPER variable, LocalWrapperProvider only works when FORGE_WRAPPER_PATH is set
20
+ - Updated dependencies [84550d3]
21
+ - Updated dependencies [41ba7c6]
22
+ - Updated dependencies [90f621b]
23
+ - Updated dependencies [6c9b381]
24
+ - Updated dependencies [694a970]
25
+ - @forge/cli-shared@5.4.0
26
+ - @forge/api@3.9.1
27
+ - @forge/lint@5.3.2
28
+
29
+ ## 4.18.0-next.10
30
+
31
+ ### Minor Changes
32
+
33
+ - 90f621b: Revert cheerio upgrade
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [90f621b]
38
+ - @forge/cli-shared@5.4.0-next.9
39
+ - @forge/lint@5.3.2-next.9
40
+
3
41
  ## 4.18.0-next.9
4
42
 
5
43
  ### Patch Changes
@@ -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 = (0, cheerio_1.load)(htmlContent, { xml: { xmlMode: false } });
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-next.9",
3
+ "version": "4.18.1-next.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-next.0",
22
+ "@forge/api": "3.9.1",
23
23
  "@forge/babel-plugin-transform-ui": "1.1.18",
24
- "@forge/cli-shared": "5.4.0-next.8",
25
- "@forge/lint": "5.3.2-next.8",
24
+ "@forge/cli-shared": "5.4.1-next.0",
25
+ "@forge/lint": "5.3.3-next.0",
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": "^1.0.0",
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",