@forge/bundler 4.17.6-next.4 → 4.18.0-experimental-9fa730f

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,86 @@
1
1
  # @forge/bundler
2
2
 
3
+ ## 4.18.0-experimental-9fa730f
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ec0f3a4]
8
+ - @forge/api@3.9.1-experimental-9fa730f
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
+
41
+ ## 4.18.0-next.9
42
+
43
+ ### Patch Changes
44
+
45
+ - @forge/cli-shared@5.4.0-next.8
46
+ - @forge/lint@5.3.2-next.8
47
+
48
+ ## 4.18.0-next.8
49
+
50
+ ### Patch Changes
51
+
52
+ - @forge/cli-shared@5.4.0-next.7
53
+ - @forge/lint@5.3.2-next.7
54
+
55
+ ## 4.18.0-next.7
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies [694a970]
60
+ - @forge/cli-shared@5.4.0-next.6
61
+ - @forge/lint@5.3.2-next.6
62
+
63
+ ## 4.18.0-next.6
64
+
65
+ ### Minor Changes
66
+
67
+ - 4117f97: Bump cheerio from version 0.22 to version 1.0
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies [4117f97]
72
+ - @forge/cli-shared@5.4.0-next.5
73
+ - @forge/lint@5.3.2-next.5
74
+
75
+ ## 4.17.6-next.5
76
+
77
+ ### Patch Changes
78
+
79
+ - 6c9b381: Update comment referent to node-runtime (no code change)
80
+ - eaa03f9: Remove FORGE_USE_LOCAL_WRAPPER variable, LocalWrapperProvider only works when FORGE_WRAPPER_PATH is set
81
+ - Updated dependencies [6c9b381]
82
+ - @forge/api@3.9.1-next.0
83
+
3
84
  ## 4.17.6-next.4
4
85
 
5
86
  ### Patch Changes
@@ -3,7 +3,6 @@ import { CommonWebpackConfig, ConfigBuilder, FunctionsEntryPoint } from './commo
3
3
  export declare const NODE_WEBPACK_CONFIG_NAME = "node-runtime";
4
4
  export declare const NODE_WEBPACK_USER_CODE_DIR = "bundled";
5
5
  export declare const NODE_RUNTIME_VERSION_FILE = "runtime.json";
6
- export declare const LOCAL_WRAPPER_PATH: string;
7
6
  export declare class LocalWrapperNotFoundError extends UserError {
8
7
  constructor();
9
8
  }
@@ -23,7 +22,7 @@ export interface WrapperProvider {
23
22
  export declare class LocalWrapperProvider implements WrapperProvider {
24
23
  private readonly filesystemReader;
25
24
  private readonly path;
26
- constructor(filesystemReader: FileSystemReader, path?: string);
25
+ constructor(filesystemReader: FileSystemReader, path: string);
27
26
  getNodeRuntimeWrapper(): Promise<WrapperScript>;
28
27
  }
29
28
  export declare class NetworkWrapperProvider implements WrapperProvider {
@@ -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,EAA6C,MAAM,mBAAmB,CAAC;AAEtH,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EAGpB,MAAM,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-1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getNodeRuntimeBuildConfig = exports.getWrapperProvider = exports.NetworkWrapperProvider = exports.LocalWrapperProvider = exports.ParseWrapperCDNIndexError = exports.WrapperNetworkError = exports.LocalWrapperNotFoundError = exports.LOCAL_WRAPPER_PATH = exports.NODE_RUNTIME_VERSION_FILE = exports.NODE_WEBPACK_USER_CODE_DIR = exports.NODE_WEBPACK_CONFIG_NAME = void 0;
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 path_1 = tslib_1.__importDefault(require("path"));
6
5
  const cheerio_1 = tslib_1.__importDefault(require("cheerio"));
7
6
  const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
8
7
  const cli_shared_1 = require("@forge/cli-shared");
@@ -18,7 +17,6 @@ var RuntimeCDN;
18
17
  RuntimeCDN["FEDRAMP_MODERATE_STAGING"] = "https://forge-node-runtime.prod-east.frontend.public.atl-paas.net/";
19
18
  RuntimeCDN["FEDRAMP_MODERATE_PROD"] = "https://forge-node-runtime.prod-east.frontend.public.atl-paas.net/";
20
19
  })(RuntimeCDN || (RuntimeCDN = {}));
21
- exports.LOCAL_WRAPPER_PATH = path_1.default.resolve(__dirname, '..', '..', '..', 'forge-node-runtime', 'dist', 'wrapper.js');
22
20
  class LocalWrapperNotFoundError extends cli_shared_1.UserError {
23
21
  constructor() {
24
22
  super('Local node runtime wrapper not found.');
@@ -40,7 +38,7 @@ exports.ParseWrapperCDNIndexError = ParseWrapperCDNIndexError;
40
38
  class LocalWrapperProvider {
41
39
  filesystemReader;
42
40
  path;
43
- constructor(filesystemReader, path = exports.LOCAL_WRAPPER_PATH) {
41
+ constructor(filesystemReader, path) {
44
42
  this.filesystemReader = filesystemReader;
45
43
  this.path = path;
46
44
  }
@@ -101,9 +99,6 @@ class NetworkWrapperProvider {
101
99
  }
102
100
  exports.NetworkWrapperProvider = NetworkWrapperProvider;
103
101
  const getWrapperProvider = ({ fileSystemReader }) => {
104
- if (process.env.FORGE_USE_LOCAL_WRAPPER === 'true') {
105
- return new LocalWrapperProvider(fileSystemReader);
106
- }
107
102
  if (process.env.FORGE_WRAPPER_PATH) {
108
103
  return new LocalWrapperProvider(fileSystemReader, process.env.FORGE_WRAPPER_PATH);
109
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/bundler",
3
- "version": "4.17.6-next.4",
3
+ "version": "4.18.0-experimental-9fa730f",
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.9.0",
22
+ "@forge/api": "3.9.1-experimental-9fa730f",
23
23
  "@forge/babel-plugin-transform-ui": "1.1.18",
24
- "@forge/cli-shared": "5.4.0-next.4",
25
- "@forge/lint": "5.3.2-next.4",
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",