@3sixty/api-server-fastify 0.20.0-next.0 → 0.20.0-next.1

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.
@@ -6,9 +6,15 @@ The configuration for the Fastify web server.
6
6
 
7
7
  ### web? {#web}
8
8
 
9
- > `optional` **web?**: `Partial`\<`FastifyServerOptions`\>
9
+ > `optional` **web?**: `Partial`\<`FastifyServerOptions`\> & `object`
10
10
 
11
- The web server options.
11
+ The web server options, providing the https options serves over HTTPS.
12
+
13
+ #### Type Declaration
14
+
15
+ ##### https?
16
+
17
+ > `optional` **https?**: `ServerOptions`\<*typeof* `IncomingMessage`, *typeof* `ServerResponse`\>
12
18
 
13
19
  ***
14
20
 
@@ -1,5 +1,3 @@
1
- # Fastify plugin options in fastifySocketIo.ts — not locale keys
1
+ # Fastify plugin options in fastifySocketIo.ts, not locale keys
2
2
  >=5\.x\.x
3
3
  socket\.io
4
- 127.0.0.1
5
- 0.0.0.0
package/locales/en.json CHANGED
@@ -1,35 +1,14 @@
1
1
  {
2
2
  "error": {
3
3
  "fastifyWebServer": {
4
- "startFailed": "The Web Server failed to start",
5
4
  "badRequest": "The web server could not handle the request",
6
- "noRestProcessors": "You must configure at least one REST processor",
7
- "noSocketProcessors": "You must configure at least one socket processor",
8
- "postProcessorError": "There was a failure after in a post processor for route \"{route}\"",
9
- "invalidPublicOrigin": "The public origin \"{publicOrigin}\" is not a valid origin URL, it should be in the format \"protocol://host[:port]\".",
10
- "unknownBodyLimit": "The route \"{route}\" uses the body limit named \"{bodyLimit}\", which is not configured",
11
- "invalidBodyLimit": "The body limit named \"{bodyLimit}\" must be an integer greater than zero, but it is \"{value}\""
5
+ "unknownBodyLimit": "The route \"{route}\" uses the body limit named \"{bodyLimit}\", which is not configured"
12
6
  }
13
7
  },
14
8
  "info": {
15
9
  "fastifyWebServer": {
16
- "building": "Building Web Server",
17
- "starting": "Starting Web Server with binding \"{host}\" on port \"{port}\"",
18
- "started": "The Web Server started on {addresses}",
19
- "stopped": "The Web Server was stopped",
20
10
  "restRouteAdded": "Added REST route \"{route}\" \"{method}\"",
21
11
  "socketRouteAdded": "Added socket route: handshake path \"{handshakePath}\", namespace \"{namespace}\", event name \"{eventName}\""
22
12
  }
23
- },
24
- "health": {
25
- "fastifyWebServer": {
26
- "healthConnectivityDescription": "Checks if the Web Server is reachable",
27
- "reachable": "The Web Server is reachable",
28
- "unreachable": "The Web Server is unreachable",
29
- "healthApplicationDescription": "Checks if the root endpoint is reachable",
30
- "rootEndpointReachable": "The root endpoint is reachable",
31
- "rootEndpointError": "The root endpoint returned an unexpected response",
32
- "serverNotBuilt": "The server has not been built"
33
- }
34
13
  }
35
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3sixty/api-server-fastify",
3
- "version": "0.20.0-next.0",
3
+ "version": "0.20.0-next.1",
4
4
  "description": "Fastify web server integration for exposing API routes with consistent runtime behaviour.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,19 +14,18 @@
14
14
  "node": ">=24.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@fastify/compress": "9.2.0",
18
- "@fastify/cors": "11.3.0",
19
- "@3sixty/api-core": "0.20.0-next.0",
20
- "@3sixty/api-models": "0.20.0-next.0",
21
- "@3sixty/api-processors": "0.20.0-next.0",
17
+ "@3sixty/api-core": "0.20.0-next.1",
18
+ "@3sixty/api-core-server": "0.20.0-next.1",
19
+ "@3sixty/api-models": "0.20.0-next.1",
22
20
  "@3sixty/context": "next",
23
21
  "@3sixty/core": "next",
24
- "@3sixty/logging-models": "next",
25
22
  "@3sixty/nameof": "next",
26
23
  "@3sixty/web": "next",
27
- "fastify": "5.12.5",
28
- "fastify-plugin": "6.0.0",
29
- "socket.io": "4.8.3"
24
+ "@fastify/compress": "9.2.2",
25
+ "@fastify/cors": "11.3.1",
26
+ "fastify": "5.12.7",
27
+ "fastify-plugin": "6.0.1",
28
+ "socket.io": "4.8.4"
30
29
  },
31
30
  "main": "./dist/es/index.js",
32
31
  "types": "./dist/types/index.d.ts",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IRestProcessorChains.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IRestProcessorChains.js","sourceRoot":"","sources":["../../../src/models/IRestProcessorChains.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IRestRouteProcessor } from \"@3sixty/api-models\";\n\n/**\n * The REST processor phase chains, bound to their processors when the server is built.\n */\nexport interface IRestProcessorChains {\n\t/**\n\t * The pre processing phase.\n\t */\n\tpre: NonNullable<IRestRouteProcessor[\"pre\"]>[];\n\n\t/**\n\t * The main processing phase.\n\t */\n\tprocess: NonNullable<IRestRouteProcessor[\"process\"]>[];\n\n\t/**\n\t * The post processing phase.\n\t */\n\tpost: NonNullable<IRestRouteProcessor[\"post\"]>[];\n}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ISocketProcessorChains.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ISocketProcessorChains.js","sourceRoot":"","sources":["../../../src/models/ISocketProcessorChains.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ISocketRouteProcessor } from \"@3sixty/api-models\";\n\n/**\n * The socket processor phase chains, bound to their processors when the server is built.\n */\nexport interface ISocketProcessorChains {\n\t/**\n\t * The socket connected phase.\n\t */\n\tconnected: NonNullable<ISocketRouteProcessor[\"connected\"]>[];\n\n\t/**\n\t * The socket disconnected phase.\n\t */\n\tdisconnected: NonNullable<ISocketRouteProcessor[\"disconnected\"]>[];\n\n\t/**\n\t * The pre processing phase.\n\t */\n\tpre: NonNullable<ISocketRouteProcessor[\"pre\"]>[];\n\n\t/**\n\t * The main processing phase.\n\t */\n\tprocess: NonNullable<ISocketRouteProcessor[\"process\"]>[];\n\n\t/**\n\t * The post processing phase.\n\t */\n\tpost: NonNullable<ISocketRouteProcessor[\"post\"]>[];\n}\n"]}
@@ -1,18 +0,0 @@
1
- import type { IRestRouteProcessor } from "@3sixty/api-models";
2
- /**
3
- * The REST processor phase chains, bound to their processors when the server is built.
4
- */
5
- export interface IRestProcessorChains {
6
- /**
7
- * The pre processing phase.
8
- */
9
- pre: NonNullable<IRestRouteProcessor["pre"]>[];
10
- /**
11
- * The main processing phase.
12
- */
13
- process: NonNullable<IRestRouteProcessor["process"]>[];
14
- /**
15
- * The post processing phase.
16
- */
17
- post: NonNullable<IRestRouteProcessor["post"]>[];
18
- }
@@ -1,26 +0,0 @@
1
- import type { ISocketRouteProcessor } from "@3sixty/api-models";
2
- /**
3
- * The socket processor phase chains, bound to their processors when the server is built.
4
- */
5
- export interface ISocketProcessorChains {
6
- /**
7
- * The socket connected phase.
8
- */
9
- connected: NonNullable<ISocketRouteProcessor["connected"]>[];
10
- /**
11
- * The socket disconnected phase.
12
- */
13
- disconnected: NonNullable<ISocketRouteProcessor["disconnected"]>[];
14
- /**
15
- * The pre processing phase.
16
- */
17
- pre: NonNullable<ISocketRouteProcessor["pre"]>[];
18
- /**
19
- * The main processing phase.
20
- */
21
- process: NonNullable<ISocketRouteProcessor["process"]>[];
22
- /**
23
- * The post processing phase.
24
- */
25
- post: NonNullable<ISocketRouteProcessor["post"]>[];
26
- }