@callstack/repack-dev-server 5.4.3-canary-20261014000129 → 5.4.3-canary-20261022172059
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 +7 -2
- package/package.json +1 -1
package/dist/createServer.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Writable } from 'node:stream';
|
|
|
2
2
|
import util from 'node:util';
|
|
3
3
|
import middie from '@fastify/middie';
|
|
4
4
|
import fastifySensible from '@fastify/sensible';
|
|
5
|
-
import Fastify from 'fastify';
|
|
5
|
+
import Fastify, { LogController } from 'fastify';
|
|
6
6
|
import { createProxyMiddleware } from 'http-proxy-middleware';
|
|
7
7
|
import apiPlugin from './plugins/api/apiPlugin.js';
|
|
8
8
|
import compilerPlugin from './plugins/compiler/compilerPlugin.js';
|
|
@@ -29,7 +29,12 @@ export async function createServer(config) {
|
|
|
29
29
|
// to `server.close()`, which only closes them on Node 19+. Force-closing
|
|
30
30
|
// keeps `stop()` from hanging on Node 18.
|
|
31
31
|
forceCloseConnections: true,
|
|
32
|
-
disableRequestLogging
|
|
32
|
+
// The top-level `disableRequestLogging` option is deprecated (FSTDEP023).
|
|
33
|
+
// `LogController` only gates per-request log lines; everything else still
|
|
34
|
+
// goes through the `logger` stream below.
|
|
35
|
+
logController: new LogController({
|
|
36
|
+
disableRequestLogging: options.disableRequestLogging,
|
|
37
|
+
}),
|
|
33
38
|
logger: {
|
|
34
39
|
level: 'trace',
|
|
35
40
|
stream: new Writable({
|
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.3-canary-
|
|
5
|
+
"version": "5.4.3-canary-20261022172059",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|