Repository navigation
Shops that ship parcels get the first half of a real delivery step: with shippingZones on, checkout charges the
zone's rates and lets the customer choose between them. Semantic product search works again on a shop with a
Gemini key (Google shut down the old default embedding model in January). With Resend configured in production, a
mail Resend refuses is no longer counted as sent, and a refused sign-in or password-reset link is no longer written
to a file on the server. API keys get tighter discount powers. This release
changes the schema: run pnpm db:push (three columns on ShippingRate, seven on Order), then
pnpm embeddings:backfill once if the shop uses semantic search.
🔒 Security
-
honoand@hono/node-servermove to patched lines (seven advisories published 2026-11-12). Both
arrive only through@modelcontextprotocol/sdk, and the engine never loads them:/api/mcpuses the
SDK's web-standard transport (server/webStandardStreamableHttp.js), and only the SDK's Node transport,
which the engine does not import, pulls in@hono/node-server. Theoverridesinpnpm-workspace.yaml
raise thehonofloor from 4.13.5 to 4.13.16 and add one for@hono/node-serverat 2.1.6; the lockfile
resolveshono4.13.18 and@hono/node-server2.1.8, each public for at least three days.honobelow 4.13.16: GHSA-4m76-xfj5-7975 (mount()could forward a path past middleware scoped inside
the mount prefix), GHSA-h7mg-cq63-vhpq (RegExpRouter skipped wildcard middleware for some routes),
GHSA-46wx-v44x-9hh2 (csrf()did not checktext/pingrequests), GHSA-4h7h-rv7c-7m2v
(validator('form')skippedmultipart/form-datawith extra parameters), all moderate, and
GHSA-3gg2-335m-rxc6 (thecsshelper could be made to inject HTML), low.@hono/node-server2.x below 2.1.6: GHSA-qv5m-9pm6-hqp3 (anECONNRESETduring a WebSocket upgrade
crashed the process) and GHSA-jpvv-r467-5p4w (a backslash in the path was read as a separator, past a
reverse proxy's path rules), both moderate.
pnpm audit --prodgoes from nine findings to two; the two left are the build-timeglobandminimatch
advisories under@sentry/nextjsnamed under Changed. To fix it in your own shop: copy the two selectors
into yourpnpm-workspace.yamloverridesand runpnpm install.
Added
- Checkout's delivery step: the customer chooses how the order is sent (SHIP0-b, part 2a). When the
zone for the shop's country has more than one rate that fits the parcel, checkout lists them (name,
delivery time, price) and the order summary follows the choice; the cart shows "Shipping from X". The
order records the choice (rate, name, carrier, shipment template) and Shipmondo gets the chosen rate's
template, else the shop's default. A choice that is no longer an option is refused, never swapped.
Pickup rates are held back (neither offered nor charged) until the pickup-point picker (part 2b).
Needspnpm db:push(seven new columns onOrder). - A shipping rate now says how the parcel reaches the customer. Each rate in
/admin/shippinghas a
delivery type (to the door, or a pickup point), an optional carrier code and an optional shipment
template id. A pickup rate needs a carrier, because it names whose pickup points to offer. The delivery
step above reads these fields: checkout offers the delivery rates and records the chosen rate's carrier
and shipment template; pickup rates are held back until the pickup-point picker (part 2b). Needs
pnpm db:push(three new columns onShippingRate). - Shipmondo: orders can carry a default shipment template (
SHIPMONDO_SHIPMENT_TEMPLATE_ID). A first
run against Shipmondo's sandbox showed that a sales order without a shipment template cannot be booked
in one click or by an automation: Shipmondo answers "Shipment template is not set up". With the id set,
every sales order is created with that template;/admin/shipmondolists the account's templates with
their ids and says when the chosen one does not exist. Unset, nothing changes. - Shipmondo: sending by hand (
SHIPMONDO_SEND_MODE="manual"). A shop that sends some orders
another way (a supplier ships them, the customer collects them) can keep every order out of
Shipmondo until someone sends it from/admin/shipmondo: then neither payment nor the sweep
sends anything, while tracking for the orders that were sent still comes back. Unset, the
plugin sends at payment as before./admin/shipmondosays which mode the shop is in. - Bounded API-key discounts (
apiDiscountBounds, runtime flag, default off). With it on, a
discount code an API key creates (discounts.create,marketing.create_campaign, over REST or
MCP) must setusageLimitandvalidUntil, or nothing is created. A code above
policies.apiDiscountCaps(default 50 % and 50000 øre = 500 kr) is created switched off, and the
response says so; a campaign with such a code leaves the banner and preview mail alone, and the
key cannot switch the code on withdiscounts.toggle. The admin chat and/adminare unchanged.
marketing.create_campaignalso takes an optionalusageLimit, stored when given. Off, nothing
changes.
Changed
- The API-key discount bounds refuse with a 4xx and a code, not a 500 (TOOL-REFUSAL-4XX-b). With
apiDiscountBoundson, an API key'sdiscounts.createormarketing.create_campaignwithoutusageLimit
orvalidUntilnow answers409discount_limit_and_expiry_required, and a key that tries to switch on
(discounts.toggle) or re-price (a campaign on a live code) a code above the caps answers409
discount_above_cap, each with its message indetail; they used to be a500"internal service error".
409, not422: the body is valid against the published schema, and422staysvalidation_failed. The
toggle's message now names the cap instead of the code's stored value. A campaign's draft code that
collides with one created a moment earlier is409discount_code_exists, as indiscounts.create. Both
tools now cap the code at 64 characters (after the trim), so a refusal cannot echo an arbitrarily long
string; a longer code is a422.discounts.togglekeeps no cap, so a longer existing code stays reachable. - A tool's business refusal is a 4xx, not a 500 (TOOL-REFUSAL-4XX). Over REST (
POST /api/v1/tools/<name>)
and MCP,discounts.createon a code that already exists now answers409withcode: "discount_code_exists",
marketing.create_campaignon a switched-off code409withcode: "discount_code_switched_off", and
discounts.toggleon an unknown code404withcode: "discount_not_found". Each keeps its own message in
detail(MCP: theisErrortext andstructuredContent.error), where it used to be a500
tool_execution_failedwith the generic "internal service error" text and "Retry later". A caller that
matched on500for these refusals must match the new status orcode; retrying them unchanged is refused
again. Every other handler failure is still a500with the generic text, so no handler, database or provider
detail crosses the boundary. The OpenAPI document now lists404and409for every tool. Tools raise it with
ToolRefusal(lib/tools/refusal.ts); other tools' refusals still answer500until they are converted. - Node 22.12 is the floor (
engines.nodeis now>=22.12 <27). Tailwind 4.3.4 and laterrequire()
an ES-only package as it loads, which Node 22.11 and earlier cannot do: there Tailwind's PostCSS plugin fails
to load withERR_REQUIRE_ESM, so the CSS cannot build, whileenginesstill allowed those versions. Only a shop building on Node 22.0–22.11 is affected;
it needs a later 22, or 24 or 26. Vercel and the container image already ran a newer Node. - Checkout charges the shop's shipping rates (SHIP0-b, part 1). With
shippingZoneson in Features and a
zone for the shop's country (policies.country), an order pays that zone's cheapest rate for the parcel's
weight, and the cart, checkout, agent quotes and ACP sessions show the same price (checkout names the rate); once a
customer picks another rate in checkout's delivery step (under Added), the order pays that one.
With zones off, or no zone for the country, nothing changes: the flat rate, byte for byte. Zones that cannot
be read now refuse the order instead of silently charging the flat rate (PAY1). The flag reads its runtime
value, not the build-time one. Choosing between rates is the delivery step under Added. - Dependencies moved to their newest releases inside the current majors, each public for at least
three days.ai7.0.164 with@ai-sdk/anthropic4.0.98,@ai-sdk/google4.0.113,
@ai-sdk/openai-compatible3.0.86 and@ai-sdk/react4.0.168,@modelcontextprotocol/sdk1.32.2,
@sentry/nextjs10.78.0,@upstash/redis1.41.0,botid1.5.12,lucide-react1.70.0,resend
6.37.0,tailwindcssand@tailwindcss/postcss4.3.5,postcss8.5.32,vite8.3.6,
@playwright/test1.65.0 and@typescript-eslint/parser8.72.1. No schema change and no code
change: a shop picks them up withpnpm installafter pulling.next16.4.5 is now older than
the three-day cutoff, so its exception inpnpm-workspace.yamlis gone.
Two moderate advisories stay open, both in build-time code:glob13 (GHSA-3g3m-2fjr-6pw4) and
minimatch10 (GHSA-g3hv-75wg-m249) come in through@sentry/nextjs's source-map upload plugin,
and the fixes exist only in the next majors (glob 14, minimatch 11), which no@sentry/nextjs10
release accepts yet.minimatch10 is also in the development-only ESLint toolchain
(@typescript-eslint/typescript-estree), so it leaves the lockfile only when both move. - The media library records the Gemini model that actually wrote an image's alt text. With
altTextAion,MediaAsset.aiModel(shown as "AI-model" in/admin/media/<id>) now stores the
modelVersionGemini reports in its answer instead of the model name the engine asked for, which
Google can serve with a different model (it re-pointsgemini-2.5-flashon 2026-12-01). When the
answer has nomodelVersion, the requested name is stored as before. No schema change; rows
written earlier keep their value. marketing.create_campaignnow also requiresdiscounts:write. The campaign issues (or updates) a
discount code, whichdiscounts.createguards withdiscounts:write, so a key holdingmarketing:write
alone was a way round that scope. A tool can now name further scopes beside its own (extraScopes), and
every surface enforces them as it does the first:POST /api/v1/tools/<name>answers403naming the
missing scope, MCPtools/listno longer lists the tool to such a key, and the admin chat (which holds
both) is unaffected. The catalogue (/api/v1/tools,?schema=true,/api/v1/tools/<name>) shows the
extra scopes asextraScopes, and/openapi.jsonasx-cartwright-extra-scopeson the operation; tools
without any keep exactly the fields they had.
Fixed
- The magic-link form says why no link came. It looked for "rate" in the error Auth.js
returned, but Auth.js only ever returnsConfigurationthere, so a customer who asked too often
and one whose link the mail provider refused both saw "Something went wrong". The provider now
tells the form which it was (lib/auth/magic-link-errors.ts): "Too many requests. Wait a
moment." for the per-address limit, and the new "We could not send the link. Try again later."
(Login.magicSendFailed, English and Danish) for a refused send. Anything else keeps the generic
message. Neither answer depends on whether the address has an account. GET /api/v1/tools?scope=also lists the tools that need the scope on top of their own. The
filter matched only a tool's primaryscope, so?scope=discounts:writeleft out
marketing.create_campaignalthough a key now needs that scope to call it. A tool is listed when
the scope is its primaryscopeor one of itsextraScopes, in both the compact catalogue and
?schema=true; without?scope=the catalogue is unchanged.marketing.create_campaignno longer revives an expired discount code or makes a dated one endless
(CAMPAIGN-EXPIRED-REVIVE). A campaign withoutvalidUntilon an existing, active code wrote
validUntil: null, so an expired code became redeemable again and a dated one never expired. An omitted
validUntilnow leaves the stored date alone, and a campaign on a code whosevalidUntilhas passed is
refused before it writes anything (409discount_code_expired; no discount, banner or preview).marketing.create_campaignno longer switches a discount code back on that the owner switched
off. An API key with onlymarketing:writecould revive any disabled code by naming it in a
campaign. The tool now refuses such a code before it writes anything (no discount, banner or
preview), so it must be turned on in/admin/rabatkoderor withdiscounts.toggle; an active
code is updated as before. A percent campaign above 100 is refused, asdiscounts.createalready
did. The tool's description and the MCP instructions no longer promise thataudit.revertcan
undo a campaign's steps, which it never could.- Semantic product search works again on a shop with a Gemini key. The engine's default embedding
model wastext-embedding-004, which Google shut down on 2026-01-14: every embedding call failed,
and product search (the storefront search and theproducts.searchtool) ran on word matching
alone, with nothing in the admin saying so. The default is nowgemini-embedding-2,
asked for 768 dimensions (the size the pgvector column and the Ollama default already use).
After pulling, runpnpm embeddings:backfillonce: vectors are stored per model, so the
catalogue is re-embedded with the new one (a product is also re-embedded whenever it is saved), and
search stays on word matching until then. A shop that setGEMINI_EMBED_MODELkeeps its model and
that model's own dimensions; if the override names a model Google has shut down, the server log now
says which day it closed and to unset the override. The override is now trimmed, and a blank one
counts as unset. No schema change. - The v0.67.0 notes said
/admin/shipmondolists 30 days of paid orders; it lists 14, the same
window the sweep sends from. Corrected in place. - A receipt or order mail that Resend refuses is no longer counted as sent. With Resend
configured, a failed send was written to.mail-previews/on the server instead, so the order
was stamped as having its receipt, "Resend receipt" in admin said it went out, and a shipping
notification got a "sent" note, though the customer received nothing. The order receipt and the
shipping, refund, return and owner-order mails now pass Resend's error to their caller and log
it on the server: the receipt stamp (confirmationEmailSentAt) stays empty, "Resend receipt"
and "Send shipping notification" answer with an error, a Shipmondo shipment notes that its
shipping email could not be sent, and the order still becomes paid. Receiving or refunding a
return still succeeds when its mail fails; the log line is the trace. Outside production, or in
production without a Resend key, mails are written to.mail-previews/as before. - A sign-in link or password-reset link that Resend refuses is no longer written to disk. With
Resend configured, a failed magic-link or password-reset mail was written to.mail-previews/on
the production server, link and raw token included, and the customer was told to check an inbox
nothing reached. Both mails now pass Resend's error to their caller, log it without the link, and
write no file. The magic-link form answers with its error message instead of "check your inbox"
(Auth.js turns a thrown send into an error answer). The forgot-password answer is unchanged and
the same whether the account exists or the send failed; the failure is logged on the server.
Outside production, or without a Resend key, both mails are written to.mail-previews/as before.
Upgrading
-
Run
pnpm db:pushafter pulling:ShippingRategains three columns andOrderseven, each nullable or
with a default, so existing orders read as "no delivery choice recorded" and existing rates as door delivery
with no carrier or shipment template. The Prisma client names every column, so the new code fails on order
and shipping queries against a database that has not been pushed.
On Turso, whichprisma db pushcannot reach (P1013), run these statements throughturso db shell
(ShippingRatefirst, thenOrder):ALTER TABLE "ShippingRate" ADD COLUMN "kind" TEXT NOT NULL DEFAULT 'delivery'; ALTER TABLE "ShippingRate" ADD COLUMN "carrierCode" TEXT; ALTER TABLE "ShippingRate" ADD COLUMN "shipmentTemplateId" INTEGER; ALTER TABLE "Order" ADD COLUMN "shippingRateId" TEXT; ALTER TABLE "Order" ADD COLUMN "shippingMethod" TEXT; ALTER TABLE "Order" ADD COLUMN "shippingCarrier" TEXT; ALTER TABLE "Order" ADD COLUMN "shipmentTemplateId" INTEGER; ALTER TABLE "Order" ADD COLUMN "pickupPointId" TEXT; ALTER TABLE "Order" ADD COLUMN "pickupPointName" TEXT; ALTER TABLE "Order" ADD COLUMN "pickupPointAddress" TEXT;
-
Run
pnpm embeddings:backfillonce if the shop uses semantic search with a Gemini key (see Fixed);
search runs on word matching until it has. -
Node 22.12 or later is required (see Changed).
-
An API key that runs
marketing.create_campaignneedsdiscounts:writeas well asmarketing:write.
A key's scopes cannot be edited, so mint a new key with both in/admin/api-keys(and revoke the old
one) before deploying, or the campaign call gets403.