@atlaspack/runtime-browser-hmr 2.14.5-canary.45 → 2.14.5-canary.451

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