@rspack/dev-middleware 0.2.1 → 0.2.2
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/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import wdm from "webpack-dev-middleware";
|
|
2
|
+
/** @deprecated
|
|
3
|
+
*
|
|
4
|
+
* This package has the same functionality as webpack-dev-middleware, please use webpack-dev-middleware instead.
|
|
5
|
+
*/
|
|
2
6
|
declare const rdm: typeof wdm;
|
|
3
7
|
export default rdm;
|
|
4
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,wBAAwB,CAAC;AAGzC;;;GAGG;AACH,QAAA,MAAM,GAAG,EAAE,OAAO,GAEqK,CAAC;AAExL,eAAe,GAAG,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,11 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const webpack_dev_middleware_1 = __importDefault(require("webpack-dev-middleware"));
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
const util_1 = __importDefault(require("util"));
|
|
8
|
+
/** @deprecated
|
|
9
|
+
*
|
|
10
|
+
* This package has the same functionality as webpack-dev-middleware, please use webpack-dev-middleware instead.
|
|
11
|
+
*/
|
|
12
|
+
const rdm = util_1.default.deprecate((compiler, options) => {
|
|
13
|
+
return (0, webpack_dev_middleware_1.default)(compiler, options);
|
|
14
|
+
}, "@rspack/dev-middleware has the same functionality as webpack-dev-middleware, please use webpack-dev-middleware instead. This package will be removed in the next 'minor' release.");
|
|
13
15
|
exports.default = rdm;
|
|
14
16
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,oFAAyC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,oFAAyC;AACzC,gDAAwB;AAExB;;;GAGG;AACH,MAAM,GAAG,GAAe,cAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE;IAC5D,OAAO,IAAA,gCAAG,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAC/B,CAAC,EAAE,mLAAmL,CAAC,CAAC;AAExL,kBAAe,GAAG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/dev-middleware",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Development middleware for rspack",
|
|
6
6
|
"main": "index.cjs",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"webpack-dev-middleware": "6.0.2",
|
|
21
|
-
"@rspack/core": "0.2.
|
|
21
|
+
"@rspack/core": "0.2.2"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "tsc",
|