From e343ae501f68579c491d75ab2cecb183f9b1df51 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 20:28:11 -0500 Subject: [PATCH 01/16] docs: design router security beta Signed-off-by: Diego Resendez --- .../2026-08-02-router-security-beta-design.md | 170 ++++++++++++++++++ 1 file changed, 170 insertions(+) create mode 100644 docs/plans/2026-08-02-router-security-beta-design.md diff --git a/docs/plans/2026-08-02-router-security-beta-design.md b/docs/plans/2026-08-02-router-security-beta-design.md new file mode 100644 index 0000000..7d7afbe --- /dev/null +++ b/docs/plans/2026-08-02-router-security-beta-design.md @@ -0,0 +1,170 @@ +# Router correctness and security beta design + +**Date:** 2026-08-02 +**Target:** `26.8.0-beta.0` +**Status:** Approved + +## Goal + +Prepare the August beta by completing the router's missing HTTP behavior, adding safe segment constraints, aligning the public documentation with the code, and removing known dependency vulnerabilities from the core repository and documentation site. + +The release keeps the current linear matcher. A radix tree remains a separate performance project that must earn its complexity through benchmarks. + +## Scope + +This change includes: + +- first-class `HEAD` and `OPTIONS` routes; +- automatic `HEAD` fallback to `GET`; +- automatic bare `OPTIONS` responses; +- correct and deterministic `Allow` headers; +- a tolerant trailing-slash policy with rejection of repeated internal slashes; +- route-pattern validation at boot; +- safe parameter constraints such as `:id(\d+)`; +- malformed URI handling as a client error; +- duplicate and ambiguous route detection; +- OpenAPI projection of constrained parameters; +- dependency remediation for the root package and `website/`; +- public documentation and changelog updates; +- the `26.8.0-beta.0` package-version bump. + +This change excludes: + +- a radix-tree matcher; +- arbitrary, unrestricted regular expressions; +- manual publication, npm tags, or registry mutations; +- mesh discovery, load balancing, and failover. + +## Route semantics + +### Path normalization + +`/users` and `/users/` identify the same route. The matcher removes one trailing slash except for `/`. + +The ingress rejects repeated slashes, including `/users//42`, with `400 Bad Request`. It applies this rule before declared-route matching and static-file fallback, so Node and Fetch adapters behave alike. + +Malformed percent encoding also returns `400 Bad Request`. A malformed path never escapes the matcher as `URIError` and never becomes `500`. + +### Methods + +The public `HttpMethod` type and decorator surface gain `HEAD` and `OPTIONS`. `@Head` and `@Options` accept the same route options as the existing buffered method decorators. + +For `HEAD`, an explicit `HEAD` route wins. Without one, the router matches the corresponding `GET` route and executes its pipeline, but every adapter suppresses the response body. The response retains the status and headers that `GET` would produce. Streaming routes do not serve as implicit `HEAD` handlers. + +For a bare `OPTIONS` request, an explicit `OPTIONS` route wins. Without one, any matching path receives `204 No Content` and an `Allow` header. CORS preflight remains the earlier specialized branch and keeps its configured CORS response. + +`Allow` uses a stable method order. It adds `HEAD` when a buffered `GET` route exists and adds `OPTIONS` whenever the path exists. A request with another unsupported method receives `405` plus the same value. + +### Pattern validation + +The application compiles and validates route patterns during graph construction. Invalid declarations fail before the app serves traffic. Validation rejects: + +- a catch-all outside the final segment; +- empty parameter or catch-all names; +- repeated parameter names in one pattern; +- repeated internal slashes in declarations; +- malformed constraints; +- duplicate routes with the same method and effective pattern; +- patterns that differ only by parameter names and therefore match the same requests with equal precedence. + +Errors name the method, pattern, controller origin, and conflict when applicable. + +### Segment constraints + +The matcher accepts a constrained parameter such as `:id(\d+)`. A constraint matches the whole decoded segment. `/users/12` matches `:id(\d+)`; `/users/12x` does not. A failed constraint remains a normal non-match, so another route may win before the router returns `404`. + +The implementation compiles constraints once and caches the compiled pattern. It accepts a deliberately small regular-expression subset for common numeric, UUID, slug, and enumerated segments. It rejects lookarounds, backreferences, nested groups, nested quantifiers, and other constructs that create a practical ReDoS risk. This keeps the advertised syntax without executing unrestricted attacker-facing regular expressions. + +Specificity remains deterministic: + +1. static segment; +2. constrained parameter; +3. unconstrained parameter; +4. catch-all. + +Registration order resolves only genuine, non-ambiguous ties that survive boot validation. + +## Architecture + +`src/http/router.ts` owns pattern parsing, validation, compilation, matching, method fallback, and `Allow` calculation. A compiled representation records normalized segments, parameter names, optional constraints, catch-all state, and specificity. + +`src/metadata.ts` exposes the new method type and decorators. Application graph construction compiles route definitions and reports declaration errors with controller context. The runtime-neutral HTTP core decides `HEAD`, `OPTIONS`, `400`, `404`, and `405`; Node and Fetch adapters only serialize its outcome. + +`src/openapi.ts` converts constrained paths to OpenAPI templates and places the accepted expression in the path parameter's `schema.pattern`. It lists explicit `HEAD` and `OPTIONS` operations but does not invent operations for automatic fallbacks. + +Mesh route manifests carry the expanded method union. Existing wire behavior stays compatible because method values are strings and the change adds values without changing the envelope shape. + +## Error behavior + +Declaration errors fail at boot. Request syntax errors return the standard error envelope with status `400` and pass through the configured `onError` renderer. Pattern non-matches return `404`; method mismatches return `405`; automatic `OPTIONS` returns `204`. + +Error responses keep the existing security and CORS header injection. They do not include decoded attacker input, stack traces, or internal regular-expression details. + +## Dependency remediation + +The published runtime dependency set is already clean: `npm audit --omit=dev` reports zero vulnerabilities. The full development tree and documentation site require remediation. + +The root update will prefer the smallest supported versions that close each advisory: + +- Vitest moves to `3.2.6`, which fixes the critical advisory while preserving Node 18 support; +- the Nest benchmark packages move to `11.1.28`, including Multer `2.2.0`; +- Miniflare moves to its current compatible patch with fixed Sharp; +- Fastify and compatible toolchain packages receive current patch/minor updates; +- `find-my-way` receives a narrow `9.7.0` override while Nest pins the vulnerable `9.6.0`, with Nest/Fastify benchmarks as a compatibility gate; +- Autocannon's `hyperid`/`uuid` chain receives an isolated remediation only if the benchmark suite proves it compatible; otherwise the benchmark dependency will be replaced or isolated rather than suppressing the advisory. + +The documentation site moves Astro to `7.1.6`, Starlight to `0.41.6`, and resolves the patched PostCSS and SVGO versions. Both lockfiles will be regenerated from their manifests. + +The work will not use `npm audit fix --force`, security-audit suppression, or an incompatible downgrade merely to produce a green report. + +## Documentation + +The change updates: + +- the README routing section and roadmap; +- the Routing guide; +- the Decorators reference; +- the OpenAPI guide where constrained parameters affect output; +- the CHANGELOG and package version; +- the Starlight 404 configuration that currently emits a build warning. + +Examples will state the trailing-slash policy, double-slash rejection, automatic method behavior, constraint limits, and the deferred radix-tree work. + +## Verification + +The implementation adds unit and integration coverage for: + +- explicit and implicit `HEAD`; +- body suppression and header preservation; +- explicit and automatic `OPTIONS`; +- CORS-preflight precedence; +- deterministic `Allow` values; +- trailing slash equivalence and double-slash rejection; +- invalid percent encoding; +- route-declaration failures; +- constrained matches, non-matches, precedence, and unsafe-expression rejection; +- OpenAPI path and `schema.pattern` output; +- Node and Fetch parity; +- mesh method serialization where relevant. + +The release gate runs: + +- root and website audits with zero known vulnerabilities; +- the runtime-only root audit separately; +- Node tests, typecheck, lint, format, complexity, and build; +- Deno, Bun, and Edge suites when their runtimes are available; +- documentation build without the current 404 warning; +- framework benchmarks, including the Nest/Fastify paths affected by overrides; +- `npm pack --dry-run` to inspect the published artifact. + +## CI and publication flow + +Gitea remains the source of the release flow: + +1. CI runs on `develop` and `main`. +2. A merge to Gitea `main` publishes the package to internal Verdaccio under `stg`. +3. Gitea's promotion workflow pushes only `main` and version tags to GitHub. +4. A promoted `v*` tag triggers GitHub's `release.yml`. +5. GitHub publishes to npm through Trusted Publishing/OIDC and derives `beta` from `26.8.0-beta.0`. + +This implementation prepares the version and validates the workflows. It does not merge to `main`, create a release tag, publish to Verdaccio, or invoke `npm publish` locally. -- 2.54.1 From 63a61aeb0b96d6a3ea59f71cb2fdf23b5b31a848 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 20:34:03 -0500 Subject: [PATCH 02/16] docs: plan router security beta implementation Signed-off-by: Diego Resendez --- docs/plans/2026-08-02-router-security-beta.md | 633 ++++++++++++++++++ 1 file changed, 633 insertions(+) create mode 100644 docs/plans/2026-08-02-router-security-beta.md diff --git a/docs/plans/2026-08-02-router-security-beta.md b/docs/plans/2026-08-02-router-security-beta.md new file mode 100644 index 0000000..9e45596 --- /dev/null +++ b/docs/plans/2026-08-02-router-security-beta.md @@ -0,0 +1,633 @@ +# Router Security Beta Implementation Plan + +> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. + +**Goal:** Ship `26.8.0-beta.0` with complete HEAD/OPTIONS behavior, safe constrained route parameters, strict path handling, accurate documentation, and clean dependency audits. + +**Architecture:** Keep the linear route table, but compile and validate each pattern once. Centralize path syntax, matching, method fallback, and `Allow` calculation in the runtime-neutral HTTP layer so Node and Fetch adapters stay behaviorally identical. Remediate tooling dependencies without changing the package's Node 18 runtime contract or its one required runtime dependency. + +**Tech Stack:** TypeScript, legacy decorators, Node HTTP, Fetch API, Vitest, OpenAPI 3.1, Astro/Starlight, npm lockfiles, GitHub/Gitea Actions. + +--- + +### Task 1: Compile and validate route patterns + +**Skills:** `@superpowers:test-driven-development`, `@security-review` + +**Files:** +- Modify: `src/http/router.ts` +- Modify: `src/http/types.ts` +- Test: `test/router.test.ts` + +**Step 1: Write failing compiler tests** + +Add tests that establish the supported grammar and precedence: + +```typescript +describe('compilePattern', () => { + it('compiles constrained params and gives them precedence over plain params', () => { + const routes = [route('GET', '/users/:value'), route('GET', '/users/:id(\\d+)')]; + expect(matchRoute(routes, 'GET', '/users/42')?.def.pattern).toBe('/users/:id(\\d+)'); + expect(matchRoute(routes, 'GET', '/users/diego')?.def.pattern).toBe('/users/:value'); + }); + + it.each([ + '/files/:rest*/tail', + '/users/:', + '/users/:id/:id', + '/users//:id', + '/users/:id((a+)+)', + '/users/:id((?=a)a)', + '/users/:id(\\1)', + ])('rejects invalid or unsafe pattern %s', (pattern) => { + expect(() => compilePattern(pattern)).toThrow(/invalid route pattern|unsafe route constraint/); + }); +}); +``` + +Also cover numeric, UUID-like, slug, and bounded-quantifier examples; a constraint must match the complete decoded segment. + +**Step 2: Run the focused test and confirm RED** + +Run: + +```bash +npx vitest run test/router.test.ts +``` + +Expected: FAIL because `compilePattern` and constrained matching do not exist. + +**Step 3: Implement the compiled representation** + +In `src/http/router.ts`, add: + +```typescript +type CompiledSegment = + | { kind: 'static'; value: string } + | { kind: 'param'; name: string; constraint?: RegExp } + | { kind: 'catchAll'; name: string }; + +export interface CompiledPattern { + source: string; + normalized: string; + shape: string; + segments: CompiledSegment[]; + kinds: number[]; // static=3, constrained=2, param=1; catch-all stored separately + catchAll: boolean; +} +``` + +Implement `compilePattern(pattern)`, `matchCompiled(compiled, pathSegments)`, and a string-keyed cache used by `matchPattern`. Parse `:name(expr)` only when the closing `)` ends the segment. Anchor accepted constraints as `^(?:${expr})$`. + +Implement `assertSafeConstraint` as a small whitelist parser. Permit literals, character classes, `\\d`/`\\w`/`\\s` classes, escaped literals, and simple quantifiers. Reject expression length above 128, groups, alternation, anchors, lookarounds, backreferences, nested quantifiers, and adjacent unbounded quantified atoms without a separating literal. Do not add a runtime dependency. + +Build `shape` from segment kinds and constraint source so `:id` and `:name` have the same effective shape. + +**Step 4: Run tests and confirm GREEN** + +Run: + +```bash +npx vitest run test/router.test.ts +npm run typecheck +``` + +Expected: all router tests pass and TypeScript reports no errors. + +**Step 5: Commit** + +```bash +git add src/http/router.ts src/http/types.ts test/router.test.ts +git commit -s -m "feat(router): compile safe constrained patterns" +``` + +### Task 2: Validate request paths and route-table ambiguity + +**Skills:** `@superpowers:test-driven-development`, `@security-review` + +**Files:** +- Modify: `src/http/router.ts` +- Modify: `src/app/index.ts` +- Modify: `src/app/types.ts` +- Test: `test/router.test.ts` +- Test: `test/app.test.ts` + +**Step 1: Write failing path-policy tests** + +Add router tests for the approved normalization: + +```typescript +expect(normalizeRequestPath('/users')).toBe('/users'); +expect(normalizeRequestPath('/users/')).toBe('/users'); +expect(normalizeRequestPath('/')).toBe('/'); +expect(() => normalizeRequestPath('/users//42')).toThrow(/repeated slash/); +expect(() => normalizeRequestPath('/users/%E0%A4%A')).toThrow(/malformed path encoding/); +``` + +Add app-construction tests proving that identical routes and routes that differ only by parameter names fail before serving: + +```typescript +expect(() => createApp({ modules: [DuplicateRouteModule] })).toThrow(/ambiguous route.*GET/); +``` + +Cover the same path under different methods as valid. + +**Step 2: Run focused tests and confirm RED** + +```bash +npx vitest run test/router.test.ts test/app.test.ts +``` + +Expected: FAIL because normalization and ambiguity checks are absent. + +**Step 3: Implement request normalization** + +Add `InvalidRequestPathError` and `normalizeRequestPath(path)` to `src/http/router.ts`. Strip exactly one trailing slash except at root, reject `//`, and call `decodeURIComponent` on every raw segment only to validate encoding. Matching still compares static segments according to the existing encoded-path contract and decodes captured values once. + +**Step 4: Implement route-table validation** + +Store a `compiled` pattern on each internal `RoutePlan`/`RouteDef`, or expose a shared cache accessor if that avoids duplicating state. During `collectControllers`, compile each joined pattern and compare the candidate's method plus `shape` with existing route plans. Throw an error that includes method, pattern, controller/handler, and conflicting declaration. + +Apply the same validation after remote mesh routes join. A remote conflict must name both mesh owner URLs rather than silently selecting registration order. + +**Step 5: Run focused and mesh tests** + +```bash +npx vitest run test/router.test.ts test/app.test.ts test/mesh/fetch-boot.test.ts test/mesh/integration.test.ts +npm run typecheck +``` + +Expected: all selected tests pass. + +**Step 6: Commit** + +```bash +git add src/http/router.ts src/app/index.ts src/app/types.ts test/router.test.ts test/app.test.ts +git commit -s -m "fix(router): reject invalid and ambiguous paths" +``` + +### Task 3: Add HEAD and OPTIONS to the public decorator API + +**Skills:** `@superpowers:test-driven-development` + +**Files:** +- Modify: `src/metadata.ts` +- Modify: `src/index.ts` +- Modify: `src/signals.ts` +- Test: `test/metadata.test.ts` +- Test: `test/smoke.test.ts` + +**Step 1: Write failing decorator tests** + +```typescript +class Methods { + @Head('/resource') head() {} + @Options('/resource') options() {} +} + +expect(getRoutes(Methods).map(({ method }) => method)).toEqual(['HEAD', 'OPTIONS']); +``` + +Add a public-barrel smoke test that imports `Head`, `Options`, and `HttpMethod` from `src/index.ts`. + +**Step 2: Run tests and confirm RED** + +```bash +npx vitest run test/metadata.test.ts test/smoke.test.ts +``` + +Expected: FAIL because the exports do not exist. + +**Step 3: Implement decorators and messages** + +Extend `HttpMethod`: + +```typescript +export type HttpMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'; +``` + +Create buffered `Head` and `Options` decorators through `routeDecorator`, export them from `src/index.ts`, and update `TransportMismatchError`'s buffered-method message. Keep `@Html` restricted to GET/POST and update its rejection text to include HEAD/OPTIONS. + +**Step 4: Run tests and typecheck** + +```bash +npx vitest run test/metadata.test.ts test/smoke.test.ts test/transport-enforcement.test.ts test/views-html.test.ts +npm run typecheck +``` + +Expected: all pass. + +**Step 5: Commit** + +```bash +git add src/metadata.ts src/index.ts src/signals.ts test/metadata.test.ts test/smoke.test.ts +git commit -s -m "feat(router): expose HEAD and OPTIONS decorators" +``` + +### Task 4: Implement runtime-neutral HEAD, OPTIONS, and path errors + +**Skills:** `@superpowers:test-driven-development`, `@security-review` + +**Files:** +- Modify: `src/http/router.ts` +- Modify: `src/http/core.ts` +- Modify: `src/http/web.ts` +- Modify: `src/http/server.ts` +- Test: `test/router.test.ts` +- Test: `test/http.test.ts` +- Test: `test/fetch.test.ts` +- Test: `test/parity.test.ts` +- Test: `test/transport-security.test.ts` + +**Step 1: Write failing method-semantics tests** + +Cover these cases in both Node and `app.fetch`: + +```typescript +// Explicit HEAD wins. +// Otherwise buffered GET runs once, retains status/headers, and emits an empty body. +// Streaming GET does not become implicit HEAD. +// Explicit OPTIONS wins. +// Automatic OPTIONS returns 204 and deterministic Allow. +// GET implies HEAD; every existing path implies OPTIONS. +// CORS preflight still runs before explicit/automatic OPTIONS. +// Double slash and malformed encoding return 400 with security headers. +``` + +Use a canonical expected header such as `GET, HEAD, POST, OPTIONS`. + +**Step 2: Run focused tests and confirm RED** + +```bash +npx vitest run test/router.test.ts test/http.test.ts test/fetch.test.ts test/parity.test.ts test/transport-security.test.ts +``` + +Expected: new assertions fail under the current 405 behavior. + +**Step 3: Implement method resolution** + +In `src/http/router.ts`, add a stable method order and helpers: + +```typescript +export interface ResolvedRoute extends MatchedRoute { + implicitHead: boolean; +} + +export function resolveRoute(routes: RouteDef[], method: string, path: string): ResolvedRoute | undefined; +export function allowedMethods(routes: RouteDef[], path: string): HttpMethod[]; +``` + +`resolveRoute` tries explicit method first. For HEAD only, it falls back to a matching buffered GET. `allowedMethods` deduplicates explicit methods, adds HEAD for buffered GET, adds OPTIONS for every existing path, and sorts canonically. + +**Step 4: Implement core outcomes** + +At the start of `handle`, normalize the path and render `InvalidRequestPathError` as `400`. Preserve the existing CORS-preflight branch. Resolve explicit OPTIONS normally; otherwise return buffered `204` with `allow` and empty body. For an implicit or explicit HEAD route, run the normal pipeline but replace a buffered result body with `''`. Reject a stream outcome for HEAD as a transport mismatch rather than opening a stream. + +**Step 5: Align body acquisition in both adapters** + +Replace early `matchRoute` calls in `src/http/web.ts` and `src/http/server.ts` with the same normalization and resolution helper used by `handle`. If path validation fails before body acquisition, render `400` through `onError` with injected security/CORS headers. Never read a request body for automatic OPTIONS or an invalid path. + +**Step 6: Run focused tests and confirm GREEN** + +```bash +npx vitest run test/router.test.ts test/http.test.ts test/fetch.test.ts test/parity.test.ts test/transport-security.test.ts +npm run typecheck +``` + +Expected: all selected tests pass with Node/Fetch parity. + +**Step 7: Commit** + +```bash +git add src/http/router.ts src/http/core.ts src/http/web.ts src/http/server.ts test/router.test.ts test/http.test.ts test/fetch.test.ts test/parity.test.ts test/transport-security.test.ts +git commit -s -m "feat(http): complete HEAD and OPTIONS semantics" +``` + +### Task 5: Project constraints into OpenAPI and introspection + +**Skills:** `@superpowers:test-driven-development` + +**Files:** +- Modify: `src/openapi.ts` +- Modify: `src/app/introspect.ts` +- Test: `test/openapi.test.ts` +- Test: `test/graph-viz.test.ts` + +**Step 1: Write failing OpenAPI tests** + +Add `@Get('/:id(\\d+)')`, explicit `@Head`, and explicit `@Options` routes to the fixture. Assert: + +```typescript +expect(doc.paths['/api/users/{id}']).toBeDefined(); +expect((doc.paths['/api/users/{id}'].get as any).parameters).toContainEqual( + expect.objectContaining({ name: 'id', schema: { type: 'string', pattern: '\\d+' } }), +); +expect(doc.paths['/api/users/{id}'].head).toBeDefined(); +expect(doc.paths['/api/users/{id}'].options).toBeDefined(); +``` + +Assert that automatic HEAD/OPTIONS operations are not invented. + +**Step 2: Run tests and confirm RED** + +```bash +npx vitest run test/openapi.test.ts test/graph-viz.test.ts +``` + +Expected: constrained template parsing or schema assertions fail. + +**Step 3: Implement projection** + +Reuse the route compiler's parsed segment data instead of parsing the syntax a second way. Convert params and catch-alls to `{name}`. Add `schema.pattern` only for constrained params. Ensure `inspect`, `explain`, Mermaid, and DOT retain the human-readable original pattern. + +**Step 4: Run tests and typecheck** + +```bash +npx vitest run test/openapi.test.ts test/graph-viz.test.ts test/app.test.ts +npm run typecheck +``` + +Expected: all pass. + +**Step 5: Commit** + +```bash +git add src/openapi.ts src/app/introspect.ts test/openapi.test.ts test/graph-viz.test.ts +git commit -s -m "feat(openapi): document constrained route params" +``` + +### Task 6: Remove root and website dependency advisories + +**Skills:** `@security-review` + +**Files:** +- Modify: `package.json` +- Modify: `package-lock.json` +- Modify: `website/package.json` +- Modify: `website/package-lock.json` +- Test: `bench/servers/nestjs-express.ts` +- Test: `bench/servers/nestjs-fastify.ts` + +**Step 1: Record the failing audit baseline** + +```bash +npm audit +npm --prefix website audit +npm audit --omit=dev +``` + +Expected: root full audit reports 17 advisories, website reports 3, runtime-only root reports 0. + +**Step 2: Apply supported direct updates** + +Update root dependencies with explicit commands so the manifests and lockfile agree: + +```bash +npm install --save-dev vitest@^3.2.6 \ + @nestjs/common@^11.1.28 @nestjs/core@^11.1.28 \ + @nestjs/platform-express@^11.1.28 @nestjs/platform-fastify@^11.1.28 \ + fastify@^5.11.0 miniflare@^4.20260730.0 \ + @eslint/js@^9.39.5 eslint@^9.39.5 prettier@^3.9.6 \ + tsx@^4.23.5 typescript-eslint@^8.65.0 ws@^8.21.1 +npm --prefix website install astro@^7.1.6 @astrojs/starlight@^0.41.6 +``` + +Do not bump TypeScript, ESLint, or GraphQL across their next major versions. + +**Step 3: Add narrow overrides only for unresolved vulnerable transitives** + +Run `npm audit --json` and inspect the exact remaining paths. Add the smallest overrides justified by that output, initially: + +```json +{ + "overrides": { + "@nestjs/platform-fastify": { + "find-my-way": "9.7.0" + }, + "autocannon": { + "hyperid": { + "uuid": "11.1.1" + } + } + } +} +``` + +If npm rejects nested override syntax, express the same ownership with `$` references or the supported nested-object form for the installed npm version. Never add a global override when a package-scoped one works. + +**Step 4: Prove compatibility before accepting overrides** + +```bash +npm run typecheck +npm test +npm run bench +``` + +Expected: tests pass; Express, Fastify, Nest Express, and Nest Fastify scenarios start and complete; Autocannon produces all scenario rows. If the UUID override breaks Autocannon, revert only that override and replace/isolate Autocannon in a follow-up commit within this task until the full audit is clean. + +**Step 5: Verify clean audits** + +```bash +npm audit +npm audit --omit=dev +npm --prefix website audit +``` + +Expected: all three commands exit 0 with zero vulnerabilities. + +**Step 6: Commit** + +```bash +git add package.json package-lock.json website/package.json website/package-lock.json +git commit -s -m "chore(deps): remediate security advisories" +``` + +### Task 7: Add security and documentation gates to CI + +**Skills:** `@security-review` + +**Files:** +- Modify: `.github/workflows/ci.yml` +- Modify: `.github/workflows/release.yml` + +**Step 1: Define the expected gates** + +The CI job must install root and website lockfiles, audit both, build docs, and preserve the existing Node 18 package gate. The GitHub-only release job must audit the root tree immediately after `npm ci` and before `npm publish`. + +**Step 2: Update CI** + +Add these steps after the root `npm ci`: + +```yaml + - run: npm audit + - run: npm ci --prefix website + - run: npm audit --prefix website + - run: npm run docs:build +``` + +Keep lint, format, complexity, typecheck, test, and build unchanged. + +**Step 3: Update the GitHub release gate** + +Add `npm audit` after `npm ci` in `.github/workflows/release.yml`. Do not change the tag trigger, Gitea server guard, Node 22 OIDC setup, dist-tag derivation, or `npm publish` command. + +Do not modify `stage.yml` or `promote.yml`; their verified GitFlow responsibilities remain: + +- Gitea `main` → Verdaccio `stg`; +- Gitea `main` and `v*` tags → GitHub; +- GitHub `v*` → npm OIDC release. + +**Step 4: Validate workflow syntax and diff** + +```bash +npx prettier --check .github/workflows/ci.yml .github/workflows/release.yml +git diff --check +``` + +If Prettier does not parse the workflow format in this repo, inspect with `ruby -e "require 'yaml'; YAML.load_file(ARGV[0])" ` and record that command instead. + +**Step 5: Commit** + +```bash +git add .github/workflows/ci.yml .github/workflows/release.yml +git commit -s -m "ci: gate releases on clean dependency audits" +``` + +### Task 8: Align public documentation and prepare the August beta + +**Skills:** `@writing-clearly-and-concisely` + +**Files:** +- Modify: `README.md` +- Modify: `CHANGELOG.md` +- Modify: `src/index.ts` +- Modify: `package.json` +- Modify: `package-lock.json` +- Modify: `website/src/content/docs/guides/routing.md` +- Modify: `website/src/content/docs/reference/decorators.md` +- Modify: `website/src/content/docs/guides/openapi.md` +- Create: `website/src/content/docs/404.md` + +**Step 1: Update routing documentation from the verified behavior** + +Document: + +- `@Head` and `@Options`; +- explicit-route priority and automatic fallbacks; +- canonical `Allow` behavior; +- `/path` equals `/path/`; +- `//` and malformed encoding return `400`; +- catch-all must be final; +- `:id(\\d+)`, whole-segment matching, precedence, and the safe-subset restriction; +- the matcher remains linear and a radix tree remains deferred. + +Remove the current statement that bare OPTIONS returns 405. + +**Step 2: Update OpenAPI and decorator references** + +Show that explicit HEAD/OPTIONS appear as operations and constrained params produce `schema.pattern`. Keep automatic fallback operations out of generated documents. + +**Step 3: Fix the Starlight 404 warning** + +Create the missing `404.md` entry with valid Starlight frontmatter and concise navigation back to the docs index. Run `npm run docs:build` and confirm the line `Entry docs → 404 was not found` disappears. + +**Step 4: Bump the beta version consistently** + +Run: + +```bash +npm version 26.8.0-beta.0 --no-git-tag-version +``` + +Update `src/index.ts`'s `VERSION` constant and add a `26.8.0-beta.0` CHANGELOG entry covering routes, security remediation, docs, and compatibility. Confirm README's CalVer examples remain accurate. + +**Step 5: Verify docs and version consistency** + +```bash +npm run docs:build +node -e "const p=require('./package.json'); const l=require('./package-lock.json'); if (p.version !== l.version || p.version !== l.packages[''].version) process.exit(1)" +rg -n "26\.7\.0-beta\.0|Not built|bare `OPTIONS`" README.md CHANGELOG.md src website/src/content/docs +git diff --check +``` + +Expected: docs build without the 404 warning; package versions agree; any old beta string is retained only in historical release examples. + +**Step 6: Commit** + +```bash +git add README.md CHANGELOG.md src/index.ts package.json package-lock.json website/src/content/docs +git commit -s -m "docs: document router completeness for beta" +``` + +### Task 9: Run the complete release-candidate verification + +**Skills:** `@superpowers:verification-before-completion`, `@security-review` + +**Files:** +- Modify only if a verification failure reveals an in-scope defect. + +**Step 1: Run static and Node gates** + +```bash +npm run lint +npm run format:check +npm run complexity:check +npm run typecheck +npm run typecheck:bench +npm test +npm run build +``` + +Expected: every command exits 0. Record the existing lint-warning count separately; introduce no new warnings. + +**Step 2: Run multi-runtime gates** + +```bash +npm run test:deno +npm run test:bun +npm run test:edge +``` + +Expected: every installed runtime suite exits 0. If a runtime is unavailable, report the exact missing command; do not claim that suite passed. + +**Step 3: Run security, docs, and benchmark gates** + +```bash +npm audit +npm audit --omit=dev +npm --prefix website audit +npm run docs:build +npm run bench +``` + +Expected: zero advisories; docs build without warning; all benchmark scenarios complete. + +**Step 4: Inspect the publish artifact without publishing** + +```bash +npm pack --dry-run +``` + +Expected: package contains `dist`, assets, README, CHANGELOG, and LICENSE; version is `26.8.0-beta.0`; no docs worktree, tests, secrets, or local environment files appear. + +**Step 5: Review branch and workflow boundaries** + +```bash +git status --short --branch +git log --oneline --decorate develop..HEAD +git diff --check develop...HEAD +git diff --stat develop...HEAD +``` + +Expected: clean `feat/router-security-beta`; all commits carry `Signed-off-by`; no tag, registry publication, `main` merge, or workflow secret change occurred. + +**Step 6: Commit any verification-only repair** + +Only if Step 1–5 exposed an in-scope defect: + +```bash +git add +git commit -s -m "fix: address beta verification findings" +``` + +Re-run the failed gate and the complete related suite after any repair. -- 2.54.1 From 790db661e5f4a001004c48be3a3163ca05f7c89c Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 20:36:46 -0500 Subject: [PATCH 03/16] feat(router): compile safe constrained patterns Signed-off-by: Diego Resendez --- src/http/router.ts | 218 +++++++++++++++++++++++++++++++++++++------- test/router.test.ts | 35 ++++++- 2 files changed, 218 insertions(+), 35 deletions(-) diff --git a/src/http/router.ts b/src/http/router.ts index 6b7aedf..ac851e4 100644 --- a/src/http/router.ts +++ b/src/http/router.ts @@ -1,63 +1,213 @@ import type { RouteDef, MatchedRoute } from './types'; -/** - * Matches a route pattern against a request path. Supports static segments, `:param` (one segment), - * and a trailing `:name*` catch-all that captures the rest of the path (slashes included) into `params.name`. - * @returns Extracted params (decoded) when the path matches, otherwise undefined. - */ -export function matchPattern(pattern: string, path: string): Record | undefined { +type CompiledSegment = + | { kind: 'static'; value: string } + | { kind: 'param'; name: string; constraint?: RegExp; constraintSource?: string } + | { kind: 'catchAll'; name: string }; + +/** Parsed route pattern reused by matching, specificity, ambiguity checks, and OpenAPI projection. */ +export interface CompiledPattern { + source: string; + normalized: string; + shape: string; + segments: CompiledSegment[]; + kinds: number[]; + catchAll: boolean; +} + +const compiledCache = new Map(); +const PARAM_NAME = /^[A-Za-z_][A-Za-z0-9_]*$/; +const MAX_CONSTRAINT_LENGTH = 128; + +interface ConstraintToken { + length: number; + unbounded: boolean; + separator: boolean; +} + +/** Reads one atom plus its optional quantifier from the deliberately small safe-regex subset. */ +function readConstraintToken(source: string): ConstraintToken | undefined { + const atom = /^(?:\\[dDsSwW]|\\[.\-_/]|[A-Za-z0-9_.-]|\[(?:\\.|[^\]\\])+\])/u.exec(source)?.[0]; + if (!atom) return undefined; + + const rest = source.slice(atom.length); + const quantifier = /^(?:[+*?]|\{\d+(?:,\d*)?\})/u.exec(rest)?.[0] ?? ''; + if (quantifier.startsWith('{')) assertBoundedQuantifier(quantifier); + + return { + length: atom.length + quantifier.length, + unbounded: quantifier === '+' || quantifier === '*' || quantifier.endsWith(',}'), + separator: quantifier === '' && /^(?:\\[.\-_/]|[._-])$/u.test(atom), + }; +} + +/** Rejects nonsensical or excessively large counted quantifiers before RegExp compilation. */ +function assertBoundedQuantifier(quantifier: string): void { + const [minText, maxText] = quantifier.slice(1, -1).split(','); + const min = Number(minText); + const max = maxText === undefined || maxText === '' ? min : Number(maxText); + if (min > max || max > 2048) throw new Error(`unsafe route constraint: invalid quantifier '${quantifier}'`); +} + +/** Accepts only a linear, group-free regex subset to keep attacker-controlled segments ReDoS-safe. */ +function assertSafeConstraint(source: string): void { + if (!source || source.length > MAX_CONSTRAINT_LENGTH) + throw new Error('unsafe route constraint: expression must contain 1-128 characters'); + + let offset = 0; + let previousUnbounded = false; + + while (offset < source.length) { + const token = readConstraintToken(source.slice(offset)); + if (!token) throw new Error(`unsafe route constraint: unsupported expression '${source}'`); + if (previousUnbounded && token.unbounded) + throw new Error(`unsafe route constraint: adjacent unbounded quantifiers in '${source}'`); + previousUnbounded = token.separator ? false : token.unbounded; + offset += token.length; + } +} + +function assertParamName(name: string, pattern: string): void { + if (!PARAM_NAME.test(name)) throw new Error(`invalid route pattern '${pattern}': invalid parameter name '${name}'`); +} + +function compileParam(segment: string, pattern: string): Extract { + const constraintStart = segment.indexOf('('); + + if (constraintStart < 0) { + const name = segment.slice(1); + assertParamName(name, pattern); + return { kind: 'param', name }; + } + + if (!segment.endsWith(')')) throw new Error(`invalid route pattern '${pattern}': malformed constraint`); + const name = segment.slice(1, constraintStart); + const constraintSource = segment.slice(constraintStart + 1, -1); + assertParamName(name, pattern); + assertSafeConstraint(constraintSource); + return { + kind: 'param', + name, + constraintSource, + constraint: new RegExp(`^(?:${constraintSource})$`, 'u'), + }; +} + +function compileSegments(pattern: string, rawSegments: string[]): CompiledSegment[] { + const names = new Set(); + const compiled: CompiledSegment[] = []; + + for (let index = 0; index < rawSegments.length; index++) { + const raw = rawSegments[index]; + let segment: CompiledSegment; + + if (raw.startsWith(':') && raw.endsWith('*')) { + const name = raw.slice(1, -1); + assertParamName(name, pattern); + if (index !== rawSegments.length - 1) + throw new Error(`invalid route pattern '${pattern}': catch-all must be the final segment`); + segment = { kind: 'catchAll', name }; + } else if (raw.startsWith(':')) { + segment = compileParam(raw, pattern); + } else { + segment = { kind: 'static', value: raw }; + } + + if (segment.kind !== 'static') { + if (names.has(segment.name)) + throw new Error(`invalid route pattern '${pattern}': duplicate parameter '${segment.name}'`); + names.add(segment.name); + } + + compiled.push(segment); + } + + return compiled; +} + +function segmentShape(segment: CompiledSegment): string { + if (segment.kind === 'static') return `s:${segment.value}`; + if (segment.kind === 'catchAll') return 'c'; + return segment.constraintSource ? `r:${segment.constraintSource}` : 'p'; +} + +/** Compiles and validates one route pattern. Results are cached by source string. */ +export function compilePattern(pattern: string): CompiledPattern { + const cached = compiledCache.get(pattern); + if (cached) return cached; + if (!pattern.startsWith('/')) throw new Error(`invalid route pattern '${pattern}': pattern must start with '/'`); + if (pattern.includes('//')) throw new Error(`invalid route pattern '${pattern}': repeated slash`); + + const normalized = pattern.length > 1 && pattern.endsWith('/') ? pattern.slice(0, -1) : pattern; + const rawSegments = normalized.split('/').slice(1); + const segments = compileSegments(pattern, rawSegments); + const compiled: CompiledPattern = { + source: pattern, + normalized, + shape: segments.map(segmentShape).join('/'), + segments, + kinds: segments + .filter((segment) => segment.kind !== 'catchAll') + .map((segment) => (segment.kind === 'static' ? 3 : segment.constraint ? 2 : 1)), + catchAll: segments.at(-1)?.kind === 'catchAll', + }; + compiledCache.set(pattern, compiled); + return compiled; +} + +function decodeSegment(value: string): string { + return decodeURIComponent(value); +} + +function matchCompiled(compiled: CompiledPattern, path: string): Record | undefined { const pathSegs = path.split('/').filter(Boolean); - const patternSegs = pattern.split('/').filter(Boolean); const params: Record = {}; - for (let i = 0; i < patternSegs.length; i++) { - const seg = patternSegs[i]; + for (let index = 0; index < compiled.segments.length; index++) { + const segment = compiled.segments[index]; - // Trailing catch-all: capture every remaining segment (possibly none) as one decoded value. - if (seg.startsWith(':') && seg.endsWith('*')) { - params[seg.slice(1, -1)] = pathSegs.slice(i).map(decodeURIComponent).join('/'); + if (segment.kind === 'catchAll') { + params[segment.name] = pathSegs.slice(index).map(decodeSegment).join('/'); return params; } - if (i >= pathSegs.length) return undefined; // pattern longer than path + if (index >= pathSegs.length) return undefined; - if (seg.startsWith(':')) params[seg.slice(1)] = decodeURIComponent(pathSegs[i]); - else if (seg !== pathSegs[i]) return undefined; + if (segment.kind === 'static') { + if (segment.value !== pathSegs[index]) return undefined; + continue; + } + + const value = decodeSegment(pathSegs[index]); + if (segment.constraint && !segment.constraint.test(value)) return undefined; + params[segment.name] = value; } - // No catch-all consumed the tail, so the lengths must match exactly. - return patternSegs.length === pathSegs.length ? params : undefined; + return compiled.segments.length === pathSegs.length ? params : undefined; } -/** Splits a pattern into its fixed-prefix segment kinds (2 = static, 1 = param) and whether it ends in a catch-all. */ -function segScores(pattern: string): { catchAll: boolean; kinds: number[] } { - const kinds: number[] = []; - - for (const seg of pattern.split('/').filter(Boolean)) { - if (seg.startsWith(':') && seg.endsWith('*')) return { catchAll: true, kinds }; - kinds.push(seg.startsWith(':') ? 1 : 2); - } - - return { catchAll: false, kinds }; +/** Matches a compiled segment pattern and returns its decoded parameters. */ +export function matchPattern(pattern: string, path: string): Record | undefined { + return matchCompiled(compilePattern(pattern), path); } -/** Orders two matching patterns by specificity: exact beats catch-all, then static beats param, then longer wins. */ +/** Orders matching patterns by exactness, then static/constrained/plain segment specificity. */ function moreSpecific(a: string, b: string): number { - const scoreA = segScores(a); - const scoreB = segScores(b); + const scoreA = compilePattern(a); + const scoreB = compilePattern(b); if (scoreA.catchAll !== scoreB.catchAll) return scoreA.catchAll ? -1 : 1; const length = Math.max(scoreA.kinds.length, scoreB.kinds.length); - for (let i = 0; i < length; i++) { - const kindA = scoreA.kinds[i] ?? -1; - const kindB = scoreB.kinds[i] ?? -1; + for (let index = 0; index < length; index++) { + const kindA = scoreA.kinds[index] ?? -1; + const kindB = scoreB.kinds[index] ?? -1; if (kindA !== kindB) return kindA - kindB; } return 0; } -/** Finds the most specific route matching both method and path (static > param > catch-all; ties keep registration order). */ +/** Finds the most specific route matching both method and path; ties keep registration order. */ export function matchRoute(routes: RouteDef[], method: string, path: string): MatchedRoute | undefined { let best: MatchedRoute | undefined; let bestPattern = ''; diff --git a/test/router.test.ts b/test/router.test.ts index 8211960..c6aa657 100644 --- a/test/router.test.ts +++ b/test/router.test.ts @@ -1,5 +1,5 @@ import { describe, it, expect } from 'vitest'; -import { matchPattern, matchRoute, allowedMethods } from '../src/http/router'; +import { compilePattern, matchPattern, matchRoute, allowedMethods } from '../src/http/router'; import type { RouteDef } from '../src/http/types'; const route = (method: string, pattern: string): RouteDef => ({ @@ -24,6 +24,33 @@ describe('matchPattern', () => { it(':name* matches zero remaining segments as an empty string', () => { expect(matchPattern('/files/:path*', '/files')).toEqual({ path: '' }); }); + + it('matches safe constraints against the complete decoded segment', () => { + expect(matchPattern('/users/:id(\\d+)', '/users/42')).toEqual({ id: '42' }); + expect(matchPattern('/users/:id(\\d+)', '/users/42x')).toBeUndefined(); + expect(matchPattern('/posts/:slug([a-z0-9_-]+)', '/posts/green-tea_26')).toEqual({ slug: 'green-tea_26' }); + expect(matchPattern('/build/:version(\\d{2}\\.\\d{1,2})', '/build/26.8')).toEqual({ version: '26.8' }); + }); +}); + +describe('compilePattern', () => { + it('records a stable shape independent of parameter names', () => { + expect(compilePattern('/users/:id').shape).toBe(compilePattern('/users/:name').shape); + expect(compilePattern('/users/:id(\\d+)').shape).not.toBe(compilePattern('/users/:id').shape); + }); + + it.each([ + '/files/:rest*/tail', + '/users/:', + '/users/:id/:id', + '/users//:id', + '/users/:id((a+)+)', + '/users/:id((?=a)a)', + '/users/:id(\\1)', + '/users/:id(a|b)', + ])('rejects invalid or unsafe pattern %s', (pattern) => { + expect(() => compilePattern(pattern)).toThrow(/invalid route pattern|unsafe route constraint/); + }); }); describe('matchRoute precedence', () => { @@ -34,6 +61,12 @@ describe('matchRoute precedence', () => { expect(matchRoute(routes, 'GET', '/a/x/y')?.def.pattern).toBe('/a/:rest*'); }); + it('constrained params beat unconstrained params regardless of registration order', () => { + const routes = [route('GET', '/users/:value'), route('GET', '/users/:id(\\d+)')]; + expect(matchRoute(routes, 'GET', '/users/42')?.def.pattern).toBe('/users/:id(\\d+)'); + expect(matchRoute(routes, 'GET', '/users/diego')?.def.pattern).toBe('/users/:value'); + }); + it('returns undefined when no pattern matches the path', () => { expect(matchRoute([route('GET', '/a')], 'GET', '/b')).toBeUndefined(); }); -- 2.54.1 From 8e38fffd77c41c43b864b3dad595aadbd5bff046 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 20:39:09 -0500 Subject: [PATCH 04/16] fix(router): reject invalid and ambiguous paths Signed-off-by: Diego Resendez --- src/app/index.ts | 43 ++++++++++++++++++++++++++++------- src/app/types.ts | 1 + src/http/router.ts | 23 +++++++++++++++++++ test/app.test.ts | 36 +++++++++++++++++++++++++++++ test/mesh/integration.test.ts | 41 +++++++++++++++++++++++++++++++++ test/router.test.ts | 15 +++++++++++- 6 files changed, 150 insertions(+), 9 deletions(-) diff --git a/src/app/index.ts b/src/app/index.ts index f265dca..4fd001b 100644 --- a/src/app/index.ts +++ b/src/app/index.ts @@ -35,6 +35,7 @@ import type { MeshControl } from '../http'; import type { RequestEnvelope, RouteEntry } from '../mesh/protocol'; import type { App, InspectLine, Explain, RoutePlan, MeshConfig } from './types'; import { inspectRoute, buildGraphView, explainRoute } from './introspect'; +import { compilePattern } from '../http/router'; export type { App, InspectLine, ExplainNode, Explain, MeshConfig } from './types'; @@ -349,6 +350,7 @@ function collectControllers( const instance: any = new ControllerClass(); const argSpecs = getArgs(ControllerClass, route.handlerName); const pattern = joinPath(mountpoint, route.path); + const declaration = `${ControllerClass.name}.${route.handlerName}`; if (route.export) { if (route.transport !== 'buffer') throw new Error(`cannot export streaming route ${pattern}`); @@ -357,11 +359,12 @@ function collectControllers( const transformer = resolveTransformer(ControllerClass, route, pattern, viewsCtx); - registry.routePlans.push({ + const plan: RoutePlan = { pattern, method: route.method, transport: route.transport, origin, + declaration, providers: [], steps: [], handlerName: route.handlerName, @@ -372,11 +375,27 @@ function collectControllers( maxBodyBytes: route.maxBodyBytes, maxParts: route.maxParts, args: argSpecs, - }); + }; + assertRouteAvailable(registry.routePlans, plan); + registry.routePlans.push(plan); } } } +/** Rejects local routes that have the same method and effective match shape. */ +function assertRouteAvailable(existing: RoutePlan[], candidate: RoutePlan): void { + const compiled = compilePattern(candidate.pattern); + const conflict = existing.find( + (plan) => plan.method === candidate.method && compilePattern(plan.pattern).shape === compiled.shape, + ); + if (!conflict) return; + + throw new Error( + `ambiguous route ${candidate.method} ${candidate.pattern} at ${candidate.declaration} conflicts with ` + + `${conflict.method} ${conflict.pattern} at ${conflict.declaration}`, + ); +} + /** * Resolves the response transformer for a route: `@Html` metadata builds an HTML transformer (after * validating placement — buffered GET/POST only, and not combined with `@Transformer`); otherwise the @@ -512,7 +531,7 @@ async function spliceRemoteScopes( ): Promise<{ remoteRoutes: RouteDef[]; meshLinks: Link[] }> { const remoteRoutes: RouteDef[] = []; const meshLinks: Link[] = []; - const routeOwners = new Map(); // "METHOD /pattern" -> the teapot that exported it + const routeOwners = new Map(); // "METHOD effective-shape" -> owner try { for (const teapot of mesh.teapots ?? []) { @@ -539,7 +558,8 @@ async function spliceRemoteScopes( } for (const route of routes) { - const key = `${route.method} ${route.pattern}`; + const display = `${route.method} ${route.pattern}`; + const key = `${route.method} ${compilePattern(route.pattern).shape}`; const owner = routeOwners.get(key); // Fail the boot rather than pick one. Route matching keeps the first of two identical @@ -548,21 +568,28 @@ async function spliceRemoteScopes( // Scope tokens already fail this way in setRunner; routes now match. if (owner) { throw new Error( - `mesh: route '${key}' is exported by more than one teapot (${owner} and ${teapot.url}) — ` + + `mesh: ambiguous remote route '${display}' from ${teapot.url} conflicts with ` + + `'${route.method} ${owner.pattern}' from ${owner.url} — ` + 'load balancing across teapots is not implemented yet, so green-tea will not choose one for you. ' + 'Export it from a single teapot.', ); } - routeOwners.set(key, teapot.url); + routeOwners.set(key, { url: teapot.url, pattern: route.pattern }); // Local routes are merged ahead of remote ones (see buildHttpRoutes), so a local twin // wins. That precedence is deliberate — your own code beats an imported one, and it is // how you override a teapot — but silently shadowing an export looks exactly like a // broken teapot from the outside. Warn and let the developer decide. - if (registry.routePlans.some((plan) => plan.method === route.method && plan.pattern === route.pattern)) { + if ( + registry.routePlans.some( + (plan) => + plan.method === route.method && + compilePattern(plan.pattern).shape === compilePattern(route.pattern).shape, + ) + ) { console.warn( - `[green-tea] mesh: route '${key}' is exported by teapot ${teapot.url} but also declared locally — ` + + `[green-tea] mesh: route '${display}' is exported by teapot ${teapot.url} but also declared locally — ` + 'the local route takes precedence and the remote one will not be reached. ' + 'Remove one if that is not what you meant.', ); diff --git a/src/app/types.ts b/src/app/types.ts index eb87af4..86090d3 100644 --- a/src/app/types.ts +++ b/src/app/types.ts @@ -70,6 +70,7 @@ export interface RoutePlan { method: HttpMethod; transport: Transport; origin: string; + declaration: string; providers: GraphNode[]; steps: GraphNode[]; handlerName: string; diff --git a/src/http/router.ts b/src/http/router.ts index ac851e4..3884298 100644 --- a/src/http/router.ts +++ b/src/http/router.ts @@ -19,6 +19,14 @@ const compiledCache = new Map(); const PARAM_NAME = /^[A-Za-z_][A-Za-z0-9_]*$/; const MAX_CONSTRAINT_LENGTH = 128; +/** Request-path syntax error. Adapters translate this to the standard 400 response envelope. */ +export class InvalidRequestPathError extends Error { + constructor(message: string) { + super(message); + this.name = 'InvalidRequestPathError'; + } +} + interface ConstraintToken { length: number; unbounded: boolean; @@ -155,6 +163,21 @@ export function compilePattern(pattern: string): CompiledPattern { return compiled; } +/** Applies the public trailing-slash policy and validates every segment's percent encoding. */ +export function normalizeRequestPath(path: string): string { + if (!path.startsWith('/')) throw new InvalidRequestPathError('invalid request path: path must start with slash'); + if (path.includes('//')) throw new InvalidRequestPathError('invalid request path: repeated slash'); + const normalized = path.length > 1 && path.endsWith('/') ? path.slice(0, -1) : path; + + try { + for (const segment of normalized.split('/').slice(1)) decodeURIComponent(segment); + } catch { + throw new InvalidRequestPathError('invalid request path: malformed path encoding'); + } + + return normalized; +} + function decodeSegment(value: string): string { return decodeURIComponent(value); } diff --git a/test/app.test.ts b/test/app.test.ts index 1c39576..01ff2ff 100644 --- a/test/app.test.ts +++ b/test/app.test.ts @@ -583,3 +583,39 @@ test('per-route maxBodyBytes overrides the server default', async () => { server.close(); }); + +describe('route table validation', () => { + it('rejects routes with the same method and effective pattern', () => { + @Route('/users') + class DuplicateCtl { + @Get('/:id') byId() { + return {}; + } + @Get('/:name') byName() { + return {}; + } + } + @Module({ mountpoint: '/api', controllers: [DuplicateCtl] }) + class DuplicateModule {} + + expect(() => createApp({ modules: [DuplicateModule] })).toThrow( + /ambiguous route GET.*\/api\/users\/:name.*DuplicateCtl\.byName.*DuplicateCtl\.byId/, + ); + }); + + it('allows the same effective pattern under different methods', () => { + @Route('/users') + class MethodsCtl { + @Get('/:id') get() { + return {}; + } + @Post('/:name') post() { + return {}; + } + } + @Module({ mountpoint: '/api', controllers: [MethodsCtl] }) + class MethodsModule {} + + expect(() => createApp({ modules: [MethodsModule] })).not.toThrow(); + }); +}); diff --git a/test/mesh/integration.test.ts b/test/mesh/integration.test.ts index f7321c9..cde3020 100644 --- a/test/mesh/integration.test.ts +++ b/test/mesh/integration.test.ts @@ -35,6 +35,26 @@ class DupCtl { @Module({ mountpoint: '/api', controllers: [DupCtl] }) class DupTeapotModule {} +@Route('/shape') +class ParamIdCtl { + @Get('/:id', { export: true }) + get() { + return { from: 'id' }; + } +} +@Module({ mountpoint: '/api', controllers: [ParamIdCtl] }) +class ParamIdTeapotModule {} + +@Route('/shape') +class ParamNameCtl { + @Get('/:name', { export: true }) + get() { + return { from: 'name' }; + } +} +@Module({ mountpoint: '/api', controllers: [ParamNameCtl] }) +class ParamNameTeapotModule {} + @Route('/c') class PlainCtl { @Get('/ok') @@ -112,6 +132,27 @@ describe('mesh skeleton integration', () => { bServer.close(); }); + it('refuses ambiguous remote routes that differ only by parameter name', async () => { + const a = createApp({ modules: [ParamIdTeapotModule], experimental: true, mesh: { secret: SECRET } }); + const b = createApp({ modules: [ParamNameTeapotModule], experimental: true, mesh: { secret: SECRET } }); + const aServer = await a.listen(0); + const bServer = await b.listen(0); + const url = (s: any) => `ws://127.0.0.1:${(s.address() as any).port}/__mesh__/control`; + const teacup = createApp({ + modules: [PlainTeacupModule], + experimental: true, + mesh: { teapots: [{ url: url(aServer), secret: SECRET }, { url: url(bServer), secret: SECRET }] }, + }); + + try { + await expect(teacup.ready()).rejects.toThrow(/ambiguous remote route.*GET \/api\/shape\/:name/i); + } finally { + await teacup.close(); + aServer.close(); + bServer.close(); + } + }); + it('accepts the same route from a single teapot (regression: no false positive)', async () => { const a = createApp({ modules: [DupTeapotModule], experimental: true, mesh: { secret: SECRET } }); const aServer = await a.listen(0); diff --git a/test/router.test.ts b/test/router.test.ts index c6aa657..4af15a4 100644 --- a/test/router.test.ts +++ b/test/router.test.ts @@ -1,5 +1,5 @@ import { describe, it, expect } from 'vitest'; -import { compilePattern, matchPattern, matchRoute, allowedMethods } from '../src/http/router'; +import { compilePattern, matchPattern, matchRoute, allowedMethods, normalizeRequestPath } from '../src/http/router'; import type { RouteDef } from '../src/http/types'; const route = (method: string, pattern: string): RouteDef => ({ @@ -53,6 +53,19 @@ describe('compilePattern', () => { }); }); +describe('normalizeRequestPath', () => { + it('treats one trailing slash as equivalent and preserves root', () => { + expect(normalizeRequestPath('/users')).toBe('/users'); + expect(normalizeRequestPath('/users/')).toBe('/users'); + expect(normalizeRequestPath('/')).toBe('/'); + }); + + it('rejects repeated slashes and malformed percent encoding', () => { + expect(() => normalizeRequestPath('/users//42')).toThrow(/repeated slash/); + expect(() => normalizeRequestPath('/users/%E0%A4%A')).toThrow(/malformed path encoding/); + }); +}); + describe('matchRoute precedence', () => { it('static beats :param beats catch-all regardless of registration order', () => { const routes = [route('GET', '/a/:rest*'), route('GET', '/a/:id'), route('GET', '/a/b')]; -- 2.54.1 From 63be0ef8f7c81eae0f546f779a23ced508b49752 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 20:40:02 -0500 Subject: [PATCH 05/16] feat(router): expose HEAD and OPTIONS decorators Signed-off-by: Diego Resendez --- src/app/index.ts | 2 +- src/index.ts | 2 ++ src/metadata.ts | 6 +++++- src/signals.ts | 2 +- test/metadata.test.ts | 14 +++++++++++++- test/smoke.test.ts | 9 ++++++++- 6 files changed, 30 insertions(+), 5 deletions(-) diff --git a/src/app/index.ts b/src/app/index.ts index 4fd001b..0096d01 100644 --- a/src/app/index.ts +++ b/src/app/index.ts @@ -413,7 +413,7 @@ function resolveTransformer( if (route.transport !== 'buffer' || (route.method !== 'GET' && route.method !== 'POST')) { throw new Error( - `@Html on ${route.method} ${pattern} is not allowed — @Html only supports buffered GET/POST routes (not SSE/WS/PUT/PATCH/DELETE)`, + `@Html on ${route.method} ${pattern} is not allowed — @Html only supports buffered GET/POST routes (not SSE/WS/HEAD/PUT/PATCH/DELETE/OPTIONS)`, ); } diff --git a/src/index.ts b/src/index.ts index 4beab8b..b6b664a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -27,6 +27,7 @@ export { Step, Route, Get, + Head, Module, Transformer, Sse, @@ -36,6 +37,7 @@ export { Put, Patch, Delete, + Options, Html, } from './metadata'; export type { Transport, HttpMethod } from './metadata'; diff --git a/src/metadata.ts b/src/metadata.ts index 530dcff..8a1f3ec 100644 --- a/src/metadata.ts +++ b/src/metadata.ts @@ -25,7 +25,7 @@ export interface StepMeta { export: boolean; } /** HTTP verbs supported by the route decorators. */ -export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'; +export type HttpMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'; /** Wire transport a route responds with. */ export type Transport = 'buffer' | 'sse' | 'ndjson' | 'negotiate' | 'ws'; /** Metadata attached by a route decorator to a single handler method. */ @@ -124,6 +124,8 @@ function routeDecorator(method: HttpMethod, transport: Transport) { /** Declares a buffered `GET` route. */ export const Get = routeDecorator('GET', 'buffer'); +/** Declares a buffered `HEAD` route. */ +export const Head = routeDecorator('HEAD', 'buffer'); /** Declares a buffered `POST` route. */ export const Post = routeDecorator('POST', 'buffer'); /** Declares a buffered `PUT` route. */ @@ -132,6 +134,8 @@ export const Put = routeDecorator('PUT', 'buffer'); export const Patch = routeDecorator('PATCH', 'buffer'); /** Declares a buffered `DELETE` route. */ export const Delete = routeDecorator('DELETE', 'buffer'); +/** Declares a buffered `OPTIONS` route. */ +export const Options = routeDecorator('OPTIONS', 'buffer'); /** Declares a `GET` route streamed as Server-Sent Events. */ export const Sse = routeDecorator('GET', 'sse'); /** Declares a `GET` route whose transport is content-negotiated at request time. */ diff --git a/src/signals.ts b/src/signals.ts index c34dfc1..ef46969 100644 --- a/src/signals.ts +++ b/src/signals.ts @@ -62,7 +62,7 @@ export class TransportMismatchError extends HttpError { const expected = got === 'stream' ? 'return a value' : 'return an AsyncIterable'; const fix = got === 'stream' - ? 'buffered routes (@Get/@Post/@Put/@Patch/@Delete) must return a value — to stream, declare @Sse, @Stream, or @Ws' + ? 'buffered routes (@Get/@Head/@Post/@Put/@Patch/@Delete/@Options) must return a value — to stream, declare @Sse, @Stream, or @Ws' : 'streaming routes (@Sse/@Ws) must return an AsyncIterable (e.g. an async generator or channel())'; super(500, `Transport '${transport}'${where} must ${expected}, but the handler returned a ${got}. ${fix}.`); } diff --git a/test/metadata.test.ts b/test/metadata.test.ts index 857d40f..f41546e 100644 --- a/test/metadata.test.ts +++ b/test/metadata.test.ts @@ -3,7 +3,7 @@ import { expect, test, describe, it } from 'vitest'; import { Provider, Step, Route, Get, Module, getProviderMeta, getStepMeta, getRoutes, getModuleMeta, - Sse, Ws, Stream, Post, + Sse, Ws, Stream, Post, Head, Options, } from '../src/metadata'; @Provider({ provides: 'db', needs: ['config'] }) @@ -54,6 +54,18 @@ describe('stream route decorators', () => { }); }); +describe('HEAD and OPTIONS decorators', () => { + it('records both as buffered methods', () => { + class Methods { + @Head('/resource') head() {} + @Options('/resource') options() {} + } + const byName = Object.fromEntries(getRoutes(Methods).map((route) => [route.handlerName, route])); + expect(byName.head).toMatchObject({ method: 'HEAD', transport: 'buffer', path: '/resource' }); + expect(byName.options).toMatchObject({ method: 'OPTIONS', transport: 'buffer', path: '/resource' }); + }); +}); + describe('mesh export flags', () => { it('providers/steps carry export (default false)', () => { @Provider({ provides: 'config', export: true }) class C { provide() { return {}; } } diff --git a/test/smoke.test.ts b/test/smoke.test.ts index d2c91ec..a188088 100644 --- a/test/smoke.test.ts +++ b/test/smoke.test.ts @@ -1,6 +1,13 @@ import { expect, test } from 'vitest'; -import { VERSION } from '../src/index'; +import { Head, Options, VERSION, type HttpMethod } from '../src/index'; test('package loads and exposes a CalVer VERSION', () => { expect(VERSION).toMatch(/^\d{2}\.\d{1,2}\.\d+(-beta\.\d+)?$/); }); + +test('public barrel exports HEAD and OPTIONS route decorators', () => { + const methods: HttpMethod[] = ['HEAD', 'OPTIONS']; + expect(Head).toBeTypeOf('function'); + expect(Options).toBeTypeOf('function'); + expect(methods).toEqual(['HEAD', 'OPTIONS']); +}); -- 2.54.1 From 9a61ba86465a9fa1fe6381c500ccb1549d9d19c2 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 20:45:44 -0500 Subject: [PATCH 06/16] feat(http): complete HEAD and OPTIONS semantics Signed-off-by: Diego Resendez --- src/http/core.ts | 98 +++++++++++++++++++++++++-------- src/http/router.ts | 37 ++++++++++++- src/http/server.ts | 10 +++- src/http/web.ts | 14 ++++- test/parity.test.ts | 49 ++++++++++++++++- test/router.test.ts | 30 ++++++++-- test/transport-security.test.ts | 10 ++-- 7 files changed, 207 insertions(+), 41 deletions(-) diff --git a/src/http/core.ts b/src/http/core.ts index 0a4c4fe..7fea20e 100644 --- a/src/http/core.ts +++ b/src/http/core.ts @@ -3,7 +3,7 @@ import { HttpError, NotFound } from '../signals'; import { renderError } from '../transformers'; import { isStreamResult, type PipelineResult } from '../pipeline'; import { buildSecurityHeaders, resolveCors, corsPreflightHeaders } from '../security'; -import { matchRoute, allowedMethods, parseQuery } from './router'; +import { resolveRoute, allowedMethods, normalizeRequestPath, parseQuery } from './router'; import { pickEncoder } from './stream'; import type { RouteDef, HttpOptions } from './types'; import type { StreamEncoder } from '../encoders'; @@ -49,6 +49,61 @@ export function computeInjected( return injected; } +function errorOutcome( + error: unknown, + req: NeutralRequest, + injected: Record, + opts: HttpOptions | undefined, + headers: Record = {}, +): HandleResult { + const rendered = renderError(error, { method: req.method, url: req.url, headers: req.headers }, opts?.onError); + return { + injected, + outcome: { + kind: 'buffered', + status: rendered.status, + headers: { ...rendered.headers, ...headers }, + body: req.method === 'HEAD' ? '' : rendered.body, + }, + }; +} + +async function unmatchedOutcome( + routes: RouteDef[], + opts: HttpOptions | undefined, + req: NeutralRequest, + path: string, + injected: Record, +): Promise { + if ((req.method === 'GET' || req.method === 'HEAD') && opts?.static) { + const hit = await opts.static(path); + + if (hit) { + return { + injected, + outcome: { + kind: 'buffered', + status: 200, + headers: { 'content-type': hit.contentType }, + body: req.method === 'HEAD' ? '' : hit.body, + }, + }; + } + } + + const allow = allowedMethods(routes, path); + + if (req.method === 'OPTIONS' && allow.length) { + return { + injected, + outcome: { kind: 'buffered', status: 204, headers: { allow: allow.join(', ') }, body: '' }, + }; + } + + const error = allow.length ? new HttpError(405, 'Method Not Allowed') : new NotFound('Not Found'); + return errorOutcome(error, req, injected, opts, allow.length ? { allow: allow.join(', ') } : {}); +} + /** * Runtime-neutral request handler: security/CORS headers, preflight short-circuit, route match / 404 / 405, * route-handler invocation with error rendering, and the buffered-vs-stream decision. Does no I/O — the @@ -59,35 +114,22 @@ export async function handle( opts: HttpOptions | undefined, req: NeutralRequest, ): Promise { - const path = req.url.split('?')[0]; const injected = computeInjected(opts, req); + let path: string; + + try { + path = normalizeRequestPath(req.url.split('?')[0]); + } catch { + return errorOutcome(new HttpError(400, 'Bad Request'), req, injected, opts); + } if (opts?.cors && req.method === 'OPTIONS' && req.headers['access-control-request-method']) { return { preflight: corsPreflightHeaders(opts.cors, req) }; } - const matched = matchRoute(routes, req.method, path); + const matched = resolveRoute(routes, req.method, path); - if (!matched) { - if ((req.method === 'GET' || req.method === 'HEAD') && opts?.static) { - const hit = await opts.static(path); - - if (hit) { - const body = req.method === 'HEAD' ? '' : hit.body; - return { - injected, - outcome: { kind: 'buffered', status: 200, headers: { 'content-type': hit.contentType }, body }, - }; - } - } - - // Path matches a route under a different method → 405 with Allow; otherwise 404. - const allow = allowedMethods(routes, path); - const err = allow.length ? new HttpError(405, 'Method Not Allowed') : new NotFound('Not Found'); - const rendered = renderError(err, { method: req.method, url: req.url, headers: req.headers }, opts?.onError); - const headers = allow.length ? { ...rendered.headers, allow: allow.join(', ') } : rendered.headers; - return { injected, outcome: { kind: 'buffered', status: rendered.status, headers, body: rendered.body } }; - } + if (!matched) return unmatchedOutcome(routes, opts, req, path, injected); let result: PipelineResult; @@ -111,5 +153,13 @@ export async function handle( return { injected, outcome: { kind: 'stream', headers: encoder.headers, stream: result.stream, encoder } }; } - return { injected, outcome: { kind: 'buffered', status: result.status, headers: result.headers, body: result.body } }; + return { + injected, + outcome: { + kind: 'buffered', + status: result.status, + headers: result.headers, + body: req.method === 'HEAD' ? '' : result.body, + }, + }; } diff --git a/src/http/router.ts b/src/http/router.ts index 3884298..647e146 100644 --- a/src/http/router.ts +++ b/src/http/router.ts @@ -249,11 +249,44 @@ export function matchRoute(routes: RouteDef[], method: string, path: string): Ma return best; } +/** Route resolution adds the one HTTP fallback the matcher supports: buffered GET serves HEAD. */ +export interface ResolvedRoute extends MatchedRoute { + implicitHead: boolean; +} + +export function resolveRoute(routes: RouteDef[], method: string, path: string): ResolvedRoute | undefined { + const explicit = matchRoute(routes, method, path); + if (explicit) return { ...explicit, implicitHead: false }; + if (method !== 'HEAD') return undefined; + + const fallback = matchRoute( + routes.filter((route) => route.transport === 'buffer'), + 'GET', + path, + ); + return fallback ? { ...fallback, implicitHead: true } : undefined; +} + +const METHOD_ORDER = ['GET', 'HEAD', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS']; + /** Lists the distinct HTTP methods whose pattern matches the path — used to build a 405 `Allow` header. */ export function allowedMethods(routes: RouteDef[], path: string): string[] { const methods = new Set(); - for (const route of routes) if (matchPattern(route.pattern, path)) methods.add(route.method); - return [...methods]; + + for (const route of routes) { + if (!matchPattern(route.pattern, path)) continue; + methods.add(route.method); + if (route.method === 'GET' && route.transport === 'buffer') methods.add('HEAD'); + } + + if (methods.size) methods.add('OPTIONS'); + return [...methods].sort((a, b) => { + const indexA = METHOD_ORDER.indexOf(a); + const indexB = METHOD_ORDER.indexOf(b); + return ( + (indexA < 0 ? METHOD_ORDER.length : indexA) - (indexB < 0 ? METHOD_ORDER.length : indexB) || a.localeCompare(b) + ); + }); } /** Parses a URL's query string into a flat string map (last value wins for repeated keys). */ diff --git a/src/http/server.ts b/src/http/server.ts index b54f2a4..bc496f9 100644 --- a/src/http/server.ts +++ b/src/http/server.ts @@ -5,7 +5,7 @@ import { isHttpError, HttpError } from '../signals'; import type { Bus } from '../bus'; import { buildSecurityHeaders, resolveCors } from '../security'; import { parseMultipart, extractBoundary, collapseDuplicates } from '../multipart'; -import { matchRoute } from './router'; +import { normalizeRequestPath, resolveRoute } from './router'; import { readBody, deriveSecure, deriveIp } from './request'; import { pipeStream } from './stream'; import { attachWs } from './ws'; @@ -93,7 +93,13 @@ function createRequestHandler(cfg: HandlerConfig) { // Mirror handle()'s own preflight/route-match decision here, so we only read the body // (below) for a request that actually reaches a route handler — matching prior behaviour. const isPreflight = Boolean(opts?.cors && method === 'OPTIONS' && req.headers['access-control-request-method']); - const matched = isPreflight ? undefined : matchRoute(routes, method, path); + let matched: ReturnType; + + try { + matched = isPreflight ? undefined : resolveRoute(routes, method, normalizeRequestPath(path)); + } catch { + matched = undefined; // handle() owns the standard 400 envelope and injected headers + } let body: unknown; diff --git a/src/http/web.ts b/src/http/web.ts index c0f5e97..503b99e 100644 --- a/src/http/web.ts +++ b/src/http/web.ts @@ -2,7 +2,7 @@ import type { StreamEncoder } from '../encoders'; import { handle, computeInjected, type HandleResult } from './core'; import { mergeInjectedHeaders } from './headers'; import { parseRequestBody } from './server'; -import { matchRoute } from './router'; +import { normalizeRequestPath, resolveRoute } from './router'; import { HttpError } from '../signals'; import { renderError, type ErrorRequest, type ErrorResponse } from '../transformers'; import type { RouteDef, HttpOptions, MatchedRoute } from './types'; @@ -108,7 +108,8 @@ function outcomeToResponse(result: HandleResult): Response { return new Response(asReadableStream(result.outcome.stream, result.outcome.encoder), { headers }); } - return new Response(result.outcome.body, { status: result.outcome.status, headers }); + const body = [204, 205, 304].includes(result.outcome.status) ? null : result.outcome.body; + return new Response(body, { status: result.outcome.status, headers }); } /** @@ -123,7 +124,14 @@ export function buildFetch(routes: RouteDef[], opts: HttpOptions | undefined) { const url = new URL(request.url); const path = url.pathname + url.search; const headers = headersToRecord(request.headers); - const matched = matchRoute(routes, request.method, url.pathname); + let matched: ReturnType; + + try { + matched = resolveRoute(routes, request.method, normalizeRequestPath(url.pathname)); + } catch { + matched = undefined; // handle() renders the shared 400 response without reading a body + } + const secure = url.protocol === 'https:'; // Computed up-front from the same inputs `handle()` uses, so early-failure responses (413/400/501, // before a route handler even runs) carry the same security/CORS headers Node's writeHead patch diff --git a/test/parity.test.ts b/test/parity.test.ts index c880a20..9d18135 100644 --- a/test/parity.test.ts +++ b/test/parity.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect, beforeAll, afterAll } from 'vitest'; import type { Server } from 'http'; -import { createApp, Provider, Route, Get, Post, Module, needs, body, Sse } from '../src/index'; +import { createApp, Provider, Route, Get, Head, Options, Post, Module, needs, body, Sse } from '../src/index'; @Provider({ provides: 'db' }) class Db { @@ -22,6 +22,21 @@ class Ctl { yield { n: 2 }; })(); } + @Get('/implicit-head') implicitHead() { + return { from: 'get' }; + } + @Get('/explicit-head') explicitHeadGet() { + return { from: 'get' }; + } + @Head('/explicit-head') explicitHead() { + return { from: 'head' }; + } + @Get('/explicit-options') explicitOptionsGet() { + return { from: 'get' }; + } + @Options('/explicit-options') explicitOptions() { + return { from: 'options' }; + } } @Module({ mountpoint: '/', providers: [Db], controllers: [Ctl] }) class M {} @@ -78,6 +93,38 @@ describe('Node vs app.fetch parity (Node is truth)', () => { expect(web.status).toBe(node.status); expect(norm(web.headers)).toEqual(norm(node.headers)); }); + it('implicit and explicit HEAD return no body in both adapters', async () => { + for (const path of ['/api/implicit-head', '/api/explicit-head']) { + const { node, web } = await both(path, { method: 'HEAD' }); + expect(node.status).toBe(200); + expect(web.status).toBe(node.status); + expect(await node.text()).toBe(''); + expect(await web.text()).toBe(''); + } + }); + it('automatic OPTIONS is 204 with the same canonical Allow header', async () => { + const { node, web } = await both('/api/x', { method: 'OPTIONS' }); + expect(node.status).toBe(204); + expect(web.status).toBe(204); + expect(node.headers.get('allow')).toBe('GET, HEAD, OPTIONS'); + expect(web.headers.get('allow')).toBe(node.headers.get('allow')); + }); + it('explicit OPTIONS route runs normally', async () => { + const { node, web } = await both('/api/explicit-options', { method: 'OPTIONS' }); + expect(node.status).toBe(200); + expect(web.status).toBe(200); + expect(await node.json()).toEqual({ from: 'options' }); + expect(await web.json()).toEqual({ from: 'options' }); + }); + it('rejects repeated slashes and malformed encoding with secure 400 responses', async () => { + for (const path of ['/api//x', '/api/%E0%A4%A']) { + const { node, web } = await both(path); + expect(node.status).toBe(400); + expect(web.status).toBe(400); + expect(node.headers.get('x-content-type-options')).toBe('nosniff'); + expect(web.headers.get('x-content-type-options')).toBe('nosniff'); + } + }); it('SSE first two events', async () => { const nodeText = await (await fetch(base + '/api/s')).text(); const webText = await (await app.fetch(new Request(base + '/api/s'))).text(); diff --git a/test/router.test.ts b/test/router.test.ts index 4af15a4..ffcf34b 100644 --- a/test/router.test.ts +++ b/test/router.test.ts @@ -1,5 +1,12 @@ import { describe, it, expect } from 'vitest'; -import { compilePattern, matchPattern, matchRoute, allowedMethods, normalizeRequestPath } from '../src/http/router'; +import { + compilePattern, + matchPattern, + matchRoute, + resolveRoute, + allowedMethods, + normalizeRequestPath, +} from '../src/http/router'; import type { RouteDef } from '../src/http/types'; const route = (method: string, pattern: string): RouteDef => ({ @@ -90,9 +97,24 @@ describe('matchRoute precedence', () => { }); describe('allowedMethods (405 support)', () => { - it('lists distinct methods whose pattern matches the path', () => { - const routes = [route('GET', '/a'), route('POST', '/a'), route('GET', '/b')]; - expect(allowedMethods(routes, '/a').sort()).toEqual(['GET', 'POST']); + it('lists methods in canonical order with implicit HEAD and OPTIONS', () => { + const routes = [route('POST', '/a'), route('GET', '/a'), route('GET', '/b')]; + expect(allowedMethods(routes, '/a')).toEqual(['GET', 'HEAD', 'POST', 'OPTIONS']); expect(allowedMethods(routes, '/nope')).toEqual([]); }); }); + +describe('resolveRoute', () => { + it('prefers explicit HEAD and otherwise falls back to buffered GET', () => { + const explicit = [route('GET', '/a'), route('HEAD', '/a')]; + expect(resolveRoute(explicit, 'HEAD', '/a')).toMatchObject({ implicitHead: false, def: { method: 'HEAD' } }); + + const fallback = resolveRoute([route('GET', '/a')], 'HEAD', '/a'); + expect(fallback).toMatchObject({ implicitHead: true, def: { method: 'GET' } }); + }); + + it('does not use a streaming GET as implicit HEAD', () => { + const streaming = { ...route('GET', '/a'), transport: 'sse' as const }; + expect(resolveRoute([streaming], 'HEAD', '/a')).toBeUndefined(); + }); +}); diff --git a/test/transport-security.test.ts b/test/transport-security.test.ts index 3228f5a..7eecc02 100644 --- a/test/transport-security.test.ts +++ b/test/transport-security.test.ts @@ -187,7 +187,7 @@ describe('CORS', () => { expect(r.headers.get('access-control-allow-credentials')).toBe('true'); }); - it('disallowed origin → no allow-origin; bare OPTIONS (no ACRM) → 405 Allow for an existing path', async () => { + it('disallowed origin → no allow-origin; bare OPTIONS (no ACRM) → automatic 204 Allow', async () => { @Route('/') class C { @Get('/x') x() { return { ok: 1 }; } } @Module({ mountpoint: '/', controllers: [C] }) class CMod {} app = createApp({ modules: [CMod], cors: { origins: 'https://a.com' } }); @@ -195,11 +195,11 @@ describe('CORS', () => { const port = (server.address() as any).port; const r = await fetch(`http://127.0.0.1:${port}/x`, { headers: { origin: 'https://evil.com' } }); expect(r.headers.get('access-control-allow-origin')).toBeNull(); - // A bare OPTIONS (no Access-Control-Request-Method) isn't a CORS preflight; the path exists - // under GET, so the router answers 405 with an Allow header rather than 404. + // A bare OPTIONS (no Access-Control-Request-Method) isn't a CORS preflight; the router + // answers it automatically and advertises the explicit + implicit methods. const bare = await fetch(`http://127.0.0.1:${port}/x`, { method: 'OPTIONS' }); - expect(bare.status).toBe(405); - expect(bare.headers.get('allow')).toContain('GET'); + expect(bare.status).toBe(204); + expect(bare.headers.get('allow')).toBe('GET, HEAD, OPTIONS'); }); it("merges a handler's Title-Case Vary with CORS's Origin", async () => { -- 2.54.1 From a2acec69bfa5411583595d430704f48f1a2e98ac Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 20:47:18 -0500 Subject: [PATCH 07/16] feat(openapi): document constrained route params Signed-off-by: Diego Resendez --- src/http/router.ts | 4 ++-- src/openapi.ts | 33 ++++++++++++++++++++++++--------- test/openapi.test.ts | 27 +++++++++++++++++++++++++-- test/router.test.ts | 5 +++++ 4 files changed, 56 insertions(+), 13 deletions(-) diff --git a/src/http/router.ts b/src/http/router.ts index 647e146..de3b350 100644 --- a/src/http/router.ts +++ b/src/http/router.ts @@ -1,6 +1,6 @@ import type { RouteDef, MatchedRoute } from './types'; -type CompiledSegment = +export type CompiledSegment = | { kind: 'static'; value: string } | { kind: 'param'; name: string; constraint?: RegExp; constraintSource?: string } | { kind: 'catchAll'; name: string }; @@ -147,7 +147,7 @@ export function compilePattern(pattern: string): CompiledPattern { if (pattern.includes('//')) throw new Error(`invalid route pattern '${pattern}': repeated slash`); const normalized = pattern.length > 1 && pattern.endsWith('/') ? pattern.slice(0, -1) : pattern; - const rawSegments = normalized.split('/').slice(1); + const rawSegments = normalized === '/' ? [] : normalized.split('/').slice(1); const segments = compileSegments(pattern, rawSegments); const compiled: CompiledPattern = { source: pattern, diff --git a/src/openapi.ts b/src/openapi.ts index 4acf4f4..fb765b7 100644 --- a/src/openapi.ts +++ b/src/openapi.ts @@ -1,5 +1,6 @@ import type { ArgSpec } from './params'; import type { Transport } from './metadata'; +import { compilePattern } from './http/router'; /** Minimal per-route input the OpenAPI projection needs, derived from a route plan. */ export interface OpenApiRoute { @@ -23,23 +24,37 @@ export interface OpenApiDoc { paths: Record>; } -type Parameter = { name: string; in: 'path' | 'query' | 'header'; required: boolean; schema: { type: 'string' } }; +type Parameter = { + name: string; + in: 'path' | 'query' | 'header'; + required: boolean; + schema: { type: 'string'; pattern?: string }; +}; /** Converts a route pattern to an OpenAPI path template: `/users/:id` → `/users/{id}`, `:rest*` → `{rest}`. */ function templatePath(pattern: string): string { - const segments = pattern - .split('/') - .filter(Boolean) - .map((seg) => (seg.startsWith(':') ? `{${seg.slice(1).replace(/\*$/, '')}}` : seg)); + const segments = compilePattern(pattern).segments.map((segment) => + segment.kind === 'static' ? segment.value : `{${segment.name}}`, + ); return `/${segments.join('/')}`; } /** Every `:name` (and `:name*`) segment of a pattern becomes a required path parameter. */ function pathParams(pattern: string): Parameter[] { - return pattern - .split('/') - .filter((seg) => seg.startsWith(':')) - .map((seg) => ({ name: seg.slice(1).replace(/\*$/, ''), in: 'path', required: true, schema: { type: 'string' } })); + return compilePattern(pattern).segments.flatMap((segment): Parameter[] => { + if (segment.kind === 'static') return []; + return [ + { + name: segment.name, + in: 'path', + required: true, + schema: { + type: 'string', + ...(segment.kind === 'param' && segment.constraintSource ? { pattern: segment.constraintSource } : {}), + }, + }, + ]; + }); } /** Query and header parameters declared by the handler's `@query` / `@headers` / `@header` argument decorators. */ diff --git a/test/openapi.test.ts b/test/openapi.test.ts index 94f04ed..da0c459 100644 --- a/test/openapi.test.ts +++ b/test/openapi.test.ts @@ -1,7 +1,7 @@ import 'reflect-metadata'; import { describe, it, expect } from 'vitest'; import { createApp } from '../src/app'; -import { Route, Get, Post, Ws, Module } from '../src/metadata'; +import { Route, Get, Head, Options, Post, Ws, Module } from '../src/metadata'; import { param, query, headers, body } from '../src/params'; const numSchema = { @@ -14,7 +14,13 @@ const numSchema = { @Route('/users') class Users { - @Get('/:id') get(@param('id') _id: string, @query('expand') _e: string, @headers('x-trace') _t: string) { + @Get('/:id(\\d+)') get(@param('id') _id: string, @query('expand') _e: string, @headers('x-trace') _t: string) { + return {}; + } + @Head('/:id(\\d+)') head() { + return {}; + } + @Options('/:id(\\d+)') options() { return {}; } @Post('/') create(@body() _b: unknown) { @@ -52,6 +58,23 @@ describe('app.openapi()', () => { expect(byName).toEqual({ id: 'path', expand: 'query', 'x-trace': 'header' }); }); + it('projects a constrained param into schema.pattern', () => { + const op = doc.paths['/api/users/{id}'].get as any; + expect(op.parameters).toContainEqual({ + name: 'id', + in: 'path', + required: true, + schema: { type: 'string', pattern: '\\d+' }, + }); + }); + + it('includes explicit HEAD and OPTIONS without inventing automatic operations', () => { + expect(doc.paths['/api/users/{id}'].head).toBeDefined(); + expect(doc.paths['/api/users/{id}'].options).toBeDefined(); + expect(doc.paths['/api/users/search'].head).toBeUndefined(); + expect(doc.paths['/api/users/search'].options).toBeUndefined(); + }); + it('marks routes that take a body with requestBody', () => { const op = doc.paths['/api/users'].post as any; expect(op.requestBody.content['application/json']).toBeDefined(); diff --git a/test/router.test.ts b/test/router.test.ts index ffcf34b..72177ba 100644 --- a/test/router.test.ts +++ b/test/router.test.ts @@ -17,6 +17,11 @@ const route = (method: string, pattern: string): RouteDef => ({ }); describe('matchPattern', () => { + it('matches the root pattern only at root', () => { + expect(matchPattern('/', '/')).toEqual({}); + expect(matchPattern('/', '/users')).toBeUndefined(); + }); + it('matches static and :param segments, decoding params', () => { expect(matchPattern('/users/:id', '/users/a%20b')).toEqual({ id: 'a b' }); expect(matchPattern('/users/:id', '/users')).toBeUndefined(); -- 2.54.1 From 3a56e656bdf19e40a90e4249290a80a111108150 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 20:56:17 -0500 Subject: [PATCH 08/16] chore(deps): remediate security advisories Signed-off-by: Diego Resendez --- package-lock.json | 2373 ++++++++++++++++++++----------------- package.json | 36 +- website/package-lock.json | 341 +++--- website/package.json | 4 +- 4 files changed, 1478 insertions(+), 1276 deletions(-) diff --git a/package-lock.json b/package-lock.json index 383ec9e..730fccf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,11 +12,11 @@ "reflect-metadata": "0.2.2" }, "devDependencies": { - "@eslint/js": "^9.39.4", - "@nestjs/common": "^11.1.27", - "@nestjs/core": "^11.1.27", - "@nestjs/platform-express": "^11.1.27", - "@nestjs/platform-fastify": "^11.1.27", + "@eslint/js": "^9.39.5", + "@nestjs/common": "^11.1.28", + "@nestjs/core": "^11.1.28", + "@nestjs/platform-express": "^11.1.28", + "@nestjs/platform-fastify": "^11.1.28", "@stylistic/eslint-plugin": "^5.10.0", "@types/autocannon": "^7.12.7", "@types/busboy": "^1.5.4", @@ -26,19 +26,21 @@ "autocannon": "^8.0.0", "busboy": "^1.6.0", "cognitive-complexity-ts": "^0.8.2", - "eslint": "^9.39.4", + "esbuild": "0.27.2", + "eslint": "^9.39.5", "express": "^5.2.1", - "fastify": "^5.10.0", + "fastify": "^5.11.0", "graphql": "^16.9.0", - "miniflare": "^4.20260708.1", - "prettier": "^3.9.4", + "miniflare": "^4.20260730.0", + "prettier": "^3.9.6", "rxjs": "^7.8.2", "tsup": "^8.5.1", - "tsx": "^4.23.0", + "tsx": "^4.23.5", "typescript": "^5.5.0", - "typescript-eslint": "^8.63.0", - "vitest": "^2.0.0", - "ws": "^8.21.0" + "typescript-eslint": "^8.65.0", + "vite": "^6.4.3", + "vitest": "^3.2.7", + "ws": "^8.21.1" }, "engines": { "node": ">=18" @@ -75,9 +77,9 @@ } }, "node_modules/@cloudflare/workerd-darwin-64": { - "version": "1.20260708.1", - "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20260708.1.tgz", - "integrity": "sha512-HXFCvhS1wpg3uXO0CLUwmwC41i2loM5FSK69EUchOBpmYBAXxT1oHLm6EOA5lqhTk5Mu9kjRiQYxa1GwKPwfJg==", + "version": "1.20260730.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20260730.1.tgz", + "integrity": "sha512-+MBHmPaiTe2KajryW0T24rZvWFxb41hD3d8anNzQqHzft6vSEb18+sp0znSwxgij7ApPhSM1+vhkNg4f3YMguA==", "cpu": [ "x64" ], @@ -92,9 +94,9 @@ } }, "node_modules/@cloudflare/workerd-darwin-arm64": { - "version": "1.20260708.1", - "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20260708.1.tgz", - "integrity": "sha512-JVlJaKDoRTVKSroHIlf8g3UCPjKj4iDbMZE2CNYht5qQ+2rL0FAUiVlV82G3BqKnnw9kHYnnsMzC08b9zVtdzA==", + "version": "1.20260730.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20260730.1.tgz", + "integrity": "sha512-SBHKntPkKvNPgaCrTe99xC1CAl8ygJDzlYfK0LbuJ1muKadIw35WnhO0wu894fKBtllsVQdNzDLee+cm0ppLSQ==", "cpu": [ "arm64" ], @@ -109,9 +111,9 @@ } }, "node_modules/@cloudflare/workerd-linux-64": { - "version": "1.20260708.1", - "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20260708.1.tgz", - "integrity": "sha512-3daE60YdD7YX0Jtuzc9DE/r/qMkmx8ZvHTkF8Mzmp3F5tbzlV0DAzmu5PFUPF2WuvtKbAhZKbvC2cHmWpQYxnA==", + "version": "1.20260730.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20260730.1.tgz", + "integrity": "sha512-ouyPOSMbiKPeSwUJUvxtMcxGAXs2J4aPE4T5ABIYX5ClcQx5j5bbHTmnqOQEY8sAuLTPjH7dY+iB6UI5ISlwwA==", "cpu": [ "x64" ], @@ -126,9 +128,9 @@ } }, "node_modules/@cloudflare/workerd-linux-arm64": { - "version": "1.20260708.1", - "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20260708.1.tgz", - "integrity": "sha512-VLdNYOx5Hj+9C6isy0ACWZsbMtSxex2DIJWEe7cZxUdlphZ58ZT8zxNXK8yunFiowd34hn3VwGMopdvdj8lvmA==", + "version": "1.20260730.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20260730.1.tgz", + "integrity": "sha512-YQ+Mi78U3TPdgBPtwq+Sm6rJU+Ihl2y0pjYtuuKkdmUbYzL7oLR6Xqq9wljhasnuCFICssDJaqhMep5WizYoEQ==", "cpu": [ "arm64" ], @@ -143,9 +145,9 @@ } }, "node_modules/@cloudflare/workerd-windows-64": { - "version": "1.20260708.1", - "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20260708.1.tgz", - "integrity": "sha512-bC/aSAwLy16Vjo24i9XU3aWH+eRgz7NeR5xPKavGbembO18ZywYTQbXh14eXtY6fAqN3RzRG8psijTdhX4xydA==", + "version": "1.20260730.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20260730.1.tgz", + "integrity": "sha512-27fAN+vUECW1oYVc1KOcHYpkL8COM2Uxtxql7TL595kxbjoqS5yckw7NLz7bTf2pALFCZWjqXDjZGJ/xbG4ZKQ==", "cpu": [ "x64" ], @@ -195,9 +197,9 @@ } }, "node_modules/@emnapi/runtime": { - "version": "1.11.2", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.2.tgz", - "integrity": "sha512-kyOl3X0DuTiT1h2ft8r2fYO8JYtU9a9Xis/zBSiGArNaagCOWx90N1k2wxp18czFDH+OgcWGb5ZP/XMt3dcyPA==", + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz", + "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==", "dev": true, "license": "MIT", "optional": true, @@ -206,9 +208,9 @@ } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", - "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.2.tgz", + "integrity": "sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==", "cpu": [ "ppc64" ], @@ -219,13 +221,13 @@ "aix" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/android-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", - "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.2.tgz", + "integrity": "sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==", "cpu": [ "arm" ], @@ -236,13 +238,13 @@ "android" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/android-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", - "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.2.tgz", + "integrity": "sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==", "cpu": [ "arm64" ], @@ -253,13 +255,13 @@ "android" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/android-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", - "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.2.tgz", + "integrity": "sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==", "cpu": [ "x64" ], @@ -270,13 +272,13 @@ "android" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", - "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.2.tgz", + "integrity": "sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==", "cpu": [ "arm64" ], @@ -287,13 +289,13 @@ "darwin" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", - "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.2.tgz", + "integrity": "sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==", "cpu": [ "x64" ], @@ -304,13 +306,13 @@ "darwin" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", - "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.2.tgz", + "integrity": "sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==", "cpu": [ "arm64" ], @@ -321,13 +323,13 @@ "freebsd" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", - "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.2.tgz", + "integrity": "sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==", "cpu": [ "x64" ], @@ -338,13 +340,13 @@ "freebsd" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", - "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.2.tgz", + "integrity": "sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==", "cpu": [ "arm" ], @@ -355,13 +357,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", - "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.2.tgz", + "integrity": "sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==", "cpu": [ "arm64" ], @@ -372,13 +374,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", - "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.2.tgz", + "integrity": "sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==", "cpu": [ "ia32" ], @@ -389,13 +391,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", - "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.2.tgz", + "integrity": "sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==", "cpu": [ "loong64" ], @@ -406,13 +408,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", - "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.2.tgz", + "integrity": "sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==", "cpu": [ "mips64el" ], @@ -423,13 +425,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", - "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.2.tgz", + "integrity": "sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==", "cpu": [ "ppc64" ], @@ -440,13 +442,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", - "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.2.tgz", + "integrity": "sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==", "cpu": [ "riscv64" ], @@ -457,13 +459,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", - "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.2.tgz", + "integrity": "sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==", "cpu": [ "s390x" ], @@ -474,13 +476,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", - "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.2.tgz", + "integrity": "sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==", "cpu": [ "x64" ], @@ -491,13 +493,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/netbsd-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.1.tgz", - "integrity": "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.2.tgz", + "integrity": "sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==", "cpu": [ "arm64" ], @@ -512,9 +514,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", - "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.2.tgz", + "integrity": "sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==", "cpu": [ "x64" ], @@ -525,13 +527,13 @@ "netbsd" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/openbsd-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.1.tgz", - "integrity": "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.2.tgz", + "integrity": "sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==", "cpu": [ "arm64" ], @@ -546,9 +548,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", - "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.2.tgz", + "integrity": "sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==", "cpu": [ "x64" ], @@ -559,13 +561,13 @@ "openbsd" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/openharmony-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.1.tgz", - "integrity": "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.2.tgz", + "integrity": "sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==", "cpu": [ "arm64" ], @@ -580,9 +582,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", - "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.2.tgz", + "integrity": "sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==", "cpu": [ "x64" ], @@ -593,13 +595,13 @@ "sunos" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", - "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.2.tgz", + "integrity": "sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==", "cpu": [ "arm64" ], @@ -610,13 +612,13 @@ "win32" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", - "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.2.tgz", + "integrity": "sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==", "cpu": [ "ia32" ], @@ -627,13 +629,13 @@ "win32" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/win32-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", - "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.2.tgz", + "integrity": "sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==", "cpu": [ "x64" ], @@ -644,7 +646,7 @@ "win32" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@eslint-community/eslint-utils": { @@ -731,9 +733,9 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.5.tgz", - "integrity": "sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==", + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.6.tgz", + "integrity": "sha512-l2Ul9PrHsPCKcEY/ac7VgFj9D80C7S68sOKc618SyHDPK36s1XcFebXY0iTzUVn4Yq+YbwvSnDmCz9yxjX+QrA==", "dev": true, "license": "MIT", "dependencies": { @@ -743,7 +745,7 @@ "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", - "js-yaml": "^4.1.1", + "js-yaml": "^4.3.0", "minimatch": "^3.1.5", "strip-json-comments": "^3.1.1" }, @@ -779,9 +781,9 @@ "license": "MIT" }, "node_modules/@eslint/js": { - "version": "9.39.4", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.4.tgz", - "integrity": "sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==", + "version": "9.39.5", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.5.tgz", + "integrity": "sha512-QywQuszQh77pIXCsq998c8hbhSTI/azTty1Z6N53dmAudKHhy573j3yvRLsX2BSp8YpLtoCEG8E9DJe+8zUh4A==", "dev": true, "license": "MIT", "engines": { @@ -1085,9 +1087,9 @@ } }, "node_modules/@img/sharp-darwin-arm64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz", - "integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==", + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.2.tgz", + "integrity": "sha512-eEieHsMksAW4IiO5NzauESRl2D2qz3J/kwUxUrSfV06A93eEaRfMpHXyUb1mAqrR7i8U9A0GRqE9pjn6u1Jjpg==", "cpu": [ "arm64" ], @@ -1098,19 +1100,19 @@ "darwin" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-darwin-arm64": "1.2.4" + "@img/sharp-libvips-darwin-arm64": "1.3.1" } }, "node_modules/@img/sharp-darwin-x64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz", - "integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==", + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.2.tgz", + "integrity": "sha512-BaktuGPCeHJMARpodR8jK4uKiZrPAy9WrfQW0sdI37clracq8Bp01AYS3SZgi5FS/y5twa9t4+LIuuxQjqRrWw==", "cpu": [ "x64" ], @@ -1121,19 +1123,39 @@ "darwin" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-darwin-x64": "1.2.4" + "@img/sharp-libvips-darwin-x64": "1.3.1" + } + }, + "node_modules/@img/sharp-freebsd-wasm32": { + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.2.tgz", + "integrity": "sha512-YoAxdnd8hPUkvLHd3bWY+YA8nw3xM/RyRopYucNsWHVSan8NLVM3X2volsfoRDcXdUJPg6tXahSd7HXPK7lRnw==", + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "dependencies": { + "@img/sharp-wasm32": "0.35.2" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" } }, "node_modules/@img/sharp-libvips-darwin-arm64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz", - "integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.1.tgz", + "integrity": "sha512-4V/M3roRMTYjiwZY9IOVQOE8OyeCxFAkYmyZDrZl51uOKjibm3oeEJ4WAmLxutAfzFbC9jqUiPs2gbnGflH+7g==", "cpu": [ "arm64" ], @@ -1148,9 +1170,9 @@ } }, "node_modules/@img/sharp-libvips-darwin-x64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz", - "integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.1.tgz", + "integrity": "sha512-c0/DxItpJv2+dGhgycJBBgotdqruGYDvA79drdh0MD1dFpy7JzJ/PlXwi1H4rFf0eTy8tgbI91aHDnZIceY3jQ==", "cpu": [ "x64" ], @@ -1165,13 +1187,16 @@ } }, "node_modules/@img/sharp-libvips-linux-arm": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz", - "integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.1.tgz", + "integrity": "sha512-aGGy9aWzXgHBG7HNyQPWorZthlp7+x6fDRoPAQbGO3ThcttuTyKIx3NuSHb6zb4gBNq6/yNn9f1cy9nFKS/Vmg==", "cpu": [ "arm" ], "dev": true, + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1182,13 +1207,16 @@ } }, "node_modules/@img/sharp-libvips-linux-arm64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz", - "integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.1.tgz", + "integrity": "sha512-JznefmcK9j1JKPz8AkQDh89kjojubyfOasWBPKfzMIhPwsgDy9evpE/naJTXXXmghS1iFwR8u/kTwh/I2/+GCw==", "cpu": [ "arm64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1199,13 +1227,16 @@ } }, "node_modules/@img/sharp-libvips-linux-ppc64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz", - "integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.1.tgz", + "integrity": "sha512-1EkwGNCZk6iWNCMWqrvdJ+r1j0PT1zIz60CNPhYnJlK/zyeWqlsPZIe+ocBVqPF8k/Ssee/NCk+tE9Ryrko6ng==", "cpu": [ "ppc64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1216,13 +1247,16 @@ } }, "node_modules/@img/sharp-libvips-linux-riscv64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz", - "integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.1.tgz", + "integrity": "sha512-Ilays+w2bXdnxzxtQdmXR62u8o8GYa3eL4+Gr+1KiE4xperMZUslRaVPJwwPkzlHEjGfXAfRVAa/7CYCtSqsBw==", "cpu": [ "riscv64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1233,13 +1267,16 @@ } }, "node_modules/@img/sharp-libvips-linux-s390x": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz", - "integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.1.tgz", + "integrity": "sha512-VfBwVHQTbRoj4XlpA/KLZ7ltgMpz+4WSejFzQ+GnoImjo1PtEJ59QB2qR1xQEeRPYIkNrPIm2L4cICMvz4C2ew==", "cpu": [ "s390x" ], "dev": true, + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1250,13 +1287,16 @@ } }, "node_modules/@img/sharp-libvips-linux-x64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz", - "integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.1.tgz", + "integrity": "sha512-+c8ukgwU62DS54nCAjw7keOfHUkmr0B5QHEdcOqRnodF/MNXJbVI8Eopoj4B/0H8Asr65I+A4Amrn7a85/md6A==", "cpu": [ "x64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1267,13 +1307,16 @@ } }, "node_modules/@img/sharp-libvips-linuxmusl-arm64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz", - "integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.1.tgz", + "integrity": "sha512-qlKb/pwbkAi1WMsJrYHk7CuDrd12s27U2QnRhFYUoJNrRCmkosMTttuRFat/DDB3IlDm5qE1TJgZ4JDnHX8Ldw==", "cpu": [ "arm64" ], "dev": true, + "libc": [ + "musl" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1284,13 +1327,16 @@ } }, "node_modules/@img/sharp-libvips-linuxmusl-x64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz", - "integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.1.tgz", + "integrity": "sha512-yO21HwoUVLN8Qa+/SBjQLMYwBWAVJjeGPNe+hc0OUeMeifEtJqu5a1c4HayE1nNpDih9y3/KkoltfkDodmKAlg==", "cpu": [ "x64" ], "dev": true, + "libc": [ + "musl" + ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1301,213 +1347,254 @@ } }, "node_modules/@img/sharp-linux-arm": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz", - "integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==", + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.2.tgz", + "integrity": "sha512-SE4kzF2mepn6z+6E7L6lsV8FzuLL6IPQdyX8ZiwROAG/G8td+hP/m7FsFPwidtrF19gvajuC9l6TxAVcsA4S7A==", "cpu": [ "arm" ], "dev": true, + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-arm": "1.2.4" + "@img/sharp-libvips-linux-arm": "1.3.1" } }, "node_modules/@img/sharp-linux-arm64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz", - "integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==", + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.2.tgz", + "integrity": "sha512-af12Pnd0ZGu2HfP8NayB0kk6eC/lrfbQE6HlR4jD+34wdJ1Vw9TF6TMn6ZvffT+WgqVsl0hRbmNvz2u/23VmwA==", "cpu": [ "arm64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-arm64": "1.2.4" + "@img/sharp-libvips-linux-arm64": "1.3.1" } }, "node_modules/@img/sharp-linux-ppc64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz", - "integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==", + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.2.tgz", + "integrity": "sha512-hYSBm7zcNtDCozCxQHYZJiu63b/bXsgRZuOxCIBZsStMM9Vap47iFHdbX4kCvQsblPB/k+clhELpdQJHQLSHvg==", "cpu": [ "ppc64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-ppc64": "1.2.4" + "@img/sharp-libvips-linux-ppc64": "1.3.1" } }, "node_modules/@img/sharp-linux-riscv64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz", - "integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==", + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.2.tgz", + "integrity": "sha512-qQt0Kc13+Hoan/Awq/qMSQw3L+RI1NCRPgD5cUJ/1WSSmIoysLOc72jlRM3E0OHN9Yr313jgeQ2T+zW+F03QFA==", "cpu": [ "riscv64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-riscv64": "1.2.4" + "@img/sharp-libvips-linux-riscv64": "1.3.1" } }, "node_modules/@img/sharp-linux-s390x": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz", - "integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==", + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.2.tgz", + "integrity": "sha512-E4fLLfRPzDLlEeDaTzI98OFLcv++WL5ChLLMwPoVd0CIoZQqupBSNbOisPL5am9XsbQ9T84+iiMpUvbFtkunbA==", "cpu": [ "s390x" ], "dev": true, + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-s390x": "1.2.4" + "@img/sharp-libvips-linux-s390x": "1.3.1" } }, "node_modules/@img/sharp-linux-x64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.5.tgz", - "integrity": "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==", + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.2.tgz", + "integrity": "sha512-gi0zFJJRLswfCZmHtJdikXPOc5u7qamSOS3NHedLqLd4W8Q0NqjdBr6TTRIgsfFjqfTsHFgdfvJ9LwqSgcHiAA==", "cpu": [ "x64" ], "dev": true, + "libc": [ + "glibc" + ], "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-x64": "1.2.4" + "@img/sharp-libvips-linux-x64": "1.3.1" } }, "node_modules/@img/sharp-linuxmusl-arm64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.5.tgz", - "integrity": "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==", + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.2.tgz", + "integrity": "sha512-siWbOW1u6HFnFLrp0waKyW7VEf7jYvcDWdrXEFa8AkdAQgEvuu5Fz8/Y70w9EeqAdwDtfU012BhEHHaDqvQNzg==", "cpu": [ "arm64" ], "dev": true, + "libc": [ + "musl" + ], "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-arm64": "1.2.4" + "@img/sharp-libvips-linuxmusl-arm64": "1.3.1" } }, "node_modules/@img/sharp-linuxmusl-x64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.5.tgz", - "integrity": "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==", + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.2.tgz", + "integrity": "sha512-YBqMMcjDi4QGYiSn4vNOYBhmlC4z5AXqkOUUqI2e0AFA4urNv4ESgOgwNl3K+4etQhha0twXlzeF20bbULm9Yg==", "cpu": [ "x64" ], "dev": true, + "libc": [ + "musl" + ], "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-x64": "1.2.4" + "@img/sharp-libvips-linuxmusl-x64": "1.3.1" } }, "node_modules/@img/sharp-wasm32": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.5.tgz", - "integrity": "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==", - "cpu": [ - "wasm32" - ], + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.2.tgz", + "integrity": "sha512-Mrv4JQNYVQ94xH+jzZ9r+gowleN8mv2FTgKT+PI6bx5C0G8TdNYndu161pg2i7uoBwxy2ImPMHrJOM2LZef7Bw==", "dev": true, "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", "optional": true, "dependencies": { - "@emnapi/runtime": "^1.7.0" + "@emnapi/runtime": "^1.11.1" }, "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-webcontainers-wasm32": { + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.2.tgz", + "integrity": "sha512-QNV27pxs9wpApEiCfvHM1RDoP1w1+2KrUWWDPEhEwg+latvOrfuhWrHWZKwdSFwU6jh3myjw/yOCRsUIuOft3g==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@img/sharp-wasm32": "0.35.2" + }, + "engines": { + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" } }, "node_modules/@img/sharp-win32-arm64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.5.tgz", - "integrity": "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==", + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.2.tgz", + "integrity": "sha512-BiVRYc/t6/Vl3e1hBx0hugG4oN9Pydf4fgMSpxTQJmwGUg/YoXTWHiFeRymHfCZzifxu4F4rpk/I67D0LQ20wQ==", "cpu": [ "arm64" ], @@ -1518,16 +1605,16 @@ "win32" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" } }, "node_modules/@img/sharp-win32-ia32": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.5.tgz", - "integrity": "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==", + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.2.tgz", + "integrity": "sha512-YYEhx9PImCC7T0tI8JDMi4DB9LwLCXCU5OWNYEXAxh5Q1ShKkyC6byxzoBJ3gEFDnH2lQckWuDe70G7mB2XJog==", "cpu": [ "ia32" ], @@ -1538,16 +1625,16 @@ "win32" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": "^20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" } }, "node_modules/@img/sharp-win32-x64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz", - "integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==", + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.2.tgz", + "integrity": "sha512-imoOyBcoM/iiUr4J6VPpCNjPnjvP/Gks95898yB8YqoGGYmHYbOyCuNv9FMhFgtaiHFGbHW8bxKqRV6VjtXThQ==", "cpu": [ "x64" ], @@ -1558,7 +1645,7 @@ "win32" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" @@ -1696,9 +1783,9 @@ } }, "node_modules/@nestjs/common": { - "version": "11.1.27", - "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.27.tgz", - "integrity": "sha512-kEGSzqM2lWr4whh4Ubflw+oPZSEzxvRMu9WL+LveZploJWTjec5bBlCiRVlVzTPg2kIwBiLwWSvCCW7Wnin1gg==", + "version": "11.1.28", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.28.tgz", + "integrity": "sha512-bRImsxibie+AM7xjdwcrm/gr5YeacI65kSBNzTufa1Ib5iwziaY/lqMtRh9THq6pbV4e1HP9aI2ZxGUumnmaoQ==", "dev": true, "license": "MIT", "dependencies": { @@ -1728,9 +1815,9 @@ } }, "node_modules/@nestjs/core": { - "version": "11.1.27", - "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-11.1.27.tgz", - "integrity": "sha512-K6DX7hcqmZdeXkv7tsPakKBRCgqL19a4mtbX4FluY0hWtFdtPKp6lbe+lb8gWPfvLdbOWr/CPScn7BSjBX+Ecg==", + "version": "11.1.28", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-11.1.28.tgz", + "integrity": "sha512-06m63xIRj8+l8uOeh/8LnYupGubkyu4f+bPKIadaSui6vK9KpXgoz7HveT1yOVLcEt0M0oCOEW5EuEXZkEmBBQ==", "dev": true, "license": "MIT", "dependencies": { @@ -1768,15 +1855,15 @@ } }, "node_modules/@nestjs/platform-express": { - "version": "11.1.27", - "resolved": "https://registry.npmjs.org/@nestjs/platform-express/-/platform-express-11.1.27.tgz", - "integrity": "sha512-0ZFhz6H6EdGh4xQVbUNwjoAwBuz73P7FvUAl67h9CTdMqQlJDaQYJApBv8pKfVZ1fGjMCbl0m9DcC6pXaZPWSQ==", + "version": "11.1.28", + "resolved": "https://registry.npmjs.org/@nestjs/platform-express/-/platform-express-11.1.28.tgz", + "integrity": "sha512-hU+9Sz4m+onHrR5AmelI59QKmY/Re546bPnygnpqqeQdHDiJpBgjWbL4t6Jr73CBpS60cpyng7WzjgphNB9iwA==", "dev": true, "license": "MIT", "dependencies": { "cors": "2.8.6", "express": "5.2.1", - "multer": "2.1.1", + "multer": "2.2.0", "path-to-regexp": "8.4.2", "tslib": "2.8.1" }, @@ -1790,16 +1877,16 @@ } }, "node_modules/@nestjs/platform-fastify": { - "version": "11.1.27", - "resolved": "https://registry.npmjs.org/@nestjs/platform-fastify/-/platform-fastify-11.1.27.tgz", - "integrity": "sha512-rZMPS0RMP9P2O7Y/shAP0kKwrHElGO9cPTlgtdWpQ6JEX58uhYEJLGsU/X9a9l18DNSxxb3YjrEiVVuI2Iv6MA==", + "version": "11.1.28", + "resolved": "https://registry.npmjs.org/@nestjs/platform-fastify/-/platform-fastify-11.1.28.tgz", + "integrity": "sha512-utUfyxRzZsoFxz1GU3Z0OthHpijB605iqtxwFnk9yKowLrU1t1ZkxMUuad/csemImY6AsuaTpTjCecKbmfl+pQ==", "dev": true, "license": "MIT", "dependencies": { "@fastify/cors": "11.2.0", "@fastify/formbody": "8.0.2", "fast-querystring": "1.1.2", - "fastify": "5.8.5", + "fastify": "5.10.0", "fastify-plugin": "6.0.0", "find-my-way": "9.6.0", "light-my-request": "6.6.0", @@ -1826,35 +1913,10 @@ } } }, - "node_modules/@nestjs/platform-fastify/node_modules/fast-json-stringify": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/fast-json-stringify/-/fast-json-stringify-6.4.0.tgz", - "integrity": "sha512-ibRCQ0GZKJIQ+P3Et1h0LhPgp3PMTYk0MH8O+kW3lNYsvmaQww5Nn3f1jf73Q0jR1Yz3a1CDP4/NZD3vOajWJQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fastify" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fastify" - } - ], - "license": "MIT", - "dependencies": { - "@fastify/merge-json-schemas": "^0.2.0", - "ajv": "^8.12.0", - "ajv-formats": "^3.0.1", - "fast-uri": "^3.0.0", - "json-schema-ref-resolver": "^3.0.0", - "rfdc": "^1.2.0" - } - }, "node_modules/@nestjs/platform-fastify/node_modules/fastify": { - "version": "5.8.5", - "resolved": "https://registry.npmjs.org/fastify/-/fastify-5.8.5.tgz", - "integrity": "sha512-Yqptv59pQzPgQUSIm87hMqHJmdkb1+GPxdE6vW6FRyVE9G86mt7rOghitiU4JHRaTyDUk9pfeKmDeu70lAwM4Q==", + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/fastify/-/fastify-5.10.0.tgz", + "integrity": "sha512-A9L0ziuWGQHgEEVgF3davQ9vbD93IuX+lo2IsxapQmu5b/Y/ynn9m9K5JHt9dvyJXOFc5iN0Zk5GHEOqnzhWjg==", "dev": true, "funding": [ { @@ -1874,8 +1936,8 @@ "@fastify/proxy-addr": "^5.0.0", "abstract-logging": "^2.0.1", "avvio": "^9.0.0", - "fast-json-stringify": "^6.0.0", - "find-my-way": "^9.0.0", + "fast-json-stringify": "^7.0.0", + "find-my-way": "^9.6.0", "light-my-request": "^6.0.0", "pino": "^9.14.0 || ^10.1.0", "process-warning": "^5.0.0", @@ -2399,6 +2461,17 @@ "@types/node": "*" } }, + "node_modules/@types/chai": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", + "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/deep-eql": "*", + "assertion-error": "^2.0.1" + } + }, "node_modules/@types/connect": { "version": "3.4.38", "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", @@ -2409,6 +2482,13 @@ "@types/node": "*" } }, + "node_modules/@types/deep-eql": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", + "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/estree": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", @@ -2511,17 +2591,17 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.63.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.63.0.tgz", - "integrity": "sha512-rvwSgqT+DHpWdzfSzPatRLm02a0GlESt++9iy3hLCDY4BgkaLcl8LBi9Yh7XGFBpwcBE/K3024QuXWTpbz4FfQ==", + "version": "8.65.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.65.0.tgz", + "integrity": "sha512-IEgob78X12rHpUmtcwFsXhZdVGJtwTVP8FiCLZkR6GlYVrl2PcuB+KhCE5BlVC/eQpQnu8WXRtkHZuPar+gCRA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.63.0", - "@typescript-eslint/type-utils": "8.63.0", - "@typescript-eslint/utils": "8.63.0", - "@typescript-eslint/visitor-keys": "8.63.0", + "@typescript-eslint/scope-manager": "8.65.0", + "@typescript-eslint/type-utils": "8.65.0", + "@typescript-eslint/utils": "8.65.0", + "@typescript-eslint/visitor-keys": "8.65.0", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.5.0" @@ -2534,15 +2614,15 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.63.0", + "@typescript-eslint/parser": "^8.65.0", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", - "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.6.tgz", + "integrity": "sha512-BAg6QkE8W+TuQLrrw0Ugr7HegXduRuuj8/ti2kSOc+jz1dmx8/WNcjr6XGnq5YpDWxFwwaavqD0+jIUOKelTsw==", "dev": true, "license": "MIT", "engines": { @@ -2550,16 +2630,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.63.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.63.0.tgz", - "integrity": "sha512-gwh4gvvlaVDKKxyfxMG+Gnu1u9X0OQBwyGLkbwB65dIzBKnxeRiJlNFqlI3zwVhNXJIs6qV7mlFCn/BIajlVig==", + "version": "8.65.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.65.0.tgz", + "integrity": "sha512-CZ4nMxWwgu1HEEFNkeaCptra9QCtkmKdgf3sWh1rl1trIhmxLilgTV4cwcbQ4wemnT4sWQN8CaKOmdYx+g2gMA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.63.0", - "@typescript-eslint/types": "8.63.0", - "@typescript-eslint/typescript-estree": "8.63.0", - "@typescript-eslint/visitor-keys": "8.63.0", + "@typescript-eslint/scope-manager": "8.65.0", + "@typescript-eslint/types": "8.65.0", + "@typescript-eslint/typescript-estree": "8.65.0", + "@typescript-eslint/visitor-keys": "8.65.0", "debug": "^4.4.3" }, "engines": { @@ -2575,14 +2655,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.63.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.63.0.tgz", - "integrity": "sha512-e5dh0/UI0ok53AlZ5wRkXCB32z/f2jUZqPR/ygAw5WYaSw8j9EoJWlS7wQjr/dmOaqWjnPIn2m+HhVPCMWGZVQ==", + "version": "8.65.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.65.0.tgz", + "integrity": "sha512-SxnPhbTsGahizDgbu7oqFH/xVtzIqMd/s+WtnSxNxJZJpLbdT5IPdzg8EZxO3+PoKahXmwJLeNQOpKJb3/bi7Q==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.63.0", - "@typescript-eslint/types": "^8.63.0", + "@typescript-eslint/tsconfig-utils": "^8.65.0", + "@typescript-eslint/types": "^8.65.0", "debug": "^4.4.3" }, "engines": { @@ -2597,14 +2677,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.63.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.63.0.tgz", - "integrity": "sha512-uUyfMWCnDSN8bCpcrY8nGP2BLkQ9Xn0GsipcONcpIDWhwhO4ZSyHvyS14U3X75mzxWxL3I2UZIrenTzdzcJO8A==", + "version": "8.65.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.65.0.tgz", + "integrity": "sha512-Esbl8OSYiVxBokYgWPf7VVWg/BE798wXhimnn9ML9Pt5qoDf8bfQlgjlKXR/k98+AcNzlLKYrpCcrcuZ9DZLgg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.63.0", - "@typescript-eslint/visitor-keys": "8.63.0" + "@typescript-eslint/types": "8.65.0", + "@typescript-eslint/visitor-keys": "8.65.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2615,9 +2695,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.63.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.63.0.tgz", - "integrity": "sha512-sUAbkulqBAsncKnbRP3+7CtQFRKicexnj7ZwNC6ddCR7EmrXvjvdCYMJbUIqMd6lwoEriZjwLo08aS5tSjVMHg==", + "version": "8.65.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.65.0.tgz", + "integrity": "sha512-j6GzGqCiRdA7Qhur2VVmKZAkBLfnHFQfx4TaJGL9RMveZqCo48jSHHO0DTgizEnGhtWnqmbtCUSrqSkdiY/0Hg==", "dev": true, "license": "MIT", "engines": { @@ -2632,15 +2712,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.63.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.63.0.tgz", - "integrity": "sha512-Nzzh/OGxVCOjObjaj1CQF2RUasyYy2Jfuh+zZ3PjLzG2fYRriAiZLib9UKtO+CpQAS3YHiAS+ckZDclwqI1TPA==", + "version": "8.65.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.65.0.tgz", + "integrity": "sha512-YjaZ7PRI5qY7ax2L3PbvX0rRyGtipAReCWs0mhhDBHjH/vl0g0BonaGXrKdKpMbIIsMIwDgbk/xzkBTyAltS5g==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.63.0", - "@typescript-eslint/typescript-estree": "8.63.0", - "@typescript-eslint/utils": "8.63.0", + "@typescript-eslint/types": "8.65.0", + "@typescript-eslint/typescript-estree": "8.65.0", + "@typescript-eslint/utils": "8.65.0", "debug": "^4.4.3", "ts-api-utils": "^2.5.0" }, @@ -2657,9 +2737,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.63.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.63.0.tgz", - "integrity": "sha512-xyLtl9DUBBFrcJS4x2pIqGLH68/tC2uOa4Z7pUteW09D3bXnnXUom4dyPikzWgB7llmIc1zoeI3aoUdC4rPK/Q==", + "version": "8.65.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.65.0.tgz", + "integrity": "sha512-JSSwWNy+H0E/01jJEM+hrX6N0OFDzFzeIhHFSAS01tlVaevpG8cFyYRPhS5yjGOvBUx3sqQHVMjCL1CAZZMxBg==", "dev": true, "license": "MIT", "engines": { @@ -2671,16 +2751,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.63.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.63.0.tgz", - "integrity": "sha512-ygBkU+B7ex5UI/gKhaqexWev79uISfIv7XQCRNYO/jmD8rGLPyWLAb3KMRT6nd8Gt9bmUBi9+iX6tBdYfOY81Q==", + "version": "8.65.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.65.0.tgz", + "integrity": "sha512-JboAE2swaYt4tb1fHhHTABE2K+OLy09XfcTbhnk4Pw96f9dd2e9iYsJ28gBggHlo5z5x1rkyWvcPoTuNTd4oGg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.63.0", - "@typescript-eslint/tsconfig-utils": "8.63.0", - "@typescript-eslint/types": "8.63.0", - "@typescript-eslint/visitor-keys": "8.63.0", + "@typescript-eslint/project-service": "8.65.0", + "@typescript-eslint/tsconfig-utils": "8.65.0", + "@typescript-eslint/types": "8.65.0", + "@typescript-eslint/visitor-keys": "8.65.0", "debug": "^4.4.3", "minimatch": "^10.2.2", "semver": "^7.7.3", @@ -2709,26 +2789,26 @@ } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "5.0.7", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.7.tgz", - "integrity": "sha512-7oFy703dxfY3/NLxC1fh2SUCQ0H9rmAY+5EpDVfXjUTTs+HEwR2nYaqLv+GWcTsumwxPfiz6CzCNkwXwBUwqCA==", + "version": "5.0.9", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz", + "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==", "dev": true, "license": "MIT", "dependencies": { "balanced-match": "^4.0.2" }, "engines": { - "node": "18 || 20 || >=22" + "node": "20 || >=22" } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "10.2.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", - "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^5.0.5" + "brace-expansion": "^5.0.8" }, "engines": { "node": "18 || 20 || >=22" @@ -2738,16 +2818,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.63.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.63.0.tgz", - "integrity": "sha512-fUKaeAvrTuQg/Tgt3nliAUSZHJM6DlCcfyEmxCvlX8kieWSStBX+5O5Fnidtc3i2JrH+9c/GL4RY2iasd/GPTA==", + "version": "8.65.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.65.0.tgz", + "integrity": "sha512-gXiwIHsYreboxeJucHKPvgwl7dXt50mF8s1/c00cP/WoVTyWKFdtfhRWwZiXYFU5H2O8vVoSLNrexFZjYS/SGA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.63.0", - "@typescript-eslint/types": "8.63.0", - "@typescript-eslint/typescript-estree": "8.63.0" + "@typescript-eslint/scope-manager": "8.65.0", + "@typescript-eslint/types": "8.65.0", + "@typescript-eslint/typescript-estree": "8.65.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2762,13 +2842,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.63.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.63.0.tgz", - "integrity": "sha512-UexrHGnGTpbuQHct2ExOc2ZcFbGUS9FOesCxxqdBGcpI1BxYu/LZ6U8Aq6/72XtF/qRBk9nhuGHFJIXXMhPMdw==", + "version": "8.65.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.65.0.tgz", + "integrity": "sha512-8C71BQkGjiMmXtop7pHVJu1l2NNShFdkCyD6a2ezzs5vU/L3LRtb69EtcteFwz0mYMPzIgOw0n6OV4VBUWZd7A==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.63.0", + "@typescript-eslint/types": "8.65.0", "eslint-visitor-keys": "^5.0.0" }, "engines": { @@ -2793,113 +2873,88 @@ } }, "node_modules/@vitest/expect": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.1.9.tgz", - "integrity": "sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.7.tgz", + "integrity": "sha512-E8eBXaKibuvH2pSZErOjdVb5vF4PbKYcrnluBTYxEk1l/VhhwZg1kZQsdtjq+CsF5CFydf2Rdkz7jDHKSisi3w==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/spy": "2.1.9", - "@vitest/utils": "2.1.9", - "chai": "^5.1.2", - "tinyrainbow": "^1.2.0" + "@types/chai": "^5.2.2", + "@vitest/spy": "3.2.7", + "@vitest/utils": "3.2.7", + "chai": "^5.2.0", + "tinyrainbow": "^2.0.0" }, "funding": { "url": "https://opencollective.com/vitest" } }, - "node_modules/@vitest/mocker": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-2.1.9.tgz", - "integrity": "sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/spy": "2.1.9", - "estree-walker": "^3.0.3", - "magic-string": "^0.30.12" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "msw": "^2.4.9", - "vite": "^5.0.0" - }, - "peerDependenciesMeta": { - "msw": { - "optional": true - }, - "vite": { - "optional": true - } - } - }, "node_modules/@vitest/pretty-format": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.9.tgz", - "integrity": "sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.7.tgz", + "integrity": "sha512-KUHlwqVu0sRlhCdyPdQ/wBoTfRahjUky1MubOmYw9fWfIZy1gNoHpuaaQBPAaMaVYdQYHJLurzj8ECCj5OwTqA==", "dev": true, "license": "MIT", "dependencies": { - "tinyrainbow": "^1.2.0" + "tinyrainbow": "^2.0.0" }, "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/@vitest/runner": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.9.tgz", - "integrity": "sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.7.tgz", + "integrity": "sha512-sB9y4ovltoQP+WaUPwmSxO9WIg9Ig694Di5PalVPsYHklAdE027mehpWF2SQSVq+k6sFgaivbTjTJwZLSHbedA==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/utils": "2.1.9", - "pathe": "^1.1.2" + "@vitest/utils": "3.2.7", + "pathe": "^2.0.3", + "strip-literal": "^3.0.0" }, "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/@vitest/snapshot": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.9.tgz", - "integrity": "sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.7.tgz", + "integrity": "sha512-7C+MwShwtBSI5Buwoyg3s/iY1eHL9PKAf+O1wVh/TdnjXUtkoL/9YQtre90i4MtNXM6edP1wJ2zOBpfCyhIS7g==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/pretty-format": "2.1.9", - "magic-string": "^0.30.12", - "pathe": "^1.1.2" + "@vitest/pretty-format": "3.2.7", + "magic-string": "^0.30.17", + "pathe": "^2.0.3" }, "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/@vitest/spy": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.1.9.tgz", - "integrity": "sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.7.tgz", + "integrity": "sha512-Q2eQGI6d2L/hBtZ0qNuKcAGid68XK6cv1xsoaIma6PaJhHPoqcEJhYpXZ/5myCMqkNgtP6UKuBhbc0nHKnrkuQ==", "dev": true, "license": "MIT", "dependencies": { - "tinyspy": "^3.0.2" + "tinyspy": "^4.0.3" }, "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/@vitest/utils": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.9.tgz", - "integrity": "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.7.tgz", + "integrity": "sha512-x6BDOd7dyo3PFLY3I9/HJ25X/6OurhGXk2/B9gOZNPF7XDVjeBK4k01lQE5uvDpbuheErh91qYuE1E2OEjK3Rw==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/pretty-format": "2.1.9", - "loupe": "^3.1.2", - "tinyrainbow": "^1.2.0" + "@vitest/pretty-format": "3.2.7", + "loupe": "^3.1.4", + "tinyrainbow": "^2.0.0" }, "funding": { "url": "https://opencollective.com/vitest" @@ -3192,9 +3247,9 @@ } }, "node_modules/brace-expansion": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.15.tgz", - "integrity": "sha512-EwOCDEex4quD37XhqM3omwtMoJjr//isUZz1JopUNWms+4Z2ViyM/k1YIRePpoVNnQhENnxtFjLaxNHrT7xIUg==", + "version": "1.1.18", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz", + "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==", "dev": true, "license": "MIT", "dependencies": { @@ -3792,9 +3847,9 @@ } }, "node_modules/editorconfig/node_modules/brace-expansion": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.1.tgz", - "integrity": "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.4.tgz", + "integrity": "sha512-hGfVzPxthbf3+2yjg/RBs60cB0FhqBS/zvdV/4wn4/BmN0bNMMHPc4V/BbFieqf1TKAGGAHnY4eSjajCl0f2Xg==", "dev": true, "license": "MIT", "dependencies": { @@ -3908,9 +3963,9 @@ } }, "node_modules/esbuild": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", - "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.2.tgz", + "integrity": "sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==", "dev": true, "hasInstallScript": true, "license": "MIT", @@ -3918,32 +3973,35 @@ "esbuild": "bin/esbuild" }, "engines": { - "node": ">=12" + "node": ">=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.21.5", - "@esbuild/android-arm": "0.21.5", - "@esbuild/android-arm64": "0.21.5", - "@esbuild/android-x64": "0.21.5", - "@esbuild/darwin-arm64": "0.21.5", - "@esbuild/darwin-x64": "0.21.5", - "@esbuild/freebsd-arm64": "0.21.5", - "@esbuild/freebsd-x64": "0.21.5", - "@esbuild/linux-arm": "0.21.5", - "@esbuild/linux-arm64": "0.21.5", - "@esbuild/linux-ia32": "0.21.5", - "@esbuild/linux-loong64": "0.21.5", - "@esbuild/linux-mips64el": "0.21.5", - "@esbuild/linux-ppc64": "0.21.5", - "@esbuild/linux-riscv64": "0.21.5", - "@esbuild/linux-s390x": "0.21.5", - "@esbuild/linux-x64": "0.21.5", - "@esbuild/netbsd-x64": "0.21.5", - "@esbuild/openbsd-x64": "0.21.5", - "@esbuild/sunos-x64": "0.21.5", - "@esbuild/win32-arm64": "0.21.5", - "@esbuild/win32-ia32": "0.21.5", - "@esbuild/win32-x64": "0.21.5" + "@esbuild/aix-ppc64": "0.27.2", + "@esbuild/android-arm": "0.27.2", + "@esbuild/android-arm64": "0.27.2", + "@esbuild/android-x64": "0.27.2", + "@esbuild/darwin-arm64": "0.27.2", + "@esbuild/darwin-x64": "0.27.2", + "@esbuild/freebsd-arm64": "0.27.2", + "@esbuild/freebsd-x64": "0.27.2", + "@esbuild/linux-arm": "0.27.2", + "@esbuild/linux-arm64": "0.27.2", + "@esbuild/linux-ia32": "0.27.2", + "@esbuild/linux-loong64": "0.27.2", + "@esbuild/linux-mips64el": "0.27.2", + "@esbuild/linux-ppc64": "0.27.2", + "@esbuild/linux-riscv64": "0.27.2", + "@esbuild/linux-s390x": "0.27.2", + "@esbuild/linux-x64": "0.27.2", + "@esbuild/netbsd-arm64": "0.27.2", + "@esbuild/netbsd-x64": "0.27.2", + "@esbuild/openbsd-arm64": "0.27.2", + "@esbuild/openbsd-x64": "0.27.2", + "@esbuild/openharmony-arm64": "0.27.2", + "@esbuild/sunos-x64": "0.27.2", + "@esbuild/win32-arm64": "0.27.2", + "@esbuild/win32-ia32": "0.27.2", + "@esbuild/win32-x64": "0.27.2" } }, "node_modules/escape-html": { @@ -3967,9 +4025,9 @@ } }, "node_modules/eslint": { - "version": "9.39.4", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.4.tgz", - "integrity": "sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==", + "version": "9.39.5", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.5.tgz", + "integrity": "sha512-DgZS62aPLXKlnxILS/AYCoRvHaZeXceIzlXPkkGGzJWSow1aEk0lbTlxUSlyjC8jcaKxAdOnTDz+o1JFSBsyjw==", "dev": true, "license": "MIT", "dependencies": { @@ -3978,8 +4036,8 @@ "@eslint/config-array": "^0.21.2", "@eslint/config-helpers": "^0.4.2", "@eslint/core": "^0.17.0", - "@eslint/eslintrc": "^3.3.5", - "@eslint/js": "9.39.4", + "@eslint/eslintrc": "^3.3.6", + "@eslint/js": "9.39.5", "@eslint/plugin-kit": "^0.4.1", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", @@ -4289,9 +4347,9 @@ "license": "MIT" }, "node_modules/fast-uri": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.3.tgz", - "integrity": "sha512-i70LwGWUduXqzicKXWshooq+sWL1K3WUU5rKZNG/0i3a1OSoX3HqhH5WbWwTmqWfor4urUakGPiRQcleRZTwOg==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.5.tgz", + "integrity": "sha512-gHwA1O9LDIcKunMKhObS/HimwtehO1nPUECKAu5TpKgaO19fcWEl4bliWe1jWxVFvIXztJjjQ4L8XQ1EU9f7Jw==", "dev": true, "funding": [ { @@ -4306,9 +4364,9 @@ "license": "BSD-3-Clause" }, "node_modules/fastify": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/fastify/-/fastify-5.10.0.tgz", - "integrity": "sha512-A9L0ziuWGQHgEEVgF3davQ9vbD93IuX+lo2IsxapQmu5b/Y/ynn9m9K5JHt9dvyJXOFc5iN0Zk5GHEOqnzhWjg==", + "version": "5.11.0", + "resolved": "https://registry.npmjs.org/fastify/-/fastify-5.11.0.tgz", + "integrity": "sha512-Y/Ecx1yt0hYzrQR+QVLbxaUN8wCX+MQzMevh29r5RRvlOIArmi4+WAXXaGl5Hw5gBr2wduZpZaT3gRCnXoyVgA==", "dev": true, "funding": [ { @@ -4439,9 +4497,9 @@ } }, "node_modules/find-my-way": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/find-my-way/-/find-my-way-9.6.0.tgz", - "integrity": "sha512-Zf4Xve4RymLl7NgaavNebZ01joJ8MfVerOG43wy7SHLO+r+K0C6d/SE0BiR7AV5V1VOCFlOP7ecdo+I4qmiHrQ==", + "version": "9.7.0", + "resolved": "https://registry.npmjs.org/find-my-way/-/find-my-way-9.7.0.tgz", + "integrity": "sha512-f2JHn75x2JlwUwLenZypgczR7YWMb/uO9BvUXtus+JMgkbIkLADd38cI4EiV+OQqrGo1Zlq6V8wnqMJ8e62wUQ==", "dev": true, "license": "MIT", "dependencies": { @@ -4680,9 +4738,9 @@ } }, "node_modules/glob/node_modules/brace-expansion": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.1.tgz", - "integrity": "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.4.tgz", + "integrity": "sha512-hGfVzPxthbf3+2yjg/RBs60cB0FhqBS/zvdV/4wn4/BmN0bNMMHPc4V/BbFieqf1TKAGGAHnY4eSjajCl0f2Xg==", "dev": true, "license": "MIT", "dependencies": { @@ -5137,10 +5195,17 @@ "dev": true, "license": "MIT" }, + "node_modules/js-tokens": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz", + "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==", + "dev": true, + "license": "MIT" + }, "node_modules/js-yaml": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz", - "integrity": "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.1.tgz", + "integrity": "sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==", "dev": true, "funding": [ { @@ -5424,13 +5489,17 @@ } }, "node_modules/media-typer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", - "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz", + "integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/merge-descriptors": { @@ -5474,16 +5543,16 @@ } }, "node_modules/miniflare": { - "version": "4.20260708.1", - "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-4.20260708.1.tgz", - "integrity": "sha512-c94O9zRDISdqO18EHt6l0iF/fWgWt8p18PJvRsA/L/NJZ9Cfke3s/F5Blg1XXF7WDutVRzWVWy8Vy4LaT5ifsA==", + "version": "4.20260730.0", + "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-4.20260730.0.tgz", + "integrity": "sha512-1Z9SB9r/o//80UA02Re3QhtcecSHAyAjf5EcKBfQVlQrCg7Miy79hl2PvtkwFLIaJ5rcrOPdDcRr577okwZPsg==", "dev": true, "license": "MIT", "dependencies": { "@cspotcode/source-map-support": "0.8.1", - "sharp": "0.34.5", + "sharp": "0.35.2", "undici": "7.28.0", - "workerd": "1.20260708.1", + "workerd": "1.20260730.1", "ws": "8.21.0", "youch": "4.1.0-beta.10" }, @@ -5494,6 +5563,28 @@ "node": ">=22.0.0" } }, + "node_modules/miniflare/node_modules/ws": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", + "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/minimatch": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", @@ -5540,13 +5631,6 @@ "ufo": "^1.6.3" } }, - "node_modules/mlly/node_modules/pathe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", - "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", - "dev": true, - "license": "MIT" - }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -5555,9 +5639,9 @@ "license": "MIT" }, "node_modules/multer": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/multer/-/multer-2.1.1.tgz", - "integrity": "sha512-mo+QTzKlx8R7E5ylSXxWzGoXoZbOsRMpyitcht8By2KHvMbf3tjwosZ/Mu/XYU6UuJ3VZnODIrak5ZrPiPyB6A==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/multer/-/multer-2.2.0.tgz", + "integrity": "sha512-6rdyFg2kLrMh9Jee7/BMPuV9lEAd7lLW2YUpF9/YxR7njyoUwwQ0ZPh3TaIY50Sw6vlyD2HW3wGOkTS4P79xrQ==", "dev": true, "license": "MIT", "dependencies": { @@ -5634,9 +5718,9 @@ } }, "node_modules/nanoid": { - "version": "3.3.15", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.15.tgz", - "integrity": "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==", + "version": "3.3.16", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.16.tgz", + "integrity": "sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q==", "dev": true, "funding": [ { @@ -5908,9 +5992,9 @@ } }, "node_modules/pathe": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", - "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", "dev": true, "license": "MIT" }, @@ -6006,17 +6090,10 @@ "pathe": "^2.0.1" } }, - "node_modules/pkg-types/node_modules/pathe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", - "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", - "dev": true, - "license": "MIT" - }, "node_modules/postcss": { - "version": "8.5.15", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", - "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", + "version": "8.5.25", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.25.tgz", + "integrity": "sha512-DTPx3RWSSnWyzLxQnlH0rJP+EW5ekl16ZU4/psbIhA0e53kJfdgaN5vKM+xP7yJtXVu+nfdVFmlgFDEKAe4Pyw==", "dev": true, "funding": [ { @@ -6034,7 +6111,7 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.12", + "nanoid": "^3.3.16", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, @@ -6109,9 +6186,9 @@ } }, "node_modules/prettier": { - "version": "3.9.4", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.4.tgz", - "integrity": "sha512-yWG/o/4oJfo036EKAfK6ACAoDOfHeRHx4tuxkfBZiauURiaSmYwlpOr5LQqKtIkRD2z1PLteme2WoxEnj4tHTg==", + "version": "3.9.6", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.6.tgz", + "integrity": "sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==", "dev": true, "license": "MIT", "bin": { @@ -6138,9 +6215,9 @@ } }, "node_modules/process-warning": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-5.0.0.tgz", - "integrity": "sha512-a39t9ApHNx2L4+HBnQKqxxHNs1r7KF+Intd8Q/g1bUh6q0WIp9voPXJ/x0j+ZL45KF1pJd9+q2jLIRMfvEshkA==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-5.1.0.tgz", + "integrity": "sha512-jQSaVHsPgtyw60e1rQ/A+/ArPEj/S8pS/vFnyGa/gYFXrKk/6RuDkoqVDQ5NI5MmS01698ltlAk0NoDBNLujRw==", "dev": true, "funding": [ { @@ -6604,48 +6681,48 @@ "license": "ISC" }, "node_modules/sharp": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz", - "integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==", + "version": "0.35.2", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.2.tgz", + "integrity": "sha512-FVtFjtBCMiJS6yb5CX7Sop45WFMpeGw6oRKuJnXYgf/f1ms/D7LE/ZUSNxnW7rZ/dbslQWYkoqFHGPaDBtaK4w==", "dev": true, - "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "@img/colour": "^1.0.0", + "@img/colour": "^1.1.0", "detect-libc": "^2.1.2", - "semver": "^7.7.3" + "semver": "^7.8.4" }, "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-darwin-arm64": "0.34.5", - "@img/sharp-darwin-x64": "0.34.5", - "@img/sharp-libvips-darwin-arm64": "1.2.4", - "@img/sharp-libvips-darwin-x64": "1.2.4", - "@img/sharp-libvips-linux-arm": "1.2.4", - "@img/sharp-libvips-linux-arm64": "1.2.4", - "@img/sharp-libvips-linux-ppc64": "1.2.4", - "@img/sharp-libvips-linux-riscv64": "1.2.4", - "@img/sharp-libvips-linux-s390x": "1.2.4", - "@img/sharp-libvips-linux-x64": "1.2.4", - "@img/sharp-libvips-linuxmusl-arm64": "1.2.4", - "@img/sharp-libvips-linuxmusl-x64": "1.2.4", - "@img/sharp-linux-arm": "0.34.5", - "@img/sharp-linux-arm64": "0.34.5", - "@img/sharp-linux-ppc64": "0.34.5", - "@img/sharp-linux-riscv64": "0.34.5", - "@img/sharp-linux-s390x": "0.34.5", - "@img/sharp-linux-x64": "0.34.5", - "@img/sharp-linuxmusl-arm64": "0.34.5", - "@img/sharp-linuxmusl-x64": "0.34.5", - "@img/sharp-wasm32": "0.34.5", - "@img/sharp-win32-arm64": "0.34.5", - "@img/sharp-win32-ia32": "0.34.5", - "@img/sharp-win32-x64": "0.34.5" + "@img/sharp-darwin-arm64": "0.35.2", + "@img/sharp-darwin-x64": "0.35.2", + "@img/sharp-freebsd-wasm32": "0.35.2", + "@img/sharp-libvips-darwin-arm64": "1.3.1", + "@img/sharp-libvips-darwin-x64": "1.3.1", + "@img/sharp-libvips-linux-arm": "1.3.1", + "@img/sharp-libvips-linux-arm64": "1.3.1", + "@img/sharp-libvips-linux-ppc64": "1.3.1", + "@img/sharp-libvips-linux-riscv64": "1.3.1", + "@img/sharp-libvips-linux-s390x": "1.3.1", + "@img/sharp-libvips-linux-x64": "1.3.1", + "@img/sharp-libvips-linuxmusl-arm64": "1.3.1", + "@img/sharp-libvips-linuxmusl-x64": "1.3.1", + "@img/sharp-linux-arm": "0.35.2", + "@img/sharp-linux-arm64": "0.35.2", + "@img/sharp-linux-ppc64": "0.35.2", + "@img/sharp-linux-riscv64": "0.35.2", + "@img/sharp-linux-s390x": "0.35.2", + "@img/sharp-linux-x64": "0.35.2", + "@img/sharp-linuxmusl-arm64": "0.35.2", + "@img/sharp-linuxmusl-x64": "0.35.2", + "@img/sharp-webcontainers-wasm32": "0.35.2", + "@img/sharp-win32-arm64": "0.35.2", + "@img/sharp-win32-ia32": "0.35.2", + "@img/sharp-win32-x64": "0.35.2" } }, "node_modules/shebang-command": { @@ -6932,6 +7009,19 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/strip-literal": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.1.0.tgz", + "integrity": "sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "js-tokens": "^9.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, "node_modules/strtok3": { "version": "10.3.5", "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.3.5.tgz", @@ -7090,9 +7180,9 @@ } }, "node_modules/tinyrainbow": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz", - "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz", + "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==", "dev": true, "license": "MIT", "engines": { @@ -7100,9 +7190,9 @@ } }, "node_modules/tinyspy": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.2.tgz", - "integrity": "sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.4.tgz", + "integrity": "sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==", "dev": true, "license": "MIT", "engines": { @@ -7238,490 +7328,6 @@ } } }, - "node_modules/tsup/node_modules/@esbuild/aix-ppc64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz", - "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/android-arm": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz", - "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/android-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz", - "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/android-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz", - "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/darwin-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz", - "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/darwin-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz", - "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/freebsd-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz", - "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/freebsd-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz", - "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/linux-arm": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz", - "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/linux-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz", - "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/linux-ia32": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz", - "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/linux-loong64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz", - "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/linux-mips64el": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz", - "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/linux-ppc64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz", - "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/linux-riscv64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz", - "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/linux-s390x": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz", - "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/linux-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz", - "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/netbsd-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz", - "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/netbsd-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz", - "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/openbsd-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz", - "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/openbsd-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz", - "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/openharmony-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz", - "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/sunos-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz", - "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/win32-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz", - "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/win32-ia32": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz", - "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/@esbuild/win32-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz", - "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsup/node_modules/esbuild": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz", - "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.27.7", - "@esbuild/android-arm": "0.27.7", - "@esbuild/android-arm64": "0.27.7", - "@esbuild/android-x64": "0.27.7", - "@esbuild/darwin-arm64": "0.27.7", - "@esbuild/darwin-x64": "0.27.7", - "@esbuild/freebsd-arm64": "0.27.7", - "@esbuild/freebsd-x64": "0.27.7", - "@esbuild/linux-arm": "0.27.7", - "@esbuild/linux-arm64": "0.27.7", - "@esbuild/linux-ia32": "0.27.7", - "@esbuild/linux-loong64": "0.27.7", - "@esbuild/linux-mips64el": "0.27.7", - "@esbuild/linux-ppc64": "0.27.7", - "@esbuild/linux-riscv64": "0.27.7", - "@esbuild/linux-s390x": "0.27.7", - "@esbuild/linux-x64": "0.27.7", - "@esbuild/netbsd-arm64": "0.27.7", - "@esbuild/netbsd-x64": "0.27.7", - "@esbuild/openbsd-arm64": "0.27.7", - "@esbuild/openbsd-x64": "0.27.7", - "@esbuild/openharmony-arm64": "0.27.7", - "@esbuild/sunos-x64": "0.27.7", - "@esbuild/win32-arm64": "0.27.7", - "@esbuild/win32-ia32": "0.27.7", - "@esbuild/win32-x64": "0.27.7" - } - }, "node_modules/tsup/node_modules/resolve-from": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", @@ -7743,9 +7349,9 @@ } }, "node_modules/tsx": { - "version": "4.23.0", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.0.tgz", - "integrity": "sha512-eUdUIaCr963q2h5u3+QwvYp0+eqPvn+egeqZUm0hwERCqqx1E3kK5ehbGCvqSE5MQAULr67ww0cA3jKc3YkM1w==", + "version": "4.23.5", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.5.tgz", + "integrity": "sha512-rw55FUaqOoI7RvlQwLbhO4nSDApnQ4/CykPuiQ/EPvtrX3WA9Ig55jIt9VvbBJbzJuj12ueRu4PMZ2SxPVbihg==", "dev": true, "license": "MIT", "dependencies": { @@ -8050,6 +7656,23 @@ "node": ">=18" } }, + "node_modules/tsx/node_modules/@esbuild/netbsd-arm64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.1.tgz", + "integrity": "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, "node_modules/tsx/node_modules/@esbuild/netbsd-x64": { "version": "0.28.1", "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.1.tgz", @@ -8067,6 +7690,23 @@ "node": ">=18" } }, + "node_modules/tsx/node_modules/@esbuild/openbsd-arm64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.1.tgz", + "integrity": "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, "node_modules/tsx/node_modules/@esbuild/openbsd-x64": { "version": "0.28.1", "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.1.tgz", @@ -8084,6 +7724,23 @@ "node": ">=18" } }, + "node_modules/tsx/node_modules/@esbuild/openharmony-arm64": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.1.tgz", + "integrity": "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, "node_modules/tsx/node_modules/@esbuild/sunos-x64": { "version": "0.28.1", "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.1.tgz", @@ -8262,16 +7919,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.63.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.63.0.tgz", - "integrity": "sha512-xgwXyzG4sK9ALkBxbyGkTMMOS+imnW65iPhxCQMK83KhxyoDNW7l+IDqEf9vMdoUidHpOoS967RCq4eMiTexwQ==", + "version": "8.65.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.65.0.tgz", + "integrity": "sha512-/ggrHAwyjENDusvyxbuqxAC2dTnZg/Z8F+fgQtYIz+L6n/9HfSlEZcFGV/NsMNa6CkGk0xUjUAFwC0vHOflvIA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.63.0", - "@typescript-eslint/parser": "8.63.0", - "@typescript-eslint/typescript-estree": "8.63.0", - "@typescript-eslint/utils": "8.63.0" + "@typescript-eslint/eslint-plugin": "8.65.0", + "@typescript-eslint/parser": "8.65.0", + "@typescript-eslint/typescript-estree": "8.65.0", + "@typescript-eslint/utils": "8.65.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -8363,14 +8020,17 @@ "license": "MIT" }, "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).", + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.1.tgz", + "integrity": "sha512-vIYxrBCC/N/K+Js3qSN88go7kIfNPssr/hHCesKCQNAjmgvYS2oqr69kIufEG+O4+PfezOH4EbIeHCfFov8ZgQ==", "dev": true, + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], "license": "MIT", "bin": { - "uuid": "dist/bin/uuid" + "uuid": "dist/esm/bin/uuid" } }, "node_modules/uuid-parse": { @@ -8391,21 +8051,24 @@ } }, "node_modules/vite": { - "version": "5.4.21", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz", - "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", + "version": "6.4.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.3.tgz", + "integrity": "sha512-NTKlcQjlAK7MlQoyb6LgaqHc8sso/pVyUJYWMws3jg21uTJw/LddqIFPcPqP6PzpgbIcZyKI85sFE4HBrQDA8A==", "dev": true, "license": "MIT", "dependencies": { - "esbuild": "^0.21.3", - "postcss": "^8.4.43", - "rollup": "^4.20.0" + "esbuild": "^0.25.0", + "fdir": "^6.4.4", + "picomatch": "^4.0.2", + "postcss": "^8.5.3", + "rollup": "^4.34.9", + "tinyglobby": "^0.2.13" }, "bin": { "vite": "bin/vite.js" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" }, "funding": { "url": "https://github.com/vitejs/vite?sponsor=1" @@ -8414,19 +8077,25 @@ "fsevents": "~2.3.3" }, "peerDependencies": { - "@types/node": "^18.0.0 || >=20.0.0", + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "jiti": ">=1.21.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", "sass-embedded": "*", "stylus": "*", "sugarss": "*", - "terser": "^5.4.0" + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" }, "peerDependenciesMeta": { "@types/node": { "optional": true }, + "jiti": { + "optional": true + }, "less": { "optional": true }, @@ -8447,74 +8116,568 @@ }, "terser": { "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true } } }, "node_modules/vite-node": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.9.tgz", - "integrity": "sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz", + "integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==", "dev": true, "license": "MIT", "dependencies": { "cac": "^6.7.14", - "debug": "^4.3.7", - "es-module-lexer": "^1.5.4", - "pathe": "^1.1.2", - "vite": "^5.0.0" + "debug": "^4.4.1", + "es-module-lexer": "^1.7.0", + "pathe": "^2.0.3", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" }, "bin": { "vite-node": "vite-node.mjs" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" }, "funding": { "url": "https://opencollective.com/vitest" } }, + "node_modules/vite/node_modules/@esbuild/aix-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/android-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/android-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/android-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/darwin-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/darwin-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/freebsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-loong64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-mips64el": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-riscv64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-s390x": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/netbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/openbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/sunos-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/vite/node_modules/esbuild": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" + } + }, "node_modules/vitest": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.9.tgz", - "integrity": "sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.7.tgz", + "integrity": "sha512-KrxIJ62Fd89gfysR4WotlgZABiz2dqFPgqGzX7s+CwsqLFomRH7777ZcrOD6+WVAh7khPQP41A+BKbpcJFrdEg==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/expect": "2.1.9", - "@vitest/mocker": "2.1.9", - "@vitest/pretty-format": "^2.1.9", - "@vitest/runner": "2.1.9", - "@vitest/snapshot": "2.1.9", - "@vitest/spy": "2.1.9", - "@vitest/utils": "2.1.9", - "chai": "^5.1.2", - "debug": "^4.3.7", - "expect-type": "^1.1.0", - "magic-string": "^0.30.12", - "pathe": "^1.1.2", - "std-env": "^3.8.0", + "@types/chai": "^5.2.2", + "@vitest/expect": "3.2.7", + "@vitest/mocker": "3.2.7", + "@vitest/pretty-format": "^3.2.7", + "@vitest/runner": "3.2.7", + "@vitest/snapshot": "3.2.7", + "@vitest/spy": "3.2.7", + "@vitest/utils": "3.2.7", + "chai": "^5.2.0", + "debug": "^4.4.1", + "expect-type": "^1.2.1", + "magic-string": "^0.30.17", + "pathe": "^2.0.3", + "picomatch": "^4.0.2", + "std-env": "^3.9.0", "tinybench": "^2.9.0", - "tinyexec": "^0.3.1", - "tinypool": "^1.0.1", - "tinyrainbow": "^1.2.0", - "vite": "^5.0.0", - "vite-node": "2.1.9", + "tinyexec": "^0.3.2", + "tinyglobby": "^0.2.14", + "tinypool": "^1.1.1", + "tinyrainbow": "^2.0.0", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0", + "vite-node": "3.2.4", "why-is-node-running": "^2.3.0" }, "bin": { "vitest": "vitest.mjs" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" }, "funding": { "url": "https://opencollective.com/vitest" }, "peerDependencies": { "@edge-runtime/vm": "*", - "@types/node": "^18.0.0 || >=20.0.0", - "@vitest/browser": "2.1.9", - "@vitest/ui": "2.1.9", + "@types/debug": "^4.1.12", + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "@vitest/browser": "3.2.7", + "@vitest/ui": "3.2.7", "happy-dom": "*", "jsdom": "*" }, @@ -8522,6 +8685,9 @@ "@edge-runtime/vm": { "optional": true }, + "@types/debug": { + "optional": true + }, "@types/node": { "optional": true }, @@ -8539,6 +8705,33 @@ } } }, + "node_modules/vitest/node_modules/@vitest/mocker": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.7.tgz", + "integrity": "sha512-Trr0hYO9CM3Wj6ksWHRhK9IZpIY6wTMO5u/MqXurMxT57sWBaOPEtP3Oq60ihZuh5JsiagKfz95OcxdEP6dBrA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/spy": "3.2.7", + "estree-walker": "^3.0.3", + "magic-string": "^0.30.17" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "msw": "^2.4.9", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" + }, + "peerDependenciesMeta": { + "msw": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -8583,9 +8776,9 @@ } }, "node_modules/workerd": { - "version": "1.20260708.1", - "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20260708.1.tgz", - "integrity": "sha512-WAK+Kt/VVCSldH2qSr8lx46XCJ4Q+bdlHNaFqUtOHthBEIB8C1N8HVW+VOLrxDoTCk0NGNv0zajnBeQK4JOB9w==", + "version": "1.20260730.1", + "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20260730.1.tgz", + "integrity": "sha512-zmfNIjwYSWFY5chGBOjWtH3xAE7p97FTC6vR4Ep98290ho6AeAR/NVcBD274YCLEUYzqm8yxdtZlxMybU8a3jA==", "dev": true, "hasInstallScript": true, "license": "Apache-2.0", @@ -8596,11 +8789,11 @@ "node": ">=16" }, "optionalDependencies": { - "@cloudflare/workerd-darwin-64": "1.20260708.1", - "@cloudflare/workerd-darwin-arm64": "1.20260708.1", - "@cloudflare/workerd-linux-64": "1.20260708.1", - "@cloudflare/workerd-linux-arm64": "1.20260708.1", - "@cloudflare/workerd-windows-64": "1.20260708.1" + "@cloudflare/workerd-darwin-64": "1.20260730.1", + "@cloudflare/workerd-darwin-arm64": "1.20260730.1", + "@cloudflare/workerd-linux-64": "1.20260730.1", + "@cloudflare/workerd-linux-arm64": "1.20260730.1", + "@cloudflare/workerd-windows-64": "1.20260730.1" } }, "node_modules/wrap-ansi": { @@ -8715,9 +8908,9 @@ "license": "ISC" }, "node_modules/ws": { - "version": "8.21.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", - "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", + "version": "8.21.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.1.tgz", + "integrity": "sha512-+0NTnW77fFN/DjQi6k/Sq/Yvk4Sgajw7urW8V+asjXnRgDs9gyGkdb7EzgfhA4goXsRIZKE28fzIXBHEzhuiWw==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 7169e50..eb673d9 100644 --- a/package.json +++ b/package.json @@ -112,12 +112,20 @@ "optional": true } }, + "overrides": { + "find-my-way": "9.7.0", + "autocannon": { + "hyperid": { + "uuid": "11.1.1" + } + } + }, "devDependencies": { - "@eslint/js": "^9.39.4", - "@nestjs/common": "^11.1.27", - "@nestjs/core": "^11.1.27", - "@nestjs/platform-express": "^11.1.27", - "@nestjs/platform-fastify": "^11.1.27", + "@eslint/js": "^9.39.5", + "@nestjs/common": "^11.1.28", + "@nestjs/core": "^11.1.28", + "@nestjs/platform-express": "^11.1.28", + "@nestjs/platform-fastify": "^11.1.28", "@stylistic/eslint-plugin": "^5.10.0", "@types/autocannon": "^7.12.7", "@types/busboy": "^1.5.4", @@ -127,18 +135,20 @@ "autocannon": "^8.0.0", "busboy": "^1.6.0", "cognitive-complexity-ts": "^0.8.2", - "eslint": "^9.39.4", + "eslint": "^9.39.5", + "esbuild": "0.27.2", "express": "^5.2.1", - "fastify": "^5.10.0", + "fastify": "^5.11.0", "graphql": "^16.9.0", - "miniflare": "^4.20260708.1", - "prettier": "^3.9.4", + "miniflare": "^4.20260730.0", + "prettier": "^3.9.6", "rxjs": "^7.8.2", "tsup": "^8.5.1", - "tsx": "^4.23.0", + "tsx": "^4.23.5", "typescript": "^5.5.0", - "typescript-eslint": "^8.63.0", - "vitest": "^2.0.0", - "ws": "^8.21.0" + "typescript-eslint": "^8.65.0", + "vite": "^6.4.3", + "vitest": "^3.2.7", + "ws": "^8.21.1" } } diff --git a/website/package-lock.json b/website/package-lock.json index 25266d2..95d845d 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -6,35 +6,35 @@ "": { "name": "green-tea-docs", "dependencies": { - "@astrojs/starlight": "^0.41.3", - "astro": "^7.0.6", + "@astrojs/starlight": "^0.41.6", + "astro": "^7.1.6", "sharp": "^0.35.3" } }, "node_modules/@astrojs/compiler-binding": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding/-/compiler-binding-0.3.0.tgz", - "integrity": "sha512-zlsOT5COD9hRwplJCgQhS21unxON5AKirf0vgt1ijXwuseYIaZdm2ZOpF8fsz+DY9EyXx+I/ukxtg7uoBep68A==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding/-/compiler-binding-0.3.2.tgz", + "integrity": "sha512-8w/9CWmYrAJJ8N0SY3O43ws2BgxoW6u3QsD8u2mE140lMYAlwh+tlNoUeSBq22wVheFuiBbR212l6ixZ2IIgCQ==", "license": "MIT", "engines": { "node": "^20.19.0 || >=22.12.0" }, "optionalDependencies": { - "@astrojs/compiler-binding-darwin-arm64": "0.3.0", - "@astrojs/compiler-binding-darwin-x64": "0.3.0", - "@astrojs/compiler-binding-linux-arm64-gnu": "0.3.0", - "@astrojs/compiler-binding-linux-arm64-musl": "0.3.0", - "@astrojs/compiler-binding-linux-x64-gnu": "0.3.0", - "@astrojs/compiler-binding-linux-x64-musl": "0.3.0", - "@astrojs/compiler-binding-wasm32-wasi": "0.3.0", - "@astrojs/compiler-binding-win32-arm64-msvc": "0.3.0", - "@astrojs/compiler-binding-win32-x64-msvc": "0.3.0" + "@astrojs/compiler-binding-darwin-arm64": "0.3.2", + "@astrojs/compiler-binding-darwin-x64": "0.3.2", + "@astrojs/compiler-binding-linux-arm64-gnu": "0.3.2", + "@astrojs/compiler-binding-linux-arm64-musl": "0.3.2", + "@astrojs/compiler-binding-linux-x64-gnu": "0.3.2", + "@astrojs/compiler-binding-linux-x64-musl": "0.3.2", + "@astrojs/compiler-binding-wasm32-wasi": "0.3.2", + "@astrojs/compiler-binding-win32-arm64-msvc": "0.3.2", + "@astrojs/compiler-binding-win32-x64-msvc": "0.3.2" } }, "node_modules/@astrojs/compiler-binding-darwin-arm64": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-arm64/-/compiler-binding-darwin-arm64-0.3.0.tgz", - "integrity": "sha512-3n0uu+uJpnCq8b4JFi3uGDsIisAvHctxSmH+cIO9Gbei1H1Y1QXaYboXyiWJugUmprr3OEYP7+LdodzpVFzLMQ==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-arm64/-/compiler-binding-darwin-arm64-0.3.2.tgz", + "integrity": "sha512-MM8tn8CSimcfytaOla4b6acN8mKWiL/rlAA1fpT3/Wl7dNGSE4y8FjTN/zJVNnb63CsLWG5zZwCt01TXtDKh9g==", "cpu": [ "arm64" ], @@ -48,9 +48,9 @@ } }, "node_modules/@astrojs/compiler-binding-darwin-x64": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-x64/-/compiler-binding-darwin-x64-0.3.0.tgz", - "integrity": "sha512-scxNGKjOBydMo1QR4LtK0FMgh7ubQomJDv953nz2msQFkPKke/0FpPv/cQM0T/kuZdReZQFU8Oz3iOrP/6WHEg==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-x64/-/compiler-binding-darwin-x64-0.3.2.tgz", + "integrity": "sha512-2lXOlzf8xb7jLomRsf/aswh61/NnGusynB2OwFkK6k4pmOtpfXMYnG0PLfXrEvxXYj69NdCnmUYXtHDd+JOOag==", "cpu": [ "x64" ], @@ -64,12 +64,15 @@ } }, "node_modules/@astrojs/compiler-binding-linux-arm64-gnu": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-gnu/-/compiler-binding-linux-arm64-gnu-0.3.0.tgz", - "integrity": "sha512-NZrWLolVUANmrnl0zrFK/Sx5Sock1gEUT49ALfMTTCA5Ya2ec/BoJXMIg4KgE+wZcrdXJ8e+WyEhM7YLk/FJkA==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-gnu/-/compiler-binding-linux-arm64-gnu-0.3.2.tgz", + "integrity": "sha512-BmU3kWj7qnLrd4vzm49zFEPJ5oFnn1tCT4Vt9hZbqdU5Cmb8GZl7fn6VFsnNfe7B18a2gIFtVzbLINtYl5kBjQ==", "cpu": [ "arm64" ], + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -80,12 +83,15 @@ } }, "node_modules/@astrojs/compiler-binding-linux-arm64-musl": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-musl/-/compiler-binding-linux-arm64-musl-0.3.0.tgz", - "integrity": "sha512-PjwRmKgMFDsFhg82g0poXlIY8Qn3fMA3hXjaR0coJWJzTJsRH9ATU0j2ocigjtU1h3vL/yR7yLUxGj/lTCq73g==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-musl/-/compiler-binding-linux-arm64-musl-0.3.2.tgz", + "integrity": "sha512-f0heT9ZZEseSu5bHCeb80eL2DH07ArE6U9xi1WT/PEusNjzPmEr3GJsjG1tRLo5VYUUYX7h3ScaqGmGrMOVGmw==", "cpu": [ "arm64" ], + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -96,12 +102,15 @@ } }, "node_modules/@astrojs/compiler-binding-linux-x64-gnu": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-gnu/-/compiler-binding-linux-x64-gnu-0.3.0.tgz", - "integrity": "sha512-Dr69VJYlnSfyL8gzELW6S4mE41P7TDPn1IKjwMnjdZ7+dxgJI50oMLFSk1LVe26bHmWB3ktuh8fDVK1THI9e9A==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-gnu/-/compiler-binding-linux-x64-gnu-0.3.2.tgz", + "integrity": "sha512-M8fOUt0itRpqiGyoEA/ij184s8O+hqbCz3+YozRusOOM3osgGljpDThhbKAJjqh82wOo6FioQ4w8PBvU1XMD5Q==", "cpu": [ "x64" ], + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -112,12 +121,15 @@ } }, "node_modules/@astrojs/compiler-binding-linux-x64-musl": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-musl/-/compiler-binding-linux-x64-musl-0.3.0.tgz", - "integrity": "sha512-AEt+bRw8PfImCcyRH1lpXVB8CdmQ1K/wPo5u99iec4/U/XdNvQZ715YVuNzIJpbJXelgQeZ5H2+Ea7XwRyWY5g==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-musl/-/compiler-binding-linux-x64-musl-0.3.2.tgz", + "integrity": "sha512-/Kebk8sO6HnLeSd691JkaAPfN7CqR9/KEXmWvyNPkaKNGmj8rTZ/lf2uXtnPu92Lan84UrKdIKVPy1fSo2encQ==", "cpu": [ "x64" ], + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -128,25 +140,25 @@ } }, "node_modules/@astrojs/compiler-binding-wasm32-wasi": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-wasm32-wasi/-/compiler-binding-wasm32-wasi-0.3.0.tgz", - "integrity": "sha512-U80tA1j8V6LjhiTZzVCtG4E8hrNVVNXDGV5fCgJ94q8FU9CPH+XwdDDhLzBybfWhKfyItXmQiZNRPTiPCYTpVg==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-wasm32-wasi/-/compiler-binding-wasm32-wasi-0.3.2.tgz", + "integrity": "sha512-pUA6xbcOSB7DhfzIArB8BCAkFfAIqriiR7zl5zOStd6oU2G0kIKj+GUdGnyXyhfiv881Hffyk5tC0mR18sDjDw==", "cpu": [ "wasm32" ], "license": "MIT", "optional": true, "dependencies": { - "@napi-rs/wasm-runtime": "^1.1.6" + "@napi-rs/wasm-runtime": "^1.2.0" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@astrojs/compiler-binding-win32-arm64-msvc": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-arm64-msvc/-/compiler-binding-win32-arm64-msvc-0.3.0.tgz", - "integrity": "sha512-CpY1RII2r1XMpOUVD1VR/F2wtuRsiOCkFULS10Khyj8/DFZMtxVuUCAWGw+CW2Ka0h6eP3Xc1CA+glFlvXMPxA==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-arm64-msvc/-/compiler-binding-win32-arm64-msvc-0.3.2.tgz", + "integrity": "sha512-ESruf+6Qkl1trHUFxI6GSf6t52j8yN2kCNSzMWdzt7V/T09tFHrYzrVaJQohb2C9bJUH76pNvX6Zb51+xCQc9Q==", "cpu": [ "arm64" ], @@ -160,9 +172,9 @@ } }, "node_modules/@astrojs/compiler-binding-win32-x64-msvc": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-x64-msvc/-/compiler-binding-win32-x64-msvc-0.3.0.tgz", - "integrity": "sha512-qmFbs769oeeGrRebAnCW7aBk8m71vf85W/dX/jddfx5Z06/w0wf7TZCfJPOX1Fld2t+4N+iXzfGEJG+zJQ+bzg==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-x64-msvc/-/compiler-binding-win32-x64-msvc-0.3.2.tgz", + "integrity": "sha512-wzzVrEbOwbsLWOdEbocskjMRx2aZPxJ7ZbmL+jnpBamFwmigm+2M/wzuM6JWncocgYwLic1csSpalBh96kQKXA==", "cpu": [ "x64" ], @@ -176,12 +188,12 @@ } }, "node_modules/@astrojs/compiler-rs": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-rs/-/compiler-rs-0.3.0.tgz", - "integrity": "sha512-J2qEVHtIDjEM9TxwmwuebOGmZNwhKu/dR7P7qBpnJKGmBBX0vdweQ/4cEXhj8fBbWVUB5V12xWChri3CgKNULQ==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-rs/-/compiler-rs-0.3.2.tgz", + "integrity": "sha512-xlx/T7JovIKduu4ucbTQUxQ5+Q8wxkHxhLjnZk3VlJbhbQ9RLvvuDk1p2YYFYFQ5y14dVm3FGGO4isQXa4F+Tg==", "license": "MIT", "dependencies": { - "@astrojs/compiler-binding": "0.3.0" + "@astrojs/compiler-binding": "0.3.2" }, "engines": { "node": ">=22.12.0" @@ -203,41 +215,33 @@ "unified": "^11.0.5" } }, - "node_modules/@astrojs/markdown-remark": { - "version": "7.2.1", - "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-7.2.1.tgz", - "integrity": "sha512-jPVNIqTvk+yKviikszv/Y1U4jGUSKpp/Nw48QZV4qjWgp70j4Lkq3lhSDRbWwCfgKvEyO9GHuVbV1dM2WYXy1w==", + "node_modules/@astrojs/markdown-satteri": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@astrojs/markdown-satteri/-/markdown-satteri-0.3.5.tgz", + "integrity": "sha512-CvWVEFAbay7YO+i9SaqDJubipA5ckiVB89QWoMJ5XC0m5CtFg8JwZ7Kau6X9sYY7FZURH0w2l03ISH2jOS/RDQ==", "license": "MIT", "dependencies": { - "@astrojs/internal-helpers": "0.10.1", + "@astrojs/internal-helpers": "0.10.2", "@astrojs/prism": "4.0.2", "github-slugger": "^2.0.0", "hast-util-from-html": "^2.0.3", - "hast-util-to-text": "^4.0.2", - "mdast-util-definitions": "^6.0.0", - "rehype-raw": "^7.0.0", - "rehype-stringify": "^10.0.1", - "remark-gfm": "^4.0.1", - "remark-parse": "^11.0.0", - "remark-rehype": "^11.1.2", - "remark-smartypants": "^3.0.2", - "unified": "^11.0.5", - "unist-util-remove-position": "^5.0.0", - "unist-util-visit": "^5.1.0", - "unist-util-visit-parents": "^6.0.2", - "vfile": "^6.0.3" + "satteri": "^0.9.1" } }, - "node_modules/@astrojs/markdown-satteri": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@astrojs/markdown-satteri/-/markdown-satteri-0.3.3.tgz", - "integrity": "sha512-Lje33Ittd8UQGgbIIWQvhPkj5X5c4b1sZnZWX3JQV/AWpfbuQGxVi2ONt6+ScydcwfR4egilslEWyczMclrJ1g==", + "node_modules/@astrojs/markdown-satteri/node_modules/@astrojs/internal-helpers": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.10.2.tgz", + "integrity": "sha512-yt7fMgPYqSM4Tmr+taTW6Per+hjJ8Pk6lA1PAcDyqzOt8HzJ6Kje5WzCxA2Sd+9wsUW7uhkLeoTMK0cXPwH9rQ==", "license": "MIT", "dependencies": { - "@astrojs/internal-helpers": "0.10.1", - "@astrojs/prism": "4.0.2", - "github-slugger": "^2.0.0", - "satteri": "^0.9.1" + "@types/hast": "^3.0.4", + "@types/mdast": "^4.0.4", + "js-yaml": "^4.3.0", + "picomatch": "^4.0.4", + "retext-smartypants": "^6.2.0", + "shiki": "^4.0.2", + "smol-toml": "^1.6.0", + "unified": "^11.0.5" } }, "node_modules/@astrojs/mdx": { @@ -274,6 +278,31 @@ } } }, + "node_modules/@astrojs/mdx/node_modules/@astrojs/markdown-remark": { + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-7.2.1.tgz", + "integrity": "sha512-jPVNIqTvk+yKviikszv/Y1U4jGUSKpp/Nw48QZV4qjWgp70j4Lkq3lhSDRbWwCfgKvEyO9GHuVbV1dM2WYXy1w==", + "license": "MIT", + "dependencies": { + "@astrojs/internal-helpers": "0.10.1", + "@astrojs/prism": "4.0.2", + "github-slugger": "^2.0.0", + "hast-util-from-html": "^2.0.3", + "hast-util-to-text": "^4.0.2", + "mdast-util-definitions": "^6.0.0", + "rehype-raw": "^7.0.0", + "rehype-stringify": "^10.0.1", + "remark-gfm": "^4.0.1", + "remark-parse": "^11.0.0", + "remark-rehype": "^11.1.2", + "remark-smartypants": "^3.0.2", + "unified": "^11.0.5", + "unist-util-remove-position": "^5.0.0", + "unist-util-visit": "^5.1.0", + "unist-util-visit-parents": "^6.0.2", + "vfile": "^6.0.3" + } + }, "node_modules/@astrojs/prism": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@astrojs/prism/-/prism-4.0.2.tgz", @@ -298,9 +327,9 @@ } }, "node_modules/@astrojs/starlight": { - "version": "0.41.3", - "resolved": "https://registry.npmjs.org/@astrojs/starlight/-/starlight-0.41.3.tgz", - "integrity": "sha512-8xsG6UpK581TJmtOc7/pnxHKEbP16rV06VLWaVa7FOyE/VEwnaHOsLtL+miifCEfuiuv0Wn+j8u3JSluRQesMQ==", + "version": "0.41.6", + "resolved": "https://registry.npmjs.org/@astrojs/starlight/-/starlight-0.41.6.tgz", + "integrity": "sha512-Dt0/wY2JbFGUpxMgclw1j2Iqks2GG0LHYKgP7TfBXsFrs4LIbKvQ596lzyhXLz6nFcnPdIB9ZRFyDJeuVcx3Ug==", "license": "MIT", "dependencies": { "@astrojs/markdown-satteri": "^0.3.2", @@ -344,16 +373,15 @@ } }, "node_modules/@astrojs/telemetry": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/@astrojs/telemetry/-/telemetry-3.3.2.tgz", - "integrity": "sha512-j8DNruA8ors99Al39RYZPJK4DC1bKkoNm93mAMuBhY9TCNC4R8n1q7ovFnJ5qhGh5Lsh7pa1gpQVpYpsJPeTHQ==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@astrojs/telemetry/-/telemetry-3.3.3.tgz", + "integrity": "sha512-C1TLn5sPJr0x4vk56piHWKbnqlEB8BKyte5Y45V02U+D7BGO5eMqZDH5aPjnkXQWJggvmsTXxH03QMZ9NgWLzQ==", "license": "MIT", "dependencies": { "ci-info": "^4.4.0", "dset": "^3.1.4", "is-docker": "^4.0.0", - "is-wsl": "^3.1.1", - "which-pm-runs": "^1.1.0" + "package-manager-detector": "^1.6.0" }, "engines": { "node": "18.20.8 || ^20.3.0 || >=22.0.0" @@ -1625,21 +1653,24 @@ } }, "node_modules/@napi-rs/wasm-runtime": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.6.tgz", - "integrity": "sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.2.tgz", + "integrity": "sha512-JfB4kuJQjaoHuCTseIINHtHWeJnvgEcxjwA5t/Y00ZgaOO1Crz3fjT/p8kT28zA/Caz7oiUMn3d6H2yOVCVwuw==", "license": "MIT", "optional": true, "dependencies": { "@tybys/wasm-util": "^0.10.3" }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + }, "funding": { "type": "github", "url": "https://github.com/sponsors/Brooooooklyn" }, "peerDependencies": { - "@emnapi/core": "^1.7.1", - "@emnapi/runtime": "^1.7.1" + "@emnapi/core": "^1.7.1 || ^2.0.0-alpha.3", + "@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.3" } }, "node_modules/@oslojs/encoding": { @@ -2359,15 +2390,15 @@ } }, "node_modules/astro": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/astro/-/astro-7.0.6.tgz", - "integrity": "sha512-Myw0sFia+zs/Y0yqfZEsUYXfDPh3ELcLf1f0Q/qQzVXBh/af1qO62WNT+P89DCcfGVV51nMoQhEfkBYqJmoUOQ==", + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/astro/-/astro-7.1.6.tgz", + "integrity": "sha512-83x9rYbHazMaZkYrAFRVZXSQx2moFkz0F7cjTDUF3GWfS0a3p2vZXG1ZdhV86rStHApQCodBJW+XTD37xISIrQ==", "license": "MIT", "dependencies": { - "@astrojs/compiler-rs": "^0.3.0", - "@astrojs/internal-helpers": "0.10.1", - "@astrojs/markdown-satteri": "0.3.3", - "@astrojs/telemetry": "3.3.2", + "@astrojs/compiler-rs": "^0.3.2", + "@astrojs/internal-helpers": "0.10.2", + "@astrojs/markdown-satteri": "0.3.5", + "@astrojs/telemetry": "3.3.3", "@capsizecss/unpack": "^4.0.0", "@clack/prompts": "^1.1.0", "@oslojs/encoding": "^1.1.0", @@ -2378,7 +2409,7 @@ "ci-info": "^4.4.0", "clsx": "^2.1.1", "common-ancestor-path": "^2.0.0", - "cookie": "^1.1.1", + "cookie": "^2.0.1", "devalue": "^5.8.1", "diff": "^8.0.3", "dset": "^3.1.4", @@ -2390,12 +2421,12 @@ "github-slugger": "^2.0.0", "html-escaper": "3.0.3", "http-cache-semantics": "^4.2.0", - "js-yaml": "^4.1.1", + "js-yaml": "^4.3.0", "jsonc-parser": "^3.3.1", - "magic-string": "^0.30.21", + "magic-string": "^1.0.0", "magicast": "^0.5.2", "mrmime": "^2.0.1", - "neotraverse": "^0.6.18", + "neotraverse": "^1.0.1", "obug": "^2.1.1", "p-limit": "^7.3.0", "p-queue": "^9.1.0", @@ -2434,7 +2465,7 @@ "sharp": "^0.34.0 || ^0.35.0" }, "peerDependencies": { - "@astrojs/markdown-remark": "7.2.1" + "@astrojs/markdown-remark": "7.2.2" }, "peerDependenciesMeta": { "@astrojs/markdown-remark": { @@ -2455,6 +2486,31 @@ "astro": "^4.0.0-beta || ^5.0.0-beta || ^3.3.0 || ^6.0.0-beta || ^7.0.0" } }, + "node_modules/astro/node_modules/@astrojs/internal-helpers": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.10.2.tgz", + "integrity": "sha512-yt7fMgPYqSM4Tmr+taTW6Per+hjJ8Pk6lA1PAcDyqzOt8HzJ6Kje5WzCxA2Sd+9wsUW7uhkLeoTMK0cXPwH9rQ==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.4", + "@types/mdast": "^4.0.4", + "js-yaml": "^4.3.0", + "picomatch": "^4.0.4", + "retext-smartypants": "^6.2.0", + "shiki": "^4.0.2", + "smol-toml": "^1.6.0", + "unified": "^11.0.5" + } + }, + "node_modules/astro/node_modules/magic-string": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.1.0.tgz", + "integrity": "sha512-kS3VHe0nEPST2saQV4Rbkchcd3UBRkVTQHo1D3h/ZTwFDhai/mfKkmtPAtD129EOI7K3HlHIsFOt0WrI2/oU9g==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, "node_modules/axobject-query": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", @@ -2633,12 +2689,12 @@ } }, "node_modules/cookie": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz", - "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-2.0.1.tgz", + "integrity": "sha512-yuToqVvRrj6pfDXREyQAAv8SkAEk/8GS3jQRTiUMm66TVtBYmqQeoEjL2Lmq8Rpo6271vH76InTChTitEAm65w==", "license": "MIT", "engines": { - "node": ">=18" + "node": ">=22" }, "funding": { "type": "opencollective", @@ -3779,39 +3835,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/is-inside-container": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", - "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", - "license": "MIT", - "dependencies": { - "is-docker": "^3.0.0" - }, - "bin": { - "is-inside-container": "cli.js" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-inside-container/node_modules/is-docker": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", - "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", - "license": "MIT", - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-plain-obj": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", @@ -3824,21 +3847,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-wsl": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz", - "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==", - "license": "MIT", - "dependencies": { - "is-inside-container": "^1.0.0" - }, - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/js-yaml": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz", @@ -5267,9 +5275,9 @@ "license": "MIT" }, "node_modules/nanoid": { - "version": "3.3.15", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.15.tgz", - "integrity": "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==", + "version": "3.3.16", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.16.tgz", + "integrity": "sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q==", "funding": [ { "type": "github", @@ -5285,9 +5293,9 @@ } }, "node_modules/neotraverse": { - "version": "0.6.18", - "resolved": "https://registry.npmjs.org/neotraverse/-/neotraverse-0.6.18.tgz", - "integrity": "sha512-Z4SmBUweYa09+o6pG+eASabEpP6QkQ70yHj351pQoEXIs8uHbaU2DWVmzBANKgflPa47A50PtB2+NgRpQvr7vA==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/neotraverse/-/neotraverse-1.0.1.tgz", + "integrity": "sha512-WmmLty1YWwJl9yZi77v2dVIV6X2kuYV8YYBI/G3LWGKdGHmHUvL1z7FW0iDvEvGAwNEoc5x1tOOOyDnf5jJw/w==", "license": "MIT", "engines": { "node": ">= 10" @@ -5533,9 +5541,9 @@ } }, "node_modules/postcss": { - "version": "8.5.16", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.16.tgz", - "integrity": "sha512-vuwillviilfKZsg0VGj5R/YwwcHx4SLsIOI/7K6mQkWx+l5cUHTjj5g0AasTBcyXsbfTgrwsUNmVUb5xVwyPwg==", + "version": "8.5.25", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.25.tgz", + "integrity": "sha512-DTPx3RWSSnWyzLxQnlH0rJP+EW5ekl16ZU4/psbIhA0e53kJfdgaN5vKM+xP7yJtXVu+nfdVFmlgFDEKAe4Pyw==", "funding": [ { "type": "opencollective", @@ -5552,7 +5560,7 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.12", + "nanoid": "^3.3.16", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, @@ -6264,9 +6272,9 @@ } }, "node_modules/svgo": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-4.0.1.tgz", - "integrity": "sha512-XDpWUOPC6FEibaLzjfe0ucaV0YrOjYotGJO1WpF0Zd+n6ZGEQUsSugaoLq9QkEZtAfQIxT42UChcssDVPP3+/w==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-4.0.2.tgz", + "integrity": "sha512-ekx94z1rRc5LDi6oSUaeRnYhd0UOJxdtQCL2rF8xpWxD3TPAsISWOrxezqGovqS38GRZOdpDfvQe3ts6F7nsng==", "license": "MIT", "dependencies": { "commander": "^11.1.0", @@ -6807,15 +6815,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/which-pm-runs": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.1.0.tgz", - "integrity": "sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/xxhash-wasm": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-1.1.0.tgz", diff --git a/website/package.json b/website/package.json index b7414c3..36419ab 100644 --- a/website/package.json +++ b/website/package.json @@ -8,8 +8,8 @@ "preview": "astro preview" }, "dependencies": { - "@astrojs/starlight": "^0.41.3", - "astro": "^7.0.6", + "@astrojs/starlight": "^0.41.6", + "astro": "^7.1.6", "sharp": "^0.35.3" } } -- 2.54.1 From d9276a4769a36cc19758a86db95e8312a27da040 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 21:01:49 -0500 Subject: [PATCH 09/16] docs: expand website documentation audit plan Signed-off-by: Diego Resendez --- docs/plans/2026-08-02-router-security-beta.md | 80 +++++++++++++++---- 1 file changed, 63 insertions(+), 17 deletions(-) diff --git a/docs/plans/2026-08-02-router-security-beta.md b/docs/plans/2026-08-02-router-security-beta.md index 9e45596..861d41e 100644 --- a/docs/plans/2026-08-02-router-security-beta.md +++ b/docs/plans/2026-08-02-router-security-beta.md @@ -493,22 +493,25 @@ git add .github/workflows/ci.yml .github/workflows/release.yml git commit -s -m "ci: gate releases on clean dependency audits" ``` -### Task 8: Align public documentation and prepare the August beta +### Task 8: Audit and align the complete website documentation **Skills:** `@writing-clearly-and-concisely` **Files:** -- Modify: `README.md` -- Modify: `CHANGELOG.md` -- Modify: `src/index.ts` -- Modify: `package.json` -- Modify: `package-lock.json` +- Review: every page under `website/src/content/docs/` - Modify: `website/src/content/docs/guides/routing.md` - Modify: `website/src/content/docs/reference/decorators.md` - Modify: `website/src/content/docs/guides/openapi.md` +- Modify: any other website page whose API, behavior, example, or cross-link has drifted from the code - Create: `website/src/content/docs/404.md` -**Step 1: Update routing documentation from the verified behavior** +**Step 1: Build a code-backed website documentation inventory** + +Compare every website page with the current public exports in `src/index.ts`, app options and methods in `src/app/types.ts`, decorator metadata in `src/metadata.ts`, routing behavior in `src/http/router.ts`, and the executable tests. Search the whole documentation tree for stale method lists, obsolete limitations, old error semantics, old beta/version examples, broken internal links, and examples that no longer typecheck conceptually. + +Do not change a claim from memory. Each correction must be supported by code or a passing test. + +**Step 2: Update routing documentation from the verified behavior** Document: @@ -523,15 +526,58 @@ Document: Remove the current statement that bare OPTIONS returns 405. -**Step 2: Update OpenAPI and decorator references** +**Step 3: Align cross-cutting website references** -Show that explicit HEAD/OPTIONS appear as operations and constrained params produce `schema.pattern`. Keep automatic fallback operations out of generated documents. +At minimum, verify and correct: -**Step 3: Fix the Starlight 404 warning** +- every buffered-method list to include or intentionally exclude `HEAD`/`OPTIONS` according to the actual API; +- `405`, automatic `OPTIONS`, implicit `HEAD`, CORS-preflight, malformed-path, and security-header descriptions; +- OpenAPI behavior: explicit HEAD/OPTIONS appear as operations, constrained params produce `schema.pattern`, and automatic fallbacks remain absent; +- mesh route-conflict wording after effective-pattern normalization; +- examples and links between routing, decorators, errors, HTML, streaming, security, OpenAPI, and `createApp` reference pages; +- navigation/frontmatter descriptions that still advertise the old router surface. + +Keep intentional historical or roadmap statements only when they remain true. + +**Step 4: Fix the Starlight 404 warning** Create the missing `404.md` entry with valid Starlight frontmatter and concise navigation back to the docs index. Run `npm run docs:build` and confirm the line `Entry docs → 404 was not found` disappears. -**Step 4: Bump the beta version consistently** +**Step 5: Validate the whole website documentation tree** + +```bash +npm run docs:build +npm --prefix website audit +rg -n 'Not built|bare `OPTIONS`|returns `405`|@Get.*@Post.*@Put.*@Patch.*@Delete' website/src/content/docs +rg -n '\]\(/docs/' website/src/content/docs +git diff --check +``` + +Expected: all 23+ pages build without the missing-404 warning, the website audit remains clean, obsolete router claims are gone, and every changed claim has a code/test source. + +**Step 6: Commit** + +```bash +git add website/src/content/docs +git commit -s -m "docs(website): align guides with router behavior" +``` + +### Task 9: Align package documentation and prepare the August beta + +**Skills:** `@writing-clearly-and-concisely` + +**Files:** +- Modify: `README.md` +- Modify: `CHANGELOG.md` +- Modify: `src/index.ts` +- Modify: `package.json` +- Modify: `package-lock.json` + +**Step 1: Align the package-facing documentation** + +Update README routing, roadmap, method, security, and beta-status claims from the same verified behavior documented in the website. Keep README concise and link to the complete website guides rather than duplicating their full reference material. + +**Step 2: Bump the beta version consistently** Run: @@ -541,25 +587,25 @@ npm version 26.8.0-beta.0 --no-git-tag-version Update `src/index.ts`'s `VERSION` constant and add a `26.8.0-beta.0` CHANGELOG entry covering routes, security remediation, docs, and compatibility. Confirm README's CalVer examples remain accurate. -**Step 5: Verify docs and version consistency** +**Step 3: Verify docs and version consistency** ```bash npm run docs:build node -e "const p=require('./package.json'); const l=require('./package-lock.json'); if (p.version !== l.version || p.version !== l.packages[''].version) process.exit(1)" -rg -n "26\.7\.0-beta\.0|Not built|bare `OPTIONS`" README.md CHANGELOG.md src website/src/content/docs +rg -n '26\.7\.0-beta\.0|Not built|bare `OPTIONS`' README.md CHANGELOG.md src website/src/content/docs git diff --check ``` -Expected: docs build without the 404 warning; package versions agree; any old beta string is retained only in historical release examples. +Expected: package versions agree, website docs still build, and any old beta string is retained only in historical release examples. -**Step 6: Commit** +**Step 4: Commit** ```bash -git add README.md CHANGELOG.md src/index.ts package.json package-lock.json website/src/content/docs +git add README.md CHANGELOG.md src/index.ts package.json package-lock.json git commit -s -m "docs: document router completeness for beta" ``` -### Task 9: Run the complete release-candidate verification +### Task 10: Run the complete release-candidate verification **Skills:** `@superpowers:verification-before-completion`, `@security-review` -- 2.54.1 From 934fbd4c19ea181569108b92a38771aa331bb65a Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 21:03:54 -0500 Subject: [PATCH 10/16] ci: gate releases on clean dependency audits Signed-off-by: Diego Resendez --- .github/workflows/ci.yml | 7 +++++++ .github/workflows/release.yml | 1 + 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ce8237..16f749c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,16 @@ jobs: with: node-version: '18' - run: npm ci + - run: npm audit - run: npm run lint - run: npm run format:check - run: npm run complexity:check - run: npm run typecheck - run: npm test - run: npm run build + - uses: actions/setup-node@v4 + with: + node-version: '22.12' + - run: npm ci --prefix website + - run: npm audit --prefix website + - run: npm run docs:build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index acd4e8d..e43dc89 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,7 @@ jobs: registry-url: 'https://registry.npmjs.org' - run: npm install -g npm@latest # npm >= 11.5.1 is required for OIDC trusted publishing - run: npm ci + - run: npm audit # `npm publish` runs prepublishOnly (lint + complexity + typecheck + test + build) first. # No NODE_AUTH_TOKEN — npm exchanges the OIDC id-token for a short-lived publish token. # A prerelease (26.7.0-beta.N) publishes under its channel tag (beta/alpha/rc) so `latest` -- 2.54.1 From fcd3df7022ea7991019117c920e72ba1ba94a5a2 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 21:11:08 -0500 Subject: [PATCH 11/16] docs(website): align guides with router behavior Signed-off-by: Diego Resendez --- website/astro.config.mjs | 2 ++ website/src/content/docs/404.md | 11 ++++++ website/src/content/docs/guides/errors.md | 6 ++-- website/src/content/docs/guides/html.md | 4 +-- website/src/content/docs/guides/mesh.md | 10 +++--- website/src/content/docs/guides/openapi.md | 6 ++-- website/src/content/docs/guides/routing.md | 36 ++++++++++++------- website/src/content/docs/guides/security.md | 4 ++- website/src/content/docs/guides/streaming.md | 2 +- .../src/content/docs/reference/createapp.md | 8 +++-- .../src/content/docs/reference/decorators.md | 4 ++- 11 files changed, 63 insertions(+), 30 deletions(-) create mode 100644 website/src/content/docs/404.md diff --git a/website/astro.config.mjs b/website/astro.config.mjs index 8bcab26..cc7dece 100644 --- a/website/astro.config.mjs +++ b/website/astro.config.mjs @@ -7,6 +7,8 @@ export default defineConfig({ base: '/docs', integrations: [ starlight({ + // Let the content-backed 404.md own /404; otherwise Astro also injects a conflicting route. + disable404Route: true, title: 'Green Tea.', description: 'A zen, opinionated, type-safe framework — your API is a graph, not a chain.', logo: { src: './src/assets/logo.svg', alt: 'Green Tea' }, diff --git a/website/src/content/docs/404.md b/website/src/content/docs/404.md new file mode 100644 index 0000000..0e6639c --- /dev/null +++ b/website/src/content/docs/404.md @@ -0,0 +1,11 @@ +--- +title: Page not found +description: "The requested Green Tea documentation page does not exist." +template: splash +hero: + tagline: The documentation page you requested could not be found. + actions: + - text: Back to documentation + link: /docs/ + icon: right-arrow +--- diff --git a/website/src/content/docs/guides/errors.md b/website/src/content/docs/guides/errors.md index 01e56c9..73547b4 100644 --- a/website/src/content/docs/guides/errors.md +++ b/website/src/content/docs/guides/errors.md @@ -46,12 +46,12 @@ throw new HttpError(409, 'conflict', { code: 'DUP_EMAIL', field: 'email' }); Not everything should be JSON. Pass `onError` to `createApp` to render errors however you like — HTML, [RFC 7807](https://www.rfc-editor.org/rfc/rfc7807), content-negotiated, anything. It receives the error and the request, and returns a response — or `undefined` to fall back to the default JSON. ```typescript -import { isHttpError } from '@green-tea/core'; +import { HttpError } from '@green-tea/core'; const app = createApp({ modules: [ApiModule], onError(error, req) { - const status = isHttpError(error) ? error.status : 500; + const status = error instanceof HttpError ? error.status : 500; // negotiate: HTML for browsers, JSON for API clients if (String(req.headers.accept).includes('text/html')) { return { status, headers: { 'content-type': 'text/html' }, body: `

${status}

` }; @@ -61,7 +61,7 @@ const app = createApp({ }); ``` -`onError` intercepts **every** HTTP error response — handler/step throws, a `404` for an unmatched route, `405`, a `413` (body too large), and a `400` (malformed body) — so your error surface is consistent across the whole app. Streaming and WebSocket errors are out of scope (they surface as an error frame or a WebSocket close code, not a response body). +`onError` intercepts **every** HTTP error response — handler/step throws, a `404` for an unmatched route, `405`, a `413` (body too large), and a `400` (malformed body, repeated slash, or malformed path encoding) — so your error surface is consistent across the whole app. HEAD error responses keep the same status and headers but suppress the body. Streaming and WebSocket errors are out of scope (they surface as an error frame or a WebSocket close code, not a response body). :::note Errors are also observable without changing the response: subscribe to `request:step:error` (and `stream:error`) on [`app.bus`](/docs/guides/plugins/) to log or trace them. diff --git a/website/src/content/docs/guides/html.md b/website/src/content/docs/guides/html.md index 436e197..5f65752 100644 --- a/website/src/content/docs/guides/html.md +++ b/website/src/content/docs/guides/html.md @@ -67,7 +67,7 @@ Same filesystem requirement as file mode: Node/Deno/Bun only. `string`; `@Html('file.html', { template: true })` returns the data object rendered into the template; `@Html('file.html')` (no template) ignores the return entirely — annotate it `: void` by convention, e.g. `page(@needs('x')): void {}`. Returning an `AsyncIterable` from any `@Html` -handler is the same buffered-route mismatch as any other `@Get`/`@Post`/`@Put`/`@Patch`/`@Delete` +handler is the same buffered-route mismatch as any other `@Get`/`@Head`/`@Post`/`@Put`/`@Patch`/`@Delete`/`@Options` handler: a 500 `TransportMismatchError`, not a silent raw stream. ::: @@ -145,7 +145,7 @@ Like the file/template modes of `@Html`, `static` needs a filesystem: it's Node/ @Html ticks() { /* ... */ } // throws at createApp(): "@Html on GET /ticks is not allowed — -// @Html only supports buffered GET/POST routes (not SSE/WS/PUT/PATCH/DELETE)" +// @Html only supports buffered GET/POST routes (not SSE/WS/HEAD/PUT/PATCH/DELETE/OPTIONS)" ``` `@Html` and `@Transformer` also can't be combined on the same handler — pick one: diff --git a/website/src/content/docs/guides/mesh.md b/website/src/content/docs/guides/mesh.md index d062a31..6e9fef7 100644 --- a/website/src/content/docs/guides/mesh.md +++ b/website/src/content/docs/guides/mesh.md @@ -94,17 +94,17 @@ Mesh proxies **buffered** endpoints. `@Sse`, `@Stream` and `@Ws` routes are not ## One teapot per route -A route must be exported by exactly **one** teapot. If two export the same `method + pattern`, the boot **fails**, naming the route and both teapots: +A route must be exported by exactly **one** teapot. If two export the same method and effective match shape — including patterns that differ only by parameter name, such as `/:id` and `/:name` — boot **fails**, naming both patterns and both teapots: ``` -mesh: route 'GET /api/svc/ping' is exported by more than one teapot -(ws://a/__mesh__/control and ws://b/__mesh__/control) — load balancing across -teapots is not implemented yet, so green-tea will not choose one for you. +mesh: ambiguous remote route 'GET /api/shape/:name' from ws://b/__mesh__/control +conflicts with 'GET /api/shape/:id' from ws://a/__mesh__/control — load balancing +across teapots is not implemented yet, so green-tea will not choose one for you. ``` This is a hard error rather than a silent pick because there is no load balancing to fall back on: choosing one would be an arbitrary answer you could come to depend on. Scope tokens (`@Provider`/`@Step`) are unique for the same reason — and balancing them would be meaningless anyway, since an app-scope export is resolved once and cached. -**Local routes win.** If you declare a route locally *and* import it from a teapot, yours takes precedence — that is how you override a teapot — and green-tea warns so a shadowed export doesn't look like a broken one: +**Local routes win.** If you declare a route locally *and* import the same effective method/shape from a teapot, yours takes precedence — that is how you override a teapot — and green-tea warns so a shadowed export doesn't look like a broken one: ``` [green-tea] mesh: route 'GET /api/svc/ping' is exported by teapot ws://a/… but also diff --git a/website/src/content/docs/guides/openapi.md b/website/src/content/docs/guides/openapi.md index 7970702..7072e12 100644 --- a/website/src/content/docs/guides/openapi.md +++ b/website/src/content/docs/guides/openapi.md @@ -15,14 +15,16 @@ const spec = app.openapi({ title: 'My API', version: '1.0.0' }); It reads the routes and handler signatures and produces, for each route: -- the **path**, templated — `/users/:id` → `/users/{id}`, catch-all `:path*` → `{path}`; -- the **method**; +- the **path**, templated — `/users/:id` → `/users/{id}`, constrained `:id(\d+)` → `{id}`, catch-all `:path*` → `{path}`; +- the **explicitly declared method**, including `@Head` and `@Options`; - **parameters** — path params from the pattern, plus query/header params from the handler's `@query` / `@headers` / `@header` decorators; - a **request body** entry for routes that read `@body()`; - the systematic **responses** — `200`, a `422` when any argument is schema-validated, and `500`. WebSocket routes are omitted (they aren't request/response). +A constrained path parameter remains a string parameter and carries its route expression as `schema.pattern`. Only declared operations appear: implicit HEAD and automatic OPTIONS fallbacks are runtime conveniences and are not invented in the OpenAPI document. + ## Serve it — `devOpenapi` Opt in to a `GET /__openapi__` endpoint that returns the document as JSON — point Swagger UI, Redoc, or a codegen client at it: diff --git a/website/src/content/docs/guides/routing.md b/website/src/content/docs/guides/routing.md index 50161f3..2ecf7de 100644 --- a/website/src/content/docs/guides/routing.md +++ b/website/src/content/docs/guides/routing.md @@ -1,6 +1,6 @@ --- title: Routing -description: "Route patterns, the catch-all, specificity precedence, and 405 handling." +description: "Route constraints, specificity, HEAD and OPTIONS semantics, and path validation." --- Routes are declared with method decorators on a `@Route`-prefixed controller. Patterns are matched **by segment**. @@ -9,7 +9,7 @@ Routes are declared with method decorators on a `@Route`-prefixed controller. Pa | Decorator | Method / transport | |---|---| -| `@Get` `@Post` `@Put` `@Patch` `@Delete` | buffered HTTP response | +| `@Get` `@Head` `@Post` `@Put` `@Patch` `@Delete` `@Options` | buffered HTTP response | | `@Sse` | server-sent events (`text/event-stream`) | | `@Ws` | WebSocket duplex | | `@Stream` | negotiated — SSE / ndjson / WS, picked from the client's `Accept` / `Upgrade` | @@ -28,37 +28,47 @@ The path a route matches is `joinPath(module.mountpoint, route.path)` — a cont - **Static** — `users` matches exactly. - **`:param`** — matches exactly one segment; the decoded value lands in `params.name` (`@param('id')`). +- **`:param(constraint)`** — matches one complete decoded segment when it satisfies a safe regex subset, for example `:id(\d+)`. - **`:name*` catch-all** — a trailing segment that captures the **rest of the path, slashes included**, into `params.name`. ```typescript +@Get('/users/:id(\\d+)') // /users/42 matches; /users/alice does not @Get('/files/:path*') // /files/img/2026/logo.png → params.path = "img/2026/logo.png" ``` A catch-all also matches zero remaining segments (`/files` → `params.path = ""`). +Constraints are anchored to the whole segment automatically. They allow character classes, alphanumeric/literal atoms, the escaped character classes `\d`, `\D`, `\s`, `\S`, `\w`, `\W`, and simple quantifiers (`+`, `*`, `?`, `{n}`, `{n,m}`). Groups, alternation, lookarounds, backreferences, anchors, and other arbitrary regex features are rejected at boot. Expressions are limited to 128 characters, counted quantifiers are capped, and unsafe adjacent unbounded quantifiers are rejected. This deliberately small subset avoids accepting route regexes with obvious ReDoS shapes. + +Patterns must start with `/`, parameter names must be unique and use identifier syntax, and a catch-all must be the final segment. Repeated slashes in a declared pattern fail at boot. + ## Precedence -When more than one route matches the same path, the **most specific wins** — `static ▸ :param ▸ catch-all` — compared segment by segment, **independent of registration order**. Genuine ties (two equally-specific patterns) fall back to registration order. +When more than one route matches the same path, the **most specific wins** — `static ▸ constrained :param ▸ plain :param ▸ catch-all` — compared segment by segment, independent of registration order. ```typescript @Get('/a/b') // wins for /a/b +@Get('/a/:id(\\d+)') // wins for /a/42 over the plain parameter @Get('/a/:id') // wins for /a/x @Get('/a/:rest*') // wins for /a/x/y ``` -## 404 vs 405 +Two routes under the same method cannot have the same effective shape: `/users/:id` and `/users/:name` are ambiguous and make boot fail with both declarations named. The same rule applies after mesh routes join. Different methods may reuse a shape. + +## HEAD and OPTIONS + +An explicit `@Head` or `@Options` route always wins. Without an explicit HEAD route, HEAD falls back to a matching **buffered** GET handler, preserves its status and headers, and suppresses the body. Streaming GET routes do not become implicit HEAD routes. + +Without an explicit OPTIONS route, OPTIONS on an existing path returns `204` with a canonical `Allow` header. GET implies HEAD, and any existing path implies OPTIONS, so a GET/POST path reports `GET, HEAD, POST, OPTIONS`. A CORS preflight (OPTIONS with `Access-Control-Request-Method`) is handled before explicit or automatic OPTIONS when CORS is configured. + +## Path policy and 404 vs 405 + +`/path` and `/path/` are equivalent. Repeated slashes such as `/path//item` are rejected rather than collapsed, and malformed percent encoding is rejected; both return `400 Bad Request` with the configured security/CORS headers. Query strings do not participate in route matching. A path that no route matches returns `404`. A path that **does** exist but under a different method returns **`405 Method Not Allowed`** with an `Allow` header listing the methods that do match — not a `404`. -:::note -A bare `OPTIONS` request (without an `Access-Control-Request-Method` header — i.e. not a CORS preflight) to an existing path therefore returns `405` with `Allow`. CORS preflights are handled separately; see [Transport security](/docs/guides/security/). -::: +## Matcher scale -## Not yet - -The matcher is intentionally small for beta. **Not built** (on the roadmap): - -- Regex / typed param constraints such as `:id(\d+)`. -- Route matching is a **linear scan** — fine for typical route tables, but a radix-tree matcher for very large ones isn't implemented. +Route matching remains a **linear scan** — fine for typical route tables. A radix-tree matcher for very large route tables remains on the roadmap. See [Streaming & real-time](/docs/guides/streaming/) for `@Sse` / `@Ws` / `@Stream`, and [Argument decorators](/docs/guides/arguments/) for everything a handler can read from a request. diff --git a/website/src/content/docs/guides/security.md b/website/src/content/docs/guides/security.md index 31971e0..8cf89a6 100644 --- a/website/src/content/docs/guides/security.md +++ b/website/src/content/docs/guides/security.md @@ -44,7 +44,9 @@ const app = createApp({ ``` `origins` accepts `string | string[] | '*' | (origin) => boolean`. A preflight `OPTIONS` -request (with `Access-Control-Request-Method`) is auto-answered with 204. +request (with `Access-Control-Request-Method`) is auto-answered with 204 before explicit or +automatic OPTIONS routing. A bare OPTIONS request is instead handled by an explicit `@Options` +route or the router's automatic `204` + `Allow` response. - With `credentials: true`, the server **never** sends `Access-Control-Allow-Origin: *` — it echoes the concrete allowed origin (or blocks the request). diff --git a/website/src/content/docs/guides/streaming.md b/website/src/content/docs/guides/streaming.md index 25fbcfb..6755975 100644 --- a/website/src/content/docs/guides/streaming.md +++ b/website/src/content/docs/guides/streaming.md @@ -109,7 +109,7 @@ A route streams **because** it's declared `@Sse`, `@Stream`, or `@Ws` — never | Declare | Handler must return | Otherwise | |---|---|---| -| `@Get` / `@Post` / `@Put` / `@Patch` / `@Delete` (buffered) | a value | returning an `AsyncIterable` fails with a 500 `TransportMismatchError` | +| `@Get` / `@Head` / `@Post` / `@Put` / `@Patch` / `@Delete` / `@Options` (buffered) | a value | returning an `AsyncIterable` fails with a 500 `TransportMismatchError` | | `@Sse` / `@Ws` (streaming) | an `AsyncIterable` | returning a plain value fails with a 500 `TransportMismatchError` | | `@Stream` (negotiate) | either | the client picks via `Accept` / `Upgrade` — no mismatch | diff --git a/website/src/content/docs/reference/createapp.md b/website/src/content/docs/reference/createapp.md index 429715e..00b8b94 100644 --- a/website/src/content/docs/reference/createapp.md +++ b/website/src/content/docs/reference/createapp.md @@ -28,6 +28,7 @@ const app = createApp(options); | `static` | `boolean \| string` | — | serve a directory as a `GET`/`HEAD` fallback (after declared routes, before `404`); `true` → `./public`, a string → that dir; path-traversal-safe; needs a filesystem — Node/Deno/Bun only ([HTML & views](/docs/guides/html/)) | | `mesh` | `MeshConfig` | — | distributed DI — **requires `experimental: true`** ([mesh](/docs/guides/mesh/)) | | `experimental` | `boolean` | `false` | opt in to alpha features (currently gates `mesh`) | +| `warnGraphDepth` | `number \| false` | `20` | warn when one route resolves to more than this many steps; `false` disables the design warning | ### `RequestLimits` @@ -63,14 +64,17 @@ const app = createApp(options); |---|---|---| | `listen(port)` | `Promise` | boots providers, then serves | | `close()` | `Promise` | drains in-flight, closes streams + mesh links | +| `ready()` | `Promise` | resolves the graph and mesh links without booting providers | +| `fetch(request)` | `Promise` | Web-Standards HTTP/SSE handler for Node, Deno, Bun, and edge | +| `upgrade(request, socket)` | `Promise` | neutral WebSocket upgrade used by non-Node adapters | | `inspect(route)` | `InspectLine[]` | the provider/step/handler chain for a route | | `explain(route)` | `Explain` | the chain annotated with each node's needs/provides | | `graph()` | `GraphView` | the full node + route graph | | `toMermaid()` / `toDOT()` | `string` | render the graph | | `openapi(info?)` | `OpenApiDoc` | structural OpenAPI 3.1 document ([details](/docs/guides/openapi/)) | -| `degraded()` | `string[]` | optional providers running degraded (empty until `listen()`) | +| `degraded()` | `string[]` | optional providers running degraded (empty until providers boot through `fetch`, `upgrade`, or `listen`) | | `bus` | `Bus` | lifecycle + request event bus | :::note -On mesh apps, `graph` / `explain` / `inspect` / `degraded` are only available **after** `listen()` — the graph is finalized once remote scopes connect. +On mesh apps, `graph` / `explain` / `inspect` / `degraded` are only available after `ready()` or the first serving call — the graph is finalized once remote scopes connect. ::: diff --git a/website/src/content/docs/reference/decorators.md b/website/src/content/docs/reference/decorators.md index e51ed87..b915a7a 100644 --- a/website/src/content/docs/reference/decorators.md +++ b/website/src/content/docs/reference/decorators.md @@ -64,7 +64,7 @@ Method decorators on a controller. All accept `(path, opts?)` where `opts = { ex | Decorator | Method | Transport | |---|---|---| -| `@Get` `@Post` `@Put` `@Patch` `@Delete` | as named | buffered response | +| `@Get` `@Head` `@Post` `@Put` `@Patch` `@Delete` `@Options` | as named | buffered response | | `@Sse` | GET | `text/event-stream` | | `@Ws` | GET | WebSocket duplex | | `@Stream` | GET | negotiated (SSE / ndjson / WS) | @@ -77,6 +77,8 @@ Method decorators on a controller. All accept `(path, opts?)` where `opts = { ex See [Routing](/docs/guides/routing/) for pattern matching and [Streaming](/docs/guides/streaming/) for the transports. +`@Head` and `@Options` declare explicit handlers. When they are absent, the router can provide an implicit buffered-GET HEAD response or an automatic `204` OPTIONS response; those fallbacks are runtime behavior, not decorator metadata. + ## Arguments A handler's signature declares exactly what it wants, in any order. -- 2.54.1 From 74f09d2e0b200c1d0f4492324cc0aaedd7660724 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 21:13:59 -0500 Subject: [PATCH 12/16] docs: document router completeness for beta Signed-off-by: Diego Resendez --- CHANGELOG.md | 40 +++++++++++++++++++++++++++++++--------- README.md | 16 ++++++++++------ package-lock.json | 4 ++-- package.json | 2 +- src/index.ts | 2 +- 5 files changed, 45 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eddcfb5..5e3ee56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,18 @@ npm treats versions as semver and semver forbids leading zeros. ## [Unreleased] +## [26.8.0-beta.0] - 2026-08-02 + ### Added +- **Safe constrained route parameters:** patterns such as `:id(\d+)` match a complete decoded + segment. The parser accepts a deliberately small, bounded regex subset and rejects unsafe or + malformed expressions at boot. Specificity is now static ▸ constrained param ▸ plain param ▸ + catch-all; matching remains a linear scan. +- **`@Head` and `@Options` route decorators**, explicit-handler priority, buffered-GET HEAD fallback, + and automatic `204` OPTIONS responses with deterministic `Allow` ordering. GET implies HEAD and + every existing path implies OPTIONS; streaming GET routes do not become implicit HEAD routes. +- **OpenAPI route constraints and methods:** constrained path params emit `schema.pattern`, and + explicitly declared HEAD/OPTIONS handlers appear as operations without inventing automatic ones. - **HTML / views:** `@Html` decorator (string, file, and template modes), a zero-dep built-in template engine (`{{ }}` escaped / `{{{ }}}` raw, exported as `render`) with a `viewEngine` bring-your-own hook, and zero-config `static` directory serving (`createApp({ static: true })`). @@ -42,6 +53,12 @@ npm treats versions as semver and semver forbids leading zeros. pings — the platform `WebSocket` on Deno/Bun does not expose `ws.ping()`. ### Fixed +- Repeated slashes and malformed path encoding now return `400` consistently across Node and Fetch + adapters, retaining configured security/CORS headers. `/path` and `/path/` remain equivalent. +- Ambiguous same-method route shapes now fail at boot with both declarations named. Effective-shape + checks also cover remote mesh conflicts and local routes that shadow a remote export. +- HEAD responses always suppress the body while preserving handler status and headers; Fetch + responses also avoid constructing forbidden bodies for `204`, `205`, and `304` statuses. - The opt-in dev routes `/__graph__` (graph viewer) and `/__openapi__` are now served over `app.fetch` too, so they work on every runtime (Deno/Bun/edge), not only the Node `app.listen()` path. @@ -55,9 +72,9 @@ npm treats versions as semver and semver forbids leading zeros. - **`request:step:enter`/`leave` are now emitted for `@Ws` and mesh routes.** Only HTTP routes emitted them, so a logging plugin silently observed nothing on a WebSocket route — a gap in a documented plugin API. All transports now run their steps through one path. -- **A mesh route exported by two teapots now fails the boot**, naming the route and both teapots, - instead of silently serving whichever connected first and leaving the other dead. There is no - load balancing to fall back on, so green-tea will not pick for you. +- **A mesh route exported by two teapots now fails the boot**, naming both effective patterns and + both teapots, instead of silently serving whichever connected first and leaving the other dead. + There is no load balancing to fall back on, so green-tea will not pick for you. - **A local route shadowing a remote one now warns.** Local still takes precedence — that is how you override a teapot — but a silently shadowed export used to look like a broken teapot. - **`app.close()` closes mesh links even with no server**, so a mesh app booted through `app.fetch` @@ -69,6 +86,9 @@ npm treats versions as semver and semver forbids leading zeros. `request:step:leave`. ### Changed +- Root, runtime-only, and website dependency audits are clean after supported package updates and + narrow pins for vulnerable transitives. CI audits root + website trees and builds the docs; the + GitHub OIDC release workflow audits immediately before its publish gate. - App-scope providers now boot exactly once (memoized): a second `app.listen()` call no longer re-runs provider factories or their side effects. - **`WsOpenCtx.req`** (available in `@Ws`/`@Sse` handlers) is now a neutral @@ -78,10 +98,11 @@ npm treats versions as semver and semver forbids leading zeros. `ctx.req`; use `ctx.protocol` / `ctx.ip` / `ctx.query` / `ctx.headers` instead — all still provided. - **Breaking (pre-1.0): transport is now enforced by declaration.** A buffered route - (`@Get`/`@Post`/`@Put`/`@Patch`/`@Delete`) whose handler returns an `AsyncIterable`, or a streaming - route (`@Sse`/`@Ws`) whose handler returns a plain value, now fails with a 500 `TransportMismatchError` - instead of silently switching behavior. `@Stream` still negotiates both. Declare `@Sse`/`@Stream`/`@Ws` - to stream — a return value no longer changes a route's wire contract. + (`@Get`/`@Head`/`@Post`/`@Put`/`@Patch`/`@Delete`/`@Options`) whose handler returns an + `AsyncIterable`, or a streaming route (`@Sse`/`@Ws`) whose handler returns a plain value, now + fails with a 500 `TransportMismatchError` instead of silently switching behavior. `@Stream` + still negotiates both. Declare `@Sse`/`@Stream`/`@Ws` to stream — a return value no longer + changes a route's wire contract. ## [26.7.0-beta.0] - 2026-07-07 @@ -130,5 +151,6 @@ change before the stable release. - **Benchmarks** — reproducible `npm run bench` harness vs Express 5, Fastify 5, NestJS, and raw `http`; results in [BENCHMARKS.md](./BENCHMARKS.md). -[Unreleased]: https://git.svc.zoit.services/Green-Tea/core/compare/26.7.0-beta.0...develop -[26.7.0-beta.0]: https://git.svc.zoit.services/Green-Tea/core/releases/tag/26.7.0-beta.0 +[Unreleased]: https://git.svc.zoit.services/Green-Tea/core/compare/v26.8.0-beta.0...develop +[26.8.0-beta.0]: https://git.svc.zoit.services/Green-Tea/core/compare/v26.7.0-beta.0...v26.8.0-beta.0 +[26.7.0-beta.0]: https://git.svc.zoit.services/Green-Tea/core/releases/tag/v26.7.0-beta.0 diff --git a/README.md b/README.md index 08d8010..9e0e902 100644 --- a/README.md +++ b/README.md @@ -193,17 +193,20 @@ The handler signature declares exactly what it wants — in any order, nothing m `@needs` keys are validated at boot: nothing provides the key → `createApp` throws with a clear error instead of serving `undefined`. Pass a Standard Schema (`@body(User)`) and the value is validated, coerced, and typed before your handler sees it. -> **Optional providers degrade, they don't crash.** A provider marked `optional: true` that throws on boot does **not** abort startup — it is left unregistered and logged. On `listen()` the app prints a one-line summary of what's running degraded, and the list is queryable via `app.degraded()`. Routes that actually need a degraded provider fail at request time, not at boot. This is deliberate (graceful degradation); wire an alert off `app.degraded()` or the `boot:provider:fail` bus event in production so a degraded start is never silent. +> **Optional providers degrade, they don't crash.** A provider marked `optional: true` that throws on boot does **not** abort startup — it is left unregistered and logged. The first serving call (`fetch`, `upgrade`, or `listen`) prints a one-line summary of what's running degraded, and the list is queryable via `app.degraded()`. Routes that actually need a degraded provider fail at request time, not at boot. This is deliberate (graceful degradation); wire an alert off `app.degraded()` or the `boot:provider:fail` bus event in production so a degraded start is never silent. ## Routing -Patterns match by segment: static, `:param` (one segment), and a trailing `:name*` **catch-all** that captures the rest of the path — slashes included — into `params.name`. When more than one route matches, the **most specific wins** (static ▸ `:param` ▸ catch-all), independent of registration order. A path that exists under a *different* method returns **`405` with an `Allow` header**, not `404`. +Patterns match by segment: static, constrained params such as `:id(\d+)`, plain `:param`, and a trailing `:name*` **catch-all**. The most specific wins (static ▸ constrained ▸ plain param ▸ catch-all), and ambiguous same-method shapes fail at boot instead of depending on registration order. ```typescript +@Get('/users/:id(\\d+)') // /users/42 @Get('/files/:path*') // /files/img/2026/logo.png → params.path = "img/2026/logo.png" ``` -**Not yet** (post-beta, on the roadmap): regex / typed param constraints like `:id(\d+)`, and route matching is a linear scan — fine for typical route tables, but a radix-tree matcher for very large ones isn't built. +`@Head` and `@Options` provide explicit handlers. Otherwise a buffered GET can serve HEAD without a body, and OPTIONS on an existing path returns `204` with canonical `Allow`; other method mismatches return `405`. `/path` and `/path/` are equivalent, while repeated slashes and malformed encoding return `400` rather than being normalized ambiguously. Constraints use a deliberately safe regex subset. See the full [routing guide](https://green-tea.expressive-tea.io/docs/guides/routing/). + +Matching is still a linear scan — fine for typical route tables. A radix tree for very large tables remains post-beta work. ## Two layers @@ -251,13 +254,14 @@ npm run docs:dev # the documentation site (website/) - ✅ **mesh (walking skeleton)** — `teapot`/`teacup` distributed DI over a secret-gated WS control channel. A BEAM/OTP-style cluster, *not* microservices. - ✅ **runs everywhere** — Node, Deno, Bun, and Cloudflare Workers over web-standard `Request`/`Response`, with identical WebSocket behaviour on all four. - ✅ **HTML** — `@Html` (string / file / template), a built-in template engine with a bring-your-own `viewEngine` hook, and `static` serving. -- **next** — API freeze + first published release, mesh sub-specs (discovery, load-balancing, failover), official plugins, router regex constraints and a radix-tree matcher. +- ✅ **router completeness for beta** — safe constrained params, deterministic precedence, explicit/automatic HEAD and OPTIONS, strict path validation, and ambiguity checks across local and mesh routes. +- **next** — API freeze + first published release, mesh sub-specs (discovery, load-balancing, failover), official plugins, and a radix-tree matcher for very large route tables. ## Versioning -green-tea uses **calendar versioning**: `YY.M.PATCH` (e.g. `26.7.0` = the first release cut in July 2026, patch 0). The month is **not** zero-padded — npm treats versions as semver, which forbids leading zeros. A version tells you *when* it shipped, not how many breaking changes preceded it — those are always called out in the [CHANGELOG](./CHANGELOG.md). +green-tea uses **calendar versioning**: `YY.M.PATCH` (e.g. `26.8.0` = the first release cut in August 2026, patch 0). The month is **not** zero-padded — npm treats versions as semver, which forbids leading zeros. A version tells you *when* it shipped, not how many breaking changes preceded it — those are always called out in the [CHANGELOG](./CHANGELOG.md). -**While in beta**, releases carry a `-beta.N` pre-release suffix on the calendar version (e.g. `26.7.0-beta.0`) and publish under the npm `beta` dist-tag — so a plain `npm install @green-tea/core` won't pick one up until the first stable calendar release. The API can still change between betas. +**While in beta**, releases carry a `-beta.N` pre-release suffix on the calendar version (e.g. `26.8.0-beta.0`) and publish under the npm `beta` dist-tag — so a plain `npm install @green-tea/core` won't pick one up until the first stable calendar release. The API can still change between betas. ## License diff --git a/package-lock.json b/package-lock.json index 730fccf..97da65b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@green-tea/core", - "version": "26.7.0-beta.0", + "version": "26.8.0-beta.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@green-tea/core", - "version": "26.7.0-beta.0", + "version": "26.8.0-beta.0", "license": "MIT", "dependencies": { "reflect-metadata": "0.2.2" diff --git a/package.json b/package.json index eb673d9..c9e3eaa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@green-tea/core", - "version": "26.7.0-beta.0", + "version": "26.8.0-beta.0", "description": "A zen, opinionated, type-safe framework — your API is a graph, not a middleware chain.", "license": "MIT", "author": "green-tea contributors", diff --git a/src/index.ts b/src/index.ts index b6b664a..eabc7a1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,7 +6,7 @@ import 'reflect-metadata'; /** Package version, replaced at publish time. */ -export const VERSION = '26.7.0-beta.0'; +export const VERSION = '26.8.0-beta.0'; // Application export { createApp } from './app'; -- 2.54.1 From 1db4e01e404326a1781023fde574b12164081bfe Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 21:18:40 -0500 Subject: [PATCH 13/16] fix(deno): snapshot metadata before websocket upgrade Signed-off-by: Diego Resendez --- CHANGELOG.md | 2 ++ src/deno.ts | 4 +++- test/deno-adapter.test.ts | 50 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 test/deno-adapter.test.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e3ee56..0e62d6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,8 @@ npm treats versions as semver and semver forbids leading zeros. pings — the platform `WebSocket` on Deno/Bun does not expose `ws.ping()`. ### Fixed +- The Deno WebSocket adapter snapshots request and connection metadata before accepting an upgrade; + Deno 2.9 invalidates that metadata once upgraded, which previously broke WebSocket and mesh boots. - Repeated slashes and malformed path encoding now return `400` consistently across Node and Fetch adapters, retaining configured security/CORS headers. `/path` and `/path/` remain equivalent. - Ambiguous same-method route shapes now fail at boot with both declarations named. Effective-shape diff --git a/src/deno.ts b/src/deno.ts index f73e80a..73771c6 100644 --- a/src/deno.ts +++ b/src/deno.ts @@ -35,10 +35,12 @@ declare const Deno: { export function serveDeno(app: App, options?: DenoServeOptions): DenoHttpServer { return Deno.serve(options ?? {}, (request, info) => { if (request.headers.get('upgrade')?.toLowerCase() === 'websocket') { + // Deno invalidates request connection metadata as soon as the upgrade is accepted. + const wsRequest = toWsRequest(request, info.remoteAddr.hostname); const { socket, response } = Deno.upgradeWebSocket(request); socket.binaryType = 'arraybuffer'; // deliver binary frames as ArrayBuffer, which decodeMessage expects // fire-and-forget: the 101 response must be returned synchronously while the graph runs - void upgradeSafely(app, toWsRequest(request, info.remoteAddr.hostname), eventSocket(socket)); + void upgradeSafely(app, wsRequest, eventSocket(socket)); return response; } diff --git a/test/deno-adapter.test.ts b/test/deno-adapter.test.ts new file mode 100644 index 0000000..568218d --- /dev/null +++ b/test/deno-adapter.test.ts @@ -0,0 +1,50 @@ +import { afterEach, expect, it, vi } from 'vitest'; +import type { App } from '../src/app/types'; +import { serveDeno } from '../src/deno'; + +afterEach(() => { + vi.unstubAllGlobals(); +}); + +it('snapshots connection metadata before Deno invalidates the upgraded request', async () => { + let upgraded = false; + let handler: ((request: Request, info: unknown) => Response | Promise) | undefined; + const socket = { + readyState: 1, + binaryType: '', + send: vi.fn(), + close: vi.fn(), + addEventListener: vi.fn(), + }; + + vi.stubGlobal('Deno', { + serve: (_options: unknown, next: typeof handler) => { + handler = next; + return { finished: Promise.resolve(), shutdown: vi.fn() }; + }, + upgradeWebSocket: () => { + upgraded = true; + return { socket, response: new Response() }; + }, + }); + + const upgrade = vi.fn().mockResolvedValue(undefined); + serveDeno({ upgrade } as unknown as App); + const info = { + get remoteAddr() { + if (upgraded) throw new TypeError('Request closed'); + return { hostname: '127.0.0.1', port: 1234, transport: 'tcp' }; + }, + }; + const request = new Request('http://localhost/socket?token=x', { + headers: { upgrade: 'websocket', 'x-test': 'yes' }, + }); + + expect(() => handler!(request, info)).not.toThrow(); + await vi.waitFor(() => + expect(upgrade).toHaveBeenCalledWith( + expect.objectContaining({ url: '/socket?token=x', ip: '127.0.0.1' }), + expect.any(Object), + ), + ); +}); -- 2.54.1 From 87c1226e97aa08f955204c905f39e0774a9a66d4 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 21:19:03 -0500 Subject: [PATCH 14/16] chore(deps): sync deno lockfile Signed-off-by: Diego Resendez --- deno.lock | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/deno.lock b/deno.lock index c087fc3..4bb7fd1 100644 --- a/deno.lock +++ b/deno.lock @@ -18,11 +18,11 @@ "workspace": { "packageJson": { "dependencies": [ - "npm:@eslint/js@^9.39.4", - "npm:@nestjs/common@^11.1.27", - "npm:@nestjs/core@^11.1.27", - "npm:@nestjs/platform-express@^11.1.27", - "npm:@nestjs/platform-fastify@^11.1.27", + "npm:@eslint/js@^9.39.5", + "npm:@nestjs/common@^11.1.28", + "npm:@nestjs/core@^11.1.28", + "npm:@nestjs/platform-express@^11.1.28", + "npm:@nestjs/platform-fastify@^11.1.28", "npm:@stylistic/eslint-plugin@^5.10.0", "npm:@types/autocannon@^7.12.7", "npm:@types/busboy@^1.5.4", @@ -32,20 +32,31 @@ "npm:autocannon@8", "npm:busboy@^1.6.0", "npm:cognitive-complexity-ts@~0.8.2", - "npm:eslint@^9.39.4", + "npm:esbuild@0.27.2", + "npm:eslint@^9.39.5", "npm:express@^5.2.1", - "npm:fastify@^5.10.0", + "npm:fastify@^5.11.0", "npm:graphql@^16.9.0", - "npm:prettier@^3.9.4", + "npm:miniflare@^4.20260730.0", + "npm:prettier@^3.9.6", "npm:reflect-metadata@0.2.2", "npm:rxjs@^7.8.2", "npm:tsup@^8.5.1", - "npm:tsx@^4.23.0", - "npm:typescript-eslint@^8.63.0", + "npm:tsx@^4.23.5", + "npm:typescript-eslint@^8.65.0", "npm:typescript@^5.5.0", - "npm:vitest@2", - "npm:ws@^8.21.0" - ] + "npm:vite@^6.4.3", + "npm:vitest@^3.2.7", + "npm:ws@^8.21.1" + ], + "overrides": { + "find-my-way": "9.7.0", + "autocannon": { + "hyperid": { + "uuid": "11.1.1" + } + } + } } } } -- 2.54.1 From bd3b2556bc8d3aa53955ce551affc2708807cb98 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 21:21:13 -0500 Subject: [PATCH 15/16] docs: remove design whitespace Signed-off-by: Diego Resendez --- docs/plans/2026-08-02-router-security-beta-design.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/plans/2026-08-02-router-security-beta-design.md b/docs/plans/2026-08-02-router-security-beta-design.md index 7d7afbe..b417d05 100644 --- a/docs/plans/2026-08-02-router-security-beta-design.md +++ b/docs/plans/2026-08-02-router-security-beta-design.md @@ -1,7 +1,7 @@ # Router correctness and security beta design -**Date:** 2026-08-02 -**Target:** `26.8.0-beta.0` +**Date:** 2026-08-02 +**Target:** `26.8.0-beta.0` **Status:** Approved ## Goal -- 2.54.1 From aa3402bd846f2329e781861ef731a44679e0d2da Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sun, 2 Aug 2026 21:43:16 -0500 Subject: [PATCH 16/16] ci(release): stage prereleases from release branches Keep develop free to accept concurrent changes while Verdaccio validates an immutable release candidate. Audit dependencies and reject stable versions before publishing. Signed-off-by: Diego Resendez --- .github/workflows/stage.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index e3d2c15..3d7b42f 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -1,13 +1,12 @@ name: Stage → Verdaccio -# Staging publish. Runs on GITEA ONLY (the `if` guards against GitHub), on every merge -# to main. Publishes the package as-is — version comes from package.json (a prerelease -# like 26.7.1-beta.N) — to the internal Verdaccio under the `stg` dist-tag. This registry -# rejects overwriting an existing version, so the step unpublishes it first (a no-op on the -# first publish) then publishes fresh. +# Staging publish. Runs on GITEA ONLY (the `if` guards against GitHub) for release +# branches. Publishes the package as-is — version comes from package.json (a prerelease +# like 26.8.0-beta.N) — to the internal Verdaccio under the `stg` dist-tag. Published +# versions are immutable; fixes must increment the prerelease version. on: push: - branches: [main] + branches: ['release/**'] jobs: publish-stg: @@ -19,13 +18,17 @@ jobs: with: node-version: '22' - run: npm ci + - run: npm audit # `npm publish` runs prepublishOnly (lint + complexity + typecheck + test + build) # as its own gate before anything leaves the machine. - - name: Publish to Verdaccio (unpublish + publish) + - name: Publish prerelease to Verdaccio env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH }} run: | npm config set //npm.svc.zoit.services/:_authToken "$NODE_AUTH_TOKEN" VER=$(node -p "require('./package.json').version") - npm unpublish "@green-tea/core@$VER" --registry https://npm.svc.zoit.services --force 2>/dev/null || true + case "$VER" in + *-*) ;; + *) echo "Refusing to stage non-prerelease version: $VER" >&2; exit 1 ;; + esac npm publish --registry https://npm.svc.zoit.services --tag stg -- 2.54.1