@forge/bundler 4.23.2-next.1 → 4.23.2-next.10-experimental-76b1041

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,121 @@
1
1
  # @forge/bundler
2
2
 
3
+ ## 4.23.2-next.10-experimental-76b1041
4
+
5
+ ### Major Changes
6
+
7
+ - 95349f5: Remove @forge/ui references
8
+
9
+ ### Patch Changes
10
+
11
+ - 3af315d: Use .cjs extension for the single wrapper
12
+ - 1f8d16f: Update node dev types
13
+ - Updated dependencies [95349f5]
14
+ - Updated dependencies [35165ba]
15
+ - Updated dependencies [a23892e]
16
+ - Updated dependencies [27f557d]
17
+ - Updated dependencies [fe7e7e9]
18
+ - Updated dependencies [908388a]
19
+ - Updated dependencies [b011fe9]
20
+ - Updated dependencies [01be5cc]
21
+ - Updated dependencies [3b2ffa9]
22
+ - Updated dependencies [3af315d]
23
+ - Updated dependencies [7c02425]
24
+ - Updated dependencies [39b0e6c]
25
+ - Updated dependencies [3b2ffa9]
26
+ - Updated dependencies [1f8d16f]
27
+ - Updated dependencies [30d2f61]
28
+ - Updated dependencies [8f741c6]
29
+ - Updated dependencies [b25d06e]
30
+ - @forge/lint@5.8.1-next.10-experimental-76b1041
31
+ - @forge/manifest@9.4.0-next.5-experimental-76b1041
32
+ - @forge/cli-shared@7.0.0-next.9-experimental-76b1041
33
+ - @forge/api@5.3.0-next.0-experimental-76b1041
34
+
35
+ ## 4.23.2-next.10
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [39b0e6c]
40
+ - @forge/manifest@9.4.0-next.5
41
+ - @forge/cli-shared@7.0.0-next.9
42
+ - @forge/lint@5.8.1-next.10
43
+
44
+ ## 4.23.2-next.9
45
+
46
+ ### Patch Changes
47
+
48
+ - Updated dependencies [8f741c6]
49
+ - @forge/manifest@9.4.0-next.4
50
+ - @forge/cli-shared@7.0.0-next.8
51
+ - @forge/lint@5.8.1-next.9
52
+
53
+ ## 4.23.2-next.8
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [01be5cc]
58
+ - @forge/manifest@9.4.0-next.3
59
+ - @forge/cli-shared@7.0.0-next.7
60
+ - @forge/lint@5.8.1-next.8
61
+
62
+ ## 4.23.2-next.7
63
+
64
+ ### Patch Changes
65
+
66
+ - Updated dependencies [b25d06e]
67
+ - @forge/manifest@9.4.0-next.2
68
+ - @forge/cli-shared@7.0.0-next.6
69
+ - @forge/lint@5.8.1-next.7
70
+
71
+ ## 4.23.2-next.6
72
+
73
+ ### Patch Changes
74
+
75
+ - Updated dependencies [27f557d]
76
+ - @forge/cli-shared@7.0.0-next.5
77
+ - @forge/lint@5.8.1-next.6
78
+
79
+ ## 4.23.2-next.5
80
+
81
+ ### Patch Changes
82
+
83
+ - 3af315d: Use .cjs extension for the single wrapper
84
+ - Updated dependencies [3af315d]
85
+ - @forge/cli-shared@7.0.0-next.4
86
+ - @forge/lint@5.8.1-next.5
87
+
88
+ ## 4.23.2-next.4
89
+
90
+ ### Patch Changes
91
+
92
+ - Updated dependencies [fe7e7e9]
93
+ - @forge/manifest@9.4.0-next.1
94
+ - @forge/lint@5.8.1-next.4
95
+ - @forge/cli-shared@7.0.0-next.3
96
+
97
+ ## 4.23.2-next.3
98
+
99
+ ### Patch Changes
100
+
101
+ - Updated dependencies [30d2f61]
102
+ - @forge/cli-shared@7.0.0-next.2
103
+ - @forge/lint@5.8.1-next.3
104
+
105
+ ## 4.23.2-next.2
106
+
107
+ ### Patch Changes
108
+
109
+ - Updated dependencies [35165ba]
110
+ - Updated dependencies [908388a]
111
+ - Updated dependencies [3b2ffa9]
112
+ - Updated dependencies [7c02425]
113
+ - Updated dependencies [3b2ffa9]
114
+ - @forge/manifest@9.4.0-next.0
115
+ - @forge/api@5.3.0-next.0
116
+ - @forge/cli-shared@7.0.0-next.1
117
+ - @forge/lint@5.8.1-next.2
118
+
3
119
  ## 4.23.2-next.1
4
120
 
5
121
  ###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sB,SAAU,WAAW,KAAG,mBA2F1D,CAAC"}
@@ -88,24 +88,7 @@ const getCommonWebpackConfig = (args) => {
88
88
  {
89
89
  loader: 'babel-loader',
90
90
  options: {
91
- presets: [
92
- [
93
- (0, exports.resolveModulePath)('@babel/preset-typescript'),
94
- {
95
- isTSX: true,
96
- jsxPragma: 'ForgeUI',
97
- allExtensions: true
98
- }
99
- ]
100
- ],
101
91
  plugins: [
102
- [
103
- (0, exports.resolveModulePath)('@babel/plugin-transform-react-jsx'),
104
- {
105
- pragma: 'ForgeUI.createElement'
106
- }
107
- ],
108
- (0, exports.resolveModulePath)('@forge/babel-plugin-transform-ui'),
109
92
  (0, exports.resolveModulePath)('@babel/plugin-transform-numeric-separator'),
110
93
  (0, exports.resolveModulePath)('@babel/plugin-transform-class-static-block'),
111
94
  (0, exports.resolveModulePath)('@babel/plugin-transform-class-properties'),
package/out/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { getOutputDir, getEntryPoints } from './common';
2
2
  export { runLinter } from './lint';
3
3
  export { NativeUIBundler, NativeUIBundleResult } from './nativeui';
4
- export { SandboxBundler, getNodeBundler } from './runtime';
4
+ export { SandboxBundler, getNodeBundler, NODE_RUNTIME_CODE_FILE } from './runtime';
5
5
  export { Bundler, BundlerError, BundlerOutput, BundlerWatch, EntryPoint, WatcherMonitor } from './types';
6
6
  export { getCompiler, handleWebpackCompilationResult } from './webpack';
7
7
  export { getNativeUiBuildConfig } from './config/nativeui';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzG,OAAO,EAAE,WAAW,EAAE,8BAA8B,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzG,OAAO,EAAE,WAAW,EAAE,8BAA8B,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC"}
package/out/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocalWrapperProvider = exports.getWrapperProvider = exports.getNativeUiBuildConfig = exports.handleWebpackCompilationResult = exports.getCompiler = exports.BundlerError = exports.getNodeBundler = exports.SandboxBundler = exports.NativeUIBundler = exports.runLinter = exports.getEntryPoints = exports.getOutputDir = void 0;
3
+ exports.LocalWrapperProvider = exports.getWrapperProvider = exports.getNativeUiBuildConfig = exports.handleWebpackCompilationResult = exports.getCompiler = exports.BundlerError = exports.NODE_RUNTIME_CODE_FILE = exports.getNodeBundler = exports.SandboxBundler = exports.NativeUIBundler = exports.runLinter = exports.getEntryPoints = exports.getOutputDir = void 0;
4
4
  var common_1 = require("./common");
5
5
  Object.defineProperty(exports, "getOutputDir", { enumerable: true, get: function () { return common_1.getOutputDir; } });
6
6
  Object.defineProperty(exports, "getEntryPoints", { enumerable: true, get: function () { return common_1.getEntryPoints; } });
@@ -11,6 +11,7 @@ Object.defineProperty(exports, "NativeUIBundler", { enumerable: true, get: funct
11
11
  var runtime_1 = require("./runtime");
12
12
  Object.defineProperty(exports, "SandboxBundler", { enumerable: true, get: function () { return runtime_1.SandboxBundler; } });
13
13
  Object.defineProperty(exports, "getNodeBundler", { enumerable: true, get: function () { return runtime_1.getNodeBundler; } });
14
+ Object.defineProperty(exports, "NODE_RUNTIME_CODE_FILE", { enumerable: true, get: function () { return runtime_1.NODE_RUNTIME_CODE_FILE; } });
14
15
  var types_1 = require("./types");
15
16
  Object.defineProperty(exports, "BundlerError", { enumerable: true, get: function () { return types_1.BundlerError; } });
16
17
  var webpack_1 = require("./webpack");
package/out/runtime.d.ts CHANGED
@@ -6,6 +6,7 @@ export declare class SandboxBundler extends WebpackBundler {
6
6
  constructor(logger: BundleLogger);
7
7
  getConfig(args: BundlerArgs): Promise<ConfigWithOutput>;
8
8
  }
9
+ export declare const NODE_RUNTIME_CODE_FILE = "__forge__.cjs";
9
10
  export declare function userCodePath(entryKey: string): string;
10
11
  export declare function getNodeBundler(logger: BundleLogger, wrapperProvider: WrapperProvider, configReader: ConfigReader, statsigReader: StatsigReader): Bundler;
11
12
  //# sourceMappingURL=runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,EAGZ,aAAa,EAEd,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EACL,YAAY,EACZ,OAAO,EACP,WAAW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  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getNodeBundler = exports.userCodePath = exports.SandboxBundler = void 0;
3
+ exports.getNodeBundler = exports.userCodePath = exports.NODE_RUNTIME_CODE_FILE = exports.SandboxBundler = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const path_1 = tslib_1.__importDefault(require("path"));
6
6
  const promises_1 = tslib_1.__importDefault(require("fs/promises"));
@@ -21,7 +21,7 @@ class SandboxBundler extends webpack_2.WebpackBundler {
21
21
  }
22
22
  }
23
23
  exports.SandboxBundler = SandboxBundler;
24
- const NODE_RUNTIME_CODE_FILE = '__forge__.js';
24
+ exports.NODE_RUNTIME_CODE_FILE = '__forge__.cjs';
25
25
  const NODE_RUNTIME_BACKUP_WRAPPER_FILE = '__forge_wrapper__.cjs';
26
26
  const NODE_RUNTIME_USE_LOCAL_WRAPPER_FILE = '__forge_use_local_wrapper.txt';
27
27
  const NODE_RUNTIME_VERSION_FILE = 'runtime.json';
@@ -42,7 +42,7 @@ async function emitWrapperFiles(provider, entrypoints, emit, useSingleWrapper) {
42
42
  entrypointScript = wrapper;
43
43
  }
44
44
  if (useSingleWrapper) {
45
- await emit(NODE_RUNTIME_CODE_FILE, entrypointScript.script);
45
+ await emit(exports.NODE_RUNTIME_CODE_FILE, entrypointScript.script);
46
46
  }
47
47
  else {
48
48
  for (const entrypoint of entrypoints) {
@@ -103,7 +103,7 @@ class Request extends readable_stream_1.Writable {
103
103
  }
104
104
  else {
105
105
  const reqOpts = {};
106
- if (options.headers) {
106
+ if (options.headers && typeof options.headers === 'object' && !Array.isArray(options.headers)) {
107
107
  reqOpts.headers = {};
108
108
  for (const header in options.headers) {
109
109
  const headerValue = options.headers[header];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/bundler",
3
- "version": "4.23.2-next.1",
3
+ "version": "4.23.2-next.10-experimental-76b1041",
4
4
  "description": "Default bundler for Forge apps",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Atlassian",
@@ -18,13 +18,11 @@
18
18
  "@babel/plugin-transform-numeric-separator": "^7.23.4",
19
19
  "@babel/plugin-transform-optional-chaining": "^7.23.4",
20
20
  "@babel/plugin-transform-react-jsx": "^7.23.4",
21
- "@babel/preset-typescript": "^7.23.3",
22
- "@forge/api": "5.2.1",
23
- "@forge/babel-plugin-transform-ui": "1.1.22",
24
- "@forge/cli-shared": "6.11.1-next.0",
21
+ "@forge/api": "5.3.0-next.0-experimental-76b1041",
22
+ "@forge/cli-shared": "7.0.0-next.9-experimental-76b1041",
25
23
  "@forge/i18n": "0.0.6",
26
- "@forge/lint": "5.8.1-next.1",
27
- "@forge/manifest": "9.3.0",
24
+ "@forge/lint": "5.8.1-next.10-experimental-76b1041",
25
+ "@forge/manifest": "9.4.0-next.5-experimental-76b1041",
28
26
  "@forge/util": "1.4.9",
29
27
  "assert": "^2.1.0",
30
28
  "babel-loader": "^8.3.0",
@@ -63,11 +61,11 @@
63
61
  },
64
62
  "devDependencies": {
65
63
  "@atlassian/xen-test-util": "^4.2.0",
66
- "@forge/runtime": "5.10.8",
64
+ "@forge/runtime": "5.10.8-experimental-76b1041",
67
65
  "@types/cross-spawn": "^6.0.6",
68
66
  "@types/fs-extra": "^11.0.4",
69
67
  "@types/jest": "^29.5.12",
70
- "@types/node": "14.18.63",
68
+ "@types/node": "22.2.0",
71
69
  "@types/react": "^18.2.64",
72
70
  "@types/readable-stream": "^4.0.10",
73
71
  "@types/webpack-bundle-analyzer": "^4.7.0",
@@ -81,7 +79,7 @@
81
79
  "prettier": "3.2.5"
82
80
  },
83
81
  "engines": {
84
- "node": ">=12.13.1"
82
+ "node": ">=18.20.7"
85
83
  },
86
84
  "publishConfig": {
87
85
  "registry": "https://packages.atlassian.com/api/npm/npm-public/"