@atlaspack/runtime-react-refresh 2.14.5-canary.13 → 2.14.5-canary.130

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,116 @@
1
1
  # @atlaspack/runtime-react-refresh
2
2
 
3
+ ## 2.14.18
4
+
5
+ ### Patch Changes
6
+
7
+ - 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)]:
8
+ - @atlaspack/feature-flags@2.19.0
9
+ - @atlaspack/utils@2.17.0
10
+ - @atlaspack/plugin@2.14.18
11
+
12
+ ## 2.14.17
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies []:
17
+ - @atlaspack/utils@2.16.1
18
+ - @atlaspack/plugin@2.14.17
19
+
20
+ ## 2.14.16
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [[`e8a60ff`](https://github.com/atlassian-labs/atlaspack/commit/e8a60ffbea41caef265786bbf73349771760081c), [`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
25
+ - @atlaspack/feature-flags@2.18.4
26
+ - @atlaspack/utils@2.16.0
27
+ - @atlaspack/plugin@2.14.16
28
+
29
+ ## 2.14.15
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [[`5ded263`](https://github.com/atlassian-labs/atlaspack/commit/5ded263c7f11b866e8885b81c73e20dd060b25be)]:
34
+ - @atlaspack/feature-flags@2.18.3
35
+ - @atlaspack/utils@2.15.3
36
+ - @atlaspack/plugin@2.14.15
37
+
38
+ ## 2.14.14
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [[`644b157`](https://github.com/atlassian-labs/atlaspack/commit/644b157dee72a871acc2d0facf0b87b8eea51956)]:
43
+ - @atlaspack/feature-flags@2.18.2
44
+ - @atlaspack/utils@2.15.2
45
+ - @atlaspack/plugin@2.14.14
46
+
47
+ ## 2.14.13
48
+
49
+ ### Patch Changes
50
+
51
+ - [#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
52
+
53
+ - Updated dependencies [[`26aa9c5`](https://github.com/atlassian-labs/atlaspack/commit/26aa9c599d2be45ce1438a74c5fa22f39b9b554b), [`0501255`](https://github.com/atlassian-labs/atlaspack/commit/05012550da35b05ce7d356a8cc29311e7f9afdca)]:
54
+ - @atlaspack/feature-flags@2.18.1
55
+ - @atlaspack/utils@2.15.1
56
+ - @atlaspack/plugin@2.14.13
57
+
58
+ ## 2.14.12
59
+
60
+ ### Patch Changes
61
+
62
+ - Updated dependencies [[`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
63
+ - @atlaspack/utils@2.15.0
64
+ - @atlaspack/plugin@2.14.12
65
+
66
+ ## 2.14.11
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies []:
71
+ - @atlaspack/utils@2.14.11
72
+ - @atlaspack/plugin@2.14.11
73
+
74
+ ## 2.14.10
75
+
76
+ ### Patch Changes
77
+
78
+ - Updated dependencies []:
79
+ - @atlaspack/plugin@2.14.10
80
+ - @atlaspack/utils@2.14.10
81
+
82
+ ## 2.14.9
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies []:
87
+ - @atlaspack/utils@2.14.9
88
+ - @atlaspack/plugin@2.14.9
89
+
90
+ ## 2.14.8
91
+
92
+ ### Patch Changes
93
+
94
+ - Updated dependencies []:
95
+ - @atlaspack/utils@2.14.8
96
+ - @atlaspack/plugin@2.14.8
97
+
98
+ ## 2.14.7
99
+
100
+ ### Patch Changes
101
+
102
+ - Updated dependencies []:
103
+ - @atlaspack/utils@2.14.7
104
+ - @atlaspack/plugin@2.14.7
105
+
106
+ ## 2.14.6
107
+
108
+ ### Patch Changes
109
+
110
+ - Updated dependencies []:
111
+ - @atlaspack/utils@2.14.6
112
+ - @atlaspack/plugin@2.14.6
113
+
3
114
  ## 2.14.5
4
115
 
5
116
  ### Patch Changes
@@ -19,6 +19,13 @@ function _utils() {
19
19
  return data;
20
20
  }
21
21
  var _package = require("react-refresh/package.json");
22
+ function _featureFlags() {
23
+ const data = require("@atlaspack/feature-flags");
24
+ _featureFlags = function () {
25
+ return data;
26
+ };
27
+ return data;
28
+ }
22
29
  // $FlowFixMe Package json is untyped
23
30
  const CODE = `
24
31
  var Refresh = require('react-refresh/runtime');
@@ -51,6 +58,12 @@ var _default = exports.default = new (_plugin().Runtime)({
51
58
  bundle,
52
59
  options
53
60
  }) {
61
+ if ((0, _featureFlags().getFeatureFlag)('hmrImprovements')) {
62
+ // Note for https://jplat.atlassian.net/browse/JFP-3539:
63
+ // When cleaning up this feature flag, delete the entire
64
+ // @atlaspack/runtime-react-refresh package and remove all references to it
65
+ return;
66
+ }
54
67
  if (bundle.type !== 'js' || !options.hmrOptions || !bundle.env.isBrowser() || bundle.env.isLibrary || bundle.env.isWorker() || bundle.env.isWorklet() || options.mode !== 'development' || bundle.env.sourceType !== 'module') {
55
68
  return;
56
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/runtime-react-refresh",
3
- "version": "2.14.5-canary.13+e0f533757",
3
+ "version": "2.14.5-canary.130+13aef177e",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,11 +15,12 @@
15
15
  "node": ">= 16.0.0"
16
16
  },
17
17
  "dependencies": {
18
- "@atlaspack/plugin": "2.14.5-canary.13+e0f533757",
19
- "@atlaspack/utils": "2.14.5-canary.13+e0f533757",
18
+ "@atlaspack/feature-flags": "2.14.1-canary.198+13aef177e",
19
+ "@atlaspack/plugin": "2.14.5-canary.130+13aef177e",
20
+ "@atlaspack/utils": "2.14.5-canary.130+13aef177e",
20
21
  "react-error-overlay": "6.0.9",
21
- "react-refresh": ">=0.9 <=0.14"
22
+ "react-refresh": ">=0.9 <=0.16"
22
23
  },
23
24
  "type": "commonjs",
24
- "gitHead": "e0f533757bd1019dbd108a04952c87da15286e09"
25
+ "gitHead": "13aef177eea289a6e40d2113b5ec1ac9be18a33d"
25
26
  }
@@ -4,6 +4,7 @@ import {Runtime} from '@atlaspack/plugin';
4
4
  import {loadConfig} from '@atlaspack/utils';
5
5
  // $FlowFixMe Package json is untyped
6
6
  import {version} from 'react-refresh/package.json';
7
+ import {getFeatureFlag} from '@atlaspack/feature-flags';
7
8
 
8
9
  const CODE = `
9
10
  var Refresh = require('react-refresh/runtime');
@@ -34,6 +35,13 @@ window.addEventListener('parcelhmraccept', () => {
34
35
 
35
36
  export default (new Runtime({
36
37
  async apply({bundle, options}) {
38
+ if (getFeatureFlag('hmrImprovements')) {
39
+ // Note for https://jplat.atlassian.net/browse/JFP-3539:
40
+ // When cleaning up this feature flag, delete the entire
41
+ // @atlaspack/runtime-react-refresh package and remove all references to it
42
+ return;
43
+ }
44
+
37
45
  if (
38
46
  bundle.type !== 'js' ||
39
47
  !options.hmrOptions ||