diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c830c54e..668b89c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,8 @@ jobs: - run: npm ci --audit=false --prefix workers/api # The deploy dry-run inside check builds the site after cheap deterministic gates. - run: npm run check + - name: Verify built public pages with production asset routing + run: node --test tools/website/public-routes.test.mjs postgres-integration: runs-on: ubuntu-24.04 diff --git a/docs/operations/cloudflare-delivery-plan.md b/docs/operations/cloudflare-delivery-plan.md index cda2b336..cad084c1 100644 --- a/docs/operations/cloudflare-delivery-plan.md +++ b/docs/operations/cloudflare-delivery-plan.md @@ -58,7 +58,7 @@ that version and scheduledTime. The temporary tail was removed with readback. ## Deployment identity and scheduled-task implementation -- Implemented Cloudflare's generated version metadata binding for both Workers and staging configurations. Health responses expose actual metadata, or `null` when unavailable; releases must use the full Git SHA as the version tag. +- Implemented Cloudflare's generated version metadata binding for both Workers and staging configurations. Health responses expose actual metadata, or `null` when unavailable; the release command checks the uploaded full Git SHA and live health metadata. On December 4 the production site returned an empty tag, so its deployed source is unverified. - Scheduled tasks now settle independently, emit completion only after success, and reject the invocation after any failure. The inner audit-log cleanup no longer swallows its error. - Passed 37 focused Worker tests and 28 site tests, typechecks, source policy, lint, and four deployment dry-runs. The site changes and staging API are deployed; the production API code remains unpublished. - Saved three validated production observability queries. Four production runtime issue automations and Worker detection are enabled. Cloudflare records one synthetic test email sent, and temporary test resources are removed. Other operational alert conditions and authenticated release acceptance remain pending; see [observability](./observability.md). diff --git a/docs/operations/observability.md b/docs/operations/observability.md index a96b8293..f9f52f77 100644 --- a/docs/operations/observability.md +++ b/docs/operations/observability.md @@ -84,7 +84,7 @@ Detection immediately reported two live site issues classified as low-risk vulne Saved queries do not send notifications. The following operational conditions have separate acceptance states: 1. HTTP failure rates: two custom SQL policies enabled on 2026-10-09 after explicit authorization, separately for the production API (`9fdb3dbf577c4a65b0ad1052b140dff4`) and site (`ff4eac3a988545e4b5cbc0ad531e5b68`). They trigger on at least five 5xx responses and at least 5% of requests in five minutes, evaluate every five minutes, and repeat at most hourly to the authorized existing email destination. Readback verifies both SQL expressions, thresholds, intervals, enabled state, and sole destination. No additional synthetic email was sent; real incident delivery has not yet been observed. Client cancellations are not automatically server errors. Native Issues occurrence rules are distinct from this rate calculation. -2. Scheduled failures: any of the six explicit failed-task events in 15 minutes. Missing aggregation: no successful five-minute aggregation in 20 minutes. Both policies were enabled after explicit authorization on 2026-10-09: `99d5c43a4f9b41bda659420135d86630` and `5ff482687d4f4415aac1bed9ec84c705`. Exact queries, threshold >=1, one-minute evaluation windows, five-minute checks, hourly repeats, enabled state and sole existing email destination passed API readback. Incident delivery is unverified, and no additional test email was sent. Missing daily retention remains disabled until its native daily completion and healthy SQL signal are accepted. +2. The scheduled-failure policy remains enabled. The older 20-minute missing-aggregation policy is disabled. The native HTTPS check polls production `/health/scheduled` every 60 seconds and requires two consecutive failures or recoveries. The daily alert still requires an observed native daily completion and healthy SQL signal. 3. Billing inbox: the deployed scheduled health check detects any unprocessed dead event, received/failed event older than 15 minutes, or processing lease older than 15 minutes. A processing row without a lease uses its creation time; a missing/invalid age is unhealthy. Fresh processing leases are protected even for an older event. The check is read-only and does not replay events. Native healthy completion is verified in production; notification delivery for this condition remains pending. 4. Latency: gather a representative baseline first. The 2026-10-09 observation had only five site requests and two API requests in 15 minutes, which is insufficient to choose a reliable p95 threshold. 5. Credit spend: existing policy `dba385c80560401793bffee7b8c119f6` is enabled with a $10 usage-spend threshold, verified on 2026-10-09. The signed-in Credits dashboard confirms an active $10,000 grant, estimated remaining balance $10,000 as of October 9, programme start October 6, 2026, and expiry October 6, 2027. Monthly invoices confirm the final balance. The dashboard excludes Registrar purchases and AI Gateway and lists product credit caps of $10,000 for R2 and $50,000 for Workers AI; these caps do not increase the account's $10,000 grant. Preserve the alert: it monitors account-wide usage spend, not remaining grant credit. Budget alerts do not cap spend or include recurring subscription fees. @@ -93,7 +93,7 @@ The available SQL dataset catalogue was readable on 2026-10-09, but a SQL log qu After dashboard sign-in on 2026-10-09, Alerts → Create an alert → Custom alert → Custom SQL successfully previewed `logs.workersLogs` without changing credentials. One preview initially returned a permission-service 503; retry succeeded. The proposed `logType = 'invocation'` filter returned no site requests. The documented invocation value `cf-worker-event` returned live site fetches with HTTP status values. Both corrected HTTP failure expressions previewed as 0, and a read-only positive control using known successful responses returned 1. These are query-validation results, not notification delivery tests. -The [metric alert record](./omg-metric-alert-candidates.json) contains two enabled HTTP policies, two enabled scheduled-job policies and one disabled daily candidate. It is an operational record, not an API request body; update the enabled policy IDs rather than creating duplicates. The expressions use threshold detection and a manual SQL time range because they contain rolling windows. The saved one-minute evaluation window avoids averaging the result over a longer period. The daily candidate has no policy or delivery configured. Missing completion logs can also reflect ingestion or sampling gaps; these queries are not independent synthetic uptime checks. +The [metric alert record](./omg-metric-alert-candidates.json) contains two enabled HTTP policies, an enabled scheduled-failure policy, a disabled missing-aggregation policy and an unpublished daily candidate. It is an operational record, not an API request body; update the enabled policy IDs rather than creating duplicates. The expressions use threshold detection and a manual SQL time range because they contain rolling windows. The saved one-minute evaluation window avoids averaging the result over a longer period. The daily candidate has no policy or delivery configured. Missing completion logs can also reflect ingestion or sampling gaps; these queries are not independent synthetic uptime checks. After the production API promotion, signed-in SQL preview on 2026-10-09 exposed a broken draft: `message LIKE '%docs_analytics.aggregate_completed%'` returned zero @@ -217,7 +217,7 @@ Use Cloudflare Workers Logs to monitor: Correlate by Cloudflare invocation metadata and trace identifiers. Do not introduce customer identifiers solely for log correlation. -Both implementations expose `version` from `CF_VERSION_METADATA` in `/health`: Cloudflare's version ID, deployment tag, and upload timestamp. Production API identity is accepted for source `b2ef8e9` and its actual version above. Current staging source `ddee760` runs with `BILLING_ENABLED=false`; both health endpoints return200 with verified source/version identities, and API health reports `features.billing=disabled`. Stripe test configuration is only required when staging billing is enabled. Live site health responses carry the verified version tags. Missing metadata is `null`; an empty tag does not establish a source revision. Releases must use the full Git SHA as `wrangler deploy --tag` and retain both Worker version IDs. Health probes do not verify OAuth, paid billing, or CLI activation; paid-tier acceptance is deferred. +Both implementations expose `version` from `CF_VERSION_METADATA` in `/health`: Cloudflare's version ID, deployment tag, and upload timestamp. Production API identity is accepted for source `b2ef8e9` and its actual version above. Current staging source `ddee760` runs with `BILLING_ENABLED=false`; both health endpoints return200 with verified source/version identities, and API health reports `features.billing=disabled`. Stripe test configuration is only required when staging billing is enabled. On December 4 the production site returned an empty tag. Its source is unverified pending a tagged release. Missing metadata is `null`; an empty tag does not establish a source revision. Releases must use the full Git SHA through the verified release command and retain both Worker version IDs. Health probes do not verify OAuth, paid billing, or CLI activation; paid-tier acceptance is deferred. ## Release validation @@ -279,15 +279,14 @@ columns and a non-null CTA target. Raw events are not copied, modified, or given a longer retention period. Current and previous UTC days are refreshed by the existing scheduler; retained historical documentation dates are rebuilt once during promotion. Site-derived input remains subject to the existing ninety-day -site retention and legacy docs input to its existing seven-day retention. +site retention and legacy docs input to its existing seven-day retention. On December 4 the retained production D1 database still contained docs-scoped events older than 91 days. Production Cron targets PostgreSQL; cleanup of retained D1 requires data-owner approval. The six ignored site issues are specific low-risk scanner fingerprints. Their retained occurrences returned 403 or 404 and reported no matching outbound fetch. Live recurrence testing showed that an ignored issue can still dispatch an automation notification. Ignoring status is therefore only review bookkeeping. -Eight apex-only WAF rules block the 462 exact retained scanner paths before Worker -invocation. Their expressions and rollback identifiers are recorded in -`omg-scanner-waf-rules.json`; the existing getomg.dev scanner rule is preserved. +Eight apex-only WAF rules cover all 462 paths in the October snapshot before Worker +invocation. The October snapshot in `omg-scanner-waf-rules.json` identifies the eight rules. All eight IDs and six expressions matched on December 4. The first rule on each apex includes three additional paths. Read the current ruleset before planning rollback. First-occurrence and recurrence automations for production API and site remain enabled. New issue fingerprints still require review, and actual exceptions continue to notify. Restore an ignored fingerprint to active if its evidence diff --git a/docs/operations/seo-plan.md b/docs/operations/seo-plan.md index b59a6735..478ff02b 100644 --- a/docs/operations/seo-plan.md +++ b/docs/operations/seo-plan.md @@ -1,6 +1,6 @@ # OMG SEO plan -The report table records the retired production implementation audited on 2026-08-25. The implementation sections track the SvelteKit website. `https://getomg.xyz` is the new canonical origin. Recheck production after launch and after `omg.latham.cloud` becomes a permanent redirect. +The report table records the retired production implementation audited on 2026-08-25. The implementation sections track the SvelteKit website. The historical launch plan used `getomg.xyz`. Current public URLs use `getomg.dev`; accounts still use `getomg.xyz`. ## Verification verdicts on the 10 research reports @@ -31,7 +31,7 @@ Key external sources: The website owns canonical metadata, crawl directives, and structured data for every public route. One shared origin contract sets `https://getomg.xyz` across pages, JSON-LD, the sitemap, robots, installers, billing returns, invitations, CORS, and analytics. The sitemap contains only canonical URLs. It omits `` and `` because Google ignores both fields. It also omits `` until the build can supply accurate content dates. -### Slice 0. Launch the canonical domain +### Slice 0. September launch record 1. [x] Model `getomg.xyz` in `shared/public-site.ts`. Keep deployment hostnames in `site/alchemy.run.ts`, and make source policy enforce their exact values. 2. [x] Configure the production Alchemy Website with `getomg.xyz` as the Custom Domain. @@ -40,7 +40,7 @@ The website owns canonical metadata, crawl directives, and structured data for e 5. [x] Wait for the `getomg.xyz` Cloudflare zone to become active. 6. [ ] Give the deployment credential `Dynamic URL Redirects Write`. 7. [ ] Launch and observe `getomg.xyz` before changing the old hostname. -8. [ ] Redirect each `omg.latham.cloud` URL to the same path on `getomg.xyz`. +8. The legacy public redirect allowlist is recorded in [SEO discovery release](seo-discovery-release.md). Account, installer and API paths have separate contracts. Expanding the allowlist requires a migration decision. 9. [ ] Keep the old-host redirect for at least one year. 10. [ ] Verify both Search Console properties, submit Change of Address, and submit the new sitemap. diff --git a/docs/operations/snyk-license-review-2026-11-20.md b/docs/operations/snyk-license-review-2026-11-20.md index 1ce2a79b..b1896887 100644 --- a/docs/operations/snyk-license-review-2026-11-20.md +++ b/docs/operations/snyk-license-review-2026-11-20.md @@ -9,7 +9,7 @@ The three project policies (`.snyk`, `site/.snyk`, and `workers/api/.snyk`) acce | `@img/sharp-libvips-*` | 1.3.4 | Sharp 0.35.5 through Miniflare/Wrangler and the docs image integration | LGPL-3.0-or-later binary distribution | | `lightningcss` and platform packages | 1.33.0 | Vite and Vitest | MPL-2.0 | -The [approval inventory](./snyk-license-approvals-2026-11-20.json) records each project, package, version, advisory and representative dependency path, plus approval and bundle-review evidence. These are accepted license findings, not removed code or fixed vulnerabilities. No security advisory is ignored and no source is excluded. The full development-inclusive Snyk scan must still pass for unapproved findings. +The [approval inventory](./snyk-license-approvals-2026-11-20.json) records each project, package, version, advisory and representative dependency path, plus approval and bundle-review evidence. These are accepted license findings, not removed code or fixed vulnerabilities. No security advisory is ignored and no source is excluded. Run the development-inclusive scan for each release. The November license approval covers only the recorded license exceptions. The December 4 dependency scan still reports picomatch and fflate advisories after the Vite and Hono updates. ## Packaging and notices diff --git a/docs/operations/svelte-production-cutover.md b/docs/operations/svelte-production-cutover.md index 1a6291f0..cfeb1a23 100644 --- a/docs/operations/svelte-production-cutover.md +++ b/docs/operations/svelte-production-cutover.md @@ -1,14 +1,10 @@ -# Launch the SvelteKit website on `getomg.xyz` +# SvelteKit website cutover -- **Status:** production website deployed on 2026-09-04. API origin cutover and legacy-host retirement remain pending. -- **Canonical hostname:** `getomg.xyz` -- **Redirect hostnames:** `www.getomg.xyz`, then `omg.latham.cloud` -- **Target Worker:** `omgsveltesite-website-prod-dlaqgfttmir2ky5x` -- **Rollback Worker:** `omg-site` +The September launch used `getomg.xyz`. Current public pages use `getomg.dev`, accounts use `getomg.xyz`, and `omg-site` still serves the legacy host. Use the [production release procedure](staging-release.md) for current deployments. The launch record and original procedure below describe the September migration. ## Production launch record -The website runs source commit `ac94eee8a83a6bf45f7a84aaeaffefbb7858340e`, merged through PR #81. Production Worker version `ff4f26b1-cef9-4685-a402-76a5a7503dcc` was uploaded at `2026-09-04T19:41:15Z`. +The September deployment ran source commit `ac94eee8a83a6bf45f7a84aaeaffefbb7858340e`, merged through PR #81. Production Worker version `ff4f26b1-cef9-4685-a402-76a5a7503dcc` was uploaded at `2026-09-04T19:41:15Z`. - Alchemy attached `getomg.xyz` and `www.getomg.xyz` to the production website Worker. - The `www` rule returns HTTP 301 and preserves paths and query strings. @@ -46,7 +42,7 @@ The next production step is a separately authorized API origin deployment. Keep Do not import `omg-site`, `omg-saas`, or D1 into Alchemy state. -## Meet every launch gate +## Original launch gates Before the first production write: @@ -70,7 +66,7 @@ https://getomg.xyz/api/auth/callback/github Record unavailable live credentials as unverified evidence. A skipped test is not a pass. -## Launch the new domain +## September rollout procedure ### 1. Refresh the shadow deployment @@ -108,9 +104,9 @@ gh workflow run production.yml --repo omg-cli/omg-web --ref main -f target=site Verify these requests before changing the API Worker: - `GET https://getomg.xyz/health` returns `runtime: sveltekit-alchemy`. -- The home, docs, privacy, terms, login, and signup pages return the expected status. -- `GET https://www.getomg.xyz/docs/cli/?runtime=node` returns HTTP 301 to `https://getomg.xyz/docs/cli/?runtime=node`. -- Canonical, Open Graph, JSON-LD, sitemap, and robots URLs use `https://getomg.xyz`. +- Check the public home, docs, privacy, terms and updates pages on `getomg.dev` for HTTP 200. Check login and signup on the account host `getomg.xyz`. +- The tested `www.getomg.xyz/docs/cli/?runtime=node` redirects with 302 to `https://getomg.dev/docs/cli/?runtime=node`. The corresponding `www.getomg.dev` request uses 301. +- Public canonical, Open Graph, JSON-LD, sitemap and robots URLs use `https://getomg.dev`. - Unknown routes return a real 404. - Protected routes redirect to login. - Installer files and the public verification key match their committed hashes. @@ -139,46 +135,11 @@ Observe production for at least 15 minutes. Check at launch and every five minut If a gate fails, remove the `getomg.xyz` domain policy or roll back the Svelte Worker version. Keep `omg.latham.cloud` on `omg-site` while investigating. -## Redirect the old hostname +## Legacy hostname and search migration -Google recommends a direct permanent redirect for every old URL and asks site owners to keep redirects for at least one year. The redirect must keep each path instead of sending every request to the home page. +`omg-site` continues to serve `omg.latham.cloud`. The [public redirect allowlist](seo-discovery-release.md) preserves the query string. For example, the legacy docs URL returns 301 to `getomg.xyz`, then 302 to `getomg.dev`. The legacy installer and dashboard return 200, and the legacy API health path returns 404. -After the new domain passes observation: - -1. Add `omg.latham.cloud` to `domain.redirects` in `site/alchemy.run.ts`. -2. Review the Alchemy production plan. -3. Stop for approval. -4. Detach the `omg.latham.cloud` Custom Domain from `omg-site`. -5. Deploy the Alchemy plan at once. -6. Confirm that representative old paths return HTTP 301 to the same path on `getomg.xyz`. -7. Confirm that query strings survive the redirect. -8. Verify DNS, TLS, sitemap, canonical tags, authentication, and billing again. - -The detach and attach cannot overlap because one Custom Domain cannot belong to two Workers. - -## Retire the old Worker - -After the old-host redirect passes production checks: - -1. Confirm that `omg-site` has no route or Custom Domain. -2. Stop for approval. -3. Delete `omg-site`. -4. Run the remote resource check and the production Playwright suite. -5. Record the commit, CI run, deployment result, redirect checks, and observation timestamps in this document. - -Keep the `omg.latham.cloud` redirect for at least one year. Keep it indefinitely if its operating cost remains negligible. - -## Complete search-engine migration - -After launch: - -1. Verify both hostname properties in Google Search Console. -2. Submit the Change of Address from `omg.latham.cloud` to `getomg.xyz`. -3. Submit `https://getomg.xyz/sitemap.xml`. -4. Update high-value external links, package metadata, profiles, and release notes to use `getomg.xyz`. -5. Monitor indexed pages, crawl errors, and search traffic on both properties. - -Google documents temporary ranking changes during a domain move. Do not combine this launch with another URL or page-layout migration. +Moving more paths, shortening the redirect chain, or retiring the legacy Worker requires an owner decision covering the account, installer and API consumers. Public search properties and sitemap submissions should use the canonical host `getomg.dev`. ## Sources diff --git a/exa-results/omg-seo-2026-09-14/research.md b/exa-results/omg-seo-2026-09-14/research.md index d6933de3..482e4ee8 100644 --- a/exa-results/omg-seo-2026-09-14/research.md +++ b/exa-results/omg-seo-2026-09-14/research.md @@ -35,7 +35,7 @@ The old domain still publishes an older version of OMG and claims it is canonica Verify ownership of old and new properties, then submit Change of Address where applicable and the new sitemap. Update the GitHub repository homepage, README links, release templates, and other controlled links to the canonical domain. Keep redirects for at least a year and preferably indefinitely while old links exist. These steps follow [Google's migration guidance](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes) and [Change of Address requirements](https://support.google.com/webmasters/answer/9370220). -**Acceptance:** Old public URLs resolve in one permanent hop to the equivalent 200 page. New HTML, social tags, JSON-LD, sitemap entries, and controlled external links agree on getomg.xyz. +**September proposal, superseded.** Public metadata now uses `getomg.dev`. The [legacy migration record](../../docs/operations/seo-discovery-release.md) describes the public redirect allowlist and the endpoints still served by the old Worker. ## 2. Preserve the SEO settings that already work diff --git a/site/package-lock.json b/site/package-lock.json index 3498a115..1d6010ad 100644 --- a/site/package-lock.json +++ b/site/package-lock.json @@ -38,7 +38,7 @@ "svelte-check": "4.7.6", "typescript": "6.0.3", "vfile": "6.0.3", - "vite": "8.2.4", + "vite": "8.4.1", "vitest": "4.1.12" }, "engines": { @@ -2475,7 +2475,7 @@ "version": "0.146.0", "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.146.0.tgz", "integrity": "sha512-XC0QsnnhVe7sLIWmYmdPw7x5P0h4W8vUU3Nv1ySgWXtvCz8NizoAEpGXA0sOYoJQV2Rl13LgURAHQ5cI5ILCSA==", - "devOptional": true, + "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/Boshen" @@ -2770,6 +2770,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2786,6 +2787,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2802,6 +2804,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2818,6 +2821,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2834,6 +2838,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2850,6 +2855,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2866,6 +2872,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2882,6 +2889,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2898,6 +2906,7 @@ "cpu": [ "ppc64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2914,6 +2923,7 @@ "cpu": [ "s390x" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2930,6 +2940,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2946,6 +2957,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2962,6 +2974,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2971,6 +2984,32 @@ "node": "^20.19.0 || >=22.12.0" } }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.3.4.tgz", + "integrity": "sha512-jwO8P3o53ygo7b5061B7BeaJ1BGv3BKZ6jroFdw/01qWry7Z+qNBlDvulzbTle5s/A0Fc1FRgsTxrke9DvsSbA==", + "cpu": [ + "wasm32" + ], + "license": "MIT", + "optional": true, + "dependencies": { + "@oxc-project/types": "0.160.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi/node_modules/@oxc-project/types": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.160.0.tgz", + "integrity": "sha512-gw4k9syEmnckbOgw2A2FU1TBDdX9hfwV9jEn/uio65pguPzwWiXQS3OIJDMEhv9m06tj9XiEe6RoD0YA+LgreA==", + "license": "MIT", + "optional": true, + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, "node_modules/@rolldown/binding-win32-arm64-msvc": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.5.tgz", @@ -2978,6 +3017,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -2994,6 +3034,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4213,9 +4254,9 @@ } }, "node_modules/cross-spawn": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.1.0.tgz", - "integrity": "sha512-/PHUIV1x/hZLpJN8KmyV2aYkT8pll4RjQ59TmhwkL/9B4HdOtlBQ2pos6iB2cfVRzpGHk3HXlRa8sdVYrPjIYw==", + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.1.2.tgz", + "integrity": "sha512-8BPK2r+sKWC8sDinRwLwrFMq2lXTBBwzYYEB9LiCznfMurOi4FOvQflq3XOLGG+HPdMSVpe+k/s96+AtDEOgPg==", "dev": true, "license": "MIT", "dependencies": { @@ -4747,9 +4788,9 @@ } }, "node_modules/hono": { - "version": "4.13.16", - "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.16.tgz", - "integrity": "sha512-AOLOEhvrV+iH92xXCnFr/5+3KjPKcI3xP63XJtX5spAnkznPdHijlIsUTpi7/9EhWqrTCekw5c5zh1K+YsVw7A==", + "version": "4.13.18", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.18.tgz", + "integrity": "sha512-H9q/E1XizaWstJxUW881dmLxEj+t/TrGGnyxINkm4+sK0qUwsMtFdo2BWI9Vs3cIS19MU6b6iCijoUoEf4f3DA==", "dev": true, "license": "MIT", "engines": { @@ -6525,9 +6566,9 @@ "license": "MIT" }, "node_modules/nanoid": { - "version": "3.3.18", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz", - "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==", + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", "devOptional": true, "funding": [ { @@ -6558,6 +6599,23 @@ "node": "^20.0.0 || >=22.0.0" } }, + "node_modules/napi-windows-process-start-time": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/napi-windows-process-start-time/-/napi-windows-process-start-time-0.1.0.tgz", + "integrity": "sha512-zHxhzKsIFu3elch3eFw69WEUGc79DFhbc3nD/WEOzWL/pFFLZRW13EHnuO0c+0YjncE5uCaS9ICHxOBXkb6vPw==", + "cpu": [ + "x64", + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20" + } + }, "node_modules/node-emoji": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-2.2.0.tgz", @@ -6759,9 +6817,9 @@ } }, "node_modules/postcss": { - "version": "8.5.26", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.26.tgz", - "integrity": "sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==", + "version": "8.5.34", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.34.tgz", + "integrity": "sha512-P1Qzj0XXZjMda74C7qiVnBG90UKNbyNUAOeQRBW8X63RsIMV57gevRqjnkELdwtZ/S2/uQFksJhmwuN8xShLPw==", "devOptional": true, "funding": [ { @@ -6779,9 +6837,9 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.17", + "nanoid": "^3.3.20", "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" + "source-map-js": "^1.2.4" }, "engines": { "node": "^10 || ^12 || >=14" @@ -7112,7 +7170,7 @@ "version": "1.2.5", "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.5.tgz", "integrity": "sha512-VD2IE5PUG4Oj8zz2VGykiYd5wbnjdIiSsNQb8Qu5B+noEp+A78mu2iVvpp27g8es14Tk9rofNs5Tku9iQCS4fA==", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "@oxc-project/types": "=0.146.0", @@ -7850,16 +7908,16 @@ } }, "node_modules/vite": { - "version": "8.2.4", - "resolved": "https://registry.npmjs.org/vite/-/vite-8.2.4.tgz", - "integrity": "sha512-lfauXnrf2x0p+UoA+wXh0dgFWnUjCyG6Js95KBkgaCwUU9k0DAHI4W6Q0WCx+h+5g+Alce1y4Zi2QjjK0UvGBw==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.4.1.tgz", + "integrity": "sha512-2bl8n3+GkKBKQQR8CZC+t+3NvjWCBNh9S0Dbfu7hr7+Jjeg71jcZk7uKF6mo8GZXjIws+Nl6jhvAfHUO320VuQ==", "devOptional": true, "license": "MIT", "dependencies": { "lightningcss": "^1.33.0", - "picomatch": "^4.0.5", - "postcss": "^8.5.26", - "rolldown": "~1.2.4", + "picomatch": "^4.0.7", + "postcss": "^8.5.34", + "rolldown": "~1.3.4", "tinyglobby": "^0.2.17" }, "bin": { @@ -7872,11 +7930,12 @@ "url": "https://github.com/vitejs/vite?sponsor=1" }, "optionalDependencies": { - "fsevents": "~2.3.3" + "fsevents": "~2.3.3", + "napi-windows-process-start-time": "^0.1.0" }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", - "@vitejs/devtools": "^0.4.0 || ^0.5.0", + "@vitejs/devtools": "^0.7.1 || ^0.8.0", "esbuild": "^0.27.0 || ^0.28.0", "jiti": ">=1.21.0", "less": "^4.0.0", @@ -8004,6 +8063,274 @@ } } }, + "node_modules/vite/node_modules/@oxc-project/types": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.160.0.tgz", + "integrity": "sha512-gw4k9syEmnckbOgw2A2FU1TBDdX9hfwV9jEn/uio65pguPzwWiXQS3OIJDMEhv9m06tj9XiEe6RoD0YA+LgreA==", + "devOptional": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.3.4.tgz", + "integrity": "sha512-xCW8CkL/ualx/SbYqeG9iK87lJCZGDQ0soE+kaORJ0Bd+pHALyE4qK7BStmEAyYWLEzZ3/biSIpA6/7GDFvzIg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-android-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.3.4.tgz", + "integrity": "sha512-5lifIO+b/prcM9sx/bkPN4w6UEToEfQ3gjhx0+0neuL+dkYskI792CfAq03T51jc8JFcaYXs2hi3l8RjiH/VWQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.3.4.tgz", + "integrity": "sha512-RCgxTI4AJQxhVF//BI3ImQOsXTHrF4Eg+f99jBy8WoETA2kSEGFxpnrVmW0leQq/2aBR4R5AC6csmy3rc66e3Q==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-darwin-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.3.4.tgz", + "integrity": "sha512-zNPJVVPUaDEj+L0lImoK3rFv2b+Z5gNijI6DWu/fcD3/1TfmRXKb9ZyxbSN+2AhlctqjbNzUvCsMa+EBhnEM4Q==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.3.4.tgz", + "integrity": "sha512-upP6g7ZIRy5by1RDQ/EphHIdJ5xK0eUD7sUgfZFWJ49s4XdbYsIvIlAPtrFpayR70Hhf9J22lb4Pm8/9FhrZmg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.3.4.tgz", + "integrity": "sha512-SAX5C5+poMLCxu8dkPF6h5yst40rkzs+9Y3cbPn2OFSydmHjAEprrGi64zGgnYyPIVZfdGUFqJ2fJbfbnHI+mA==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.3.4.tgz", + "integrity": "sha512-nwHqdlRZS6GWBef3dG5/pMY6RNTBBUjj7s0Da+m6xsFpe7jx6IC46SLZcCu8f46JOfCovZmwnrz51EzGE+7Fyw==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.3.4.tgz", + "integrity": "sha512-Gr78X2ur/AgLCkmZgHffk/FerIX8S5zb/eII4bCcvJo0ANzeXhTShahdNbpnY6bpiszIAgIfiuKS9ziziWsamw==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.3.4.tgz", + "integrity": "sha512-o9Wcn8nWrsQasaBRYM4d//FwhlBsTJYWkPVlhlt6FwzpwEoovY4IopRZjk5Fq3+ntRuSDORJjF/nA8sFeF2q6w==", + "cpu": [ + "ppc64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.3.4.tgz", + "integrity": "sha512-UDWu4jkVcx2kiBKm3Ec//4lVCbeTWj8gmJ9SyLWCdLWtTlyq7fQVeVV/14nXvRtSLErvJ2+yA/Ux5taS31Y17Q==", + "cpu": [ + "s390x" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.3.4.tgz", + "integrity": "sha512-W9mGtTa0w4fWh8RLMNPyaEhhcuqUfO07Q4I1bBc4PDMNg7gQSw0yPQNQ3D0qwbkXwxbyL4YrIzc8n6k1vuFExQ==", + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.3.4.tgz", + "integrity": "sha512-8B+ofyQZ7/aCmkqnyMonPr5zKLqMVNczhRGFNtdIuItiwNn8iQWJawMq2E58r7bxD1XEbtRRsULY/eCWwZQ01Q==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.3.4.tgz", + "integrity": "sha512-TlD0FSZaC7o2B4NCe9V5N11ugTnhzTM9ksj4sgRLvrKosDzjEkvlsTX3ehkw4ZlPv8AADimZZTvJGEa16pfXug==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.3.4.tgz", + "integrity": "sha512-8adGMrNtrdzi2WD1ozhYapER59gD8Q/DV6SCKJlyG2HqULPdeQUBvMa33lTsiEYwIqTZUaIU2MmvPp5f1wbtXA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.3.4.tgz", + "integrity": "sha512-rIMjtESdXJCIoOiUTroQ1Y1rjVDZkuUVRUxs3APX2vNv175D7TDWvzdELiIhzGq9cUNUFat+co+PTmPHPqSREg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, "node_modules/vite/node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", @@ -8018,6 +8345,41 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, + "node_modules/vite/node_modules/rolldown": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.3.4.tgz", + "integrity": "sha512-p2rq4bfBmF0M6yaR8+A89fbkBQynZI2fxUW4G07eq9kpctAkpo7q5BZ4X4Mo4XZ7HHROu33cX9PeopUFN6u+2Q==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.160.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.3.4", + "@rolldown/binding-android-arm64": "1.3.4", + "@rolldown/binding-darwin-arm64": "1.3.4", + "@rolldown/binding-darwin-x64": "1.3.4", + "@rolldown/binding-freebsd-x64": "1.3.4", + "@rolldown/binding-linux-arm-gnueabihf": "1.3.4", + "@rolldown/binding-linux-arm64-gnu": "1.3.4", + "@rolldown/binding-linux-arm64-musl": "1.3.4", + "@rolldown/binding-linux-ppc64-gnu": "1.3.4", + "@rolldown/binding-linux-s390x-gnu": "1.3.4", + "@rolldown/binding-linux-x64-gnu": "1.3.4", + "@rolldown/binding-linux-x64-musl": "1.3.4", + "@rolldown/binding-openharmony-arm64": "1.3.4", + "@rolldown/binding-wasm32-wasi": "1.3.4", + "@rolldown/binding-win32-arm64-msvc": "1.3.4", + "@rolldown/binding-win32-x64-msvc": "1.3.4" + } + }, "node_modules/vitefu": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.1.3.tgz", diff --git a/site/package.json b/site/package.json index beab6a81..a4f1e6a2 100644 --- a/site/package.json +++ b/site/package.json @@ -63,7 +63,7 @@ "svelte-check": "4.7.6", "typescript": "6.0.3", "vfile": "6.0.3", - "vite": "8.2.4", + "vite": "8.4.1", "vitest": "4.1.12" }, "overrides": { @@ -74,7 +74,7 @@ "better-auth": { "@sveltejs/kit": "3.1.1" }, - "hono": "4.13.16", + "hono": "4.13.18", "lodash": "4.18.1", "valibot": "1.5.0", "devalue": "5.9.4", @@ -85,7 +85,7 @@ "undici": "8.12.4" }, "ws": "8.23.1", - "cross-spawn": "7.1.0" + "cross-spawn": "7.1.2" }, "allowScripts": { "msgpackr-extract@3.0.4": false, diff --git a/tools/website/public-routes.test.mjs b/tools/website/public-routes.test.mjs new file mode 100644 index 00000000..5c19695d --- /dev/null +++ b/tools/website/public-routes.test.mjs @@ -0,0 +1,41 @@ +import assert from 'node:assert/strict'; +import { test } from 'node:test'; +import { createTestHarness, unstable_readConfig as readConfig } from 'wrangler'; + +test('production asset routing serves the legal and updates pages', async () => { + const config = readConfig({ config: 'site/wrangler.production.jsonc' }); + const server = createTestHarness({ + workers: [ + { + config: { + name: 'site-route-test', + main: 'site/worker.js', + compatibility_date: config.compatibility_date, + compatibility_flags: config.compatibility_flags, + vars: config.vars, + assets: { ...config.assets, directory: 'site/.svelte-kit/cloudflare' }, + hyperdrive: [ + { + binding: 'HYPERDRIVE', + id: '00000000000000000000000000000000', + localConnectionString: 'postgresql://fixture:fixture@127.0.0.1:5432/fixture', + }, + ], + }, + }, + ], + }); + try { + await server.listen(); + for (const path of ['/privacy/', '/terms/', '/updates/']) { + const url = new URL(path, 'https://getomg.dev'); + const response = await server.fetch(url.href); + assert.equal(response.status, 200, path); + const html = await response.text(); + const canonical = html.match(/]*rel="canonical"[^>]*>/u)?.[0]; + assert.ok(canonical?.includes(url.href), path); + } + } finally { + await server.close(); + } +}); diff --git a/workers/api/DOCS_ANALYTICS_SETUP.md b/workers/api/DOCS_ANALYTICS_SETUP.md index 5e5ee5bb..8fc66cc5 100644 --- a/workers/api/DOCS_ANALYTICS_SETUP.md +++ b/workers/api/DOCS_ANALYTICS_SETUP.md @@ -89,7 +89,7 @@ Do not log raw payloads, session identifiers, user agents, IP addresses, or cust ### Aggregates are stale - Check structured logs for `Docs analytics background aggregation failed`. -- Verify raw events exist with a read-only D1 query. +- Check the active backend. For D1, query `SELECT EXISTS(SELECT 1 FROM docs_analytics_source_events) AS has_docs_input`. The view includes docs-scoped site events even when the legacy `docs_analytics_events` table is empty. - Confirm the scheduled trigger in `wrangler.toml` is present in the deployed version. - Inspect traces for D1 failures or latency before considering any repair. diff --git a/workers/api/package-lock.json b/workers/api/package-lock.json index e5d838f5..b91f0fc4 100644 --- a/workers/api/package-lock.json +++ b/workers/api/package-lock.json @@ -1123,9 +1123,9 @@ } }, "node_modules/@oxc-project/types": { - "version": "0.148.0", - "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.148.0.tgz", - "integrity": "sha512-Nm4s/jB+4FpFsPhWGEC4h7rzksesmtnMXomo6rCMcg/b8zLQuOziRgkCS1fxDCXOlJB/6Q8oABOZ/OP6RIPj9A==", + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.160.0.tgz", + "integrity": "sha512-gw4k9syEmnckbOgw2A2FU1TBDdX9hfwV9jEn/uio65pguPzwWiXQS3OIJDMEhv9m06tj9XiEe6RoD0YA+LgreA==", "devOptional": true, "license": "MIT", "funding": { @@ -1162,9 +1162,9 @@ "license": "MIT" }, "node_modules/@rolldown/binding-android-arm-eabi": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.7.tgz", - "integrity": "sha512-EypzgnYCwyVY4NDHKzGmNJT5b+XaQEBniHxsMdeIQLB/tcCzZnhqrzHpZFbX9iaxx+5RiB8caATBtfvZP7zVxQ==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.3.4.tgz", + "integrity": "sha512-xCW8CkL/ualx/SbYqeG9iK87lJCZGDQ0soE+kaORJ0Bd+pHALyE4qK7BStmEAyYWLEzZ3/biSIpA6/7GDFvzIg==", "cpu": [ "arm" ], @@ -1178,9 +1178,9 @@ } }, "node_modules/@rolldown/binding-android-arm64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.7.tgz", - "integrity": "sha512-l17HE9EweWaqJZhuUuNBN/FzM62xw+DECVnJyvMsxn8vJFAGLy5QfLDoYAcronkAN8VxKZHezDpulHDPx95vFw==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.3.4.tgz", + "integrity": "sha512-5lifIO+b/prcM9sx/bkPN4w6UEToEfQ3gjhx0+0neuL+dkYskI792CfAq03T51jc8JFcaYXs2hi3l8RjiH/VWQ==", "cpu": [ "arm64" ], @@ -1194,9 +1194,9 @@ } }, "node_modules/@rolldown/binding-darwin-arm64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.7.tgz", - "integrity": "sha512-8ED8ELFvHXc6OCETIn4gXObPiaR6bckM/ipXtbzlPVDRMBfEGjCKgO90F9YtfdpDatVx/ZQw7aZ1vUMf/+T3Mw==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.3.4.tgz", + "integrity": "sha512-RCgxTI4AJQxhVF//BI3ImQOsXTHrF4Eg+f99jBy8WoETA2kSEGFxpnrVmW0leQq/2aBR4R5AC6csmy3rc66e3Q==", "cpu": [ "arm64" ], @@ -1210,9 +1210,9 @@ } }, "node_modules/@rolldown/binding-darwin-x64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.7.tgz", - "integrity": "sha512-/WPripjtiAIZ2tWY7ddijORT0Ujg87wxWW/qcoFVCKAWVDPhtY0xr7Dj0M3GyNGz60jGwTElhro/mkF9dT7dDQ==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.3.4.tgz", + "integrity": "sha512-zNPJVVPUaDEj+L0lImoK3rFv2b+Z5gNijI6DWu/fcD3/1TfmRXKb9ZyxbSN+2AhlctqjbNzUvCsMa+EBhnEM4Q==", "cpu": [ "x64" ], @@ -1226,9 +1226,9 @@ } }, "node_modules/@rolldown/binding-freebsd-x64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.7.tgz", - "integrity": "sha512-14DI4NcqpvbICxSnGLx3PmtDaWqRP/KGSGb6C+JLLVPeZRl6dKdHba3pGsqT3vpdTqhEYIPG0MMQ8c0xYqoJxA==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.3.4.tgz", + "integrity": "sha512-upP6g7ZIRy5by1RDQ/EphHIdJ5xK0eUD7sUgfZFWJ49s4XdbYsIvIlAPtrFpayR70Hhf9J22lb4Pm8/9FhrZmg==", "cpu": [ "x64" ], @@ -1242,9 +1242,9 @@ } }, "node_modules/@rolldown/binding-linux-arm-gnueabihf": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.7.tgz", - "integrity": "sha512-bxrWIRvHWQvbJwi+VIie/kDJmQxcNE6xxWwZdqF/ExVAigtHkv54WTLQPb+QsZdnFy18fg7JPfWGL0RH6vwIlQ==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.3.4.tgz", + "integrity": "sha512-SAX5C5+poMLCxu8dkPF6h5yst40rkzs+9Y3cbPn2OFSydmHjAEprrGi64zGgnYyPIVZfdGUFqJ2fJbfbnHI+mA==", "cpu": [ "arm" ], @@ -1258,12 +1258,15 @@ } }, "node_modules/@rolldown/binding-linux-arm64-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.7.tgz", - "integrity": "sha512-toOY2BChBZyuxU7OYX6Tn389di4IzAqPTycVcci0O7FSfBqzRB3RZn+K5Is6ANf4tmgRd/K1yZTsNTXbkXsnLg==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.3.4.tgz", + "integrity": "sha512-nwHqdlRZS6GWBef3dG5/pMY6RNTBBUjj7s0Da+m6xsFpe7jx6IC46SLZcCu8f46JOfCovZmwnrz51EzGE+7Fyw==", "cpu": [ "arm64" ], + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -1274,12 +1277,15 @@ } }, "node_modules/@rolldown/binding-linux-arm64-musl": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.7.tgz", - "integrity": "sha512-lAIXTH/aiLRLxsTgQvfhjo4K1ydWIp00+V0voOr9beb/9ZmkUFrSIb03dXNFRgMNvkE6oGsF10ioQ6UsI+vS5Q==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.3.4.tgz", + "integrity": "sha512-Gr78X2ur/AgLCkmZgHffk/FerIX8S5zb/eII4bCcvJo0ANzeXhTShahdNbpnY6bpiszIAgIfiuKS9ziziWsamw==", "cpu": [ "arm64" ], + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -1290,12 +1296,15 @@ } }, "node_modules/@rolldown/binding-linux-ppc64-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.7.tgz", - "integrity": "sha512-kdnwS28Pkenp/mZMRwjXXXwxQ7pIsm+bF919LUK93BOyhcLsrVKdP2p9fxpiPNPAbNuch8ypQt0pm2P2LYCAGg==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.3.4.tgz", + "integrity": "sha512-o9Wcn8nWrsQasaBRYM4d//FwhlBsTJYWkPVlhlt6FwzpwEoovY4IopRZjk5Fq3+ntRuSDORJjF/nA8sFeF2q6w==", "cpu": [ "ppc64" ], + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -1306,12 +1315,15 @@ } }, "node_modules/@rolldown/binding-linux-s390x-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.7.tgz", - "integrity": "sha512-516OdsyLdr5E65paF3yBF55t8mfm9+gmtCsK3xI7XKXIT7EfRlHhxL8K/NR6Hu8BWSgF5+1w74lTL0+nxcc8Qw==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.3.4.tgz", + "integrity": "sha512-UDWu4jkVcx2kiBKm3Ec//4lVCbeTWj8gmJ9SyLWCdLWtTlyq7fQVeVV/14nXvRtSLErvJ2+yA/Ux5taS31Y17Q==", "cpu": [ "s390x" ], + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -1322,12 +1334,15 @@ } }, "node_modules/@rolldown/binding-linux-x64-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.7.tgz", - "integrity": "sha512-r8/z8n7GFaYRln3xmP1Cxy0HH/HLM0uBUPkEuSVEfKGDA89M0FsZRZJRSwe/tJjRx+fpH/gjorfhB8tmEbSFLA==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.3.4.tgz", + "integrity": "sha512-W9mGtTa0w4fWh8RLMNPyaEhhcuqUfO07Q4I1bBc4PDMNg7gQSw0yPQNQ3D0qwbkXwxbyL4YrIzc8n6k1vuFExQ==", "cpu": [ "x64" ], + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -1338,12 +1353,15 @@ } }, "node_modules/@rolldown/binding-linux-x64-musl": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.7.tgz", - "integrity": "sha512-pAsE8iiDxUg1xBqdhrTfg45AVDVpirjz00sblEYClGNNcMnDb+e8beQgqIAw6LvauX/APvgxUnwrgun/YYGBhw==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.3.4.tgz", + "integrity": "sha512-8B+ofyQZ7/aCmkqnyMonPr5zKLqMVNczhRGFNtdIuItiwNn8iQWJawMq2E58r7bxD1XEbtRRsULY/eCWwZQ01Q==", "cpu": [ "x64" ], + "libc": [ + "musl" + ], "license": "MIT", "optional": true, "os": [ @@ -1354,9 +1372,9 @@ } }, "node_modules/@rolldown/binding-openharmony-arm64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.7.tgz", - "integrity": "sha512-lTcIYmmnQQA8Or/2DatS6oSqcdLHvendjS+zLu+FwgToynWMRSmQdpM65fTANJgIS4mjbMOo5KT2lnT9SAb96w==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.3.4.tgz", + "integrity": "sha512-TlD0FSZaC7o2B4NCe9V5N11ugTnhzTM9ksj4sgRLvrKosDzjEkvlsTX3ehkw4ZlPv8AADimZZTvJGEa16pfXug==", "cpu": [ "arm64" ], @@ -1369,10 +1387,26 @@ "node": "^20.19.0 || >=22.12.0" } }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.3.4.tgz", + "integrity": "sha512-jwO8P3o53ygo7b5061B7BeaJ1BGv3BKZ6jroFdw/01qWry7Z+qNBlDvulzbTle5s/A0Fc1FRgsTxrke9DvsSbA==", + "cpu": [ + "wasm32" + ], + "license": "MIT", + "optional": true, + "dependencies": { + "@oxc-project/types": "0.160.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + } + }, "node_modules/@rolldown/binding-win32-arm64-msvc": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.7.tgz", - "integrity": "sha512-e3Gu3WxbNk/UqQhxqU7YIYO+9ZBvWNz3U+h/qRFosscMFzdRPbXYSaSWgSnklv2fz1TgzBTcti2z35c/7irsHw==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.3.4.tgz", + "integrity": "sha512-8adGMrNtrdzi2WD1ozhYapER59gD8Q/DV6SCKJlyG2HqULPdeQUBvMa33lTsiEYwIqTZUaIU2MmvPp5f1wbtXA==", "cpu": [ "arm64" ], @@ -1386,9 +1420,9 @@ } }, "node_modules/@rolldown/binding-win32-x64-msvc": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.7.tgz", - "integrity": "sha512-W/jg5qoRSqjsEv0+dZi4e687mcHqmVuU0P4fK6qS/xjetW2Gmc1W8j//z5nAeNcC8Ttm0hV46IjcYeuVwYhuiw==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.3.4.tgz", + "integrity": "sha512-rIMjtESdXJCIoOiUTroQ1Y1rjVDZkuUVRUxs3APX2vNv175D7TDWvzdELiIhzGq9cUNUFat+co+PTmPHPqSREg==", "cpu": [ "x64" ], @@ -1402,9 +1436,9 @@ } }, "node_modules/@rolldown/pluginutils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", - "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.1.1.tgz", + "integrity": "sha512-glFIJDvLNDtJhT9qrMFWLPbvS+skxgt4L0K8Ei2YtnhPysAJnsI7nyxSJxKj4ADeKX0OLjC4ntRkwpLOoS3rwA==", "devOptional": true, "license": "MIT" }, @@ -2485,9 +2519,9 @@ } }, "node_modules/nanoid": { - "version": "3.3.18", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz", - "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==", + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", "devOptional": true, "funding": [ { @@ -2503,6 +2537,23 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/napi-windows-process-start-time": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/napi-windows-process-start-time/-/napi-windows-process-start-time-0.1.0.tgz", + "integrity": "sha512-zHxhzKsIFu3elch3eFw69WEUGc79DFhbc3nD/WEOzWL/pFFLZRW13EHnuO0c+0YjncE5uCaS9ICHxOBXkb6vPw==", + "cpu": [ + "x64", + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20" + } + }, "node_modules/obug": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.4.tgz", @@ -2552,9 +2603,9 @@ } }, "node_modules/postcss": { - "version": "8.5.26", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.26.tgz", - "integrity": "sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==", + "version": "8.5.34", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.34.tgz", + "integrity": "sha512-P1Qzj0XXZjMda74C7qiVnBG90UKNbyNUAOeQRBW8X63RsIMV57gevRqjnkELdwtZ/S2/uQFksJhmwuN8xShLPw==", "devOptional": true, "funding": [ { @@ -2572,9 +2623,9 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.17", + "nanoid": "^3.3.20", "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" + "source-map-js": "^1.2.4" }, "engines": { "node": "^10 || ^12 || >=14" @@ -2613,13 +2664,13 @@ "license": "MIT" }, "node_modules/rolldown": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.7.tgz", - "integrity": "sha512-g0EtLvBjTUB7jhyV0S/TCup3v/XSVl45vUIGbOGU4QPiyjTenCe4mKuFvW9fEgYmS2Fo42AUssRmNuMziXdrig==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.3.4.tgz", + "integrity": "sha512-p2rq4bfBmF0M6yaR8+A89fbkBQynZI2fxUW4G07eq9kpctAkpo7q5BZ4X4Mo4XZ7HHROu33cX9PeopUFN6u+2Q==", "devOptional": true, "license": "MIT", "dependencies": { - "@oxc-project/types": "=0.148.0", + "@oxc-project/types": "=0.160.0", "@rolldown/pluginutils": "^1.0.0" }, "bin": { @@ -2629,21 +2680,22 @@ "node": "^20.19.0 || >=22.12.0" }, "optionalDependencies": { - "@rolldown/binding-android-arm-eabi": "1.2.7", - "@rolldown/binding-android-arm64": "1.2.7", - "@rolldown/binding-darwin-arm64": "1.2.7", - "@rolldown/binding-darwin-x64": "1.2.7", - "@rolldown/binding-freebsd-x64": "1.2.7", - "@rolldown/binding-linux-arm-gnueabihf": "1.2.7", - "@rolldown/binding-linux-arm64-gnu": "1.2.7", - "@rolldown/binding-linux-arm64-musl": "1.2.7", - "@rolldown/binding-linux-ppc64-gnu": "1.2.7", - "@rolldown/binding-linux-s390x-gnu": "1.2.7", - "@rolldown/binding-linux-x64-gnu": "1.2.7", - "@rolldown/binding-linux-x64-musl": "1.2.7", - "@rolldown/binding-openharmony-arm64": "1.2.7", - "@rolldown/binding-win32-arm64-msvc": "1.2.7", - "@rolldown/binding-win32-x64-msvc": "1.2.7" + "@rolldown/binding-android-arm-eabi": "1.3.4", + "@rolldown/binding-android-arm64": "1.3.4", + "@rolldown/binding-darwin-arm64": "1.3.4", + "@rolldown/binding-darwin-x64": "1.3.4", + "@rolldown/binding-freebsd-x64": "1.3.4", + "@rolldown/binding-linux-arm-gnueabihf": "1.3.4", + "@rolldown/binding-linux-arm64-gnu": "1.3.4", + "@rolldown/binding-linux-arm64-musl": "1.3.4", + "@rolldown/binding-linux-ppc64-gnu": "1.3.4", + "@rolldown/binding-linux-s390x-gnu": "1.3.4", + "@rolldown/binding-linux-x64-gnu": "1.3.4", + "@rolldown/binding-linux-x64-musl": "1.3.4", + "@rolldown/binding-openharmony-arm64": "1.3.4", + "@rolldown/binding-wasm32-wasi": "1.3.4", + "@rolldown/binding-win32-arm64-msvc": "1.3.4", + "@rolldown/binding-win32-x64-msvc": "1.3.4" } }, "node_modules/semver": { @@ -2860,16 +2912,16 @@ } }, "node_modules/vite": { - "version": "8.2.4", - "resolved": "https://registry.npmjs.org/vite/-/vite-8.2.4.tgz", - "integrity": "sha512-lfauXnrf2x0p+UoA+wXh0dgFWnUjCyG6Js95KBkgaCwUU9k0DAHI4W6Q0WCx+h+5g+Alce1y4Zi2QjjK0UvGBw==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.4.1.tgz", + "integrity": "sha512-2bl8n3+GkKBKQQR8CZC+t+3NvjWCBNh9S0Dbfu7hr7+Jjeg71jcZk7uKF6mo8GZXjIws+Nl6jhvAfHUO320VuQ==", "devOptional": true, "license": "MIT", "dependencies": { "lightningcss": "^1.33.0", - "picomatch": "^4.0.5", - "postcss": "^8.5.26", - "rolldown": "~1.2.4", + "picomatch": "^4.0.7", + "postcss": "^8.5.34", + "rolldown": "~1.3.4", "tinyglobby": "^0.2.17" }, "bin": { @@ -2882,11 +2934,12 @@ "url": "https://github.com/vitejs/vite?sponsor=1" }, "optionalDependencies": { - "fsevents": "~2.3.3" + "fsevents": "~2.3.3", + "napi-windows-process-start-time": "^0.1.0" }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", - "@vitejs/devtools": "^0.4.0 || ^0.5.0", + "@vitejs/devtools": "^0.7.1 || ^0.8.0", "esbuild": "^0.27.0 || ^0.28.0", "jiti": ">=1.21.0", "less": "^4.0.0", diff --git a/workers/api/package.json b/workers/api/package.json index bc673433..eaff6055 100644 --- a/workers/api/package.json +++ b/workers/api/package.json @@ -44,7 +44,7 @@ }, "source-map-js": "1.2.2", "zod": "4.6.6", - "vite": "8.2.4", + "vite": "8.4.1", "ws": "8.23.1" }, "allowScripts": {