create-tigra 5.0.3 → 5.0.4
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/CHANGELOG.md +22 -0
- package/package.json +1 -1
- package/template/AGENTS.md +1 -0
- package/template/client/Dockerfile +3 -3
- package/template/client/package-lock.json +699 -2323
- package/template/client/package.json +5 -5
- package/template/server/Dockerfile +4 -4
- package/template/server/package-lock.json +480 -253
- package/template/server/package.json +11 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
A generated project never changes after it is created: these notes say what new projects get. To bring an older
|
|
4
4
|
project along, port the changes you need; the guides in [docs/](docs/) cover the ones that need care.
|
|
5
5
|
|
|
6
|
+
## 5.0.4 (2026-11-28)
|
|
7
|
+
|
|
8
|
+
Dependency security updates. `npm audit --omit=dev` (what runs in production) now finds nothing in the server and
|
|
9
|
+
4 moderate findings in the client, all one advisory; the generator itself has none.
|
|
10
|
+
|
|
11
|
+
- Client: `@sentry/nextjs` 10.78 (clears a critical middleware-bypass advisory for tunnel routes) and `zod` 4.6.7.
|
|
12
|
+
`follow-redirects`, `fast-uri` and other packages deep in the tree are on fixed versions.
|
|
13
|
+
- Server: `fastify` 5.12.8, `@fastify/static` 10.1.12 and `zod` 4.6.7. Prisma 6 pins vulnerable `effect` and
|
|
14
|
+
`deepmerge-ts` in its config loader; `overrides` in `server/package.json` move them to 3.22.5 and 8.0.2 (Prisma
|
|
15
|
+
generates, migrates and passes the integration tests with them). They go away with Prisma 7.
|
|
16
|
+
- Dev tools: Vitest 4.1.12, ESLint 10.16 (server), shadcn 4.23 (client; its `tailwind.css` only adds opt-in
|
|
17
|
+
utilities), with refreshed `vite`, `undici` and `hono`. The generator's `ts-morph` helper no longer brings a
|
|
18
|
+
vulnerable `minimatch`.
|
|
19
|
+
- Both Dockerfiles use `node:24-alpine` with Node 24.22.3 (security release, npm 11.19.1 as before).
|
|
20
|
+
- Still reported, all needing a major upgrade: in the client, `glob` inside Sentry's build-time source-map plugin
|
|
21
|
+
(fixed only in `@sentry/nextjs` 11); among dev tools, `minimatch` under typescript-eslint and `glob` under
|
|
22
|
+
Testcontainers. None of them runs while the app serves requests.
|
|
23
|
+
|
|
24
|
+
To bring an existing project along: apply the same version changes in its `package.json` files (and the server's
|
|
25
|
+
`@prisma/config` overrides), run `npm install` with npm 11.19 or newer, then `npx prisma generate` and the project's
|
|
26
|
+
tests. Check `npm audit --omit=dev` in both apps afterwards.
|
|
27
|
+
|
|
6
28
|
## 5.0.3 (2026-11-27)
|
|
7
29
|
|
|
8
30
|
- New projects' `AGENTS.md` has a plain Project facts section. It used to name the maintainer's private tools.
|
package/package.json
CHANGED
package/template/AGENTS.md
CHANGED
|
@@ -52,6 +52,7 @@ Every implementation change MUST include a human-readability pass. Add or update
|
|
|
52
52
|
- Every deploy applies the new migrations while the old version is still serving, so a migration must work with the code that is still running. Follow expand / deploy / contract (`server/docs/deployment.md`): never drop, rename, retype or make a column required in the same deploy as the code that stops using it.
|
|
53
53
|
- Both Dockerfiles build sharp against a pinned libvips so images run on CPUs without x86-64-v2. When upgrading sharp (or Next, which brings its own sharp), check the new sharp's `config.libvips` range; if `LIBVIPS_VERSION` no longer satisfies it, bump `LIBVIPS_VERSION` and `LIBVIPS_SHA256` in both Dockerfiles. The build fails with a clear message if they do not match.
|
|
54
54
|
- Write `package-lock.json` with npm 11.19 or newer (`npm -v`). The images run `npm ci` with npm 11.19.1, which rejects lockfiles from npm 10 and from early npm 11 (11.6.1 was seen failing).
|
|
55
|
+
- `overrides` in `server/package.json` and `client/package.json` force a fixed version of a package deep in the tree when an advisory hit it and its parent has not caught up. Before removing one, check with `npm ls <package>` that the parent now brings the fixed version by itself. The server's `@prisma/config` overrides (`effect`, `deepmerge-ts`) exist because Prisma 6 pins vulnerable versions; drop them when moving to Prisma 7, and after changing them run `npx prisma generate` and the integration tests (they apply the migrations).
|
|
55
56
|
- `server/docker-compose.yml` is local-development infrastructure, not a production topology. Keep host ports loopback-bound and admin UIs opt-in through the `tools` profile.
|
|
56
57
|
|
|
57
58
|
## Non-obvious security rules
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
# (measured ~2.8x: 49s->18s on a real create-tigra client) instead of
|
|
10
10
|
# re-downloading every tarball. Requires the `# syntax` line above (BuildKit).
|
|
11
11
|
#
|
|
12
|
-
# Every stage uses the same pinned node:24-alpine image (Node 24.22.
|
|
12
|
+
# Every stage uses the same pinned node:24-alpine image (Node 24.22.3,
|
|
13
13
|
# npm 11.19.1, Alpine 3.24). Node 24 is the template's runtime (package.json
|
|
14
14
|
# engines >=24). `npm ci` below fails when package-lock.json was written by an
|
|
15
15
|
# older npm: npm 10 always, and early npm 11 too (11.6.1 leaves out the
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
# 0.35.5). When a sharp upgrade needs more than LIBVIPS_VERSION, bump
|
|
41
41
|
# LIBVIPS_VERSION and LIBVIPS_SHA256 (from the libvips release page) in BOTH
|
|
42
42
|
# Dockerfiles. Stage 2 stops the build with a clear message if you forget.
|
|
43
|
-
FROM node:24-alpine@sha256:
|
|
43
|
+
FROM node:24-alpine@sha256:116b800c3754b440ee0aa3ed2f20f5bf3d99a554bfd9adeea09ea8017f6e85f5 AS libvips
|
|
44
44
|
|
|
45
45
|
ARG LIBVIPS_VERSION=8.18.7
|
|
46
46
|
ARG LIBVIPS_SHA256=5baaead3b0bb20ffdb9e9ff09aa9fda08620923df77b63b436654cb5e0b3bf94
|
|
@@ -201,7 +201,7 @@ RUN npm run build
|
|
|
201
201
|
# ===================================================================
|
|
202
202
|
# Stage 4: Production Runtime
|
|
203
203
|
# ===================================================================
|
|
204
|
-
FROM node:24-alpine@sha256:
|
|
204
|
+
FROM node:24-alpine@sha256:116b800c3754b440ee0aa3ed2f20f5bf3d99a554bfd9adeea09ea8017f6e85f5 AS production
|
|
205
205
|
|
|
206
206
|
# dumb-init: proper signal handling.
|
|
207
207
|
# curl: Coolify's own HTTP health check runs curl (then BusyBox wget) inside
|