@pmmmwh/react-refresh-webpack-plugin
Advanced tools
Comparing version 0.4.0-beta.10 to 0.4.0
@@ -0,1 +1,40 @@ | ||
## 0.4.0 (28 July 2020) | ||
### BREAKING | ||
- Minimum required Node.js version have been bumped to 10 as Node.js 8 is EOL now. | ||
- Minimum required Webpack version is now `v4.43.0` or later as we adopted the new `module.hot.invalidate` API (#). | ||
The new API enabled us to bail out of the HMR loop less frequently and provide a better experience. | ||
If you really cannot upgrade, you can stay on `0.3.3` for the time being. | ||
- While most of our public API did not change, this release is closer to a rewrite than a refactor. | ||
A lot of files have moved to provide easier access to files for advanced users and frameworks (#122). | ||
You can check the difference in the PR to see what have moved and where they are now. | ||
- The `useLegacyWDSSockets` option is now scoped under the `overlay` option (#153). | ||
### Features | ||
- Adopted the `module.hot.invalidate()` API, which means we will now bail out less often (#89) | ||
- Attach runtime on Webpack's global scope instead of `window`, making the plugin platform-agnostic (#102) | ||
- Added stable support for **Webpack 5** and beta support for **Module Federation** (#123, #132, #164) | ||
- Socket integration URL detection via `document.currentScript` (#133) | ||
- Relaxed requirements for "required" `overlay` options to receive `false` as value (#154) | ||
- Prefixed all errors thrown by the plugin (#161) | ||
- Eliminated use of soon-to-be-deprecated `lodash.debounce` package (#163) | ||
### Fixes | ||
- Fixed circular references for `__react_refresh_error_overlay__` and `__react_refresh_utils` (#116) | ||
- Fixed IE11 compatibility (#106, #121) | ||
- Rearranged directories to provide more ergonomic imports (#122) | ||
- Fixed issues with Babel/ESLint/Flow regarding loader ordering and runtime cleanup (#129, #140) | ||
- Correctly detecting the HMR plugin (#130, #160) | ||
- Fixed unwanted injection of error overlay in non-browser environment (#146) | ||
- Scoped the `useLegacyWDSSockets` options under `overlay` to reflect its true use (#153) | ||
- Fixed non-preserved relative ordering of Webpack entries (#165) | ||
### Internal | ||
- Full HMR test suite - we are confident the plugin works! (#93, #96) | ||
- Unit tests for all plugin-related Node.js code (#127) | ||
## 0.3.3 (29 May 2020) | ||
@@ -2,0 +41,0 @@ |
@@ -82,8 +82,8 @@ const querystring = require('querystring'); | ||
let socketEntry = []; | ||
let socketAndPrecedingEntries = []; | ||
if (socketEntryIndex !== -1) { | ||
socketEntry = originalEntry.splice(socketEntryIndex, 1); | ||
socketAndPrecedingEntries = originalEntry.splice(0, socketEntryIndex + 1); | ||
} | ||
return [...prependEntries, ...socketEntry, ...overlayEntries, ...originalEntry]; | ||
return [...prependEntries, ...socketAndPrecedingEntries, ...overlayEntries, ...originalEntry]; | ||
} | ||
@@ -90,0 +90,0 @@ // Multiple entry points |
{ | ||
"name": "@pmmmwh/react-refresh-webpack-plugin", | ||
"version": "0.4.0-beta.10", | ||
"version": "0.4.0", | ||
"description": "An **EXPERIMENTAL** Webpack plugin to enable \"Fast Refresh\" (also previously known as _Hot Reloading_) for React components.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105658