@callstack/repack-dev-server 5.4.2 → 5.4.3-canary-20261014000129
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/createServer.js +4 -0
- package/package.json +3 -3
package/dist/createServer.js
CHANGED
|
@@ -25,6 +25,10 @@ export async function createServer(config) {
|
|
|
25
25
|
const options = normalizeOptions(config.options);
|
|
26
26
|
/** Fastify instance powering the development server. */
|
|
27
27
|
const instance = Fastify({
|
|
28
|
+
// Since fastify 5.12 the default ('idle') leaves idle keep-alive sockets
|
|
29
|
+
// to `server.close()`, which only closes them on Node 19+. Force-closing
|
|
30
|
+
// keeps `stop()` from hanging on Node 18.
|
|
31
|
+
forceCloseConnections: true,
|
|
28
32
|
disableRequestLogging: options.disableRequestLogging,
|
|
29
33
|
logger: {
|
|
30
34
|
level: 'trace',
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@callstack/repack-dev-server",
|
|
3
3
|
"description": "A bundler-agnostic development server for React Native applications as part of @callstack/repack.",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "5.4.
|
|
5
|
+
"version": "5.4.3-canary-20261014000129",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@babel/code-frame": "^7.29.7",
|
|
39
39
|
"@fastify/middie": "^9.3.3",
|
|
40
40
|
"@fastify/sensible": "^6.0.0",
|
|
41
|
-
"fastify": "^5.
|
|
41
|
+
"fastify": "^5.12.5",
|
|
42
42
|
"fastify-favicon": "^5.0.0",
|
|
43
43
|
"fastify-plugin": "^5.0.0",
|
|
44
44
|
"http-proxy-middleware": "^3.0.7",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@types/node": "^20.19.31",
|
|
55
55
|
"@types/ws": "^8.18.0",
|
|
56
56
|
"typescript": "^7.0.2",
|
|
57
|
-
"vitest": "^4.1.
|
|
57
|
+
"vitest": "^4.1.11"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "tsc -b tsconfig.build.json",
|