@atlaspack/packager-html 2.14.5-canary.33 → 2.14.5-canary.330

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