@twin.org/api-server-fastify 0.0.2-next.9 → 0.0.3-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.
- package/dist/es/fastifySocketIo.js +18 -0
- package/dist/es/fastifySocketIo.js.map +1 -0
- package/dist/{esm/index.mjs → es/fastifyWebServer.js} +111 -88
- package/dist/es/fastifyWebServer.js.map +1 -0
- package/dist/es/index.js +6 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IFastifyWebServerConfig.js +2 -0
- package/dist/es/models/IFastifyWebServerConfig.js.map +1 -0
- package/dist/es/models/IFastifyWebServerConstructorOptions.js +2 -0
- package/dist/es/models/IFastifyWebServerConstructorOptions.js.map +1 -0
- package/dist/types/fastifyWebServer.d.ts +2 -2
- package/dist/types/index.d.ts +3 -3
- package/dist/types/models/IFastifyWebServerConstructorOptions.d.ts +1 -1
- package/docs/changelog.md +98 -0
- package/docs/reference/classes/FastifyWebServer.md +1 -1
- package/locales/.validate-ignore +2 -0
- package/locales/en.json +18 -12
- package/package.json +24 -13
- package/dist/cjs/index.cjs +0 -562
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,103 @@
|
|
|
1
1
|
# @twin.org/api-server-fastify - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.1](https://github.com/twinfoundation/api/compare/api-server-fastify-v0.0.3-next.0...api-server-fastify-v0.0.3-next.1) (2025-11-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add authentication generators and process features option ([a67edf1](https://github.com/twinfoundation/api/commit/a67edf1df212bd8ab94a40cddf5338551155696f))
|
|
9
|
+
* add context id features ([#42](https://github.com/twinfoundation/api/issues/42)) ([0186055](https://github.com/twinfoundation/api/commit/0186055c48afde842a4254b4df9ac9249c40fe40))
|
|
10
|
+
* add json-ld mime type processor and auth admin component ([8861791](https://github.com/twinfoundation/api/commit/88617916e23bfbca023dbae1976fe421983a02ff))
|
|
11
|
+
* add logging component type to request contexts ([210de1b](https://github.com/twinfoundation/api/commit/210de1b9e1c91079b59a2b90ddd57569668d647d))
|
|
12
|
+
* add root, favicon routes ([71da1c3](https://github.com/twinfoundation/api/commit/71da1c3a93c349588aff7084d1d8d6a29a277da8))
|
|
13
|
+
* add socket id, connect and disconnect ([20b0d0e](https://github.com/twinfoundation/api/commit/20b0d0ec279cab46141fee09de2c4a7087cdce16))
|
|
14
|
+
* add validate-locales ([cdba610](https://github.com/twinfoundation/api/commit/cdba610a0acb5022d2e3ce729732e6646a297e5e))
|
|
15
|
+
* eslint migration to flat config ([0dd5820](https://github.com/twinfoundation/api/commit/0dd5820e3af97350fd08b8d226f4a6c1a9246805))
|
|
16
|
+
* improve socket route logging ([b8d9519](https://github.com/twinfoundation/api/commit/b8d95199f838ac6ba9f45c30ef7c4e613201ff53))
|
|
17
|
+
* logging naming consistency ([a4a6ef2](https://github.com/twinfoundation/api/commit/a4a6ef2de5049045589eb78b177ff62e744bde9d))
|
|
18
|
+
* update dependencies ([1171dc4](https://github.com/twinfoundation/api/commit/1171dc416a9481737f6a640e3cf30145768f37e9))
|
|
19
|
+
* update framework core ([d8eebf2](https://github.com/twinfoundation/api/commit/d8eebf267fa2a0abaa84e58590496e9d20490cfa))
|
|
20
|
+
* update IComponent signatures ([915ce37](https://github.com/twinfoundation/api/commit/915ce37712326ab4aa6869c350eabaa4622e8430))
|
|
21
|
+
* use shared store mechanism ([#19](https://github.com/twinfoundation/api/issues/19)) ([32116df](https://github.com/twinfoundation/api/commit/32116df3b4380a30137f5056f242a5c99afa2df9))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* use correct format for log messaging ([6b62a18](https://github.com/twinfoundation/api/commit/6b62a185e1da1150bb1e4331337e2799294b83c4))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Dependencies
|
|
30
|
+
|
|
31
|
+
* The following workspace dependencies were updated
|
|
32
|
+
* dependencies
|
|
33
|
+
* @twin.org/api-core bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
34
|
+
* @twin.org/api-models bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
35
|
+
* @twin.org/api-processors bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
36
|
+
|
|
37
|
+
## [0.0.2-next.13](https://github.com/twinfoundation/api/compare/api-server-fastify-v0.0.2-next.12...api-server-fastify-v0.0.2-next.13) (2025-10-09)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* use correct format for log messaging ([6b62a18](https://github.com/twinfoundation/api/commit/6b62a185e1da1150bb1e4331337e2799294b83c4))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Dependencies
|
|
46
|
+
|
|
47
|
+
* The following workspace dependencies were updated
|
|
48
|
+
* dependencies
|
|
49
|
+
* @twin.org/api-core bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
50
|
+
* @twin.org/api-models bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
51
|
+
* @twin.org/api-processors bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
52
|
+
|
|
53
|
+
## [0.0.2-next.12](https://github.com/twinfoundation/api/compare/api-server-fastify-v0.0.2-next.11...api-server-fastify-v0.0.2-next.12) (2025-10-09)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Features
|
|
57
|
+
|
|
58
|
+
* add validate-locales ([cdba610](https://github.com/twinfoundation/api/commit/cdba610a0acb5022d2e3ce729732e6646a297e5e))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Dependencies
|
|
62
|
+
|
|
63
|
+
* The following workspace dependencies were updated
|
|
64
|
+
* dependencies
|
|
65
|
+
* @twin.org/api-core bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
66
|
+
* @twin.org/api-models bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
67
|
+
* @twin.org/api-processors bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
68
|
+
|
|
69
|
+
## [0.0.2-next.11](https://github.com/twinfoundation/api/compare/api-server-fastify-v0.0.2-next.10...api-server-fastify-v0.0.2-next.11) (2025-09-29)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Features
|
|
73
|
+
|
|
74
|
+
* update IComponent signatures ([915ce37](https://github.com/twinfoundation/api/commit/915ce37712326ab4aa6869c350eabaa4622e8430))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Dependencies
|
|
78
|
+
|
|
79
|
+
* The following workspace dependencies were updated
|
|
80
|
+
* dependencies
|
|
81
|
+
* @twin.org/api-core bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
82
|
+
* @twin.org/api-models bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
83
|
+
* @twin.org/api-processors bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
84
|
+
|
|
85
|
+
## [0.0.2-next.10](https://github.com/twinfoundation/api/compare/api-server-fastify-v0.0.2-next.9...api-server-fastify-v0.0.2-next.10) (2025-09-23)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
### Features
|
|
89
|
+
|
|
90
|
+
* add authentication generators and process features option ([a67edf1](https://github.com/twinfoundation/api/commit/a67edf1df212bd8ab94a40cddf5338551155696f))
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Dependencies
|
|
94
|
+
|
|
95
|
+
* The following workspace dependencies were updated
|
|
96
|
+
* dependencies
|
|
97
|
+
* @twin.org/api-core bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
98
|
+
* @twin.org/api-models bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
99
|
+
* @twin.org/api-processors bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
100
|
+
|
|
3
101
|
## [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
102
|
|
|
5
103
|
|
package/locales/en.json
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
2
|
+
"error": {
|
|
3
|
+
"fastifyWebServer": {
|
|
4
|
+
"startFailed": "The Web Server failed to start",
|
|
5
|
+
"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
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"info": {
|
|
12
|
+
"fastifyWebServer": {
|
|
13
|
+
"building": "Building Web Server",
|
|
14
|
+
"starting": "Starting Web Server at address \"{host}\" on port \"{port}\"",
|
|
15
|
+
"started": "The Web Server started on {addresses}",
|
|
16
|
+
"stopped": "The Web Server was stopped",
|
|
17
|
+
"restRouteAdded": "Added REST route \"{route}\" \"{method}\"",
|
|
18
|
+
"socketRouteAdded": "Added socket route: handshake path \"{handshakePath}\", namespace \"{namespace}\", event name \"{eventName}\""
|
|
19
|
+
}
|
|
14
20
|
}
|
|
15
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/api-server-fastify",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3-next.1",
|
|
4
4
|
"description": "Use Fastify as the core web server for APIs",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,33 +14,44 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@fastify/compress": "8.
|
|
17
|
+
"@fastify/compress": "8.3.0",
|
|
18
18
|
"@fastify/cors": "11.1.0",
|
|
19
|
-
"@twin.org/api-core": "0.0.
|
|
20
|
-
"@twin.org/api-models": "0.0.
|
|
21
|
-
"@twin.org/api-processors": "0.0.
|
|
19
|
+
"@twin.org/api-core": "0.0.3-next.1",
|
|
20
|
+
"@twin.org/api-models": "0.0.3-next.1",
|
|
21
|
+
"@twin.org/api-processors": "0.0.3-next.1",
|
|
22
|
+
"@twin.org/context": "next",
|
|
22
23
|
"@twin.org/core": "next",
|
|
23
24
|
"@twin.org/logging-models": "next",
|
|
24
25
|
"@twin.org/nameof": "next",
|
|
25
26
|
"@twin.org/web": "next",
|
|
26
|
-
"fastify": "5.
|
|
27
|
+
"fastify": "5.6.2",
|
|
27
28
|
"socket.io": "4.8.1"
|
|
28
29
|
},
|
|
29
|
-
"main": "./dist/
|
|
30
|
-
"module": "./dist/esm/index.mjs",
|
|
30
|
+
"main": "./dist/es/index.js",
|
|
31
31
|
"types": "./dist/types/index.d.ts",
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
34
34
|
"types": "./dist/types/index.d.ts",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
35
|
+
"import": "./dist/es/index.js",
|
|
36
|
+
"default": "./dist/es/index.js"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
|
40
|
-
"dist/
|
|
41
|
-
"dist/esm",
|
|
40
|
+
"dist/es",
|
|
42
41
|
"dist/types",
|
|
43
42
|
"locales",
|
|
44
43
|
"docs"
|
|
45
|
-
]
|
|
44
|
+
],
|
|
45
|
+
"keywords": [
|
|
46
|
+
"twin",
|
|
47
|
+
"trade",
|
|
48
|
+
"iota",
|
|
49
|
+
"framework",
|
|
50
|
+
"blockchain",
|
|
51
|
+
"api"
|
|
52
|
+
],
|
|
53
|
+
"bugs": {
|
|
54
|
+
"url": "git+https://github.com/twinfoundation/api/issues"
|
|
55
|
+
},
|
|
56
|
+
"homepage": "https://twindev.org"
|
|
46
57
|
}
|