@nerest/nerest 1.7.1 → 1.7.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.
@@ -14,8 +14,9 @@ export async function createServer(options) {
14
14
  const { project, root, loadRuntimeHook } = options;
15
15
  const app = fastify({
16
16
  logger: (await runLoggerHook(loadRuntimeHook)) ?? true,
17
- ignoreTrailingSlash: true,
18
- useSemicolonDelimiter: false,
17
+ routerOptions: {
18
+ ignoreTrailingSlash: true,
19
+ },
19
20
  // JSON parsing can take a long time and blocks the event loop,
20
21
  // so we need to limit the size of the body. 10MB is a good compromise
21
22
  // baseline that was chosen by experimenting with real world usage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nerest/nerest",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "React micro frontend framework",
5
5
  "homepage": "https://github.com/nerestjs/nerest",
6
6
  "repository": {
@@ -27,8 +27,8 @@
27
27
  "lint": "eslint --ext .ts .",
28
28
  "prepare": "simple-git-hooks",
29
29
  "test": "npm run test:module && npm run test:integration:dev && npm run test:integration:prod",
30
- "test:integration:dev": "node tests/integration/run.development.js",
31
- "test:integration:prod": "node tests/integration/run.production.js",
30
+ "test:integration:dev": "sh tests/integration/run.development.sh",
31
+ "test:integration:prod": "sh tests/integration/run.production.sh",
32
32
  "test:module": "vitest run tests/module/**",
33
33
  "typegen": "json2ts -i 'schemas/**/*.json' -o schemas --bannerComment ''"
34
34
  },
@@ -49,7 +49,7 @@
49
49
  ]
50
50
  },
51
51
  "dependencies": {
52
- "@apidevtools/json-schema-ref-parser": "^15.1.3",
52
+ "@apidevtools/json-schema-ref-parser": "^15.2.1",
53
53
  "@fastify/middie": "^9.1.0",
54
54
  "@fastify/static": "^9.0.0",
55
55
  "@fastify/swagger": "^9.6.1",
@@ -59,7 +59,7 @@
59
59
  "dotenv": "^17.2.3",
60
60
  "fast-glob": "^3.3.3",
61
61
  "fast-uri": "^3.1.0",
62
- "fastify": "^5.6.2",
62
+ "fastify": "^5.7.1",
63
63
  "fastify-graceful-shutdown": "^5.0.0",
64
64
  "json-schema-to-typescript": "^15.0.4",
65
65
  "vite": "^7.3.1",
@@ -74,14 +74,13 @@
74
74
  "@tinkoff/prettier-config": "^5.0.0",
75
75
  "@types/react": "^19.2.8",
76
76
  "@types/react-dom": "^19.2.3",
77
- "execa": "^9.6.1",
78
77
  "lint-staged": "^16.2.7",
79
78
  "react": "^19.2.3",
80
79
  "react-dom": "^19.2.3",
81
80
  "simple-git-hooks": "^2.13.1",
82
81
  "sort-package-json": "^3.6.0",
83
82
  "typescript": "^5.9.3",
84
- "vitest": "^4.0.16"
83
+ "vitest": "^4.0.17"
85
84
  },
86
85
  "peerDependencies": {
87
86
  "react": "^18.0.0 || ^19.0.0",
package/server/shared.ts CHANGED
@@ -35,8 +35,9 @@ export async function createServer(options: ServerOptions) {
35
35
 
36
36
  const app = fastify({
37
37
  logger: (await runLoggerHook(loadRuntimeHook)) ?? true,
38
- ignoreTrailingSlash: true,
39
- useSemicolonDelimiter: false,
38
+ routerOptions: {
39
+ ignoreTrailingSlash: true,
40
+ },
40
41
  // JSON parsing can take a long time and blocks the event loop,
41
42
  // so we need to limit the size of the body. 10MB is a good compromise
42
43
  // baseline that was chosen by experimenting with real world usage