@forge/bundler 4.7.1-next.1 → 4.8.0-next.11
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 +79 -0
- package/out/stubs/wrapper.js +3 -9
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,84 @@
|
|
|
1
1
|
# @forge/bundler
|
|
2
2
|
|
|
3
|
+
## 4.8.0-next.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [f877763a]
|
|
8
|
+
- @forge/api@2.16.0-next.1
|
|
9
|
+
- @forge/runtime@4.4.0-next.1
|
|
10
|
+
|
|
11
|
+
## 4.8.0-next.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [aa9b9754]
|
|
16
|
+
- @forge/lint@3.5.0-next.8
|
|
17
|
+
- @forge/cli-shared@3.12.0-next.7
|
|
18
|
+
|
|
19
|
+
## 4.8.0-next.9
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [d94f614e]
|
|
24
|
+
- @forge/cli-shared@3.12.0-next.6
|
|
25
|
+
- @forge/lint@3.5.0-next.7
|
|
26
|
+
|
|
27
|
+
## 4.8.0-next.8
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [cf0ab7be]
|
|
32
|
+
- @forge/lint@3.5.0-next.6
|
|
33
|
+
|
|
34
|
+
## 4.8.0-next.7
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies [0449769b]
|
|
39
|
+
- @forge/cli-shared@3.12.0-next.5
|
|
40
|
+
- @forge/lint@3.4.1-next.5
|
|
41
|
+
|
|
42
|
+
## 4.8.0-next.6
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- @forge/cli-shared@3.11.3-next.4
|
|
47
|
+
- @forge/lint@3.4.1-next.4
|
|
48
|
+
|
|
49
|
+
## 4.8.0-next.5
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- 5de9fcc2: Count app load time (require) against the app invoke time
|
|
54
|
+
|
|
55
|
+
## 4.8.0-next.4
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- Updated dependencies [5eff9d5f]
|
|
60
|
+
- @forge/cli-shared@3.11.3-next.3
|
|
61
|
+
- @forge/lint@3.4.1-next.3
|
|
62
|
+
|
|
63
|
+
## 4.8.0-next.3
|
|
64
|
+
|
|
65
|
+
### Patch Changes
|
|
66
|
+
|
|
67
|
+
- @forge/cli-shared@3.11.3-next.2
|
|
68
|
+
- @forge/lint@3.4.1-next.2
|
|
69
|
+
|
|
70
|
+
## 4.8.0-next.2
|
|
71
|
+
|
|
72
|
+
### Minor Changes
|
|
73
|
+
|
|
74
|
+
- c8e6b85: Experimental integration
|
|
75
|
+
|
|
76
|
+
### Patch Changes
|
|
77
|
+
|
|
78
|
+
- Updated dependencies [c8e6b85]
|
|
79
|
+
- @forge/api@2.16.0-next.0
|
|
80
|
+
- @forge/runtime@4.4.0-next.0
|
|
81
|
+
|
|
3
82
|
## 4.7.1-next.1
|
|
4
83
|
|
|
5
84
|
### Patch Changes
|
package/out/stubs/wrapper.js
CHANGED
|
@@ -22,14 +22,8 @@ const adapter = (name) => {
|
|
|
22
22
|
const context = (0, runtime_1.setupRequestContext)({ meta: lambdaEvent._meta, handler: lambdaEvent.handler });
|
|
23
23
|
const metricsCollector = new runtime_1.MetricsCollector(new runtime_1.InMemoryMetrics({ runtime: 'nodejs' }));
|
|
24
24
|
const metrics = metricsCollector.metrics();
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
contextAri: lambdaEvent._meta.contextAri,
|
|
28
|
-
appContext: lambdaEvent._meta.appContext,
|
|
29
|
-
allowedEgress: (_a = lambdaEvent._meta.fetchAllowList) !== null && _a !== void 0 ? _a : [],
|
|
30
|
-
lambdaContext: lambdaContext,
|
|
31
|
-
metrics
|
|
32
|
-
};
|
|
25
|
+
const rmsStoreUrl = lambdaEvent._meta.rmsStoreUrl;
|
|
26
|
+
const runtime = Object.assign(Object.assign({ proxy: lambdaEvent._meta.proxy, contextAri: lambdaEvent._meta.contextAri, appContext: lambdaEvent._meta.appContext, allowedEgress: (_a = lambdaEvent._meta.fetchAllowList) !== null && _a !== void 0 ? _a : [], lambdaContext: lambdaContext }, (rmsStoreUrl && { rmsStoreUrl })), { metrics });
|
|
33
27
|
global.__forge_runtime__ = runtime;
|
|
34
28
|
for (const { key, value } of (_b = lambdaEvent.variables) !== null && _b !== void 0 ? _b : []) {
|
|
35
29
|
process.env[key] = value;
|
|
@@ -38,8 +32,8 @@ const adapter = (name) => {
|
|
|
38
32
|
const header = (0, log_events_1.emitHeaderEvent)(lambdaEvent);
|
|
39
33
|
(0, console_1.replaceConsole)(header);
|
|
40
34
|
(0, http_node_1.replaceHttps)();
|
|
41
|
-
const bundled = realRequire(wrappedFilename);
|
|
42
35
|
const timer = metrics.timing('invoke').measure();
|
|
36
|
+
const bundled = realRequire(wrappedFilename);
|
|
43
37
|
let result;
|
|
44
38
|
try {
|
|
45
39
|
result = await bundled[name](event, context);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bundler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0-next.11",
|
|
4
4
|
"description": "Default bundler for Forge apps",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Atlassian",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
|
19
19
|
"@babel/plugin-transform-react-jsx": "^7.16.7",
|
|
20
20
|
"@babel/preset-typescript": "^7.16.7",
|
|
21
|
-
"@forge/api": "2.
|
|
21
|
+
"@forge/api": "2.16.0-next.1",
|
|
22
22
|
"@forge/babel-plugin-transform-ui": "1.1.2",
|
|
23
|
-
"@forge/cli-shared": "3.
|
|
24
|
-
"@forge/lint": "3.
|
|
25
|
-
"@forge/runtime": "4.
|
|
23
|
+
"@forge/cli-shared": "3.12.0-next.7",
|
|
24
|
+
"@forge/lint": "3.5.0-next.8",
|
|
25
|
+
"@forge/runtime": "4.4.0-next.1",
|
|
26
26
|
"@forge/util": "1.2.3",
|
|
27
27
|
"assert": "^1.1.1",
|
|
28
28
|
"babel-loader": "^8.2.3",
|