fastify-auto-sqlapi 0.4.1 → 0.5.0

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.
@@ -873,3 +873,25 @@ some main rows have no children:
873
873
  - Conditions are ANDed, so "below 5 **or** no children" is no longer one request: run the
874
874
  `isNull` search separately, or compare against a `count` instead where that expresses the
875
875
  same thing.
876
+
877
+ # Breaking Change — Node.js 22 or newer is required
878
+
879
+ *Landed in **0.5.0**.*
880
+
881
+ ## Why this changed
882
+
883
+ `engines.node` said `>=18`, but no Node version other than 24 was tested, and the promise
884
+ was already wrong: Fastify 5, a required peer dependency, supports Node 20 and later only.
885
+ Node 18 and Node 20 are both end-of-life, so the floor now starts at the oldest maintained
886
+ LTS line, and CI runs the full gate on Node 22, 24 and 26 to keep that promise checked.
887
+
888
+ ## Who is affected
889
+
890
+ Deployments still running Node 18 or 20. Nothing in the API, the request/response shapes
891
+ or the table configuration changes.
892
+
893
+ ## Migration
894
+
895
+ Upgrade the runtime to Node 22 or newer. npm only warns on an `engines` mismatch (it fails
896
+ with `engine-strict=true`), so a deployment on an older Node may keep installing, but it is
897
+ no longer supported or tested.
package/CHANGELOG.md CHANGED
@@ -9,6 +9,22 @@ Migration instructions for breaking changes live in **[BREAKING_CHANGES.md](./BR
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [0.5.0]
13
+
14
+ ### Changed
15
+
16
+ - **BREAKING: Node.js 22 or newer is required** (`engines.node` is now `>=22`, was `>=18`).
17
+ Node 18 and 20 are end-of-life, and Fastify 5 never supported Node 18. CI now runs the
18
+ full gate on Node 22, 24 and 26. See
19
+ [BREAKING_CHANGES.md](./BREAKING_CHANGES.md#breaking-change--nodejs-22-or-newer-is-required).
20
+
21
+ ### Security
22
+
23
+ - Development dependencies only, nothing shipped in the package: `fastify` 5.12.8
24
+ (GHSA-4mh8-r7rc-xpvc, GHSA-389g-gv7q-r4x8) and `minimatch` forced to `^11.0.5` through
25
+ `overrides` (GHSA-g3hv-75wg-m249) until eslint, typescript-eslint, eslint-plugin-sonarjs
26
+ and ts-morph move off minimatch 10.
27
+
12
28
  ## [0.4.1]
13
29
 
14
30
  ### Changed
@@ -768,7 +784,8 @@ the join API redesign (documented in [BREAKING_CHANGES.md](./BREAKING_CHANGES.md
768
784
  primary key support in updates, transactional insert/update with secondaries, the hook matrix,
769
785
  and bulk operations.
770
786
 
771
- [Unreleased]: https://github.com/LucaRainone/fastify-auto-sqlapi/compare/v0.4.1...HEAD
787
+ [Unreleased]: https://github.com/LucaRainone/fastify-auto-sqlapi/compare/v0.5.0...HEAD
788
+ [0.5.0]: https://github.com/LucaRainone/fastify-auto-sqlapi/releases/tag/v0.5.0
772
789
  [0.4.1]: https://github.com/LucaRainone/fastify-auto-sqlapi/releases/tag/v0.4.1
773
790
  [0.4.0]: https://github.com/LucaRainone/fastify-auto-sqlapi/releases/tag/v0.4.0
774
791
  [0.3.0]: https://github.com/LucaRainone/fastify-auto-sqlapi/releases/tag/v0.3.0
package/README.md CHANGED
@@ -325,7 +325,7 @@ request says exactly what to fix.
325
325
 
326
326
  ## Requirements
327
327
 
328
- - Node.js >= 18, Fastify >= 5 (peer dependency)
328
+ - Node.js >= 22, Fastify >= 5 (peer dependency)
329
329
  - **PostgreSQL** + `pg` + `@fastify/postgres`, or **MySQL** / **MariaDB** + `mysql2`
330
330
  - Optional: `@fastify/swagger` + `@fastify/swagger-ui` for Swagger UI
331
331
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastify-auto-sqlapi",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "Fastify plugin for automatic CRUD API generation from PostgreSQL, MySQL and MariaDB tables",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -69,7 +69,7 @@
69
69
  "typebox"
70
70
  ],
71
71
  "engines": {
72
- "node": ">=18"
72
+ "node": ">=22"
73
73
  },
74
74
  "author": "Luca Rainone",
75
75
  "license": "MIT",
@@ -96,7 +96,7 @@
96
96
  "dependency-cruiser": "^18.1.0",
97
97
  "eslint": "^10.8.0",
98
98
  "eslint-plugin-sonarjs": "^4.2.0",
99
- "fastify": "5.12.4",
99
+ "fastify": "5.12.8",
100
100
  "fuse.js": "^7.5.0",
101
101
  "jscpd": "^5.0.14",
102
102
  "knip": "^6.31.0",
@@ -135,5 +135,8 @@
135
135
  "@fastify/swagger-ui": {
136
136
  "optional": true
137
137
  }
138
+ },
139
+ "overrides": {
140
+ "minimatch": "^11.0.5"
138
141
  }
139
142
  }