@atlaspack/runtime-browser-hmr 2.14.5-canary.35 → 2.14.5-canary.350

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,331 @@
1
1
  # @atlaspack/runtime-browser-hmr
2
2
 
3
+ ## 2.15.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/utils@3.2.8
9
+ - @atlaspack/plugin@2.14.47
10
+
11
+ ## 2.15.3
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies []:
16
+ - @atlaspack/utils@3.2.7
17
+ - @atlaspack/plugin@2.14.46
18
+
19
+ ## 2.15.2
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies []:
24
+ - @atlaspack/utils@3.2.6
25
+ - @atlaspack/plugin@2.14.45
26
+
27
+ ## 2.15.1
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies []:
32
+ - @atlaspack/utils@3.2.5
33
+ - @atlaspack/plugin@2.14.44
34
+
35
+ ## 2.15.0
36
+
37
+ ### Minor Changes
38
+
39
+ - [#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.
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies []:
44
+ - @atlaspack/plugin@2.14.43
45
+ - @atlaspack/utils@3.2.4
46
+
47
+ ## 2.14.42
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies []:
52
+ - @atlaspack/utils@3.2.3
53
+ - @atlaspack/plugin@2.14.42
54
+
55
+ ## 2.14.41
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies []:
60
+ - @atlaspack/utils@3.2.2
61
+ - @atlaspack/plugin@2.14.41
62
+
63
+ ## 2.14.40
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies []:
68
+ - @atlaspack/utils@3.2.1
69
+ - @atlaspack/plugin@2.14.40
70
+
71
+ ## 2.14.39
72
+
73
+ ### Patch Changes
74
+
75
+ - Updated dependencies [[`73168c2`](https://github.com/atlassian-labs/atlaspack/commit/73168c275a5d9abff9907bcf536b340bca1ed5f0), [`617a318`](https://github.com/atlassian-labs/atlaspack/commit/617a318ddc9419b38360257353fec50b9051ee13)]:
76
+ - @atlaspack/utils@3.2.0
77
+ - @atlaspack/plugin@2.14.39
78
+
79
+ ## 2.14.38
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies [[`7d7a55d`](https://github.com/atlassian-labs/atlaspack/commit/7d7a55dd6395ec391a2e4c33b3dec0d1ea477d4c)]:
84
+ - @atlaspack/utils@3.1.2
85
+ - @atlaspack/plugin@2.14.38
86
+
87
+ ## 2.14.37
88
+
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies []:
92
+ - @atlaspack/utils@3.1.1
93
+ - @atlaspack/plugin@2.14.37
94
+
95
+ ## 2.14.36
96
+
97
+ ### Patch Changes
98
+
99
+ - Updated dependencies [[`5776be2`](https://github.com/atlassian-labs/atlaspack/commit/5776be21f70a3f2b9471ba33da3ba1a883f21f1a)]:
100
+ - @atlaspack/utils@3.1.0
101
+ - @atlaspack/plugin@2.14.36
102
+
103
+ ## 2.14.35
104
+
105
+ ### Patch Changes
106
+
107
+ - Updated dependencies [[`c372f3f`](https://github.com/atlassian-labs/atlaspack/commit/c372f3fd6fce8200d5cf47f41bc7895c6cbb5558), [`17dfea9`](https://github.com/atlassian-labs/atlaspack/commit/17dfea9e9f3169807808520df9c09ebf70dc8b10)]:
108
+ - @atlaspack/utils@3.0.3
109
+ - @atlaspack/plugin@2.14.35
110
+
111
+ ## 2.14.34
112
+
113
+ ### Patch Changes
114
+
115
+ - Updated dependencies []:
116
+ - @atlaspack/utils@3.0.2
117
+ - @atlaspack/plugin@2.14.34
118
+
119
+ ## 2.14.33
120
+
121
+ ### Patch Changes
122
+
123
+ - Updated dependencies [[`236e546`](https://github.com/atlassian-labs/atlaspack/commit/236e5465863dca6044a7191e05260a5b924c342e)]:
124
+ - @atlaspack/utils@3.0.1
125
+ - @atlaspack/plugin@2.14.33
126
+
127
+ ## 2.14.32
128
+
129
+ ### Patch Changes
130
+
131
+ - Updated dependencies [[`1180103`](https://github.com/atlassian-labs/atlaspack/commit/118010351ed444f8178988afb3f77807154dd933)]:
132
+ - @atlaspack/utils@3.0.0
133
+ - @atlaspack/plugin@2.14.32
134
+
135
+ ## 2.14.31
136
+
137
+ ### Patch Changes
138
+
139
+ - [#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.
140
+
141
+ - Updated dependencies [[`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922)]:
142
+ - @atlaspack/plugin@2.14.31
143
+ - @atlaspack/utils@2.19.3
144
+
145
+ ## 2.14.30
146
+
147
+ ### Patch Changes
148
+
149
+ - Updated dependencies []:
150
+ - @atlaspack/utils@2.19.2
151
+ - @atlaspack/plugin@2.14.30
152
+
153
+ ## 2.14.29
154
+
155
+ ### Patch Changes
156
+
157
+ - Updated dependencies []:
158
+ - @atlaspack/utils@2.19.1
159
+ - @atlaspack/plugin@2.14.29
160
+
161
+ ## 2.14.28
162
+
163
+ ### Patch Changes
164
+
165
+ - Updated dependencies [[`f0349a6`](https://github.com/atlassian-labs/atlaspack/commit/f0349a6b9b04755088f121095ca6301a2ada3767)]:
166
+ - @atlaspack/utils@2.19.0
167
+ - @atlaspack/plugin@2.14.28
168
+
169
+ ## 2.14.27
170
+
171
+ ### Patch Changes
172
+
173
+ - Updated dependencies []:
174
+ - @atlaspack/utils@2.18.4
175
+ - @atlaspack/plugin@2.14.27
176
+
177
+ ## 2.14.26
178
+
179
+ ### Patch Changes
180
+
181
+ - [#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
182
+
183
+ - Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd), [`889c65c`](https://github.com/atlassian-labs/atlaspack/commit/889c65cd25b811045e26a117e7404f694dde77a2)]:
184
+ - @atlaspack/plugin@2.14.26
185
+ - @atlaspack/utils@2.18.3
186
+
187
+ ## 2.14.25
188
+
189
+ ### Patch Changes
190
+
191
+ - Updated dependencies []:
192
+ - @atlaspack/utils@2.18.2
193
+ - @atlaspack/plugin@2.14.25
194
+
195
+ ## 2.14.24
196
+
197
+ ### Patch Changes
198
+
199
+ - Updated dependencies []:
200
+ - @atlaspack/utils@2.18.1
201
+ - @atlaspack/plugin@2.14.24
202
+
203
+ ## 2.14.23
204
+
205
+ ### Patch Changes
206
+
207
+ - Updated dependencies [[`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2)]:
208
+ - @atlaspack/utils@2.18.0
209
+ - @atlaspack/plugin@2.14.23
210
+
211
+ ## 2.14.22
212
+
213
+ ### Patch Changes
214
+
215
+ - [#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
216
+
217
+ - Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94)]:
218
+ - @atlaspack/plugin@2.14.22
219
+ - @atlaspack/utils@2.17.4
220
+
221
+ ## 2.14.21
222
+
223
+ ### Patch Changes
224
+
225
+ - Updated dependencies []:
226
+ - @atlaspack/utils@2.17.3
227
+ - @atlaspack/plugin@2.14.21
228
+
229
+ ## 2.14.20
230
+
231
+ ### Patch Changes
232
+
233
+ - [#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
234
+
235
+ - Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
236
+ - @atlaspack/plugin@2.14.20
237
+ - @atlaspack/utils@2.17.2
238
+
239
+ ## 2.14.19
240
+
241
+ ### Patch Changes
242
+
243
+ - Updated dependencies []:
244
+ - @atlaspack/utils@2.17.1
245
+ - @atlaspack/plugin@2.14.19
246
+
247
+ ## 2.14.18
248
+
249
+ ### Patch Changes
250
+
251
+ - 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)]:
252
+ - @atlaspack/utils@2.17.0
253
+ - @atlaspack/plugin@2.14.18
254
+
255
+ ## 2.14.17
256
+
257
+ ### Patch Changes
258
+
259
+ - Updated dependencies []:
260
+ - @atlaspack/utils@2.16.1
261
+ - @atlaspack/plugin@2.14.17
262
+
263
+ ## 2.14.16
264
+
265
+ ### Patch Changes
266
+
267
+ - Updated dependencies [[`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
268
+ - @atlaspack/utils@2.16.0
269
+ - @atlaspack/plugin@2.14.16
270
+
271
+ ## 2.14.15
272
+
273
+ ### Patch Changes
274
+
275
+ - Updated dependencies []:
276
+ - @atlaspack/utils@2.15.3
277
+ - @atlaspack/plugin@2.14.15
278
+
279
+ ## 2.14.14
280
+
281
+ ### Patch Changes
282
+
283
+ - Updated dependencies []:
284
+ - @atlaspack/utils@2.15.2
285
+ - @atlaspack/plugin@2.14.14
286
+
287
+ ## 2.14.13
288
+
289
+ ### Patch Changes
290
+
291
+ - [#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
292
+
293
+ - Updated dependencies []:
294
+ - @atlaspack/utils@2.15.1
295
+ - @atlaspack/plugin@2.14.13
296
+
297
+ ## 2.14.12
298
+
299
+ ### Patch Changes
300
+
301
+ - Updated dependencies [[`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
302
+ - @atlaspack/utils@2.15.0
303
+ - @atlaspack/plugin@2.14.12
304
+
305
+ ## 2.14.11
306
+
307
+ ### Patch Changes
308
+
309
+ - Updated dependencies []:
310
+ - @atlaspack/utils@2.14.11
311
+ - @atlaspack/plugin@2.14.11
312
+
313
+ ## 2.14.10
314
+
315
+ ### Patch Changes
316
+
317
+ - Updated dependencies []:
318
+ - @atlaspack/plugin@2.14.10
319
+ - @atlaspack/utils@2.14.10
320
+
321
+ ## 2.14.9
322
+
323
+ ### Patch Changes
324
+
325
+ - Updated dependencies []:
326
+ - @atlaspack/utils@2.14.9
327
+ - @atlaspack/plugin@2.14.9
328
+
3
329
  ## 2.14.8
4
330
 
5
331
  ### 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
+ });