Skip to content

Commit a372537

Browse files
committed
chore: release v0.4.0
1 parent bb0a811 commit a372537

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
## 0.4.0 (28 July 2020)
2+
3+
### BREAKING
4+
5+
- Minimum required Node.js version have been bumped to 10 as Node.js 8 is EOL now.
6+
- Minimum required Webpack version is now `v4.43.0` or later as we adopted the new `module.hot.invalidate` API (#).
7+
The new API enabled us to bail out of the HMR loop less frequently and provide a better experience.
8+
If you really cannot upgrade, you can stay on `0.3.3` for the time being.
9+
- While most of our public API did not change, this release is closer to a rewrite than a refactor.
10+
A lot of files have moved to provide easier access to files for advanced users and frameworks (#122).
11+
You can check the difference in the PR to see what have moved and where they are now.
12+
- The `useLegacyWDSSockets` option is now scoped under the `overlay` option (#153).
13+
14+
### Features
15+
16+
- Adopted the `module.hot.invalidate()` API, which means we will now bail out less often (#89)
17+
- Attach runtime on Webpack's global scope instead of `window`, making the plugin platform-agnostic (#102)
18+
- Added stable support for **Webpack 5** and beta support for **Module Federation** (#123, #132, #164)
19+
- Socket integration URL detection via `document.currentScript` (#133)
20+
- Relaxed requirements for "required" `overlay` options to receive `false` as value (#154)
21+
- Prefixed all errors thrown by the plugin (#161)
22+
- Eliminated use of soon-to-be-deprecated `lodash.debounce` package (#163)
23+
24+
### Fixes
25+
26+
- Fixed circular references for `__react_refresh_error_overlay__` and `__react_refresh_utils` (#116)
27+
- Fixed IE11 compatibility (#106, #121)
28+
- Rearranged directories to provide more ergonomic imports (#122)
29+
- Fixed issues with Babel/ESLint/Flow regarding loader ordering and runtime cleanup (#129, #140)
30+
- Correctly detecting the HMR plugin (#130, #160)
31+
- Fixed unwanted injection of error overlay in non-browser environment (#146)
32+
- Scoped the `useLegacyWDSSockets` options under `overlay` to reflect its true use (#153)
33+
- Fixed non-preserved relative ordering of Webpack entries (#165)
34+
35+
### Internal
36+
37+
- Full HMR test suite - we are confident the plugin works! (#93, #96)
38+
- Unit tests for all plugin-related Node.js code (#127)
39+
140
## 0.3.3 (29 May 2020)
241

342
### Fixes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pmmmwh/react-refresh-webpack-plugin",
3-
"version": "0.4.0-beta.10",
3+
"version": "0.4.0",
44
"description": "An **EXPERIMENTAL** Webpack plugin to enable \"Fast Refresh\" (also previously known as _Hot Reloading_) for React components.",
55
"keywords": [
66
"react",

0 commit comments

Comments
 (0)