Repository navigation
Rolls up the v4.9 line (4.9.0, 4.9.1 and 4.9.2) and contains everything in v4.8.34.
Unchained Engine v4.9
Minor
- Breaking: graphql-yoga 6 (
@unchainedshop/api): thegraphql-yogapeer is now^6.0.1, and the graphql-js engine swap is gone because yoga's own executor applies argument defaults again. SeeMIGRATION.md. - Breaking (Stripe plugin):
stripe23 and API version2026-10-28.endive(@unchainedshop/plugins): intents useallowed_payment_method_types, and apayment_method_typestransaction context is sent asallowed_payment_method_types, which the API version would otherwise reject. SeeMIGRATION.md. - Node.js 24.22.1+ or 26.12.1+ required (
@unchainedshop/platform): the engines range moves to the patched release of each supported line. - All dependencies upgraded to the latest release of their current major.
- web-push 4 is accepted (
@unchainedshop/plugins): the optional peer range now allows the ESM-onlyweb-push4. - Fastify apps start with
@fastify/session11.1.6 (@unchainedshop/api): the session store now implements the conditionalcompareAndSetwrite that 11.1.6 (GHSA-2hw7-jxfh-4rm3) requires of custom stores; before, the Fastify adapter failed at startup with "the store must implement compareAndSet". - Express temp uploads reject oversized multipart array indexes (
@unchainedshop/api): the upload parser limitsfieldArrayIndexLimitto 100, and themulterpeer requires 2.3 or later.
Security
- Breaking: PayPal orders are bound to the order payment they pay (
@unchainedshop/plugins):charge()accepted any completed PayPal order with the right amount and currency, so one PayPal payment could be replayed to pay any number of equal-priced orders. Storefronts now put the order payment id intopurchase_units[0].custom_idwhen they create the PayPal order; other PayPal orders are refused before anything is captured. The SDK is loaded through its default export, so PayPal charges work again:orderswas undefined in its ESM namespace and every charge failed. SeeMIGRATION.md. (GHSA-pf69-hxqg-8q5j) - Only privileged users change privileged users (
@unchainedshop/api): a role withmanageUserscould give itself or anybody the admin role or take it away, and a role that may update users could set an admin's password, change their e-mail or username, remove or impersonate them. Changing a user whose roles grant the newmanagePrivilegedUsersaction (admin only by default), or giving a user such roles, now requires that action too. SeeMIGRATION.md. (GHSA-pprf-rq6p-4h6h) - Breaking:
setPasswordrefuses the caller's own account (@unchainedshop/api): it sets a password without the old one, which a hijacked session could use to keep the account. UsechangePasswordor the password reset flow. - Breaking: writing
User.metaneeds the newupdateUserMetaaction (@unchainedshop/api): customers could write their ownmetathroughupdateUserProfile, which the documented B2B pricing pattern trusts. Only the admin role has the action by default. - Breaking:
PaymentProvider.configuration,DeliveryProvider.configurationandWarehousingProvider.configurationrequire the matchingmanage*action (@unchainedshop/api): stored provider credentials were readable by anyone who could reach a provider throughProduct.simulatedDispatchesor a cart's supported providers, which includes anonymous callers. confirmMediaUploadonly accepts the caller's own upload tickets (@unchainedshop/api): it took a file id from the client with no ownership check, so any logged-in user could rewrite the type and size of any file record.- The MCP
order_managementTOP_CUSTOMERS action strips confidential service hashes (@unchainedshop/api): it returned raw user documents includingservices— password hashes, plaintext reset tokens and the hashed access token — unlike every sibling normalizer. - A new password ends the sessions established with the old one (
@unchainedshop/core-users,@unchainedshop/api):changePassword,resetPasswordand an admin'ssetPasswordleft existing sessions valid. The caller's own session is re-established, so changing your own password no longer signs you out. - The reset and verification token query resolvers no longer log the raw token (
@unchainedshop/api), and the express/temp-uploadroute authorizes before the multipart parser buffers the body, with multer size and part limits (@unchainedshop/api). - Sensitive work fields are obfuscated by default (
@unchainedshop/utils,@unchainedshop/core-worker):buildObfuscatedFieldsFilternever applied its default list and modified the work it masked. WithoutblacklistedVariables,password,token,secret,authorizationand the otherdefaultObfuscatedFieldsare now obfuscated case-insensitively inWORK_*events,Work.input/result/errorand the MCP work tools; the stored work and the work adapters process keep the plain values. SeeMIGRATION.md.
Patch
- Work expires 30 days after it is scheduled (
@unchainedshop/core-worker): the work queue deleted work 30 days aftercreated, so work scheduled further ahead was deleted before it ran. Migration20261104120100addsexpiresto existing work. SeeMIGRATION.md. - Confirming and rejecting an order run once (
@unchainedshop/core):confirmOrderandrejectOrderread the order again under their lock, so concurrent calls no longer send the delivery and mint the tokens twice, or reject an order that was just confirmed (#817). - A guest login keeps the account's bookmarks (
@unchainedshop/core): withmergeUserCartsOnLogin: false, logging in from a guest session without bookmarks deleted all bookmarks of the account (#816). - MCP
WORKER_PROCESS_NEXTreturns the work it processed instead of answering before it finished (@unchainedshop/api).