@forge/bundler 4.20.9-next.9 → 4.20.9
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 +224 -0
- package/out/stubs/http-sandbox-impl.js +11 -8
- package/package.json +13 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,229 @@
|
|
|
1
1
|
# @forge/bundler
|
|
2
2
|
|
|
3
|
+
## 4.20.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fa77f8d: Revert the package registry change for the package
|
|
8
|
+
- 503e60e: Add publish config
|
|
9
|
+
- 2086b3d: Remove node-fetch as a dependency
|
|
10
|
+
- ad557af: "Update sandbox HTTP polyfill to work with new Header type"
|
|
11
|
+
- Updated dependencies [091886c]
|
|
12
|
+
- Updated dependencies [f2c2405]
|
|
13
|
+
- Updated dependencies [fa34240]
|
|
14
|
+
- Updated dependencies [fa77f8d]
|
|
15
|
+
- Updated dependencies [6a41721]
|
|
16
|
+
- Updated dependencies [fa82e2a]
|
|
17
|
+
- Updated dependencies [48d2f56]
|
|
18
|
+
- Updated dependencies [a72008e]
|
|
19
|
+
- Updated dependencies [4655925]
|
|
20
|
+
- Updated dependencies [d1b6fd5]
|
|
21
|
+
- Updated dependencies [dec434a]
|
|
22
|
+
- Updated dependencies [503e60e]
|
|
23
|
+
- Updated dependencies [6b8b6e2]
|
|
24
|
+
- Updated dependencies [71dc617]
|
|
25
|
+
- Updated dependencies [ba58c3a]
|
|
26
|
+
- Updated dependencies [321db2e]
|
|
27
|
+
- Updated dependencies [3302cc2]
|
|
28
|
+
- Updated dependencies [2086b3d]
|
|
29
|
+
- Updated dependencies [55d56f7]
|
|
30
|
+
- Updated dependencies [b3b1250]
|
|
31
|
+
- Updated dependencies [2319dc4]
|
|
32
|
+
- Updated dependencies [dd59f4b]
|
|
33
|
+
- Updated dependencies [abf24fa]
|
|
34
|
+
- Updated dependencies [55df193]
|
|
35
|
+
- Updated dependencies [ddc0256]
|
|
36
|
+
- Updated dependencies [4b050d8]
|
|
37
|
+
- Updated dependencies [f70acc8]
|
|
38
|
+
- Updated dependencies [de16df9]
|
|
39
|
+
- Updated dependencies [83a4975]
|
|
40
|
+
- Updated dependencies [6f0fe42]
|
|
41
|
+
- Updated dependencies [29e8c8b]
|
|
42
|
+
- @forge/cli-shared@6.6.1
|
|
43
|
+
- @forge/lint@5.7.1
|
|
44
|
+
- @forge/babel-plugin-transform-ui@1.1.21
|
|
45
|
+
- @forge/manifest@8.7.0
|
|
46
|
+
- @forge/i18n@0.0.4
|
|
47
|
+
- @forge/util@1.4.8
|
|
48
|
+
- @forge/api@5.1.0
|
|
49
|
+
|
|
50
|
+
## 4.20.9-next.29
|
|
51
|
+
|
|
52
|
+
### Patch Changes
|
|
53
|
+
|
|
54
|
+
- ad557af: "Update sandbox HTTP polyfill to work with new Header type"
|
|
55
|
+
|
|
56
|
+
## 4.20.9-next.28
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- fa77f8d: Revert the package registry change for the package
|
|
61
|
+
- Updated dependencies [fa77f8d]
|
|
62
|
+
- @forge/babel-plugin-transform-ui@1.1.21-next.1
|
|
63
|
+
- @forge/cli-shared@6.6.1-next.23
|
|
64
|
+
- @forge/manifest@8.7.0-next.12
|
|
65
|
+
- @forge/i18n@0.0.4-next.1
|
|
66
|
+
- @forge/lint@5.7.1-next.25
|
|
67
|
+
- @forge/util@1.4.8-next.2
|
|
68
|
+
- @forge/api@5.1.0-next.9
|
|
69
|
+
|
|
70
|
+
## 4.20.9-next.27
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- 503e60e: Add publish config
|
|
75
|
+
- Updated dependencies [503e60e]
|
|
76
|
+
- @forge/babel-plugin-transform-ui@1.1.21-next.0
|
|
77
|
+
- @forge/cli-shared@6.6.1-next.22
|
|
78
|
+
- @forge/manifest@8.7.0-next.11
|
|
79
|
+
- @forge/i18n@0.0.4-next.0
|
|
80
|
+
- @forge/lint@5.7.1-next.24
|
|
81
|
+
- @forge/util@1.4.8-next.1
|
|
82
|
+
- @forge/api@5.1.0-next.8
|
|
83
|
+
|
|
84
|
+
## 4.20.9-next.26
|
|
85
|
+
|
|
86
|
+
### Patch Changes
|
|
87
|
+
|
|
88
|
+
- Updated dependencies [f70acc8]
|
|
89
|
+
- @forge/manifest@8.7.0-next.10
|
|
90
|
+
- @forge/cli-shared@6.6.1-next.21
|
|
91
|
+
- @forge/lint@5.7.1-next.23
|
|
92
|
+
|
|
93
|
+
## 4.20.9-next.25
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- Updated dependencies [4655925]
|
|
98
|
+
- Updated dependencies [83a4975]
|
|
99
|
+
- @forge/cli-shared@6.6.1-next.20
|
|
100
|
+
- @forge/lint@5.7.1-next.22
|
|
101
|
+
|
|
102
|
+
## 4.20.9-next.24
|
|
103
|
+
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- Updated dependencies [abf24fa]
|
|
107
|
+
- @forge/cli-shared@6.6.1-next.19
|
|
108
|
+
- @forge/lint@5.7.1-next.21
|
|
109
|
+
|
|
110
|
+
## 4.20.9-next.23
|
|
111
|
+
|
|
112
|
+
### Patch Changes
|
|
113
|
+
|
|
114
|
+
- Updated dependencies [dd59f4b]
|
|
115
|
+
- @forge/cli-shared@6.6.1-next.18
|
|
116
|
+
- @forge/lint@5.7.1-next.20
|
|
117
|
+
|
|
118
|
+
## 4.20.9-next.22
|
|
119
|
+
|
|
120
|
+
### Patch Changes
|
|
121
|
+
|
|
122
|
+
- 2086b3d: Remove node-fetch as a dependency
|
|
123
|
+
- Updated dependencies [2086b3d]
|
|
124
|
+
- @forge/api@5.1.0-next.7
|
|
125
|
+
- @forge/cli-shared@6.6.1-next.17
|
|
126
|
+
- @forge/manifest@8.7.0-next.9
|
|
127
|
+
- @forge/lint@5.7.1-next.19
|
|
128
|
+
|
|
129
|
+
## 4.20.9-next.21
|
|
130
|
+
|
|
131
|
+
### Patch Changes
|
|
132
|
+
|
|
133
|
+
- Updated dependencies [fa34240]
|
|
134
|
+
- @forge/cli-shared@6.6.1-next.16
|
|
135
|
+
- @forge/lint@5.7.1-next.18
|
|
136
|
+
|
|
137
|
+
## 4.20.9-next.20
|
|
138
|
+
|
|
139
|
+
### Patch Changes
|
|
140
|
+
|
|
141
|
+
- Updated dependencies [6f0fe42]
|
|
142
|
+
- @forge/manifest@8.7.0-next.8
|
|
143
|
+
- @forge/cli-shared@6.6.1-next.15
|
|
144
|
+
- @forge/lint@5.7.1-next.17
|
|
145
|
+
|
|
146
|
+
## 4.20.9-next.19
|
|
147
|
+
|
|
148
|
+
### Patch Changes
|
|
149
|
+
|
|
150
|
+
- Updated dependencies [f2c2405]
|
|
151
|
+
- @forge/cli-shared@6.6.1-next.14
|
|
152
|
+
- @forge/lint@5.7.1-next.16
|
|
153
|
+
- @forge/api@5.1.0-next.6
|
|
154
|
+
|
|
155
|
+
## 4.20.9-next.18
|
|
156
|
+
|
|
157
|
+
### Patch Changes
|
|
158
|
+
|
|
159
|
+
- Updated dependencies [6a41721]
|
|
160
|
+
- @forge/manifest@8.7.0-next.7
|
|
161
|
+
- @forge/cli-shared@6.6.1-next.13
|
|
162
|
+
- @forge/lint@5.7.1-next.15
|
|
163
|
+
|
|
164
|
+
## 4.20.9-next.17
|
|
165
|
+
|
|
166
|
+
### Patch Changes
|
|
167
|
+
|
|
168
|
+
- Updated dependencies [321db2e]
|
|
169
|
+
- @forge/cli-shared@6.6.1-next.12
|
|
170
|
+
- @forge/lint@5.7.1-next.14
|
|
171
|
+
|
|
172
|
+
## 4.20.9-next.16
|
|
173
|
+
|
|
174
|
+
### Patch Changes
|
|
175
|
+
|
|
176
|
+
- Updated dependencies [fa82e2a]
|
|
177
|
+
- @forge/api@5.1.0-next.5
|
|
178
|
+
|
|
179
|
+
## 4.20.9-next.15
|
|
180
|
+
|
|
181
|
+
### Patch Changes
|
|
182
|
+
|
|
183
|
+
- @forge/api@5.1.0-next.4
|
|
184
|
+
- @forge/lint@5.7.1-next.13
|
|
185
|
+
|
|
186
|
+
## 4.20.9-next.14
|
|
187
|
+
|
|
188
|
+
### Patch Changes
|
|
189
|
+
|
|
190
|
+
- Updated dependencies [2319dc4]
|
|
191
|
+
- Updated dependencies [ddc0256]
|
|
192
|
+
- @forge/cli-shared@6.6.1-next.11
|
|
193
|
+
- @forge/manifest@8.7.0-next.6
|
|
194
|
+
- @forge/lint@5.7.1-next.12
|
|
195
|
+
|
|
196
|
+
## 4.20.9-next.13
|
|
197
|
+
|
|
198
|
+
### Patch Changes
|
|
199
|
+
|
|
200
|
+
- Updated dependencies [dec434a]
|
|
201
|
+
- @forge/manifest@8.7.0-next.5
|
|
202
|
+
- @forge/cli-shared@6.6.1-next.10
|
|
203
|
+
- @forge/lint@5.7.1-next.11
|
|
204
|
+
|
|
205
|
+
## 4.20.9-next.12
|
|
206
|
+
|
|
207
|
+
### Patch Changes
|
|
208
|
+
|
|
209
|
+
- Updated dependencies [d1b6fd5]
|
|
210
|
+
- @forge/cli-shared@6.6.1-next.9
|
|
211
|
+
- @forge/lint@5.7.1-next.10
|
|
212
|
+
|
|
213
|
+
## 4.20.9-next.11
|
|
214
|
+
|
|
215
|
+
### Patch Changes
|
|
216
|
+
|
|
217
|
+
- @forge/api@5.1.0-next.3
|
|
218
|
+
- @forge/lint@5.7.1-next.9
|
|
219
|
+
|
|
220
|
+
## 4.20.9-next.10
|
|
221
|
+
|
|
222
|
+
### Patch Changes
|
|
223
|
+
|
|
224
|
+
- Updated dependencies [a72008e]
|
|
225
|
+
- @forge/api@5.1.0-next.2
|
|
226
|
+
|
|
3
227
|
## 4.20.9-next.9
|
|
4
228
|
|
|
5
229
|
### Patch Changes
|
|
@@ -155,25 +155,28 @@ class Response extends readable_stream_1.Readable {
|
|
|
155
155
|
this.headers = {};
|
|
156
156
|
this.headersDistinct = {};
|
|
157
157
|
const rawHeaders = response.headers.raw();
|
|
158
|
-
for (const [name,
|
|
158
|
+
for (const [name, value] of Object.entries(rawHeaders)) {
|
|
159
159
|
if (name === 'content-encoding') {
|
|
160
160
|
continue;
|
|
161
161
|
}
|
|
162
|
-
let
|
|
162
|
+
let distinctValues;
|
|
163
|
+
let overrideHeaderValue;
|
|
163
164
|
if (HEADERS_DISCARD_DUPLICATES.has(name)) {
|
|
164
|
-
|
|
165
|
+
const allHeaderValues = value.split(', ');
|
|
166
|
+
overrideHeaderValue = allHeaderValues[0];
|
|
167
|
+
distinctValues = allHeaderValues;
|
|
165
168
|
}
|
|
166
169
|
else if (name === 'set-cookie') {
|
|
167
|
-
|
|
170
|
+
distinctValues = [value];
|
|
168
171
|
}
|
|
169
172
|
else if (name === 'cookie') {
|
|
170
|
-
|
|
173
|
+
distinctValues = value.split('; ');
|
|
171
174
|
}
|
|
172
175
|
else {
|
|
173
|
-
|
|
176
|
+
distinctValues = value.split(', ');
|
|
174
177
|
}
|
|
175
|
-
this.headers[name] = value;
|
|
176
|
-
this.headersDistinct[name] =
|
|
178
|
+
this.headers[name] = overrideHeaderValue ?? value;
|
|
179
|
+
this.headersDistinct[name] = distinctValues;
|
|
177
180
|
}
|
|
178
181
|
this._read = () => { };
|
|
179
182
|
this.push(Buffer.from(content));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bundler",
|
|
3
|
-
"version": "4.20.9
|
|
3
|
+
"version": "4.20.9",
|
|
4
4
|
"description": "Default bundler for Forge apps",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Atlassian",
|
|
@@ -19,13 +19,13 @@
|
|
|
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": "5.0
|
|
23
|
-
"@forge/babel-plugin-transform-ui": "1.1.
|
|
24
|
-
"@forge/cli-shared": "6.6.1
|
|
25
|
-
"@forge/i18n": "0.0.
|
|
26
|
-
"@forge/lint": "5.7.1
|
|
27
|
-
"@forge/manifest": "8.7.0
|
|
28
|
-
"@forge/util": "1.4.8
|
|
22
|
+
"@forge/api": "5.1.0",
|
|
23
|
+
"@forge/babel-plugin-transform-ui": "1.1.21",
|
|
24
|
+
"@forge/cli-shared": "6.6.1",
|
|
25
|
+
"@forge/i18n": "0.0.4",
|
|
26
|
+
"@forge/lint": "5.7.1",
|
|
27
|
+
"@forge/manifest": "8.7.0",
|
|
28
|
+
"@forge/util": "1.4.8",
|
|
29
29
|
"assert": "^2.1.0",
|
|
30
30
|
"babel-loader": "^8.3.0",
|
|
31
31
|
"browserify-zlib": "^0.2.0",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"console-browserify": "^1.2.0",
|
|
36
36
|
"crypto-browserify": "^3.12.0",
|
|
37
37
|
"events": "^3.3.0",
|
|
38
|
+
"headers-utils": "^3.0.2",
|
|
38
39
|
"html-webpack-plugin": "^5.6.0",
|
|
39
40
|
"inherits": "^2.0.4",
|
|
40
41
|
"memfs": "^4.6.0",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"@atlassian/xen-test-util": "^4.2.0",
|
|
63
|
-
"@forge/runtime": "5.10.6
|
|
64
|
+
"@forge/runtime": "5.10.6",
|
|
64
65
|
"@types/jest": "^29.5.12",
|
|
65
66
|
"@types/node": "14.18.63",
|
|
66
67
|
"@types/react": "^18.2.64",
|
|
@@ -76,5 +77,8 @@
|
|
|
76
77
|
},
|
|
77
78
|
"engines": {
|
|
78
79
|
"node": ">=12.13.1"
|
|
80
|
+
},
|
|
81
|
+
"publishConfig": {
|
|
82
|
+
"registry": "https://packages.atlassian.com/api/npm/npm-public/"
|
|
79
83
|
}
|
|
80
84
|
}
|