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

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,125 @@
1
1
  # @atlaspack/runtime-react-refresh
2
2
 
3
+ ## 2.14.19
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`13aef17`](https://github.com/atlassian-labs/atlaspack/commit/13aef177eea289a6e40d2113b5ec1ac9be18a33d)]:
8
+ - @atlaspack/feature-flags@2.19.1
9
+ - @atlaspack/utils@2.17.1
10
+ - @atlaspack/plugin@2.14.19
11
+
12
+ ## 2.14.18
13
+
14
+ ### Patch Changes
15
+
16
+ - 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)]:
17
+ - @atlaspack/feature-flags@2.19.0
18
+ - @atlaspack/utils@2.17.0
19
+ - @atlaspack/plugin@2.14.18
20
+
21
+ ## 2.14.17
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies []:
26
+ - @atlaspack/utils@2.16.1
27
+ - @atlaspack/plugin@2.14.17
28
+
29
+ ## 2.14.16
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [[`e8a60ff`](https://github.com/atlassian-labs/atlaspack/commit/e8a60ffbea41caef265786bbf73349771760081c), [`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
34
+ - @atlaspack/feature-flags@2.18.4
35
+ - @atlaspack/utils@2.16.0
36
+ - @atlaspack/plugin@2.14.16
37
+
38
+ ## 2.14.15
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [[`5ded263`](https://github.com/atlassian-labs/atlaspack/commit/5ded263c7f11b866e8885b81c73e20dd060b25be)]:
43
+ - @atlaspack/feature-flags@2.18.3
44
+ - @atlaspack/utils@2.15.3
45
+ - @atlaspack/plugin@2.14.15
46
+
47
+ ## 2.14.14
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies [[`644b157`](https://github.com/atlassian-labs/atlaspack/commit/644b157dee72a871acc2d0facf0b87b8eea51956)]:
52
+ - @atlaspack/feature-flags@2.18.2
53
+ - @atlaspack/utils@2.15.2
54
+ - @atlaspack/plugin@2.14.14
55
+
56
+ ## 2.14.13
57
+
58
+ ### Patch Changes
59
+
60
+ - [#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
61
+
62
+ - Updated dependencies [[`26aa9c5`](https://github.com/atlassian-labs/atlaspack/commit/26aa9c599d2be45ce1438a74c5fa22f39b9b554b), [`0501255`](https://github.com/atlassian-labs/atlaspack/commit/05012550da35b05ce7d356a8cc29311e7f9afdca)]:
63
+ - @atlaspack/feature-flags@2.18.1
64
+ - @atlaspack/utils@2.15.1
65
+ - @atlaspack/plugin@2.14.13
66
+
67
+ ## 2.14.12
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies [[`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
72
+ - @atlaspack/utils@2.15.0
73
+ - @atlaspack/plugin@2.14.12
74
+
75
+ ## 2.14.11
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies []:
80
+ - @atlaspack/utils@2.14.11
81
+ - @atlaspack/plugin@2.14.11
82
+
83
+ ## 2.14.10
84
+
85
+ ### Patch Changes
86
+
87
+ - Updated dependencies []:
88
+ - @atlaspack/plugin@2.14.10
89
+ - @atlaspack/utils@2.14.10
90
+
91
+ ## 2.14.9
92
+
93
+ ### Patch Changes
94
+
95
+ - Updated dependencies []:
96
+ - @atlaspack/utils@2.14.9
97
+ - @atlaspack/plugin@2.14.9
98
+
99
+ ## 2.14.8
100
+
101
+ ### Patch Changes
102
+
103
+ - Updated dependencies []:
104
+ - @atlaspack/utils@2.14.8
105
+ - @atlaspack/plugin@2.14.8
106
+
107
+ ## 2.14.7
108
+
109
+ ### Patch Changes
110
+
111
+ - Updated dependencies []:
112
+ - @atlaspack/utils@2.14.7
113
+ - @atlaspack/plugin@2.14.7
114
+
115
+ ## 2.14.6
116
+
117
+ ### Patch Changes
118
+
119
+ - Updated dependencies []:
120
+ - @atlaspack/utils@2.14.6
121
+ - @atlaspack/plugin@2.14.6
122
+
3
123
  ## 2.14.5
4
124
 
5
125
  ### 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.131+75286ffe8",
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.199+75286ffe8",
19
+ "@atlaspack/plugin": "2.14.5-canary.131+75286ffe8",
20
+ "@atlaspack/utils": "2.14.5-canary.131+75286ffe8",
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": "75286ffe8068fae73afa5954a6d2a0f53fbf5e0d"
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 ||