Skip to content

v0.60.0

Choose a tag to compare

@Teloz1870 Teloz1870 released this 10 Oct 15:58
· 1 commit to main since this release

Two high dependency advisories below next close (CW-2026-007: sharp, source-map-js) —
upgrade. A shop's product and category links now come from one helper with three URL options, all
off by default, and urls.trailingSlash steers routing too: a storefront page asked for without its
slash gets a permanent redirect to the slash form, while /api, /admin and a POST are never
redirected; links still written by hand (the footer's contact and info links, for example) take
that one redirect until they move to the helper. /built-with-cartwright and llms.txt stop
claiming zone shipping (checkout charges the flat rate) and passkeys (there are none), and
/admin/features marks zone shipping as not implemented. The root layout's Geist pair, Brutalist's
three fonts and the Space Mono of Editorial Ink and Meridian are self-hosted, so a build no longer
asks Google for them. Every cron route checks CRON_SECRET through one constant-time helper, and a
production deploy without the secret now says so — the next release refuses its cron calls (see
Deprecated). Cancelling an unpaid order cancels its Stripe payment, and the nightly Stripe check
gets multi-currency orders and variant restocks right. Every WebMCP browser tool states Chrome's
three annotations, the AI model picker offers Sonnet 5.5 and Opus 5.5, "Translate" on a vibe page
works again, and an unknown chat model says it runs read-only. No schema change: no
pnpm db:push is needed (see Upgrading).

🔒 Security

  • sharp and source-map-js move to their patched releases (CW-2026-007). Two high
    pnpm audit --prod advisories, both below next: sharp 0.35.5 fixes GHSA-wq5f-xc86-pv6w
    (librsvg, the SVG decoder in Next's optional image optimiser) and source-map-js 1.2.2 fixes
    GHSA-68fv-2mgg-jv7q (denial of service through indexed source-map sections; reached through
    postcss at build time). Neither is known to be reachable from a request in a shipped shop:
    next.config.ts does not set dangerouslyAllowSVG, and on Vercel image optimisation runs
    outside your functions. A shop that runs next start itself (a container or its own server) does
    run sharp, so upgrade regardless. Two overrides selectors in pnpm-workspace.yaml carry the
    fix; pnpm audit --prod now reports no known advisory. The twelve next 16.3.8 entries leave
    minimumReleaseAgeExclude, because that release is now older than the three-day cutoff.
  • Every cron route checks its secret through one helper, in constant time (low — hardening).
    The eleven scheduled-job handlers under /api/cron (eight in app/, three mounted from the
    reviews and google-workspace plugins) each carried their own copy of the CRON_SECRET check and
    compared the Authorization header with !==, whose running time depends on how much of a guess
    matches. They now all call verifyCronRequest (lib/cron/auth.ts), which hashes both sides and
    compares them with timingSafeEqual; the two machine-only admin routes that take the same bearer
    (/api/admin/run-pending-migrations, /api/admin/reset-demo-data) compare through the same
    cronBearerMatches it uses. No exploit is known, so there is no advisory id. What stays open:
    without CRON_SECRET these routes answer anyone — backups, audit-log and token deletion,
    cart-recovery mail, FX refresh, the SEO snapshot. That is unchanged in this release (see
    Deprecated), so set CRON_SECRET in your production environment now. A production deploy
    without it now says so on every admin page and in the setup guide (/admin/integrations), and
    each server instance logs a warning on its first cron call. A test fails if a route under
    app/api/cron does not carry one verifyCronRequest guard per handler or reads CRON_SECRET
    itself, or if ===/!== compares against a Bearer ${…} template literal anywhere in app/,
    lib/, plugins/ or components/ (a bearer built any other way, or held in a variable first,
    is not caught by that scan).

✨ Added

  • A shop gets one place its public links are built from (lib/urls.ts) and three URL
    options in brand.config.ts — keep an imported address, end every path in /, drop the
    language prefix on a single-language shop — all off by default, so every existing link is
    unchanged; the engine's product and category links and the design packs adopt the helper
    below, and links still written by hand follow in later releases (docs/urls.md).
  • The engine's product and category links now go through that helper — product page, category
    page, product card, footer, cart, sitemap, catalogue feed, /pricing.md, the search API,
    IndexNow and the review pages — so the URL options reach them. With the options unset every
    link is the same string as before; permalinks does not reach them yet (they pass the slug
    alone until the release that serves a permalink). A stored permalink is the path without the language prefix,
    and one with a . or .. segment is ignored for the pattern. A test now fails on a
    product or category link built by hand outside the helper.
  • The shipped design packs link products and categories through the same helper — every
    homepage's product and category tiles, and the Halo and Crema product cards — and the test
    that refuses a hand-built link now reads designs/ as well. With the options unset every link
    is the same string as before. The test also refuses a helper call that hands over more than
    the slug ({ slug, permalink } or a spread), so a permalink cannot reach one link early.
  • urls.trailingSlash: true now steers routing as well as links: a storefront page asked for
    without its slash (GET /da/product/x) answers with a permanent redirect to /da/product/x/,
    the way a migrated WordPress address is written. proxy.ts does it rather than Next, whose own
    redirect (next.config.ts now sets skipTrailingSlashRedirect beside trailingSlash) would
    also have sent every /api path to its slash form — and Vercel Cron, Stripe's webhooks and an
    OAuth callback do not follow a redirect. So /api, /admin, /oauth, /icon, /og,
    /.well-known and files answer with or without the slash, and nothing registered elsewhere
    has to change; a POST is never redirected. Merchant redirects match a source in either form
    and the engine's own redirects (/da/om-os, the trust-page aliases, the legacy Danish paths)
    give their destination the slash, so each lands in one hop; the sitemap's entries carry it too,
    the --profile site sitemap's included. A slug with a dot (v1.2-noter) is linked, redirected
    to and listed without the slash, like a file, because the proxy never sees a dotted path.
    Off — the default — Next receives exactly the config it did before (docs/urls.md).

Changed

  • /built-with-cartwright, llms.txt and /admin/features stop promising what the engine does
    not do: shipping zones are marked not implemented and leave the tour, because checkout still
    charges the flat rate (which /admin/shipping now says above the zone editor, with the fee every
    order pays), the passkey line is gone, and the logo generator is described by what it does rather
    than by a model id.
  • The model picker for the AI assistant (/admin/integrations → AI) now offers Claude Sonnet 5.5
    and Claude Opus 5.5 instead of Sonnet 4.5 and Opus 4.5; Haiku 4.5 stays the default. Both new
    models get the full admin tool set and are priced in the usage meter (a model id the engine does
    not know still falls back to read-only tools, so every listed model is now pinned against both
    tables). A shop that saved a model the list no longer offers keeps it, shown as "saved — not in
    the current list" until someone picks a current one and saves.
  • Dependencies moved to their newest releases inside the current majors, each public for at least
    three days.
    ai 7.0.127 with @ai-sdk/anthropic 4.0.71, @ai-sdk/google 4.0.87,
    @ai-sdk/openai-compatible 3.0.62 and @ai-sdk/react 4.0.130, @modelcontextprotocol/sdk
    1.32.0, next-intl 4.14.9, @google/genai 2.27.0, @upstash/ratelimit 2.2.0 with
    @upstash/redis 1.39.0, lucide-react 1.50.0, resend 6.32.0, and the dev packages tsx
    4.23.15, vite 8.3.2 and @typescript-eslint/parser 8.71.0. No direct dependency moved a major.
    The lint-time copy of brace-expansion 1.x that eslint pulls is pushed to 1.1.21, which the
    three brace-expansion advisories now also cover. pnpm audit --prod reports no known
    advisory; one dev-only advisory stays open, because no fixed release exists yet (braces 3.0.3,
    GHSA-vfj7-8cjw-p6xm, reached only through eslint-config-next at lint time).
  • The root layout's Geist and Geist Mono are self-hosted. They load through next/font/local
    from app/fonts/ instead of next/font/google, so a build no longer asks Google for them — that
    fetch failed builds at random (three red builds in one day, each green on retry with the same
    code). Every file Google served is kept: the latin face is preloaded as before, and the other
    subsets (latin-ext, Cyrillic, Vietnamese, symbols — №, ł, box-drawing) sit in a faces.css
    next to it and load only when a page shows one of their characters. The family names stay Geist
    and Geist Mono (design packs name them in their tokens), and pages render the same — the
    fallback faces carry the metrics next/font/google used. Each font directory carries its licence
    and a fonts.json with the source URL and a sha256 per file. node scripts/fonts/fetch.mjs <Font> '<options>' <dir> [families] fetches another family the same way, with Next's own option rules;
    the remaining design packs move over in later releases.
  • Every WebMCP browser tool now states Chrome's three annotations. Chrome's registerTool
    reads readOnlyHint, consequentialHint (the action is significant, real-world or
    non-reversible, so the browser may ask the human first) and untrustedContentHint (the output
    carries text the site does not vouch for). Until now only four tools set any hint, and the three
    tools that change the customer's cart set none. Now add_current_product_to_cart,
    update_cart_item_quantity and remove_cart_item are marked consequential; search_products,
    get_cart, list_visible_products and Crema's calculate_brew_ratio are marked read-only;
    navigate, filter_products and go_to_checkout, which only change the page, are marked
    neither. untrustedContentHint is false everywhere, because no tool returns customer-written
    text such as reviews. No tool name, schema or moat binding changed. A test mounts every WebMCP
    surface and fails if a tool leaves a hint out, if a tool outside the cart-changing set is marked
    consequential, or if a tool registers without going through registerWebMcpTools
    (docs/webmcp.md → "Tool annotations").

Deprecated

  • A production deploy without CRON_SECRET will refuse cron calls from the next release.
    Today the routes under /api/cron let a call through when no CRON_SECRET is set, because
    Vercel Cron sends its Authorization header only once the secret exists — so anyone can call
    them. From the next release a production deploy (VERCEL_ENV=production or
    NODE_ENV=production) without the secret refuses those calls instead, and its scheduled jobs stop
    until it is set. Set it now: generate one with openssl rand -hex 32, add it as CRON_SECRET to
    the production environment (Vercel → Settings → Environment Variables) and redeploy; Vercel Cron
    then sends it on its own. next dev stays open.

🛠 Fixed

  • Archivo, Space Grotesk and Space Mono are self-hosted, so a build no longer asks Google for
    them.
    Brutalist loads all three from app/fonts/<family>/ (one font.ts per family), and
    Editorial Ink and Meridian load their Space Mono from there too, so those fetches can no longer
    fail a build at random ("Failed to fetch … from Google Fonts"). Measured against the previous
    build on seven homepages (Brutalist, Editorial Ink, Meridian, Nocturne, Engineered, Crema and the
    default design), each page fetches the same font files (same bytes, same count), preloads the same
    set, and the settled page renders the same at 1440 and 390 px. What changes is order: Next lists a
    page's font preloads alphabetically by file name, so Space Grotesk and Space Mono are now requested
    last and Archivo a little later than before, and on a cold first load their text can show its
    size-matched fallback for a moment. Families
    another pack still loads from Google (Fraunces, Hanken Grotesk, Manrope, Plus Jakarta Sans, Sora)
    stay on Google until their last pack moves with them: a self-hosted copy beside a Google one
    would make the browser download the same file twice, and a test now refuses that. Editorial Ink
    and Meridian's mono token reads --font-space-mono (was --font-spacemono / --font-mer-mono);
    a customised copy that reads the old name with its "Space Mono" fallback still gets the font.
    A test keeps the files that use next/font/google from growing. scripts/fonts/fetch.mjs now
    replaces a font directory all or nothing — a failed download leaves the installed files as they
    were, and a complete run removes the previous run's files that nothing names any more — writes a
    variable font's shared file once, and names format() after the file type.
  • "Translate" on a vibe page works again. The admin theme form's translate button
    (POST /api/admin/vibe/translate) asked Google for gemini-1.5-flash, a model Google shut down
    on 2025-09-29, so it failed for every shop. It now uses gemini-2.5-flash, the model the media
    alt-text job already uses; both read it from one constant (GEMINI_TEXT_MODEL in
    lib/ai/gemini.ts). The route also sent Google the encrypted Gemini key when the key was saved
    in /admin/integrations; it now reads the key through the same helper as every other Gemini
    call, which decrypts it and falls back to GOOGLE_GEMINI_API_KEY. A test now fails if a model id
    Google has shut down (the Gemini 1.0 and 1.5 families, 2.0 Flash, the Live 2.5 preview) appears
    anywhere in the shipped source.
  • An unknown AI model is no longer silent. A chat model the engine has no capability row for
    runs with read-only tools and an 8k context window — on purpose, so an untested model never gets
    write tools. Until now nothing said so: the chat simply could not change anything. The AI form in
    /admin/integrations now says "Not a known model: tools run read-only and the context window is
    limited to 8k tokens." under the Ollama model field and under a saved Anthropic model the list no
    longer offers, and a typed Ollama model shows its real tier instead of always "Read-only". The
    fallback itself is unchanged. The capability table moved to lib/ai/model-capabilities.ts (plain
    data the form can read); lib/ai/client.ts re-exports it, so existing imports keep working.
  • Cancelling an unpaid order also cancels its Stripe payment. Until now the payment stayed
    open: a customer still on the payment page could finish 3-D Secure and pay for an order you had
    cancelled, and the money sat in Stripe with only an audit row (orders.payment_not_applied) to
    say so. The admin status form, the bulk action and orders.update_status now cancel the order's
    PaymentIntent right after the status is written, and the order timeline says what happened. A
    payment the customer already made is never cancelled — the note says to issue a refund from the
    order page instead, since cancelling an order does not return money. If Stripe cannot be reached
    the order is cancelled anyway, and the note says to cancel the payment in the Stripe Dashboard.
    Each attempt is audited as orders.cancel_payment_intent; the tool's result carries the outcome
    as paymentIntent.
  • The nightly Stripe check no longer flags multi-currency orders that were paid correctly.
    The reconcile cron (/api/cron/reconcile-stripe), which catches payments the webhook missed,
    compared what Stripe charged with the order's base-currency total, so an order charged in EUR
    went to "Needs review" although the customer paid exactly what they were shown. It now checks
    amount and currency against the order's snapshotted rate — the webhook's own check, from one
    shared helper (expectedStripeCharge in lib/money.ts). Its header comment no longer claims it
    runs every 15 minutes; vercel.json runs it once a day at 03:00 UTC.
  • An unpaid order the nightly check cancels gives stock back to the right variant. When Stripe
    reported the payment cancelled, the cron returned every line's quantity to the product, while
    checkout takes a variant line's stock from the variant — so the variant stayed short and the
    product gained stock it never lost. It now uses the same restock as the rest of the shop, and
    only when it is the one that moves the order from awaiting payment to cancelled, so a second run
    never restocks twice.

Upgrading

No schema change: no pnpm db:push is needed, and no flag was added. Run pnpm install so the
sharp and source-map-js overrides land (CW-2026-007). Set CRON_SECRET in your production
environment before you take the next release
— from then on a production deploy without it
refuses its cron calls and its scheduled jobs stop (see Deprecated). The URL options stay off
unless you set them; of the three, only trailingSlash steers routing yet, so keep permalinks
and localePrefix at their defaults (false, "always") on a live shop (docs/urls.md). A shop that turned shippingZones on
still charges the flat rate at checkout, as it always did; the flag is now marked not implemented.