@atlaspack/runtime-browser-hmr 2.14.5-canary.48 → 2.14.5-canary.481

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,462 @@
1
1
  # @atlaspack/runtime-browser-hmr
2
2
 
3
+ ## 2.15.20
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1076](https://github.com/atlassian-labs/atlaspack/pull/1076) [`c4a3b39`](https://github.com/atlassian-labs/atlaspack/commit/c4a3b399c70a434625626af3f7e9b666045cdf39) Thanks [@alexzherdev](https://github.com/alexzherdev)! - Alternative HMR versioning behind feature flag
8
+
9
+ - Updated dependencies [[`c4a3b39`](https://github.com/atlassian-labs/atlaspack/commit/c4a3b399c70a434625626af3f7e9b666045cdf39)]:
10
+ - @atlaspack/feature-flags@2.31.3
11
+ - @atlaspack/utils@3.4.5
12
+ - @atlaspack/plugin@2.14.63
13
+
14
+ ## 2.15.19
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies []:
19
+ - @atlaspack/utils@3.4.4
20
+ - @atlaspack/plugin@2.14.62
21
+
22
+ ## 2.15.18
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [[`e898fda`](https://github.com/atlassian-labs/atlaspack/commit/e898fda7511d98e5597d847c4a32c028a8a24d6c)]:
27
+ - @atlaspack/utils@3.4.3
28
+ - @atlaspack/plugin@2.14.61
29
+
30
+ ## 2.15.17
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies []:
35
+ - @atlaspack/utils@3.4.2
36
+ - @atlaspack/plugin@2.14.60
37
+
38
+ ## 2.15.16
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies []:
43
+ - @atlaspack/utils@3.4.1
44
+ - @atlaspack/plugin@2.14.59
45
+
46
+ ## 2.15.15
47
+
48
+ ### Patch Changes
49
+
50
+ - Updated dependencies [[`71981ea`](https://github.com/atlassian-labs/atlaspack/commit/71981eac258f7e6dfb40ec4b202d194f71c64ff1)]:
51
+ - @atlaspack/utils@3.4.0
52
+ - @atlaspack/plugin@2.14.58
53
+
54
+ ## 2.15.14
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies []:
59
+ - @atlaspack/utils@3.3.9
60
+ - @atlaspack/plugin@2.14.57
61
+
62
+ ## 2.15.13
63
+
64
+ ### Patch Changes
65
+
66
+ - Updated dependencies []:
67
+ - @atlaspack/utils@3.3.8
68
+ - @atlaspack/plugin@2.14.56
69
+
70
+ ## 2.15.12
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies []:
75
+ - @atlaspack/utils@3.3.7
76
+ - @atlaspack/plugin@2.14.55
77
+
78
+ ## 2.15.11
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [[`d8e984b`](https://github.com/atlassian-labs/atlaspack/commit/d8e984b7f6d04fa03707fa299bfd8b8bf9f58280)]:
83
+ - @atlaspack/utils@3.3.6
84
+ - @atlaspack/plugin@2.14.54
85
+
86
+ ## 2.15.10
87
+
88
+ ### Patch Changes
89
+
90
+ - Updated dependencies []:
91
+ - @atlaspack/utils@3.3.5
92
+ - @atlaspack/plugin@2.14.53
93
+
94
+ ## 2.15.9
95
+
96
+ ### Patch Changes
97
+
98
+ - Updated dependencies []:
99
+ - @atlaspack/plugin@2.14.52
100
+ - @atlaspack/utils@3.3.4
101
+
102
+ ## 2.15.8
103
+
104
+ ### Patch Changes
105
+
106
+ - Updated dependencies []:
107
+ - @atlaspack/utils@3.3.3
108
+ - @atlaspack/plugin@2.14.51
109
+
110
+ ## 2.15.7
111
+
112
+ ### Patch Changes
113
+
114
+ - Updated dependencies []:
115
+ - @atlaspack/utils@3.3.2
116
+ - @atlaspack/plugin@2.14.50
117
+
118
+ ## 2.15.6
119
+
120
+ ### Patch Changes
121
+
122
+ - Updated dependencies []:
123
+ - @atlaspack/utils@3.3.1
124
+ - @atlaspack/plugin@2.14.49
125
+
126
+ ## 2.15.5
127
+
128
+ ### Patch Changes
129
+
130
+ - Updated dependencies [[`47aa84e`](https://github.com/atlassian-labs/atlaspack/commit/47aa84e44c61066072a5bf3d57678565b9d2c5a3)]:
131
+ - @atlaspack/utils@3.3.0
132
+ - @atlaspack/plugin@2.14.48
133
+
134
+ ## 2.15.4
135
+
136
+ ### Patch Changes
137
+
138
+ - Updated dependencies []:
139
+ - @atlaspack/utils@3.2.8
140
+ - @atlaspack/plugin@2.14.47
141
+
142
+ ## 2.15.3
143
+
144
+ ### Patch Changes
145
+
146
+ - Updated dependencies []:
147
+ - @atlaspack/utils@3.2.7
148
+ - @atlaspack/plugin@2.14.46
149
+
150
+ ## 2.15.2
151
+
152
+ ### Patch Changes
153
+
154
+ - Updated dependencies []:
155
+ - @atlaspack/utils@3.2.6
156
+ - @atlaspack/plugin@2.14.45
157
+
158
+ ## 2.15.1
159
+
160
+ ### Patch Changes
161
+
162
+ - Updated dependencies []:
163
+ - @atlaspack/utils@3.2.5
164
+ - @atlaspack/plugin@2.14.44
165
+
166
+ ## 2.15.0
167
+
168
+ ### Minor Changes
169
+
170
+ - [#925](https://github.com/atlassian-labs/atlaspack/pull/925) [`00fa643`](https://github.com/atlassian-labs/atlaspack/commit/00fa6433202bfd3311479f6314c9ec878a789f2c) Thanks [@benjervis](https://github.com/benjervis)! - Save propagating symbols for runtimes by requiring symbol and dependency data be returned at the time the assets are injected.
171
+
172
+ ### Patch Changes
173
+
174
+ - Updated dependencies []:
175
+ - @atlaspack/plugin@2.14.43
176
+ - @atlaspack/utils@3.2.4
177
+
178
+ ## 2.14.42
179
+
180
+ ### Patch Changes
181
+
182
+ - Updated dependencies []:
183
+ - @atlaspack/utils@3.2.3
184
+ - @atlaspack/plugin@2.14.42
185
+
186
+ ## 2.14.41
187
+
188
+ ### Patch Changes
189
+
190
+ - Updated dependencies []:
191
+ - @atlaspack/utils@3.2.2
192
+ - @atlaspack/plugin@2.14.41
193
+
194
+ ## 2.14.40
195
+
196
+ ### Patch Changes
197
+
198
+ - Updated dependencies []:
199
+ - @atlaspack/utils@3.2.1
200
+ - @atlaspack/plugin@2.14.40
201
+
202
+ ## 2.14.39
203
+
204
+ ### Patch Changes
205
+
206
+ - Updated dependencies [[`73168c2`](https://github.com/atlassian-labs/atlaspack/commit/73168c275a5d9abff9907bcf536b340bca1ed5f0), [`617a318`](https://github.com/atlassian-labs/atlaspack/commit/617a318ddc9419b38360257353fec50b9051ee13)]:
207
+ - @atlaspack/utils@3.2.0
208
+ - @atlaspack/plugin@2.14.39
209
+
210
+ ## 2.14.38
211
+
212
+ ### Patch Changes
213
+
214
+ - Updated dependencies [[`7d7a55d`](https://github.com/atlassian-labs/atlaspack/commit/7d7a55dd6395ec391a2e4c33b3dec0d1ea477d4c)]:
215
+ - @atlaspack/utils@3.1.2
216
+ - @atlaspack/plugin@2.14.38
217
+
218
+ ## 2.14.37
219
+
220
+ ### Patch Changes
221
+
222
+ - Updated dependencies []:
223
+ - @atlaspack/utils@3.1.1
224
+ - @atlaspack/plugin@2.14.37
225
+
226
+ ## 2.14.36
227
+
228
+ ### Patch Changes
229
+
230
+ - Updated dependencies [[`5776be2`](https://github.com/atlassian-labs/atlaspack/commit/5776be21f70a3f2b9471ba33da3ba1a883f21f1a)]:
231
+ - @atlaspack/utils@3.1.0
232
+ - @atlaspack/plugin@2.14.36
233
+
234
+ ## 2.14.35
235
+
236
+ ### Patch Changes
237
+
238
+ - Updated dependencies [[`c372f3f`](https://github.com/atlassian-labs/atlaspack/commit/c372f3fd6fce8200d5cf47f41bc7895c6cbb5558), [`17dfea9`](https://github.com/atlassian-labs/atlaspack/commit/17dfea9e9f3169807808520df9c09ebf70dc8b10)]:
239
+ - @atlaspack/utils@3.0.3
240
+ - @atlaspack/plugin@2.14.35
241
+
242
+ ## 2.14.34
243
+
244
+ ### Patch Changes
245
+
246
+ - Updated dependencies []:
247
+ - @atlaspack/utils@3.0.2
248
+ - @atlaspack/plugin@2.14.34
249
+
250
+ ## 2.14.33
251
+
252
+ ### Patch Changes
253
+
254
+ - Updated dependencies [[`236e546`](https://github.com/atlassian-labs/atlaspack/commit/236e5465863dca6044a7191e05260a5b924c342e)]:
255
+ - @atlaspack/utils@3.0.1
256
+ - @atlaspack/plugin@2.14.33
257
+
258
+ ## 2.14.32
259
+
260
+ ### Patch Changes
261
+
262
+ - Updated dependencies [[`1180103`](https://github.com/atlassian-labs/atlaspack/commit/118010351ed444f8178988afb3f77807154dd933)]:
263
+ - @atlaspack/utils@3.0.0
264
+ - @atlaspack/plugin@2.14.32
265
+
266
+ ## 2.14.31
267
+
268
+ ### Patch Changes
269
+
270
+ - [#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.
271
+
272
+ - Updated dependencies [[`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922)]:
273
+ - @atlaspack/plugin@2.14.31
274
+ - @atlaspack/utils@2.19.3
275
+
276
+ ## 2.14.30
277
+
278
+ ### Patch Changes
279
+
280
+ - Updated dependencies []:
281
+ - @atlaspack/utils@2.19.2
282
+ - @atlaspack/plugin@2.14.30
283
+
284
+ ## 2.14.29
285
+
286
+ ### Patch Changes
287
+
288
+ - Updated dependencies []:
289
+ - @atlaspack/utils@2.19.1
290
+ - @atlaspack/plugin@2.14.29
291
+
292
+ ## 2.14.28
293
+
294
+ ### Patch Changes
295
+
296
+ - Updated dependencies [[`f0349a6`](https://github.com/atlassian-labs/atlaspack/commit/f0349a6b9b04755088f121095ca6301a2ada3767)]:
297
+ - @atlaspack/utils@2.19.0
298
+ - @atlaspack/plugin@2.14.28
299
+
300
+ ## 2.14.27
301
+
302
+ ### Patch Changes
303
+
304
+ - Updated dependencies []:
305
+ - @atlaspack/utils@2.18.4
306
+ - @atlaspack/plugin@2.14.27
307
+
308
+ ## 2.14.26
309
+
310
+ ### Patch Changes
311
+
312
+ - [#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
313
+
314
+ - Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd), [`889c65c`](https://github.com/atlassian-labs/atlaspack/commit/889c65cd25b811045e26a117e7404f694dde77a2)]:
315
+ - @atlaspack/plugin@2.14.26
316
+ - @atlaspack/utils@2.18.3
317
+
318
+ ## 2.14.25
319
+
320
+ ### Patch Changes
321
+
322
+ - Updated dependencies []:
323
+ - @atlaspack/utils@2.18.2
324
+ - @atlaspack/plugin@2.14.25
325
+
326
+ ## 2.14.24
327
+
328
+ ### Patch Changes
329
+
330
+ - Updated dependencies []:
331
+ - @atlaspack/utils@2.18.1
332
+ - @atlaspack/plugin@2.14.24
333
+
334
+ ## 2.14.23
335
+
336
+ ### Patch Changes
337
+
338
+ - Updated dependencies [[`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2)]:
339
+ - @atlaspack/utils@2.18.0
340
+ - @atlaspack/plugin@2.14.23
341
+
342
+ ## 2.14.22
343
+
344
+ ### Patch Changes
345
+
346
+ - [#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
347
+
348
+ - Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94)]:
349
+ - @atlaspack/plugin@2.14.22
350
+ - @atlaspack/utils@2.17.4
351
+
352
+ ## 2.14.21
353
+
354
+ ### Patch Changes
355
+
356
+ - Updated dependencies []:
357
+ - @atlaspack/utils@2.17.3
358
+ - @atlaspack/plugin@2.14.21
359
+
360
+ ## 2.14.20
361
+
362
+ ### Patch Changes
363
+
364
+ - [#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
365
+
366
+ - Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
367
+ - @atlaspack/plugin@2.14.20
368
+ - @atlaspack/utils@2.17.2
369
+
370
+ ## 2.14.19
371
+
372
+ ### Patch Changes
373
+
374
+ - Updated dependencies []:
375
+ - @atlaspack/utils@2.17.1
376
+ - @atlaspack/plugin@2.14.19
377
+
378
+ ## 2.14.18
379
+
380
+ ### Patch Changes
381
+
382
+ - Updated dependencies [[`dbb4072`](https://github.com/atlassian-labs/atlaspack/commit/dbb40721ebeb45990a14ba04e6b44e7f836fb32d), [`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)]:
383
+ - @atlaspack/utils@2.17.0
384
+ - @atlaspack/plugin@2.14.18
385
+
386
+ ## 2.14.17
387
+
388
+ ### Patch Changes
389
+
390
+ - Updated dependencies []:
391
+ - @atlaspack/utils@2.16.1
392
+ - @atlaspack/plugin@2.14.17
393
+
394
+ ## 2.14.16
395
+
396
+ ### Patch Changes
397
+
398
+ - Updated dependencies [[`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
399
+ - @atlaspack/utils@2.16.0
400
+ - @atlaspack/plugin@2.14.16
401
+
402
+ ## 2.14.15
403
+
404
+ ### Patch Changes
405
+
406
+ - Updated dependencies []:
407
+ - @atlaspack/utils@2.15.3
408
+ - @atlaspack/plugin@2.14.15
409
+
410
+ ## 2.14.14
411
+
412
+ ### Patch Changes
413
+
414
+ - Updated dependencies []:
415
+ - @atlaspack/utils@2.15.2
416
+ - @atlaspack/plugin@2.14.14
417
+
418
+ ## 2.14.13
419
+
420
+ ### Patch Changes
421
+
422
+ - [#633](https://github.com/atlassian-labs/atlaspack/pull/633) [`26aa9c5`](https://github.com/atlassian-labs/atlaspack/commit/26aa9c599d2be45ce1438a74c5fa22f39b9b554b) Thanks [@sbhuiyan-atlassian](https://github.com/sbhuiyan-atlassian)! - Ported various HMR changes from Parcel
423
+
424
+ - Updated dependencies []:
425
+ - @atlaspack/utils@2.15.1
426
+ - @atlaspack/plugin@2.14.13
427
+
428
+ ## 2.14.12
429
+
430
+ ### Patch Changes
431
+
432
+ - Updated dependencies [[`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
433
+ - @atlaspack/utils@2.15.0
434
+ - @atlaspack/plugin@2.14.12
435
+
436
+ ## 2.14.11
437
+
438
+ ### Patch Changes
439
+
440
+ - Updated dependencies []:
441
+ - @atlaspack/utils@2.14.11
442
+ - @atlaspack/plugin@2.14.11
443
+
444
+ ## 2.14.10
445
+
446
+ ### Patch Changes
447
+
448
+ - Updated dependencies []:
449
+ - @atlaspack/plugin@2.14.10
450
+ - @atlaspack/utils@2.14.10
451
+
452
+ ## 2.14.9
453
+
454
+ ### Patch Changes
455
+
456
+ - Updated dependencies []:
457
+ - @atlaspack/utils@2.14.9
458
+ - @atlaspack/plugin@2.14.9
459
+
3
460
  ## 2.14.8
4
461
 
5
462
  ### Patch Changes
@@ -0,0 +1,60 @@
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 plugin_1 = require("@atlaspack/plugin");
7
+ const feature_flags_1 = require("@atlaspack/feature-flags");
8
+ const fs_1 = __importDefault(require("fs"));
9
+ const path_1 = __importDefault(require("path"));
10
+ // Without this, the hmr-runtime.js is transpiled with the React Refresh swc transform because it
11
+ // lives in `/app/packages/runtimes/...` and thus the `config` in the JSTransformer is actually the
12
+ // user's package.json, and hmr-runtime.js is transpiled as a JSX asset.
13
+ const FILENAME =
14
+ // @ts-expect-error TS2339
15
+ process.env.ATLASPACK_BUILD_REPL && process.browser
16
+ ? '/' + __filename
17
+ : __filename;
18
+ const HMR_RUNTIME = process.env.ATLASPACK_REGISTER_USE_SRC === 'true'
19
+ ? // This is templated code so it has to be compiled before inlining
20
+ fs_1.default.readFileSync(path_1.default.join(__dirname, '../lib/loaders/hmr-runtime.js'), 'utf8')
21
+ : fs_1.default.readFileSync(path_1.default.join(__dirname, './loaders/hmr-runtime.js'), 'utf8');
22
+ exports.default = new plugin_1.Runtime({
23
+ apply({ bundle, options }) {
24
+ if (bundle.type !== 'js' ||
25
+ !options.hmrOptions ||
26
+ bundle.env.isLibrary ||
27
+ bundle.env.isWorklet() ||
28
+ bundle.env.sourceType === 'script') {
29
+ return;
30
+ }
31
+ const { host, port } = options.hmrOptions;
32
+ return {
33
+ filePath: FILENAME,
34
+ code: `var HMR_HOST = ${JSON.stringify(host != null && host !== '0.0.0.0' ? host : null)};` +
35
+ `var HMR_PORT = ${JSON.stringify(port != null &&
36
+ // Default to the HTTP port in the browser, only override
37
+ // in watch mode or if hmr port != serve port
38
+ (!options.serveOptions || options.serveOptions.port !== port)
39
+ ? port
40
+ : null)};` +
41
+ `var HMR_SECURE = ${JSON.stringify(!!(options.serveOptions && options.serveOptions.https))};` +
42
+ `var HMR_ENV_HASH = "${bundle.env.id}";` +
43
+ `var HMR_USE_SSE = ${JSON.stringify(
44
+ // @ts-expect-error TS2339
45
+ !!(process.env.ATLASPACK_BUILD_REPL && process.browser))};` +
46
+ `var HMR_ENABLE_BUNDLE_VERSION = ${JSON.stringify((0, feature_flags_1.getFeatureFlag)('hmrBundleVersioning'))};` +
47
+ `module.bundle.HMR_BUNDLE_ID = ${JSON.stringify(bundle.id)};` +
48
+ HMR_RUNTIME,
49
+ isEntry: true,
50
+ env: {
51
+ sourceType: 'module',
52
+ },
53
+ // Pre-computed symbols: HMR runtime sets globals and executes, no explicit exports/imports
54
+ symbolData: {
55
+ symbols: new Map(), // No exports, just side effects
56
+ dependencies: [], // No explicit dependencies, uses runtime globals
57
+ },
58
+ };
59
+ },
60
+ });