@forge/bundler 4.12.2-next.2 → 4.12.2-next.21

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,196 @@
1
1
  # @forge/bundler
2
2
 
3
+ ## 4.12.2-next.21
4
+
5
+ ### Patch Changes
6
+
7
+ - de5d2023: Allow packaging extra files in Forge apps
8
+ - Updated dependencies [de5d2023]
9
+ - @forge/cli-shared@3.20.0-next.17
10
+ - @forge/lint@3.6.8-next.18
11
+
12
+ ## 4.12.2-next.20
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [f11f7384]
17
+ - @forge/cli-shared@3.20.0-next.16
18
+ - @forge/lint@3.6.8-next.17
19
+
20
+ ## 4.12.2-next.19
21
+
22
+ ### Patch Changes
23
+
24
+ - 40a9888f: Bumping dependencies via Renovate:
25
+
26
+ - punycode
27
+
28
+ - 9df43f61: Bumping dependencies via Renovate:
29
+
30
+ - readable-stream
31
+ - @types/readable-stream
32
+
33
+ ## 4.12.2-next.18
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [28fcd26b]
38
+ - @forge/cli-shared@3.20.0-next.15
39
+ - @forge/lint@3.6.8-next.16
40
+
41
+ ## 4.12.2-next.17
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies [77496359]
46
+ - @forge/cli-shared@3.20.0-next.14
47
+ - @forge/lint@3.6.8-next.15
48
+
49
+ ## 4.12.2-next.16
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [370a5262]
54
+ - @forge/cli-shared@3.19.1-next.13
55
+ - @forge/lint@3.6.8-next.14
56
+
57
+ ## 4.12.2-next.15
58
+
59
+ ### Patch Changes
60
+
61
+ - @forge/api@2.19.2-next.3
62
+ - @forge/lint@3.6.8-next.13
63
+ - @forge/cli-shared@3.19.1-next.12
64
+ - @forge/node-runtime@0.3.0-next.6
65
+
66
+ ## 4.12.2-next.14
67
+
68
+ ### Patch Changes
69
+
70
+ - 6b832057: Bumping dependencies via Renovate:
71
+
72
+ - memfs
73
+
74
+ ## 4.12.2-next.13
75
+
76
+ ### Patch Changes
77
+
78
+ - @forge/cli-shared@3.19.1-next.11
79
+ - @forge/lint@3.6.8-next.12
80
+
81
+ ## 4.12.2-next.12
82
+
83
+ ### Patch Changes
84
+
85
+ - Updated dependencies [ab7c204]
86
+ - @forge/cli-shared@3.19.1-next.10
87
+ - @forge/lint@3.6.8-next.11
88
+ - @forge/node-runtime@0.3.0-next.5
89
+
90
+ ## 4.12.2-next.11
91
+
92
+ ### Patch Changes
93
+
94
+ - aec22e5: Bumping dependencies via Renovate:
95
+
96
+ - @atlassian/xen-test-util
97
+
98
+ - Updated dependencies [aec22e5]
99
+ - @forge/cli-shared@3.19.1-next.9
100
+ - @forge/lint@3.6.8-next.10
101
+
102
+ ## 4.12.2-next.10
103
+
104
+ ### Patch Changes
105
+
106
+ - Updated dependencies [fc1756d]
107
+ - @forge/cli-shared@3.19.1-next.8
108
+ - @forge/lint@3.6.8-next.9
109
+
110
+ ## 4.12.2-next.9
111
+
112
+ ### Patch Changes
113
+
114
+ - Updated dependencies [0fbf747]
115
+ - @forge/cli-shared@3.19.1-next.7
116
+ - @forge/lint@3.6.8-next.8
117
+ - @forge/api@2.19.2-next.2
118
+ - @forge/node-runtime@0.3.0-next.4
119
+
120
+ ## 4.12.2-next.8
121
+
122
+ ### Patch Changes
123
+
124
+ - a7a66cf: Bumping dependencies via Renovate:
125
+
126
+ - @types/webpack-bundle-analyzer
127
+
128
+ - 7ce468b: Bumping dependencies via Renovate:
129
+
130
+ - @babel/core
131
+ - @babel/plugin-transform-optional-chaining
132
+ - @babel/preset-typescript
133
+ - @babel/traverse
134
+ - @babel/types
135
+
136
+ - Updated dependencies [37d6fdb]
137
+ - Updated dependencies [52646bd]
138
+ - Updated dependencies [d86c7bb]
139
+ - Updated dependencies [7ce468b]
140
+ - @forge/cli-shared@3.19.1-next.6
141
+ - @forge/babel-plugin-transform-ui@1.1.9-next.0
142
+ - @forge/node-runtime@0.3.0-next.3
143
+ - @forge/lint@3.6.8-next.7
144
+
145
+ ## 4.12.2-next.7
146
+
147
+ ### Patch Changes
148
+
149
+ - Updated dependencies [e534bed5]
150
+ - @forge/cli-shared@3.19.1-next.5
151
+ - @forge/lint@3.6.8-next.6
152
+
153
+ ## 4.12.2-next.6
154
+
155
+ ### Patch Changes
156
+
157
+ - 9d50860c: Bumping dependencies via Renovate:
158
+
159
+ - @types/node
160
+
161
+ - Updated dependencies [9d50860c]
162
+ - @forge/api@2.19.2-next.1
163
+ - @forge/cli-shared@3.19.1-next.4
164
+ - @forge/node-runtime@0.3.0-next.2
165
+ - @forge/lint@3.6.8-next.5
166
+
167
+ ## 4.12.2-next.5
168
+
169
+ ### Patch Changes
170
+
171
+ - Updated dependencies [e23c7014]
172
+ - @forge/cli-shared@3.19.1-next.3
173
+ - @forge/lint@3.6.8-next.4
174
+
175
+ ## 4.12.2-next.4
176
+
177
+ ### Patch Changes
178
+
179
+ - Updated dependencies [d192a8f8]
180
+ - @forge/cli-shared@3.19.1-next.2
181
+ - @forge/lint@3.6.8-next.3
182
+
183
+ ## 4.12.2-next.3
184
+
185
+ ### Patch Changes
186
+
187
+ - Updated dependencies [3d3495d2]
188
+ - Updated dependencies [ed2cbc8c]
189
+ - @forge/cli-shared@3.19.1-next.1
190
+ - @forge/api@2.19.2-next.0
191
+ - @forge/lint@3.6.8-next.2
192
+ - @forge/node-runtime@0.3.0-next.1
193
+
3
194
  ## 4.12.2-next.2
4
195
 
5
196
  ### Patch Changes
@@ -28,6 +28,6 @@ export declare class NetworkWrapperProvider implements WrapperProvider {
28
28
  }
29
29
  export declare const getWrapperProvider: ({ fileSystemReader }: {
30
30
  fileSystemReader: FileSystemReader;
31
- }) => Promise<LocalWrapperProvider | NetworkWrapperProvider>;
31
+ }) => LocalWrapperProvider | NetworkWrapperProvider;
32
32
  export declare const getNodeRuntimeBuildConfig: (wrapperProvider: WrapperProvider) => (entrypoints: FunctionsEntryPoint[], config: ConfigBuilder) => CommonWebpackConfig;
33
33
  //# sourceMappingURL=node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/config/node.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EAGpB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAuB,MAAM,mBAAmB,CAAC;AAGhG,eAAO,MAAM,wBAAwB,iBAAiB,CAAC;AACvD,eAAO,MAAM,0BAA0B,YAAY,CAAC;AAIpD,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,MAAM,WAAW,eAAe;IAC9B,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC1C;AAED,qBAAa,oBAAqB,YAAW,eAAe;IAC9C,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB;IACzD,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC;CAO/C;AAED,qBAAa,sBAAuB,YAAW,eAAe;IAEhD,OAAO,CAAC,QAAQ,CAAC,MAAM;IADnC,OAAO,CAAC,OAAO,CAAqB;gBACP,MAAM,EAAE,MAAM;YAE7B,uBAAuB;IAS/B,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC;CAmC/C;AAED,eAAO,MAAM,kBAAkB;sBAAoD,gBAAgB;4DAMlG,CAAC;AAEF,eAAO,MAAM,yBAAyB,oBAClB,eAAe,mBACnB,mBAAmB,EAAE,UAAU,aAAa,KAAG,mBA6C5D,CAAC"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/config/node.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EAGpB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAuB,MAAM,mBAAmB,CAAC;AAGhG,eAAO,MAAM,wBAAwB,iBAAiB,CAAC;AACvD,eAAO,MAAM,0BAA0B,YAAY,CAAC;AAIpD,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,MAAM,WAAW,eAAe;IAC9B,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC1C;AAED,qBAAa,oBAAqB,YAAW,eAAe;IAC9C,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB;IACzD,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC;CAO/C;AAED,qBAAa,sBAAuB,YAAW,eAAe;IAEhD,OAAO,CAAC,QAAQ,CAAC,MAAM;IADnC,OAAO,CAAC,OAAO,CAAqB;gBACP,MAAM,EAAE,MAAM;YAE7B,uBAAuB;IAS/B,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC;CAmC/C;AAED,eAAO,MAAM,kBAAkB;sBAA8C,gBAAgB;mDAM5F,CAAC;AAEF,eAAO,MAAM,yBAAyB,oBAClB,eAAe,mBACnB,mBAAmB,EAAE,UAAU,aAAa,KAAG,mBA6C5D,CAAC"}
@@ -80,7 +80,7 @@ class NetworkWrapperProvider {
80
80
  }
81
81
  }
82
82
  exports.NetworkWrapperProvider = NetworkWrapperProvider;
83
- const getWrapperProvider = async ({ fileSystemReader }) => {
83
+ const getWrapperProvider = ({ fileSystemReader }) => {
84
84
  if (process.env.FORGE_USE_LOCAL_WRAPPER === 'true') {
85
85
  return new LocalWrapperProvider(fileSystemReader);
86
86
  }
package/out/index.d.ts CHANGED
@@ -2,6 +2,6 @@ export { Bundler, InDiskBundler, Watcher, WatcherMonitor, BundlerOutput } from '
2
2
  export { getSandboxBundler, getNodeBundler, nativeUiBundle, watch, getCompiler, getInMemoryBundle, handleWebpackCompilationResult, runLinter } from './webpack';
3
3
  export { EntryPoint, FunctionsEntryPoint, getEntryPoints } from './config/common';
4
4
  export { getNativeUiBuildConfig } from './config/nativeui';
5
- export { getNodeRuntimeBuildConfig, getWrapperProvider } from './config/node';
5
+ export { getNodeRuntimeBuildConfig, getWrapperProvider, LocalWrapperProvider } from './config/node';
6
6
  export { getSandboxedRuntimeBuildConfig } from './config/sandbox';
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACzF,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,KAAK,EACL,WAAW,EACX,iBAAiB,EACjB,8BAA8B,EAC9B,SAAS,EACV,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACzF,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,KAAK,EACL,WAAW,EACX,iBAAiB,EACjB,8BAA8B,EAC9B,SAAS,EACV,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC"}
package/out/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getSandboxedRuntimeBuildConfig = exports.getWrapperProvider = exports.getNodeRuntimeBuildConfig = exports.getNativeUiBuildConfig = exports.getEntryPoints = exports.runLinter = exports.handleWebpackCompilationResult = exports.getInMemoryBundle = exports.getCompiler = exports.watch = exports.nativeUiBundle = exports.getNodeBundler = exports.getSandboxBundler = void 0;
3
+ exports.getSandboxedRuntimeBuildConfig = exports.LocalWrapperProvider = exports.getWrapperProvider = exports.getNodeRuntimeBuildConfig = exports.getNativeUiBuildConfig = exports.getEntryPoints = exports.runLinter = exports.handleWebpackCompilationResult = exports.getInMemoryBundle = exports.getCompiler = exports.watch = exports.nativeUiBundle = exports.getNodeBundler = exports.getSandboxBundler = void 0;
4
4
  var webpack_1 = require("./webpack");
5
5
  Object.defineProperty(exports, "getSandboxBundler", { enumerable: true, get: function () { return webpack_1.getSandboxBundler; } });
6
6
  Object.defineProperty(exports, "getNodeBundler", { enumerable: true, get: function () { return webpack_1.getNodeBundler; } });
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "getNativeUiBuildConfig", { enumerable: true, get
17
17
  var node_1 = require("./config/node");
18
18
  Object.defineProperty(exports, "getNodeRuntimeBuildConfig", { enumerable: true, get: function () { return node_1.getNodeRuntimeBuildConfig; } });
19
19
  Object.defineProperty(exports, "getWrapperProvider", { enumerable: true, get: function () { return node_1.getWrapperProvider; } });
20
+ Object.defineProperty(exports, "LocalWrapperProvider", { enumerable: true, get: function () { return node_1.LocalWrapperProvider; } });
20
21
  var sandbox_1 = require("./config/sandbox");
21
22
  Object.defineProperty(exports, "getSandboxedRuntimeBuildConfig", { enumerable: true, get: function () { return sandbox_1.getSandboxedRuntimeBuildConfig; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/bundler",
3
- "version": "4.12.2-next.2",
3
+ "version": "4.12.2-next.21",
4
4
  "description": "Default bundler for Forge apps",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Atlassian",
@@ -12,18 +12,18 @@
12
12
  "clean": "rm -rf ./out && rm -f tsconfig.tsbuildinfo"
13
13
  },
14
14
  "dependencies": {
15
- "@babel/core": "^7.22.20",
15
+ "@babel/core": "^7.23.0",
16
16
  "@babel/plugin-transform-class-properties": "^7.22.5",
17
17
  "@babel/plugin-transform-class-static-block": "^7.22.11",
18
18
  "@babel/plugin-transform-numeric-separator": "^7.22.11",
19
- "@babel/plugin-transform-optional-chaining": "^7.22.15",
19
+ "@babel/plugin-transform-optional-chaining": "^7.23.0",
20
20
  "@babel/plugin-transform-react-jsx": "^7.22.15",
21
- "@babel/preset-typescript": "^7.22.15",
22
- "@forge/api": "2.19.1",
23
- "@forge/babel-plugin-transform-ui": "1.1.8",
24
- "@forge/cli-shared": "3.19.1-next.0",
25
- "@forge/lint": "3.6.8-next.1",
26
- "@forge/node-runtime": "0.3.0-next.0",
21
+ "@babel/preset-typescript": "^7.23.0",
22
+ "@forge/api": "2.19.2-next.3",
23
+ "@forge/babel-plugin-transform-ui": "1.1.9-next.0",
24
+ "@forge/cli-shared": "3.20.0-next.17",
25
+ "@forge/lint": "3.6.8-next.18",
26
+ "@forge/node-runtime": "0.3.0-next.6",
27
27
  "@forge/util": "1.3.1",
28
28
  "assert": "^2.1.0",
29
29
  "babel-loader": "^8.3.0",
@@ -36,15 +36,15 @@
36
36
  "events": "^3.3.0",
37
37
  "html-webpack-plugin": "^5.5.3",
38
38
  "inherits": "^2.0.4",
39
- "memfs": "^3.5.3",
39
+ "memfs": "^4.5.0",
40
40
  "nock": "13.3.3",
41
41
  "node-fetch": "2.7.0",
42
42
  "os-browserify": "^0.3.0",
43
43
  "path-browserify": "^1.0.1",
44
44
  "process": "^0.11.10",
45
- "punycode": "^1.4.1",
45
+ "punycode": "^2.3.0",
46
46
  "querystring-browser": "^1.0.4",
47
- "readable-stream": "^3.6.2",
47
+ "readable-stream": "^4.4.2",
48
48
  "string_decoder": "^1.3.0",
49
49
  "text-encoder-lite": "^2.0.0",
50
50
  "timers-browserify": "^2.0.12",
@@ -58,13 +58,13 @@
58
58
  "whatwg-url": "^7.1.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@atlassian/xen-test-util": "^3.1.0",
62
- "@forge/runtime": "5.1.0",
61
+ "@atlassian/xen-test-util": "^3.1.1",
62
+ "@forge/runtime": "5.1.1-next.3",
63
63
  "@types/jest": "^29.5.5",
64
- "@types/node": "14.18.61",
64
+ "@types/node": "14.18.63",
65
65
  "@types/react": "^17.0.65",
66
- "@types/readable-stream": "^2.3.15",
67
- "@types/webpack-bundle-analyzer": "^4.6.0",
66
+ "@types/readable-stream": "^4.0.3",
67
+ "@types/webpack-bundle-analyzer": "^4.6.1",
68
68
  "@typescript-eslint/eslint-plugin": "^5.62.0",
69
69
  "@typescript-eslint/parser": "^5.62.0",
70
70
  "eslint": "^8.50.0",