webpack-hot-middleware
Advanced tools
Comparing version 2.25.3 to 2.25.4
@@ -5,2 +5,9 @@ # Changelog | ||
### [2.25.4](https://github.com/webpack/webpack-dev-middleware/compare/v2.25.3...v2.25.4) (2023-06-21) | ||
### Bug Fixes | ||
* use reduce instead of Object.fromEntries to support old browsers | ||
### [2.25.3](https://github.com/webpack/webpack-dev-middleware/compare/v2.25.2...v2.25.3) (2022-11-08) | ||
@@ -7,0 +14,0 @@ |
@@ -18,5 +18,8 @@ /*eslint-env browser*/ | ||
if (__resourceQuery) { | ||
var overrides = Object.fromEntries( | ||
new URLSearchParams(__resourceQuery.slice(1)) | ||
); | ||
var params = Array.from(new URLSearchParams(__resourceQuery.slice(1))); | ||
var overrides = params.reduce(function (memo, param) { | ||
memo[param[0]] = param[1]; | ||
return memo; | ||
}, {}); | ||
setOverrides(overrides); | ||
@@ -23,0 +26,0 @@ } |
{ | ||
"name": "webpack-hot-middleware", | ||
"version": "2.25.3", | ||
"version": "2.25.4", | ||
"description": "Webpack hot reloading you can attach to your own server", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -33,3 +33,9 @@ # Webpack Hot Middleware | ||
3. Add `'webpack-hot-middleware/client'` into the `entry` array. | ||
3. Add `'webpack-hot-middleware/client'` into an array of the `entry` | ||
object. For example: | ||
```js | ||
entry: { | ||
main: ['webpack-hot-middleware/client', './src/main.js'] | ||
} | ||
``` | ||
This connects to the server to receive notifications when the bundle | ||
@@ -36,0 +42,0 @@ rebuilds and then updates your client bundle accordingly. |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
32777
709
203
0