@atlaspack/packager-html 2.14.5-canary.36 → 2.14.5-canary.360

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,417 @@
1
1
  # @atlaspack/packager-html
2
2
 
3
+ ## 2.15.30
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`47aa84e`](https://github.com/atlassian-labs/atlaspack/commit/47aa84e44c61066072a5bf3d57678565b9d2c5a3), [`c31090c`](https://github.com/atlassian-labs/atlaspack/commit/c31090c9025f35d3fa8561b42dca170853a32e6f), [`565bab3`](https://github.com/atlassian-labs/atlaspack/commit/565bab3771cc334659d873cabff4cdfac0860cc7)]:
8
+ - @atlaspack/utils@3.3.0
9
+ - @atlaspack/feature-flags@2.27.6
10
+ - @atlaspack/types@2.15.38
11
+ - @atlaspack/plugin@2.14.48
12
+
13
+ ## 2.15.29
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies []:
18
+ - @atlaspack/utils@3.2.8
19
+ - @atlaspack/types@2.15.37
20
+ - @atlaspack/plugin@2.14.47
21
+
22
+ ## 2.15.28
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [[`02cc8b3`](https://github.com/atlassian-labs/atlaspack/commit/02cc8b32c06ca6b51806b33f6f707ca06e55e957)]:
27
+ - @atlaspack/feature-flags@2.27.5
28
+ - @atlaspack/utils@3.2.7
29
+ - @atlaspack/plugin@2.14.46
30
+ - @atlaspack/types@2.15.36
31
+
32
+ ## 2.15.27
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [[`793e78c`](https://github.com/atlassian-labs/atlaspack/commit/793e78c68eed25032e686f70cd77ea3601409b35)]:
37
+ - @atlaspack/feature-flags@2.27.4
38
+ - @atlaspack/utils@3.2.6
39
+ - @atlaspack/plugin@2.14.45
40
+ - @atlaspack/types@2.15.35
41
+
42
+ ## 2.15.26
43
+
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies []:
47
+ - @atlaspack/utils@3.2.5
48
+ - @atlaspack/plugin@2.14.44
49
+ - @atlaspack/types@2.15.34
50
+
51
+ ## 2.15.25
52
+
53
+ ### Patch Changes
54
+
55
+ - Updated dependencies []:
56
+ - @atlaspack/plugin@2.14.43
57
+ - @atlaspack/types@2.15.33
58
+ - @atlaspack/utils@3.2.4
59
+
60
+ ## 2.15.24
61
+
62
+ ### Patch Changes
63
+
64
+ - Updated dependencies [[`cbb66a5`](https://github.com/atlassian-labs/atlaspack/commit/cbb66a554f7ad679fd4dfc9e2bf2d5abb859f846)]:
65
+ - @atlaspack/feature-flags@2.27.3
66
+ - @atlaspack/utils@3.2.3
67
+ - @atlaspack/plugin@2.14.42
68
+ - @atlaspack/types@2.15.32
69
+
70
+ ## 2.15.23
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [[`91738fd`](https://github.com/atlassian-labs/atlaspack/commit/91738fd77cb6b3b7acc93e799327ec283d27f7c0)]:
75
+ - @atlaspack/feature-flags@2.27.2
76
+ - @atlaspack/utils@3.2.2
77
+ - @atlaspack/plugin@2.14.41
78
+ - @atlaspack/types@2.15.31
79
+
80
+ ## 2.15.22
81
+
82
+ ### Patch Changes
83
+
84
+ - Updated dependencies [[`2f3af93`](https://github.com/atlassian-labs/atlaspack/commit/2f3af9374bcc082e6f4835f6f5a2b98e32ea45b4)]:
85
+ - @atlaspack/feature-flags@2.27.1
86
+ - @atlaspack/utils@3.2.1
87
+ - @atlaspack/plugin@2.14.40
88
+ - @atlaspack/types@2.15.30
89
+
90
+ ## 2.15.21
91
+
92
+ ### Patch Changes
93
+
94
+ - 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)]:
95
+ - @atlaspack/feature-flags@2.27.0
96
+ - @atlaspack/utils@3.2.0
97
+ - @atlaspack/plugin@2.14.39
98
+ - @atlaspack/types@2.15.29
99
+
100
+ ## 2.15.20
101
+
102
+ ### Patch Changes
103
+
104
+ - 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)]:
105
+ - @atlaspack/feature-flags@2.26.2
106
+ - @atlaspack/utils@3.1.2
107
+ - @atlaspack/plugin@2.14.38
108
+ - @atlaspack/types@2.15.28
109
+
110
+ ## 2.15.19
111
+
112
+ ### Patch Changes
113
+
114
+ - Updated dependencies [[`373ee2d`](https://github.com/atlassian-labs/atlaspack/commit/373ee2d3b5cc315df1e90e647619f915892e2b87)]:
115
+ - @atlaspack/feature-flags@2.26.1
116
+ - @atlaspack/utils@3.1.1
117
+ - @atlaspack/plugin@2.14.37
118
+ - @atlaspack/types@2.15.27
119
+
120
+ ## 2.15.18
121
+
122
+ ### Patch Changes
123
+
124
+ - 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)]:
125
+ - @atlaspack/feature-flags@2.26.0
126
+ - @atlaspack/utils@3.1.0
127
+ - @atlaspack/plugin@2.14.36
128
+ - @atlaspack/types@2.15.26
129
+
130
+ ## 2.15.17
131
+
132
+ ### Patch Changes
133
+
134
+ - 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)]:
135
+ - @atlaspack/feature-flags@2.25.5
136
+ - @atlaspack/utils@3.0.3
137
+ - @atlaspack/plugin@2.14.35
138
+ - @atlaspack/types@2.15.25
139
+
140
+ ## 2.15.16
141
+
142
+ ### Patch Changes
143
+
144
+ - Updated dependencies [[`662d3c6`](https://github.com/atlassian-labs/atlaspack/commit/662d3c627888b16bf27df15cfac5a9094509e93d)]:
145
+ - @atlaspack/feature-flags@2.25.4
146
+ - @atlaspack/types@2.15.24
147
+ - @atlaspack/utils@3.0.2
148
+ - @atlaspack/plugin@2.14.34
149
+
150
+ ## 2.15.15
151
+
152
+ ### Patch Changes
153
+
154
+ - Updated dependencies [[`236e546`](https://github.com/atlassian-labs/atlaspack/commit/236e5465863dca6044a7191e05260a5b924c342e), [`f07351a`](https://github.com/atlassian-labs/atlaspack/commit/f07351a2398b6a8e5155a2daad77e69b7dcb2b4b)]:
155
+ - @atlaspack/utils@3.0.1
156
+ - @atlaspack/feature-flags@2.25.3
157
+ - @atlaspack/types@2.15.23
158
+ - @atlaspack/plugin@2.14.33
159
+
160
+ ## 2.15.14
161
+
162
+ ### Patch Changes
163
+
164
+ - 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)]:
165
+ - @atlaspack/feature-flags@2.25.2
166
+ - @atlaspack/utils@3.0.0
167
+ - @atlaspack/plugin@2.14.32
168
+ - @atlaspack/types@2.15.22
169
+
170
+ ## 2.15.13
171
+
172
+ ### Patch Changes
173
+
174
+ - [#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.
175
+
176
+ - Updated dependencies [[`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922)]:
177
+ - @atlaspack/feature-flags@2.25.1
178
+ - @atlaspack/plugin@2.14.31
179
+ - @atlaspack/types@2.15.21
180
+ - @atlaspack/utils@2.19.3
181
+
182
+ ## 2.15.12
183
+
184
+ ### Patch Changes
185
+
186
+ - 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)]:
187
+ - @atlaspack/feature-flags@2.25.0
188
+ - @atlaspack/utils@2.19.2
189
+ - @atlaspack/plugin@2.14.30
190
+ - @atlaspack/types@2.15.20
191
+
192
+ ## 2.15.11
193
+
194
+ ### Patch Changes
195
+
196
+ - Updated dependencies [[`830261d`](https://github.com/atlassian-labs/atlaspack/commit/830261dcf4a40293090b61cab52fd75d5683c73f)]:
197
+ - @atlaspack/feature-flags@2.24.1
198
+ - @atlaspack/utils@2.19.1
199
+ - @atlaspack/plugin@2.14.29
200
+ - @atlaspack/types@2.15.19
201
+
202
+ ## 2.15.10
203
+
204
+ ### Patch Changes
205
+
206
+ - [#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
207
+
208
+ - [#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
209
+
210
+ - 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)]:
211
+ - @atlaspack/feature-flags@2.24.0
212
+ - @atlaspack/utils@2.19.0
213
+ - @atlaspack/plugin@2.14.28
214
+ - @atlaspack/types@2.15.18
215
+
216
+ ## 2.15.9
217
+
218
+ ### Patch Changes
219
+
220
+ - Updated dependencies [[`3cfb7cf`](https://github.com/atlassian-labs/atlaspack/commit/3cfb7cfd90b78a5c48ce717e779ff789769825a3)]:
221
+ - @atlaspack/feature-flags@2.23.2
222
+ - @atlaspack/utils@2.18.4
223
+ - @atlaspack/plugin@2.14.27
224
+ - @atlaspack/types@2.15.17
225
+
226
+ ## 2.15.8
227
+
228
+ ### Patch Changes
229
+
230
+ - [#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
231
+
232
+ - Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd), [`889c65c`](https://github.com/atlassian-labs/atlaspack/commit/889c65cd25b811045e26a117e7404f694dde77a2)]:
233
+ - @atlaspack/feature-flags@2.23.1
234
+ - @atlaspack/plugin@2.14.26
235
+ - @atlaspack/types@2.15.16
236
+ - @atlaspack/utils@2.18.3
237
+
238
+ ## 2.15.7
239
+
240
+ ### Patch Changes
241
+
242
+ - Updated dependencies [[`f6b3f22`](https://github.com/atlassian-labs/atlaspack/commit/f6b3f2276c7e417580b49c4879563aab51f156b1)]:
243
+ - @atlaspack/feature-flags@2.23.0
244
+ - @atlaspack/utils@2.18.2
245
+ - @atlaspack/plugin@2.14.25
246
+ - @atlaspack/types@2.15.15
247
+
248
+ ## 2.15.6
249
+
250
+ ### Patch Changes
251
+
252
+ - Updated dependencies [[`73dd7ba`](https://github.com/atlassian-labs/atlaspack/commit/73dd7baab69456ef2f6e4a0cc7dbb04f407eb148)]:
253
+ - @atlaspack/feature-flags@2.22.0
254
+ - @atlaspack/utils@2.18.1
255
+ - @atlaspack/plugin@2.14.24
256
+ - @atlaspack/types@2.15.14
257
+
258
+ ## 2.15.5
259
+
260
+ ### Patch Changes
261
+
262
+ - Updated dependencies [[`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2)]:
263
+ - @atlaspack/feature-flags@2.21.0
264
+ - @atlaspack/utils@2.18.0
265
+ - @atlaspack/types@2.15.13
266
+ - @atlaspack/plugin@2.14.23
267
+
268
+ ## 2.15.4
269
+
270
+ ### Patch Changes
271
+
272
+ - [#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
273
+
274
+ - Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94), [`12bee0e`](https://github.com/atlassian-labs/atlaspack/commit/12bee0e23f0464d7f6bd3e24fbe0d19c126d587d)]:
275
+ - @atlaspack/feature-flags@2.20.1
276
+ - @atlaspack/plugin@2.14.22
277
+ - @atlaspack/types@2.15.12
278
+ - @atlaspack/utils@2.17.4
279
+
280
+ ## 2.15.3
281
+
282
+ ### Patch Changes
283
+
284
+ - Updated dependencies [[`069de47`](https://github.com/atlassian-labs/atlaspack/commit/069de478e64fb5889f6f2ce023eb510782767fbd)]:
285
+ - @atlaspack/feature-flags@2.20.0
286
+ - @atlaspack/types@2.15.11
287
+ - @atlaspack/utils@2.17.3
288
+ - @atlaspack/plugin@2.14.21
289
+
290
+ ## 2.15.2
291
+
292
+ ### Patch Changes
293
+
294
+ - [#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
295
+
296
+ - 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)]:
297
+ - @atlaspack/plugin@2.14.20
298
+ - @atlaspack/feature-flags@2.19.2
299
+ - @atlaspack/utils@2.17.2
300
+ - @atlaspack/types@2.15.10
301
+
302
+ ## 2.15.1
303
+
304
+ ### Patch Changes
305
+
306
+ - Updated dependencies [[`13aef17`](https://github.com/atlassian-labs/atlaspack/commit/13aef177eea289a6e40d2113b5ec1ac9be18a33d)]:
307
+ - @atlaspack/feature-flags@2.19.1
308
+ - @atlaspack/utils@2.17.1
309
+ - @atlaspack/types@2.15.9
310
+ - @atlaspack/plugin@2.14.19
311
+
312
+ ## 2.15.0
313
+
314
+ ### Minor Changes
315
+
316
+ - [#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
317
+
318
+ ### Patch Changes
319
+
320
+ - 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)]:
321
+ - @atlaspack/feature-flags@2.19.0
322
+ - @atlaspack/utils@2.17.0
323
+ - @atlaspack/types@2.15.8
324
+ - @atlaspack/plugin@2.14.18
325
+
326
+ ## 2.14.17
327
+
328
+ ### Patch Changes
329
+
330
+ - Updated dependencies []:
331
+ - @atlaspack/utils@2.16.1
332
+ - @atlaspack/types@2.15.7
333
+ - @atlaspack/plugin@2.14.17
334
+
335
+ ## 2.14.16
336
+
337
+ ### Patch Changes
338
+
339
+ - Updated dependencies [[`e8a60ff`](https://github.com/atlassian-labs/atlaspack/commit/e8a60ffbea41caef265786bbf73349771760081c), [`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
340
+ - @atlaspack/feature-flags@2.18.4
341
+ - @atlaspack/utils@2.16.0
342
+ - @atlaspack/types@2.15.6
343
+ - @atlaspack/plugin@2.14.16
344
+
345
+ ## 2.14.15
346
+
347
+ ### Patch Changes
348
+
349
+ - Updated dependencies [[`5ded263`](https://github.com/atlassian-labs/atlaspack/commit/5ded263c7f11b866e8885b81c73e20dd060b25be)]:
350
+ - @atlaspack/feature-flags@2.18.3
351
+ - @atlaspack/utils@2.15.3
352
+ - @atlaspack/types@2.15.5
353
+ - @atlaspack/plugin@2.14.15
354
+
355
+ ## 2.14.14
356
+
357
+ ### Patch Changes
358
+
359
+ - Updated dependencies [[`644b157`](https://github.com/atlassian-labs/atlaspack/commit/644b157dee72a871acc2d0facf0b87b8eea51956)]:
360
+ - @atlaspack/feature-flags@2.18.2
361
+ - @atlaspack/utils@2.15.2
362
+ - @atlaspack/types@2.15.4
363
+ - @atlaspack/plugin@2.14.14
364
+
365
+ ## 2.14.13
366
+
367
+ ### Patch Changes
368
+
369
+ - Updated dependencies [[`26aa9c5`](https://github.com/atlassian-labs/atlaspack/commit/26aa9c599d2be45ce1438a74c5fa22f39b9b554b), [`0501255`](https://github.com/atlassian-labs/atlaspack/commit/05012550da35b05ce7d356a8cc29311e7f9afdca)]:
370
+ - @atlaspack/feature-flags@2.18.1
371
+ - @atlaspack/types@2.15.3
372
+ - @atlaspack/utils@2.15.1
373
+ - @atlaspack/plugin@2.14.13
374
+
375
+ ## 2.14.12
376
+
377
+ ### Patch Changes
378
+
379
+ - 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)]:
380
+ - @atlaspack/feature-flags@2.18.0
381
+ - @atlaspack/utils@2.15.0
382
+ - @atlaspack/types@2.15.2
383
+ - @atlaspack/plugin@2.14.12
384
+
385
+ ## 2.14.11
386
+
387
+ ### Patch Changes
388
+
389
+ - [#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
390
+
391
+ - Updated dependencies [[`73ea3c4`](https://github.com/atlassian-labs/atlaspack/commit/73ea3c4d85d4401fdd15abcbf988237e890e7ad3), [`b1b3693`](https://github.com/atlassian-labs/atlaspack/commit/b1b369317c66f8a431c170df2ebba4fa5b2e38ef)]:
392
+ - @atlaspack/feature-flags@2.17.0
393
+ - @atlaspack/utils@2.14.11
394
+ - @atlaspack/types@2.15.1
395
+ - @atlaspack/plugin@2.14.11
396
+
397
+ ## 2.14.10
398
+
399
+ ### Patch Changes
400
+
401
+ - Updated dependencies [[`51aba5f`](https://github.com/atlassian-labs/atlaspack/commit/51aba5fc0e49235ee06bbc3c376f48c3e7da5c4b), [`1e32d4e`](https://github.com/atlassian-labs/atlaspack/commit/1e32d4eae6b3af3968e8a0ef97d35b4347fd4196)]:
402
+ - @atlaspack/types@2.15.0
403
+ - @atlaspack/plugin@2.14.10
404
+ - @atlaspack/utils@2.14.10
405
+
406
+ ## 2.14.9
407
+
408
+ ### Patch Changes
409
+
410
+ - Updated dependencies []:
411
+ - @atlaspack/utils@2.14.9
412
+ - @atlaspack/types@2.14.9
413
+ - @atlaspack/plugin@2.14.9
414
+
3
415
  ## 2.14.8
4
416
 
5
417
  ### 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
+ }