@modern-js/server 2.45.0 → 2.46.0

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.
@@ -114,7 +114,7 @@ class SocketServer {
114
114
  this.sockets.splice(idx, 1);
115
115
  }
116
116
  });
117
- if (this.options.hot || this.options.hot === "only") {
117
+ if (this.options.hot) {
118
118
  this.singleWrite(connection, "hot");
119
119
  }
120
120
  if (this.options.liveReload) {
@@ -119,7 +119,7 @@ var SocketServer = /* @__PURE__ */ function() {
119
119
  _this.sockets.splice(idx, 1);
120
120
  }
121
121
  });
122
- if (this.options.hot || this.options.hot === "only") {
122
+ if (this.options.hot) {
123
123
  this.singleWrite(connection, "hot");
124
124
  }
125
125
  if (this.options.liveReload) {
@@ -81,7 +81,7 @@ class SocketServer {
81
81
  this.sockets.splice(idx, 1);
82
82
  }
83
83
  });
84
- if (this.options.hot || this.options.hot === "only") {
84
+ if (this.options.hot) {
85
85
  this.singleWrite(connection, "hot");
86
86
  }
87
87
  if (this.options.liveReload) {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.45.0",
18
+ "version": "2.46.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -48,14 +48,14 @@
48
48
  "path-to-regexp": "^6.2.0",
49
49
  "ws": "^8.13.0",
50
50
  "axios": "^1.6.0",
51
- "@modern-js/prod-server": "2.45.0",
52
- "@modern-js/types": "2.45.0",
53
- "@modern-js/utils": "2.45.0",
54
- "@modern-js/server-utils": "2.45.0",
55
- "@modern-js/runtime-utils": "2.45.0"
51
+ "@modern-js/prod-server": "2.46.0",
52
+ "@modern-js/types": "2.46.0",
53
+ "@modern-js/utils": "2.46.0",
54
+ "@modern-js/runtime-utils": "2.46.0",
55
+ "@modern-js/server-utils": "2.46.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@rsbuild/shared": "0.2.15",
58
+ "@rsbuild/shared": "0.3.3",
59
59
  "@types/connect-history-api-fallback": "^1.3.5",
60
60
  "@types/jest": "^29",
61
61
  "@types/minimatch": "^3.0.5",
@@ -68,9 +68,9 @@
68
68
  "typescript": "^5",
69
69
  "webpack": "^5.89.0",
70
70
  "websocket": "^1",
71
- "@scripts/build": "2.45.0",
72
- "@modern-js/server-core": "2.45.0",
73
- "@scripts/jest-config": "2.45.0"
71
+ "@modern-js/server-core": "2.46.0",
72
+ "@scripts/build": "2.46.0",
73
+ "@scripts/jest-config": "2.46.0"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "devcert": "^1.0.0",