Skip to content

v0.67.0

Choose a tag to compare

@Teloz1870 Teloz1870 released this 09 Nov 00:04
· 1 commit to main since this release

Upgrade if you host your shop yourself: next moves to 16.4.5, which fixes seven moderate Next.js
advisories, two of which reach a self-hosted shop (CW-2026-015). Also in this release: an agent can save
an order's tracking and tell the customer (orders.set_tracking), the first slices of a Shipmondo plugin
(default off, not yet confirmed against a live Shipmondo account), and returns on one order line can no
longer add up to more than was ordered. No schema change: no pnpm db:push is needed.

🔒 Security

  • next moves to 16.4.5, which fixes seven moderate Next.js advisories (CW-2026-015). Two reach a self-hosted
    shop, whether it runs next start or the Dockerfile's standalone node server.js; a shop on Vercel is not
    exposed to them. The image optimiser at /_next/image, which the engine serves
    through images.remotePatterns, could be made to process an SVG even with SVG support off, which is the default
    (GHSA-7qx7-33qx-rqx2). A route that returns a fetched response unchanged could mix up responses behind an
    HTTP/1.1 proxy (GHSA-pc58-hwjq-p385); no engine route does that. The other five concern use cache, Cache
    Components and Edge routes, which the engine does not use. eslint-config-next moves with it. 16.4.5 was less than a
    day old when it was taken in, so pnpm-workspace.yaml exempts its exact versions from the three-day cooldown until 2026-11-06 18:01 UTC. To
    take it in your own shop: copy that minimumReleaseAgeExclude block, then
    pnpm add -E next@16.4.5 && pnpm add -D -E eslint-config-next@16.4.5. Every next below 16.4.5 is affected,
    even where pnpm audit is clean: GitHub's advisory data lists four of the seven as fixed in earlier versions,
    but the release notes put all seven in 16.4.5.

Added

  • An agent can now save an order's tracking: orders.set_tracking. After booking a label outside
    the shop — at a carrier, or through Shipmondo's own MCP server — Claude can write the carrier, tracking
    number, link and expected delivery days back on the order, and with notifyCustomer: true email the
    customer that it has shipped. Before this, only the admin order page could, so a label booked by an
    agent left the customer without a tracking number. It writes through the same code as the admin
    tracking form, replaces the whole tracking as that form does, refuses a quote, and is confirmed
    first in the admin chat.
  • Shipmondo plugin, first slice (plugins/shipmondo, flag shipmondo, default off, not implemented
    yet).
    Shipmondo becomes the engine's shipping aggregator, on the model of Shipmondo's WooCommerce
    plugin: a paid order goes to Shipmondo as a sales order, the shop books the label there for 50+
    carriers, and the tracking comes back to the order. This slice holds the parts every later one needs:
    a typed client for the Shipmondo API v3 (types generated from Shipmondo's own OpenAPI spec by
    pnpm gen:shipmondo-types, cut to the endpoints the plugin calls), the order → sales-order mapping,
    and HS256 verification of Shipmondo's signed webhooks. Nothing calls it yet, so no shop changes; the
    flag says so in /admin/features and claims nothing in llms.txt. Credentials: SHIPMONDO_API_USER
    / SHIPMONDO_API_KEY (see .env.example).
  • Shipmondo: paid orders reach Shipmondo (/admin/shipmondo, still behind the shipmondo flag). The
    page shows whether Shipmondo is connected and the last 30 days of paid orders with their state there;
    an order is sent one at a time or all at once. /api/cron/shipmondo-orders sends what has not gone
    yet (CRON_SECRET; not scheduled in vercel.json, because Vercel's Hobby plan runs crons only daily, so
    call it from a scheduler every few minutes). An order is sent once: one run claims it at a time, its
    timeline records it, and a sales order already in Shipmondo is adopted only when it carries this
    order's own tag (cartwright:<order id>). Orders an operator marked paid are sent too.
    A refused send by hand is written on the order with Shipmondo's reason.
  • Shipmondo: a paid order goes to Shipmondo the moment it is paid. lib/orders/on-paid.ts, the one
    door every paid order passes, now schedules the paid-order hooks of optional modules
    (lib/orders/paid-hooks.ts), and the shipmondo plugin provides that seam. The work runs after the
    response (after()), so a slow or failing Shipmondo can neither delay the Stripe webhook's answer nor
    fail the payment; a refusal is written on the order once, and the sweep retries. A scaffold without the
    plugin gets paid-hooks.static.ts, a no-op, in its place.
  • Shipmondo: a label booked in Shipmondo brings its tracking back. POST /api/shipmondo/webhook
    takes Shipmondo's "Shipments: create" webhook, registered from /admin/shipmondo and signed with
    SHIPMONDO_WEBHOOK_KEY (HS256; nothing unsigned reaches the database). Shipmondo wants a 200 within
    3 seconds and documents no retries, so the route answers at once and applies the shipment after the
    response; the sweep then asks Shipmondo for the shipments of every sent order still awaiting one, so a
    delivery that was missed is fetched rather than lost. The tracking is saved through
    the same code as the admin tracking form, a paid order moves to shipped through the operator door, and
    the customer gets the shipping email. A Shipmondo account often holds other webshops' orders too, so a
    shipment is applied only when Shipmondo itself lists it as an outbound fulfilment, not cancelled, on
    the sales order this shop created (a return label never replaces the tracking). Each applied shipment is remembered by its id, so a repeated delivery changes nothing, even a
    late one after a newer parcel; a second parcel updates the tracking without a second email. The flag stays "not implemented" until a live Shipmondo
    sandbox run has confirmed the webhook's envelope.

Fixed

  • orders.set_tracking no longer tells a customer of a cancelled, refunded or unpaid order that it is on
    its way.
    notifyCustomer: true is refused for those orders (the tracking alone can still be saved),
    and an expected delivery window that ends before it starts is refused.
  • The shipping email escapes what it shows. The carrier, tracking number, tracking link, the
    customer's name and the product names went into the email's HTML as they were; they are now
    escaped, and a tracking link that is not http(s) is left out.
  • Returns on the same order line can no longer add up to more than was ordered. Each return was
    checked only against the ordered quantity, so two returns of 3 on a line of 3 put 6 back in stock. A
    new return may now name only what is left of the line, and a rejected one gives its units back. Two
    overlapping returns that already exist restock no more than the line: the one that would go over is
    refused when it is received, and the message says how many can still come back.
    Because a return now holds its units, the panel offers Reject on an approved return and Receive on one
    refunded before the goods arrived, which stays refunded. From an old tab, a rejected return can no
    longer be received or refunded, and a received or refunded one can no longer be rejected.
    A refunded return that would put back more than was ordered is told so, and that it cannot be
    rejected, so the stock is corrected by hand.

Upgrading

No schema change: no pnpm db:push is needed. The Shipmondo plugin is off, and /admin/features offers no switch
for it until it has been tested against a live Shipmondo account (docs/shipmondo.md).