@atlaspack/runtime-browser-hmr 2.14.5-canary.19 → 2.14.5-canary.191

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,189 @@
1
1
  # @atlaspack/runtime-browser-hmr
2
2
 
3
+ ## 2.14.29
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/utils@2.19.1
9
+ - @atlaspack/plugin@2.14.29
10
+
11
+ ## 2.14.28
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [[`f0349a6`](https://github.com/atlassian-labs/atlaspack/commit/f0349a6b9b04755088f121095ca6301a2ada3767)]:
16
+ - @atlaspack/utils@2.19.0
17
+ - @atlaspack/plugin@2.14.28
18
+
19
+ ## 2.14.27
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies []:
24
+ - @atlaspack/utils@2.18.4
25
+ - @atlaspack/plugin@2.14.27
26
+
27
+ ## 2.14.26
28
+
29
+ ### Patch Changes
30
+
31
+ - [#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
32
+
33
+ - Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd), [`889c65c`](https://github.com/atlassian-labs/atlaspack/commit/889c65cd25b811045e26a117e7404f694dde77a2)]:
34
+ - @atlaspack/plugin@2.14.26
35
+ - @atlaspack/utils@2.18.3
36
+
37
+ ## 2.14.25
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies []:
42
+ - @atlaspack/utils@2.18.2
43
+ - @atlaspack/plugin@2.14.25
44
+
45
+ ## 2.14.24
46
+
47
+ ### Patch Changes
48
+
49
+ - Updated dependencies []:
50
+ - @atlaspack/utils@2.18.1
51
+ - @atlaspack/plugin@2.14.24
52
+
53
+ ## 2.14.23
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [[`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2)]:
58
+ - @atlaspack/utils@2.18.0
59
+ - @atlaspack/plugin@2.14.23
60
+
61
+ ## 2.14.22
62
+
63
+ ### Patch Changes
64
+
65
+ - [#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
66
+
67
+ - Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94)]:
68
+ - @atlaspack/plugin@2.14.22
69
+ - @atlaspack/utils@2.17.4
70
+
71
+ ## 2.14.21
72
+
73
+ ### Patch Changes
74
+
75
+ - Updated dependencies []:
76
+ - @atlaspack/utils@2.17.3
77
+ - @atlaspack/plugin@2.14.21
78
+
79
+ ## 2.14.20
80
+
81
+ ### Patch Changes
82
+
83
+ - [#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
84
+
85
+ - Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
86
+ - @atlaspack/plugin@2.14.20
87
+ - @atlaspack/utils@2.17.2
88
+
89
+ ## 2.14.19
90
+
91
+ ### Patch Changes
92
+
93
+ - Updated dependencies []:
94
+ - @atlaspack/utils@2.17.1
95
+ - @atlaspack/plugin@2.14.19
96
+
97
+ ## 2.14.18
98
+
99
+ ### Patch Changes
100
+
101
+ - 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)]:
102
+ - @atlaspack/utils@2.17.0
103
+ - @atlaspack/plugin@2.14.18
104
+
105
+ ## 2.14.17
106
+
107
+ ### Patch Changes
108
+
109
+ - Updated dependencies []:
110
+ - @atlaspack/utils@2.16.1
111
+ - @atlaspack/plugin@2.14.17
112
+
113
+ ## 2.14.16
114
+
115
+ ### Patch Changes
116
+
117
+ - Updated dependencies [[`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
118
+ - @atlaspack/utils@2.16.0
119
+ - @atlaspack/plugin@2.14.16
120
+
121
+ ## 2.14.15
122
+
123
+ ### Patch Changes
124
+
125
+ - Updated dependencies []:
126
+ - @atlaspack/utils@2.15.3
127
+ - @atlaspack/plugin@2.14.15
128
+
129
+ ## 2.14.14
130
+
131
+ ### Patch Changes
132
+
133
+ - Updated dependencies []:
134
+ - @atlaspack/utils@2.15.2
135
+ - @atlaspack/plugin@2.14.14
136
+
137
+ ## 2.14.13
138
+
139
+ ### Patch Changes
140
+
141
+ - [#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
142
+
143
+ - Updated dependencies []:
144
+ - @atlaspack/utils@2.15.1
145
+ - @atlaspack/plugin@2.14.13
146
+
147
+ ## 2.14.12
148
+
149
+ ### Patch Changes
150
+
151
+ - Updated dependencies [[`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
152
+ - @atlaspack/utils@2.15.0
153
+ - @atlaspack/plugin@2.14.12
154
+
155
+ ## 2.14.11
156
+
157
+ ### Patch Changes
158
+
159
+ - Updated dependencies []:
160
+ - @atlaspack/utils@2.14.11
161
+ - @atlaspack/plugin@2.14.11
162
+
163
+ ## 2.14.10
164
+
165
+ ### Patch Changes
166
+
167
+ - Updated dependencies []:
168
+ - @atlaspack/plugin@2.14.10
169
+ - @atlaspack/utils@2.14.10
170
+
171
+ ## 2.14.9
172
+
173
+ ### Patch Changes
174
+
175
+ - Updated dependencies []:
176
+ - @atlaspack/utils@2.14.9
177
+ - @atlaspack/plugin@2.14.9
178
+
179
+ ## 2.14.8
180
+
181
+ ### Patch Changes
182
+
183
+ - Updated dependencies []:
184
+ - @atlaspack/utils@2.14.8
185
+ - @atlaspack/plugin@2.14.8
186
+
3
187
  ## 2.14.7
4
188
 
5
189
  ### Patch Changes
package/lib/HMRRuntime.js CHANGED
@@ -30,9 +30,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
30
30
  // lives in `/app/packages/runtimes/...` and thus the `config` in the JSTransformer is actually the
31
31
  // user's package.json, and hmr-runtime.js is transpiled as a JSX asset.
32
32
  const FILENAME =
33
- // $FlowFixMe
33
+ // @ts-expect-error TS2339
34
34
  process.env.ATLASPACK_BUILD_REPL && process.browser ? '/' + __filename : __filename;
35
- const HMR_RUNTIME = _fs().default.readFileSync(_path().default.join(__dirname, './loaders/hmr-runtime.js'), 'utf8');
35
+ const HMR_RUNTIME = process.env.ATLASPACK_REGISTER_USE_SRC === 'true' ? _fs().default.readFileSync(_path().default.join(__dirname, './loaders/hmr-runtime.ts'), 'utf8') : _fs().default.readFileSync(_path().default.join(__dirname, './loaders/hmr-runtime.js'), 'utf8');
36
36
  var _default = exports.default = new (_plugin().Runtime)({
37
37
  apply({
38
38
  bundle,
@@ -51,7 +51,7 @@ var _default = exports.default = new (_plugin().Runtime)({
51
51
  // Default to the HTTP port in the browser, only override
52
52
  // in watch mode or if hmr port != serve port
53
53
  !options.serveOptions || options.serveOptions.port !== port) ? port : null)};` + `var HMR_SECURE = ${JSON.stringify(!!(options.serveOptions && options.serveOptions.https))};` + `var HMR_ENV_HASH = "${bundle.env.id}";` + `var HMR_USE_SSE = ${JSON.stringify(
54
- // $FlowFixMe
54
+ // @ts-expect-error TS2339
55
55
  !!(process.env.ATLASPACK_BUILD_REPL && process.browser))};` + `module.bundle.HMR_BUNDLE_ID = ${JSON.stringify(bundle.id)};` + HMR_RUNTIME,
56
56
  isEntry: true,
57
57
  env: {