@ops-ai/toggly-fastify 0.3.0 → 0.3.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/README.md +14 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -8,6 +8,20 @@ Toggly feature flags Fastify plugin
|
|
|
8
8
|
npm install @ops-ai/toggly-fastify
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
## Compatibility
|
|
12
|
+
|
|
13
|
+
The adapter retains its `fastify` peer range of `^4.0.0 || ^5.0.0` and its
|
|
14
|
+
Node.js package floor of 18. Fastify 4.29.1 is tested with Node 18.20.8.
|
|
15
|
+
Fastify 5 requires Node 20 or newer; Fastify 5.12.4 is tested with Node
|
|
16
|
+
20.19.6. Use a Fastify-5-compatible Node runtime even though the adapter
|
|
17
|
+
itself can run on Node 18.
|
|
18
|
+
|
|
19
|
+
The compatibility harness packs the release artifact, resolves its core
|
|
20
|
+
dependency from npm, type-checks its public declarations, exercises ESM and
|
|
21
|
+
CommonJS exports, and starts real HTTP listeners. To provide exact Node
|
|
22
|
+
binaries in a local matrix, set `TOGGLY_FASTIFY_NODE18` and
|
|
23
|
+
`TOGGLY_FASTIFY_NODE20` before `pnpm test:hosts`.
|
|
24
|
+
|
|
11
25
|
## Documentation
|
|
12
26
|
|
|
13
27
|
- [docs.toggly.io](https://docs.toggly.io)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ops-ai/toggly-fastify",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Toggly feature flags Fastify plugin",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -52,15 +52,18 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"fastify-plugin": "^5.0.1",
|
|
55
|
-
"@ops-ai/toggly-node-core": "^0.
|
|
55
|
+
"@ops-ai/toggly-node-core": "^0.9.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
+
"@eslint/js": "^9.39.2",
|
|
58
59
|
"@types/node": "^22.15.30",
|
|
59
60
|
"@vitest/coverage-v8": "^3.2.4",
|
|
60
61
|
"eslint": "^9.28.0",
|
|
61
62
|
"fastify": "^5.4.0",
|
|
63
|
+
"globals": "^15.15.0",
|
|
62
64
|
"tsup": "^8.5.0",
|
|
63
65
|
"typescript": "^5.8.3",
|
|
66
|
+
"typescript-eslint": "^8.70.0",
|
|
64
67
|
"vitest": "^3.2.4"
|
|
65
68
|
},
|
|
66
69
|
"publishConfig": {
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
"build": "tsup",
|
|
71
74
|
"dev": "tsup --watch",
|
|
72
75
|
"test": "vitest run",
|
|
76
|
+
"test:hosts": "node tests/packed-hosts.mjs",
|
|
73
77
|
"test:watch": "vitest",
|
|
74
78
|
"test:coverage": "vitest run --coverage",
|
|
75
79
|
"lint": "eslint src tests",
|