@atlaspack/packager-html 2.14.5-canary.34 → 2.14.5-canary.341

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,407 @@
1
1
  # @atlaspack/packager-html
2
2
 
3
+ ## 2.15.29
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/utils@3.2.8
9
+ - @atlaspack/types@2.15.37
10
+ - @atlaspack/plugin@2.14.47
11
+
12
+ ## 2.15.28
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [[`02cc8b3`](https://github.com/atlassian-labs/atlaspack/commit/02cc8b32c06ca6b51806b33f6f707ca06e55e957)]:
17
+ - @atlaspack/feature-flags@2.27.5
18
+ - @atlaspack/utils@3.2.7
19
+ - @atlaspack/plugin@2.14.46
20
+ - @atlaspack/types@2.15.36
21
+
22
+ ## 2.15.27
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [[`793e78c`](https://github.com/atlassian-labs/atlaspack/commit/793e78c68eed25032e686f70cd77ea3601409b35)]:
27
+ - @atlaspack/feature-flags@2.27.4
28
+ - @atlaspack/utils@3.2.6
29
+ - @atlaspack/plugin@2.14.45
30
+ - @atlaspack/types@2.15.35
31
+
32
+ ## 2.15.26
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies []:
37
+ - @atlaspack/utils@3.2.5
38
+ - @atlaspack/plugin@2.14.44
39
+ - @atlaspack/types@2.15.34
40
+
41
+ ## 2.15.25
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies []:
46
+ - @atlaspack/plugin@2.14.43
47
+ - @atlaspack/types@2.15.33
48
+ - @atlaspack/utils@3.2.4
49
+
50
+ ## 2.15.24
51
+
52
+ ### Patch Changes
53
+
54
+ - Updated dependencies [[`cbb66a5`](https://github.com/atlassian-labs/atlaspack/commit/cbb66a554f7ad679fd4dfc9e2bf2d5abb859f846)]:
55
+ - @atlaspack/feature-flags@2.27.3
56
+ - @atlaspack/utils@3.2.3
57
+ - @atlaspack/plugin@2.14.42
58
+ - @atlaspack/types@2.15.32
59
+
60
+ ## 2.15.23
61
+
62
+ ### Patch Changes
63
+
64
+ - Updated dependencies [[`91738fd`](https://github.com/atlassian-labs/atlaspack/commit/91738fd77cb6b3b7acc93e799327ec283d27f7c0)]:
65
+ - @atlaspack/feature-flags@2.27.2
66
+ - @atlaspack/utils@3.2.2
67
+ - @atlaspack/plugin@2.14.41
68
+ - @atlaspack/types@2.15.31
69
+
70
+ ## 2.15.22
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [[`2f3af93`](https://github.com/atlassian-labs/atlaspack/commit/2f3af9374bcc082e6f4835f6f5a2b98e32ea45b4)]:
75
+ - @atlaspack/feature-flags@2.27.1
76
+ - @atlaspack/utils@3.2.1
77
+ - @atlaspack/plugin@2.14.40
78
+ - @atlaspack/types@2.15.30
79
+
80
+ ## 2.15.21
81
+
82
+ ### Patch Changes
83
+
84
+ - Updated dependencies [[`8eb84ee`](https://github.com/atlassian-labs/atlaspack/commit/8eb84ee61a42bfe87c58079b610802b07a6a13e4), [`73168c2`](https://github.com/atlassian-labs/atlaspack/commit/73168c275a5d9abff9907bcf536b340bca1ed5f0), [`617a318`](https://github.com/atlassian-labs/atlaspack/commit/617a318ddc9419b38360257353fec50b9051ee13)]:
85
+ - @atlaspack/feature-flags@2.27.0
86
+ - @atlaspack/utils@3.2.0
87
+ - @atlaspack/plugin@2.14.39
88
+ - @atlaspack/types@2.15.29
89
+
90
+ ## 2.15.20
91
+
92
+ ### Patch Changes
93
+
94
+ - Updated dependencies [[`ec3abe4`](https://github.com/atlassian-labs/atlaspack/commit/ec3abe4dffc98560a850fd2f71fb566577e6c99c), [`c7fe3f7`](https://github.com/atlassian-labs/atlaspack/commit/c7fe3f76f247e9e20299e205e2df0a16c418eaf2), [`7d7a55d`](https://github.com/atlassian-labs/atlaspack/commit/7d7a55dd6395ec391a2e4c33b3dec0d1ea477d4c)]:
95
+ - @atlaspack/feature-flags@2.26.2
96
+ - @atlaspack/utils@3.1.2
97
+ - @atlaspack/plugin@2.14.38
98
+ - @atlaspack/types@2.15.28
99
+
100
+ ## 2.15.19
101
+
102
+ ### Patch Changes
103
+
104
+ - Updated dependencies [[`373ee2d`](https://github.com/atlassian-labs/atlaspack/commit/373ee2d3b5cc315df1e90e647619f915892e2b87)]:
105
+ - @atlaspack/feature-flags@2.26.1
106
+ - @atlaspack/utils@3.1.1
107
+ - @atlaspack/plugin@2.14.37
108
+ - @atlaspack/types@2.15.27
109
+
110
+ ## 2.15.18
111
+
112
+ ### Patch Changes
113
+
114
+ - Updated dependencies [[`58527ee`](https://github.com/atlassian-labs/atlaspack/commit/58527eec15c1aebaaadbeb63586f3082c16beae3), [`cfb39a0`](https://github.com/atlassian-labs/atlaspack/commit/cfb39a0d729eb620cf2ca1611750a2bf7a080d08), [`d0c7bea`](https://github.com/atlassian-labs/atlaspack/commit/d0c7bea04458255b4c5d4299600e734b5f919fe1), [`9cd9521`](https://github.com/atlassian-labs/atlaspack/commit/9cd9521978f783046e2ae4ce78f2de7aeb07d073), [`5776be2`](https://github.com/atlassian-labs/atlaspack/commit/5776be21f70a3f2b9471ba33da3ba1a883f21f1a)]:
115
+ - @atlaspack/feature-flags@2.26.0
116
+ - @atlaspack/utils@3.1.0
117
+ - @atlaspack/plugin@2.14.36
118
+ - @atlaspack/types@2.15.26
119
+
120
+ ## 2.15.17
121
+
122
+ ### Patch Changes
123
+
124
+ - Updated dependencies [[`79a7e22`](https://github.com/atlassian-labs/atlaspack/commit/79a7e22ef119891a2f4180a9d3cc66b38dd52092), [`3da8e69`](https://github.com/atlassian-labs/atlaspack/commit/3da8e690605472d81c531366b65fa9844f8ca337), [`c372f3f`](https://github.com/atlassian-labs/atlaspack/commit/c372f3fd6fce8200d5cf47f41bc7895c6cbb5558), [`17dfea9`](https://github.com/atlassian-labs/atlaspack/commit/17dfea9e9f3169807808520df9c09ebf70dc8b10), [`f1070ec`](https://github.com/atlassian-labs/atlaspack/commit/f1070ec48e99b4ec111a03179c5ab5b74163fab1)]:
125
+ - @atlaspack/feature-flags@2.25.5
126
+ - @atlaspack/utils@3.0.3
127
+ - @atlaspack/plugin@2.14.35
128
+ - @atlaspack/types@2.15.25
129
+
130
+ ## 2.15.16
131
+
132
+ ### Patch Changes
133
+
134
+ - Updated dependencies [[`662d3c6`](https://github.com/atlassian-labs/atlaspack/commit/662d3c627888b16bf27df15cfac5a9094509e93d)]:
135
+ - @atlaspack/feature-flags@2.25.4
136
+ - @atlaspack/types@2.15.24
137
+ - @atlaspack/utils@3.0.2
138
+ - @atlaspack/plugin@2.14.34
139
+
140
+ ## 2.15.15
141
+
142
+ ### Patch Changes
143
+
144
+ - Updated dependencies [[`236e546`](https://github.com/atlassian-labs/atlaspack/commit/236e5465863dca6044a7191e05260a5b924c342e), [`f07351a`](https://github.com/atlassian-labs/atlaspack/commit/f07351a2398b6a8e5155a2daad77e69b7dcb2b4b)]:
145
+ - @atlaspack/utils@3.0.1
146
+ - @atlaspack/feature-flags@2.25.3
147
+ - @atlaspack/types@2.15.23
148
+ - @atlaspack/plugin@2.14.33
149
+
150
+ ## 2.15.14
151
+
152
+ ### Patch Changes
153
+
154
+ - Updated dependencies [[`0207171`](https://github.com/atlassian-labs/atlaspack/commit/0207171e59e985c51e105aec2e0a99de174374bd), [`10ee3fa`](https://github.com/atlassian-labs/atlaspack/commit/10ee3fa5b75a92acde8973673d9b3c5b6f3958e5), [`1180103`](https://github.com/atlassian-labs/atlaspack/commit/118010351ed444f8178988afb3f77807154dd933), [`2bc93b1`](https://github.com/atlassian-labs/atlaspack/commit/2bc93b17cea07fd7cbb68acec84d8471345a22b4)]:
155
+ - @atlaspack/feature-flags@2.25.2
156
+ - @atlaspack/utils@3.0.0
157
+ - @atlaspack/plugin@2.14.32
158
+ - @atlaspack/types@2.15.22
159
+
160
+ ## 2.15.13
161
+
162
+ ### Patch Changes
163
+
164
+ - [#785](https://github.com/atlassian-labs/atlaspack/pull/785) [`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922) Thanks [@matt-koko](https://github.com/matt-koko)! - We need to re-publish every package in Atlaspack with the corrected types field.
165
+
166
+ - Updated dependencies [[`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922)]:
167
+ - @atlaspack/feature-flags@2.25.1
168
+ - @atlaspack/plugin@2.14.31
169
+ - @atlaspack/types@2.15.21
170
+ - @atlaspack/utils@2.19.3
171
+
172
+ ## 2.15.12
173
+
174
+ ### Patch Changes
175
+
176
+ - Updated dependencies [[`7a52bab`](https://github.com/atlassian-labs/atlaspack/commit/7a52bab6281e8edbfa66af248eb6f872c6b4b7bd), [`038e87a`](https://github.com/atlassian-labs/atlaspack/commit/038e87a7858d39556d59d3a2d17db534d45f62c6), [`f6532d7`](https://github.com/atlassian-labs/atlaspack/commit/f6532d7a4f7f007bd4e5e36af04dd466f0b9f572), [`602f8ed`](https://github.com/atlassian-labs/atlaspack/commit/602f8ed9d8381301df8b2cc82c1d5cf6f2f94fec)]:
177
+ - @atlaspack/feature-flags@2.25.0
178
+ - @atlaspack/utils@2.19.2
179
+ - @atlaspack/plugin@2.14.30
180
+ - @atlaspack/types@2.15.20
181
+
182
+ ## 2.15.11
183
+
184
+ ### Patch Changes
185
+
186
+ - Updated dependencies [[`830261d`](https://github.com/atlassian-labs/atlaspack/commit/830261dcf4a40293090b61cab52fd75d5683c73f)]:
187
+ - @atlaspack/feature-flags@2.24.1
188
+ - @atlaspack/utils@2.19.1
189
+ - @atlaspack/plugin@2.14.29
190
+ - @atlaspack/types@2.15.19
191
+
192
+ ## 2.15.10
193
+
194
+ ### Patch Changes
195
+
196
+ - [#760](https://github.com/atlassian-labs/atlaspack/pull/760) [`f930003`](https://github.com/atlassian-labs/atlaspack/commit/f930003364fdc31e5487520ebe256f1a9389f579) Thanks [@marcins](https://github.com/marcins)! - Fix TypeScript errors in various packages
197
+
198
+ - [#760](https://github.com/atlassian-labs/atlaspack/pull/760) [`f930003`](https://github.com/atlassian-labs/atlaspack/commit/f930003364fdc31e5487520ebe256f1a9389f579) Thanks [@marcins](https://github.com/marcins)! - Fix typescript errors
199
+
200
+ - Updated dependencies [[`f0349a6`](https://github.com/atlassian-labs/atlaspack/commit/f0349a6b9b04755088f121095ca6301a2ada3767), [`a5081c3`](https://github.com/atlassian-labs/atlaspack/commit/a5081c3f9207d28716ee4edd3841de1830ea4b80), [`f930003`](https://github.com/atlassian-labs/atlaspack/commit/f930003364fdc31e5487520ebe256f1a9389f579), [`f930003`](https://github.com/atlassian-labs/atlaspack/commit/f930003364fdc31e5487520ebe256f1a9389f579), [`8843980`](https://github.com/atlassian-labs/atlaspack/commit/88439807be20025fd3433380204ff1205079729e)]:
201
+ - @atlaspack/feature-flags@2.24.0
202
+ - @atlaspack/utils@2.19.0
203
+ - @atlaspack/plugin@2.14.28
204
+ - @atlaspack/types@2.15.18
205
+
206
+ ## 2.15.9
207
+
208
+ ### Patch Changes
209
+
210
+ - Updated dependencies [[`3cfb7cf`](https://github.com/atlassian-labs/atlaspack/commit/3cfb7cfd90b78a5c48ce717e779ff789769825a3)]:
211
+ - @atlaspack/feature-flags@2.23.2
212
+ - @atlaspack/utils@2.18.4
213
+ - @atlaspack/plugin@2.14.27
214
+ - @atlaspack/types@2.15.17
215
+
216
+ ## 2.15.8
217
+
218
+ ### Patch Changes
219
+
220
+ - [#742](https://github.com/atlassian-labs/atlaspack/pull/742) [`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd) Thanks [@yamadapc](https://github.com/yamadapc)! - Internal changes and bug fixes to environmentDeduplication flag
221
+
222
+ - Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd), [`889c65c`](https://github.com/atlassian-labs/atlaspack/commit/889c65cd25b811045e26a117e7404f694dde77a2)]:
223
+ - @atlaspack/feature-flags@2.23.1
224
+ - @atlaspack/plugin@2.14.26
225
+ - @atlaspack/types@2.15.16
226
+ - @atlaspack/utils@2.18.3
227
+
228
+ ## 2.15.7
229
+
230
+ ### Patch Changes
231
+
232
+ - Updated dependencies [[`f6b3f22`](https://github.com/atlassian-labs/atlaspack/commit/f6b3f2276c7e417580b49c4879563aab51f156b1)]:
233
+ - @atlaspack/feature-flags@2.23.0
234
+ - @atlaspack/utils@2.18.2
235
+ - @atlaspack/plugin@2.14.25
236
+ - @atlaspack/types@2.15.15
237
+
238
+ ## 2.15.6
239
+
240
+ ### Patch Changes
241
+
242
+ - Updated dependencies [[`73dd7ba`](https://github.com/atlassian-labs/atlaspack/commit/73dd7baab69456ef2f6e4a0cc7dbb04f407eb148)]:
243
+ - @atlaspack/feature-flags@2.22.0
244
+ - @atlaspack/utils@2.18.1
245
+ - @atlaspack/plugin@2.14.24
246
+ - @atlaspack/types@2.15.14
247
+
248
+ ## 2.15.5
249
+
250
+ ### Patch Changes
251
+
252
+ - Updated dependencies [[`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2)]:
253
+ - @atlaspack/feature-flags@2.21.0
254
+ - @atlaspack/utils@2.18.0
255
+ - @atlaspack/types@2.15.13
256
+ - @atlaspack/plugin@2.14.23
257
+
258
+ ## 2.15.4
259
+
260
+ ### Patch Changes
261
+
262
+ - [#720](https://github.com/atlassian-labs/atlaspack/pull/720) [`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94) Thanks [@alshdavid](https://github.com/alshdavid)! - Migrate to TypeScript
263
+
264
+ - Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94), [`12bee0e`](https://github.com/atlassian-labs/atlaspack/commit/12bee0e23f0464d7f6bd3e24fbe0d19c126d587d)]:
265
+ - @atlaspack/feature-flags@2.20.1
266
+ - @atlaspack/plugin@2.14.22
267
+ - @atlaspack/types@2.15.12
268
+ - @atlaspack/utils@2.17.4
269
+
270
+ ## 2.15.3
271
+
272
+ ### Patch Changes
273
+
274
+ - Updated dependencies [[`069de47`](https://github.com/atlassian-labs/atlaspack/commit/069de478e64fb5889f6f2ce023eb510782767fbd)]:
275
+ - @atlaspack/feature-flags@2.20.0
276
+ - @atlaspack/types@2.15.11
277
+ - @atlaspack/utils@2.17.3
278
+ - @atlaspack/plugin@2.14.21
279
+
280
+ ## 2.15.2
281
+
282
+ ### Patch Changes
283
+
284
+ - [#702](https://github.com/atlassian-labs/atlaspack/pull/702) [`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa) Thanks [@alshdavid](https://github.com/alshdavid)! - Fixes to Flow types
285
+
286
+ - Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa), [`1c7865a`](https://github.com/atlassian-labs/atlaspack/commit/1c7865a64451116d94015e248302435839d347c0), [`a0b959f`](https://github.com/atlassian-labs/atlaspack/commit/a0b959fbf61fc3f820ff03c7e8988945fe40a91a)]:
287
+ - @atlaspack/plugin@2.14.20
288
+ - @atlaspack/feature-flags@2.19.2
289
+ - @atlaspack/utils@2.17.2
290
+ - @atlaspack/types@2.15.10
291
+
292
+ ## 2.15.1
293
+
294
+ ### Patch Changes
295
+
296
+ - Updated dependencies [[`13aef17`](https://github.com/atlassian-labs/atlaspack/commit/13aef177eea289a6e40d2113b5ec1ac9be18a33d)]:
297
+ - @atlaspack/feature-flags@2.19.1
298
+ - @atlaspack/utils@2.17.1
299
+ - @atlaspack/types@2.15.9
300
+ - @atlaspack/plugin@2.14.19
301
+
302
+ ## 2.15.0
303
+
304
+ ### Minor Changes
305
+
306
+ - [#640](https://github.com/atlassian-labs/atlaspack/pull/640) [`dbb4072`](https://github.com/atlassian-labs/atlaspack/commit/dbb40721ebeb45990a14ba04e6b44e7f836fb32d) Thanks [@JakeLane](https://github.com/JakeLane)! - Clean up conditional bundling feature flags
307
+
308
+ ### Patch Changes
309
+
310
+ - Updated dependencies [[`dbb4072`](https://github.com/atlassian-labs/atlaspack/commit/dbb40721ebeb45990a14ba04e6b44e7f836fb32d), [`becf977`](https://github.com/atlassian-labs/atlaspack/commit/becf977f625d5ee46dae3d4c679f173bf5f40cc0), [`c4415a4`](https://github.com/atlassian-labs/atlaspack/commit/c4415a455543d984ca28452c2cb87a794d22497c), [`f0f7c71`](https://github.com/atlassian-labs/atlaspack/commit/f0f7c7168a1d3d18c6f30d2daed611275692b7c5), [`de23e0c`](https://github.com/atlassian-labs/atlaspack/commit/de23e0ce49d5504fe3947ac26640a3d951087da3), [`18a57cf`](https://github.com/atlassian-labs/atlaspack/commit/18a57cf8a4789b2de5ad8e2676f317a26cc91417), [`a5ed1b4`](https://github.com/atlassian-labs/atlaspack/commit/a5ed1b414498560f393ff491af4da25b6e8dde56)]:
311
+ - @atlaspack/feature-flags@2.19.0
312
+ - @atlaspack/utils@2.17.0
313
+ - @atlaspack/types@2.15.8
314
+ - @atlaspack/plugin@2.14.18
315
+
316
+ ## 2.14.17
317
+
318
+ ### Patch Changes
319
+
320
+ - Updated dependencies []:
321
+ - @atlaspack/utils@2.16.1
322
+ - @atlaspack/types@2.15.7
323
+ - @atlaspack/plugin@2.14.17
324
+
325
+ ## 2.14.16
326
+
327
+ ### Patch Changes
328
+
329
+ - Updated dependencies [[`e8a60ff`](https://github.com/atlassian-labs/atlaspack/commit/e8a60ffbea41caef265786bbf73349771760081c), [`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
330
+ - @atlaspack/feature-flags@2.18.4
331
+ - @atlaspack/utils@2.16.0
332
+ - @atlaspack/types@2.15.6
333
+ - @atlaspack/plugin@2.14.16
334
+
335
+ ## 2.14.15
336
+
337
+ ### Patch Changes
338
+
339
+ - Updated dependencies [[`5ded263`](https://github.com/atlassian-labs/atlaspack/commit/5ded263c7f11b866e8885b81c73e20dd060b25be)]:
340
+ - @atlaspack/feature-flags@2.18.3
341
+ - @atlaspack/utils@2.15.3
342
+ - @atlaspack/types@2.15.5
343
+ - @atlaspack/plugin@2.14.15
344
+
345
+ ## 2.14.14
346
+
347
+ ### Patch Changes
348
+
349
+ - Updated dependencies [[`644b157`](https://github.com/atlassian-labs/atlaspack/commit/644b157dee72a871acc2d0facf0b87b8eea51956)]:
350
+ - @atlaspack/feature-flags@2.18.2
351
+ - @atlaspack/utils@2.15.2
352
+ - @atlaspack/types@2.15.4
353
+ - @atlaspack/plugin@2.14.14
354
+
355
+ ## 2.14.13
356
+
357
+ ### Patch Changes
358
+
359
+ - Updated dependencies [[`26aa9c5`](https://github.com/atlassian-labs/atlaspack/commit/26aa9c599d2be45ce1438a74c5fa22f39b9b554b), [`0501255`](https://github.com/atlassian-labs/atlaspack/commit/05012550da35b05ce7d356a8cc29311e7f9afdca)]:
360
+ - @atlaspack/feature-flags@2.18.1
361
+ - @atlaspack/types@2.15.3
362
+ - @atlaspack/utils@2.15.1
363
+ - @atlaspack/plugin@2.14.13
364
+
365
+ ## 2.14.12
366
+
367
+ ### Patch Changes
368
+
369
+ - Updated dependencies [[`10fbcfb`](https://github.com/atlassian-labs/atlaspack/commit/10fbcfbfa49c7a83da5d7c40983e36e87f524a75), [`85c52d3`](https://github.com/atlassian-labs/atlaspack/commit/85c52d3f7717b3c84a118d18ab98cfbfd71dcbd2), [`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
370
+ - @atlaspack/feature-flags@2.18.0
371
+ - @atlaspack/utils@2.15.0
372
+ - @atlaspack/types@2.15.2
373
+ - @atlaspack/plugin@2.14.12
374
+
375
+ ## 2.14.11
376
+
377
+ ### Patch Changes
378
+
379
+ - [#623](https://github.com/atlassian-labs/atlaspack/pull/623) [`b1b3693`](https://github.com/atlassian-labs/atlaspack/commit/b1b369317c66f8a431c170df2ebba4fa5b2e38ef) Thanks [@JakeLane](https://github.com/JakeLane)! - Load same conditional bundles as conditional manifest in HTML
380
+
381
+ - Updated dependencies [[`73ea3c4`](https://github.com/atlassian-labs/atlaspack/commit/73ea3c4d85d4401fdd15abcbf988237e890e7ad3), [`b1b3693`](https://github.com/atlassian-labs/atlaspack/commit/b1b369317c66f8a431c170df2ebba4fa5b2e38ef)]:
382
+ - @atlaspack/feature-flags@2.17.0
383
+ - @atlaspack/utils@2.14.11
384
+ - @atlaspack/types@2.15.1
385
+ - @atlaspack/plugin@2.14.11
386
+
387
+ ## 2.14.10
388
+
389
+ ### Patch Changes
390
+
391
+ - Updated dependencies [[`51aba5f`](https://github.com/atlassian-labs/atlaspack/commit/51aba5fc0e49235ee06bbc3c376f48c3e7da5c4b), [`1e32d4e`](https://github.com/atlassian-labs/atlaspack/commit/1e32d4eae6b3af3968e8a0ef97d35b4347fd4196)]:
392
+ - @atlaspack/types@2.15.0
393
+ - @atlaspack/plugin@2.14.10
394
+ - @atlaspack/utils@2.14.10
395
+
396
+ ## 2.14.9
397
+
398
+ ### Patch Changes
399
+
400
+ - Updated dependencies []:
401
+ - @atlaspack/utils@2.14.9
402
+ - @atlaspack/types@2.14.9
403
+ - @atlaspack/plugin@2.14.9
404
+
3
405
  ## 2.14.8
4
406
 
5
407
  ### Patch Changes
@@ -0,0 +1,228 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const assert_1 = __importDefault(require("assert"));
7
+ const stream_1 = require("stream");
8
+ const plugin_1 = require("@atlaspack/plugin");
9
+ const utils_1 = require("@atlaspack/utils");
10
+ const posthtml_1 = __importDefault(require("posthtml"));
11
+ const utils_2 = require("@atlaspack/utils");
12
+ const nullthrows_1 = __importDefault(require("nullthrows"));
13
+ // https://www.w3.org/TR/html5/dom.html#metadata-content-2
14
+ const metadataContent = new Set([
15
+ 'base',
16
+ 'link',
17
+ 'meta',
18
+ 'noscript',
19
+ // 'script', // retain script order (somewhat)
20
+ 'style',
21
+ 'template',
22
+ 'title',
23
+ ]);
24
+ exports.default = new plugin_1.Packager({
25
+ async loadConfig({ config, options }) {
26
+ let posthtmlConfig = await config.getConfig([
27
+ '.posthtmlrc',
28
+ '.posthtmlrc.js',
29
+ '.posthtmlrc.cjs',
30
+ '.posthtmlrc.mjs',
31
+ 'posthtml.config.js',
32
+ 'posthtml.config.cjs',
33
+ 'posthtml.config.mjs',
34
+ ], {
35
+ packageKey: 'posthtml',
36
+ });
37
+ let conf = await config.getConfigFrom(options.projectRoot + '/index', [], {
38
+ packageKey: '@atlaspack/packager-html',
39
+ });
40
+ return {
41
+ render: posthtmlConfig?.contents?.render,
42
+ evaluateRootConditionalBundles: Boolean(conf?.contents?.evaluateRootConditionalBundles),
43
+ };
44
+ },
45
+ async package({ bundle, bundleGraph, getInlineBundleContents, config }) {
46
+ let assets = [];
47
+ bundle.traverseAssets((asset) => {
48
+ assets.push(asset);
49
+ });
50
+ assert_1.default.equal(assets.length, 1, 'HTML bundles must only contain one asset');
51
+ let asset = assets[0];
52
+ let code = await asset.getCode();
53
+ // Add bundles in the same bundle group that are not inline. For example, if two inline
54
+ // bundles refer to the same library that is extracted into a shared bundle.
55
+ let referencedBundlesRecursive = bundleGraph.getReferencedBundles(bundle);
56
+ let referencedBundles = [
57
+ ...(0, utils_1.setSymmetricDifference)(new Set(referencedBundlesRecursive), new Set(bundleGraph.getReferencedBundles(bundle, { recursive: false }))),
58
+ ];
59
+ let conditionalBundles = config.evaluateRootConditionalBundles
60
+ ? (0, utils_1.setDifference)(getReferencedConditionalScripts(bundleGraph, referencedBundlesRecursive), new Set(referencedBundles))
61
+ : new Set();
62
+ let renderConfig = config?.render;
63
+ let { html } = await (0, posthtml_1.default)([
64
+ (tree) => insertBundleReferences([...conditionalBundles, ...referencedBundles], tree, conditionalBundles),
65
+ (tree) => replaceInlineAssetContent(bundleGraph, getInlineBundleContents, tree),
66
+ ]).process(code, {
67
+ ...renderConfig,
68
+ xmlMode: bundle.type === 'xhtml',
69
+ closingSingleTag: bundle.type === 'xhtml' ? 'slash' : undefined,
70
+ });
71
+ let { contents, map } = (0, utils_2.replaceURLReferences)({
72
+ bundle,
73
+ bundleGraph,
74
+ contents: html,
75
+ relative: false,
76
+ getReplacement: (contents) => contents.replace(/"/g, '"'),
77
+ });
78
+ return (0, utils_2.replaceInlineReferences)({
79
+ bundle,
80
+ bundleGraph,
81
+ contents,
82
+ getInlineBundleContents,
83
+ getInlineReplacement: (dep, inlineType, contents) => ({
84
+ from: dep.id,
85
+ to: contents.replace(/"/g, '"').trim(),
86
+ }),
87
+ map,
88
+ });
89
+ },
90
+ });
91
+ async function getAssetContent(bundleGraph, getInlineBundleContents, assetId) {
92
+ let inlineBundle;
93
+ bundleGraph.traverseBundles((bundle, context, { stop }) => {
94
+ let entryAssets = bundle.getEntryAssets();
95
+ if (entryAssets.some((a) => a.uniqueKey === assetId)) {
96
+ inlineBundle = bundle;
97
+ stop();
98
+ }
99
+ });
100
+ if (inlineBundle) {
101
+ const bundleResult = await getInlineBundleContents(inlineBundle, bundleGraph);
102
+ return { bundle: inlineBundle, contents: bundleResult.contents };
103
+ }
104
+ return null;
105
+ }
106
+ async function replaceInlineAssetContent(bundleGraph, getInlineBundleContents, tree) {
107
+ const inlineNodes = [];
108
+ tree.walk((node) => {
109
+ if (node.attrs && node.attrs['data-parcel-key']) {
110
+ inlineNodes.push(node);
111
+ }
112
+ return node;
113
+ });
114
+ for (let node of inlineNodes) {
115
+ let newContent = await getAssetContent(bundleGraph, getInlineBundleContents, node.attrs['data-parcel-key']);
116
+ if (newContent != null) {
117
+ let { contents, bundle } = newContent;
118
+ node.content = (contents instanceof stream_1.Readable ? await (0, utils_2.bufferStream)(contents) : contents).toString();
119
+ if (node.tag === 'script' &&
120
+ (0, nullthrows_1.default)(bundle).env.outputFormat === 'esmodule') {
121
+ node.attrs.type = 'module';
122
+ }
123
+ // Escape closing script tags and HTML comments in JS content.
124
+ // https://www.w3.org/TR/html52/semantics-scripting.html#restrictions-for-contents-of-script-elements
125
+ // Avoid replacing </script with <\/script as it would break the following valid JS: 0</script/ (i.e. regexp literal).
126
+ // Instead, escape the s character.
127
+ if (node.tag === 'script') {
128
+ node.content = node.content
129
+ .replace(/<!--/g, '<\\!--')
130
+ .replace(/<\/(script)/gi, '</\\$1');
131
+ }
132
+ // Escape closing style tags in CSS content.
133
+ if (node.tag === 'style') {
134
+ node.content = node.content.replace(/<\/(style)/gi, '<\\/$1');
135
+ }
136
+ // remove attr from output
137
+ delete node.attrs['data-parcel-key'];
138
+ }
139
+ }
140
+ return tree;
141
+ }
142
+ function insertBundleReferences(siblingBundles, tree, conditionalBundles) {
143
+ const bundles = [];
144
+ for (let bundle of siblingBundles) {
145
+ if (bundle.type === 'css') {
146
+ bundles.push({
147
+ tag: 'link',
148
+ attrs: {
149
+ rel: 'stylesheet',
150
+ href: (0, utils_2.urlJoin)(bundle.target.publicUrl, bundle.name),
151
+ },
152
+ });
153
+ }
154
+ else if (bundle.type === 'js') {
155
+ let nomodule = bundle.env.outputFormat !== 'esmodule' &&
156
+ bundle.env.sourceType === 'module' &&
157
+ bundle.env.shouldScopeHoist;
158
+ bundles.push({
159
+ tag: 'script',
160
+ attrs: {
161
+ type: bundle.env.outputFormat === 'esmodule' ? 'module' : undefined,
162
+ nomodule: nomodule ? '' : undefined,
163
+ defer: nomodule ? '' : undefined,
164
+ 'data-conditional': conditionalBundles.has(bundle) ? true : undefined,
165
+ src: (0, utils_2.urlJoin)(bundle.target.publicUrl, bundle.name),
166
+ },
167
+ });
168
+ }
169
+ }
170
+ addBundlesToTree(bundles, tree);
171
+ }
172
+ function addBundlesToTree(bundles, tree) {
173
+ const main = find(tree, 'head') || find(tree, 'html');
174
+ // @ts-expect-error TS2339
175
+ const content = main ? main.content || (main.content = []) : tree;
176
+ const index = findBundleInsertIndex(content);
177
+ content.splice(index, 0, ...bundles);
178
+ }
179
+ function find(tree, tag) {
180
+ let res;
181
+ // @ts-expect-error TS7006
182
+ tree.match({ tag }, (node) => {
183
+ res = node;
184
+ return node;
185
+ });
186
+ return res;
187
+ }
188
+ function findBundleInsertIndex(content) {
189
+ // HTML document order (https://html.spec.whatwg.org/multipage/syntax.html#writing)
190
+ // - Any number of comments and ASCII whitespace.
191
+ // - A DOCTYPE.
192
+ // - Any number of comments and ASCII whitespace.
193
+ // - The document element, in the form of an html element.
194
+ // - Any number of comments and ASCII whitespace.
195
+ //
196
+ // -> Insert before first non-metadata (or script) element; if none was found, after the doctype
197
+ let doctypeIndex;
198
+ for (let index = 0; index < content.length; index++) {
199
+ const node = content[index];
200
+ if (node && node.tag && !metadataContent.has(node.tag)) {
201
+ return index;
202
+ }
203
+ if (typeof node === 'string' &&
204
+ node.toLowerCase().startsWith('<!doctype')) {
205
+ doctypeIndex = index;
206
+ }
207
+ }
208
+ return doctypeIndex ? doctypeIndex + 1 : 0;
209
+ }
210
+ function getReferencedConditionalScripts(bundleGraph, referencedBundles) {
211
+ const conditionalBundleMapping = bundleGraph.getConditionalBundleMapping();
212
+ const bundles = [];
213
+ for (const bundle of referencedBundles) {
214
+ const conditions = conditionalBundleMapping.get(bundle.id);
215
+ if (conditions) {
216
+ for (const [, cond] of conditions) {
217
+ // Reverse so dependent bundles are loaded first
218
+ const dependentBundles = [
219
+ ...cond.ifTrueBundles.reverse(),
220
+ ...cond.ifFalseBundles.reverse(),
221
+ ];
222
+ bundles.push(...dependentBundles);
223
+ referencedBundles.push(...dependentBundles);
224
+ }
225
+ }
226
+ }
227
+ return new Set(bundles);
228
+ }
@@ -88,7 +88,7 @@ var _default = exports.default = new (_plugin().Packager)({
88
88
  let referencedBundles = [...(0, _utils().setSymmetricDifference)(new Set(referencedBundlesRecursive), new Set(bundleGraph.getReferencedBundles(bundle, {
89
89
  recursive: false
90
90
  })))];
91
- let conditionalBundles = config.evaluateRootConditionalBundles ? (0, _utils().setDifference)(new Set([...referencedBundlesRecursive.flatMap(referencedBundle => bundleGraph.getReferencedConditionalBundles(referencedBundle))]), new Set(referencedBundles)) : new Set();
91
+ let conditionalBundles = config.evaluateRootConditionalBundles ? (0, _utils().setDifference)(getReferencedConditionalScripts(bundleGraph, referencedBundlesRecursive), new Set(referencedBundles)) : new Set();
92
92
  let renderConfig = config === null || config === void 0 ? void 0 : config.render;
93
93
  let {
94
94
  html
@@ -208,12 +208,14 @@ function insertBundleReferences(siblingBundles, tree, conditionalBundles) {
208
208
  }
209
209
  function addBundlesToTree(bundles, tree) {
210
210
  const main = find(tree, 'head') || find(tree, 'html');
211
+ // @ts-expect-error TS2339
211
212
  const content = main ? main.content || (main.content = []) : tree;
212
213
  const index = findBundleInsertIndex(content);
213
214
  content.splice(index, 0, ...bundles);
214
215
  }
215
216
  function find(tree, tag) {
216
217
  let res;
218
+ // @ts-expect-error TS7006
217
219
  tree.match({
218
220
  tag
219
221
  }, node => {
@@ -243,4 +245,20 @@ function findBundleInsertIndex(content) {
243
245
  }
244
246
  }
245
247
  return doctypeIndex ? doctypeIndex + 1 : 0;
248
+ }
249
+ function getReferencedConditionalScripts(bundleGraph, referencedBundles) {
250
+ const conditionalBundleMapping = bundleGraph.getConditionalBundleMapping();
251
+ const bundles = [];
252
+ for (const bundle of referencedBundles) {
253
+ const conditions = conditionalBundleMapping.get(bundle.id);
254
+ if (conditions) {
255
+ for (const [, cond] of conditions) {
256
+ // Reverse so dependent bundles are loaded first
257
+ const dependentBundles = [...cond.ifTrueBundles.reverse(), ...cond.ifFalseBundles.reverse()];
258
+ bundles.push(...dependentBundles);
259
+ referencedBundles.push(...dependentBundles);
260
+ }
261
+ }
262
+ }
263
+ return new Set(bundles);
246
264
  }
@@ -0,0 +1,3 @@
1
+ import { Packager } from '@atlaspack/plugin';
2
+ declare const _default: Packager<unknown, unknown>;
3
+ export default _default;