@twin.org/api-server-fastify 0.0.2-next.7 → 0.0.2-next.9

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.
@@ -94,8 +94,12 @@ class FastifyWebServer {
94
94
  this._loggingComponentType = options?.loggingComponentType;
95
95
  this._logging = core.ComponentFactory.getIfExists(options?.loggingComponentType ?? "logging");
96
96
  this._fastify = Fastify({
97
- maxParamLength: 2000,
97
+ routerOptions: {
98
+ maxParamLength: 2000
99
+ },
98
100
  ...options?.config?.web
101
+ // Need this cast for now as maxParamLength has moved in to routerOptions
102
+ // but the TS defs has not been updated yet
99
103
  });
100
104
  this._socketConfig = {
101
105
  path: "/socket",
@@ -92,8 +92,12 @@ class FastifyWebServer {
92
92
  this._loggingComponentType = options?.loggingComponentType;
93
93
  this._logging = ComponentFactory.getIfExists(options?.loggingComponentType ?? "logging");
94
94
  this._fastify = Fastify({
95
- maxParamLength: 2000,
95
+ routerOptions: {
96
+ maxParamLength: 2000
97
+ },
96
98
  ...options?.config?.web
99
+ // Need this cast for now as maxParamLength has moved in to routerOptions
100
+ // but the TS defs has not been updated yet
97
101
  });
98
102
  this._socketConfig = {
99
103
  path: "/socket",
package/docs/changelog.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # @twin.org/api-server-fastify - Changelog
2
2
 
3
+ ## [0.0.2-next.9](https://github.com/twinfoundation/api/compare/api-server-fastify-v0.0.2-next.8...api-server-fastify-v0.0.2-next.9) (2025-08-29)
4
+
5
+
6
+ ### Features
7
+
8
+ * eslint migration to flat config ([0dd5820](https://github.com/twinfoundation/api/commit/0dd5820e3af97350fd08b8d226f4a6c1a9246805))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/api-core bumped from 0.0.2-next.8 to 0.0.2-next.9
16
+ * @twin.org/api-models bumped from 0.0.2-next.8 to 0.0.2-next.9
17
+ * @twin.org/api-processors bumped from 0.0.2-next.8 to 0.0.2-next.9
18
+
19
+ ## [0.0.2-next.8](https://github.com/twinfoundation/api/compare/api-server-fastify-v0.0.2-next.7...api-server-fastify-v0.0.2-next.8) (2025-08-21)
20
+
21
+
22
+ ### Features
23
+
24
+ * add root, favicon routes ([71da1c3](https://github.com/twinfoundation/api/commit/71da1c3a93c349588aff7084d1d8d6a29a277da8))
25
+
26
+
27
+ ### Dependencies
28
+
29
+ * The following workspace dependencies were updated
30
+ * dependencies
31
+ * @twin.org/api-core bumped from 0.0.2-next.7 to 0.0.2-next.8
32
+ * @twin.org/api-models bumped from 0.0.2-next.7 to 0.0.2-next.8
33
+ * @twin.org/api-processors bumped from 0.0.2-next.7 to 0.0.2-next.8
34
+
3
35
  ## [0.0.2-next.7](https://github.com/twinfoundation/api/compare/api-server-fastify-v0.0.2-next.6...api-server-fastify-v0.0.2-next.7) (2025-08-20)
4
36
 
5
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/api-server-fastify",
3
- "version": "0.0.2-next.7",
3
+ "version": "0.0.2-next.9",
4
4
  "description": "Use Fastify as the core web server for APIs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,9 +16,9 @@
16
16
  "dependencies": {
17
17
  "@fastify/compress": "8.1.0",
18
18
  "@fastify/cors": "11.1.0",
19
- "@twin.org/api-core": "0.0.2-next.7",
20
- "@twin.org/api-models": "0.0.2-next.7",
21
- "@twin.org/api-processors": "0.0.2-next.7",
19
+ "@twin.org/api-core": "0.0.2-next.9",
20
+ "@twin.org/api-models": "0.0.2-next.9",
21
+ "@twin.org/api-processors": "0.0.2-next.9",
22
22
  "@twin.org/core": "next",
23
23
  "@twin.org/logging-models": "next",
24
24
  "@twin.org/nameof": "next",