Repository navigation
Releases
v0.1.0
First full release of the storefront core. The images are on ghcr.io (ghcr.io/entirius/storefront-<dev|builder|runtime>:0.1.0); the npm packages of this version follow once npm's trusted publishing is set for them.
Backend: run it with Entirius Platform 5.0.0 (service 5.0.0). Delivery and payment method names in the page's language need checkout 10.2.0 (the v2 cart language); on an older backend only carts created after the upgrade get the page's language. The header search reads matrix 5.x search/ results.
Changed
- The E2E specs run against the demo shop of zeno's test package (Słoik Chwil, channel
sloik-pl, thedefaultand
plprofiles) instead of the Emporium dataset: every value of the dataset is intests/e2e/support/dataset.ts,
and what the new dataset cannot show is skipped there with its reason (docs/testing.md). The unit tests and CI are
unchanged, except that the mock product and category texts of the published@entirius/sdk/mocksexport (and so
entirius check) changed: chairs and sofas became toys and games. - The page shell is the theme's: header, footer, megamenu, mobile menu, search, account, cart link, wishlist sheet,
locale switch, notices and breadcrumbs moved fromapp/_components/layout/to@theme/layout/*(breadcrumbs:
@theme/components/page-breadcrumbs). The core works the layout out inlib/layout/(LayoutRuntime,useLayout(),
Storefronthooks), the search query islib/search/, the account forms arecomponents/*-form.client.tsx, the
cart's price and discount codeapp/_components/order/. The shop looks and works as before. - The product page is a theme template:
@theme/product/product-pagearranges named parts (gallery,header,
price,stock-status,variant-picker,buy-box,description,specs,stories,related,
sticky-buy-bar), each reading the page fromuseProductPage(); the core works the page out in
ProductPageRuntime. The product card (@theme/components/product-card), price, badges, quick add, wishlist
button and thumb moved into the theme,MediaImage/SanitizeHTMLinto the SDK asMedia/RichText. The
shop looks and works as before.pnpm test:e2e:themechecks a theme's override (tests/theme-example/). - The category listing and the search results are a theme template:
@theme/catalog/listing-pagearranges named
parts (listing-header,filters,sort-options,filter-range,filter-options,filters-sheet,
pagination,product-grid,listing-empty), each reading the list fromuseListingPage()and the filter
panel's hooks; the core works the list out inListingPageRuntime(query, filters in the URL, pages). The shop
looks and works as before. - The cart page is a theme template:
@theme/cart/cart-pagearrangescart-line,cart-summaryandcart-bar,
reading the cart fromuseCartPage()(CartPageRuntimein the core). The page header, the order steps, the unit
price and the summary card moved to@theme/order/*and serve checkout too; checkout works as before. - A shop's image is two-stage: built on
storefront-builder, run on the newstorefront-runtimeimage with Next's
standalone server (storefront buildputs it in/app/out), about 450 MB instead of 1.5 GB. The builder and dev
images install production dependencies only (1.17 GB from 1.31 GB): whatnext buildneeds (Tailwind, TypeScript,
the type packages, shadcn's stylesheet) moved fromdevDependenciestodependencies. Upgrade: a shop's
Dockerfilegets the second stage (FROM storefront-runtime:<version>,COPY --from=build /app/out /app); a
single-stage one still runs, as large as before. - Dependencies at their current versions: React 19.3.1, TanStack Query 5.108, Radix 1.8, Zustand 5.1, React Hook Form
7.92 with@hookform/resolvers7 (the form schemas no longer need a cast), DOMPurify 3.4.18 through
isomorphic-dompurify4.8 (it escapes<and>inside attribute values), ESLint 10, Vitest 5.1, Playwright 1.65;
minimatchis held at a patched version (GHSA-g3hv-75wg-m249, throughshadcn). The images and CI run Node 24
(the core'sengines:>=24); the workflow actions are at their current major versions. TypeScript stays at 6:
typescript-eslintdoes not support 7 yet. - One pnpm for the core:
packageManagerinpackage.json(pnpm 12.21, also pinned in the lockfile) is the version CI,
the images and the core's developers run; CI and the images ran pnpm 10 before. Theme authors keep any pnpm from 10. - A release of the theme platform is a GitHub release of a
v<version>tag:.github/workflows/publish.ymlchecks the
tag against the four packages, publishes them to npm through trusted publishing (with theLICENSE, undernext
for a prerelease) and pushes the core images forlinux/amd64andlinux/arm64to ghcr.io (releasing).
entirius checkon a theme that overrides nothing yet no longer fails on TypeScript finding no input. - Guides for a theme author and a shop builder outside the team: building a theme,
building a shop and the theme contract, linked from the READMEs
of the four packages. Fixed on the way:pnpm create @entirius/theme <name>without--registrylost the folder
name;entirius checkcould not reach the default theme's libraries under pnpm's strict layout (a new theme also
hoists them,publicHoistPattern);entirius devwithout a terminal and without its flags now writes nothing and
names the flags;storefront buildsays when it cannot fetch the theme (its registry's.npmrc, a build secret). - The last views of the core are the theme's: the similar products on the product page
(@theme/product/related-products, a server part), the cookie banner's look (@theme/cookie-consent.css) and the
gifts in the cart and checkout (@theme/cart/gift-line,gift-picker,@theme/checkout/summary-gift-line, from
models; the cart'sblocks.gift_lines/blocks.gift_pickerare nowgift_lines/gift_picker, checkout's
blocks.gift_linesisgift_lines). The shop looks and works as before. entirius checkrenders the theme: every page template and every part the core draws with props, on the SDK's
mocks (@entirius/storefront-sdk/mocks, the list in@theme/lib/check), with the theme's files in place and
outside Next; a failing part is named with its file and line. The page shell (@theme/layout/page-shell, with the
layout slots), the 404 page (@theme/layout/not-found-page,not-found-search), a CMS page's frame
(@theme/cms/cms-page) and the cart's problems (@theme/order/cart-alerts, from a model; the cart's
blocks.alertsis nowalerts) are theme parts.- The forms are theme views with their logic in the core:
@theme/forms/<name>(login, register, forgot and reset
password, profile, change password, address sheet, newsletter, enquiry, notify about a similar product, back in
stock, discount code) draws the fields and the layout from a model in props typed in the SDK (/forms); the core
validates, sends and keeps the state.TokenLinksmoved into the SDK (/components/token-links); the SDK now
peers onreact-hook-formfor the form types. The shop looks and works as before. - Checkout's summary and the page after the order are theme parts (
@theme/checkout/checkout-summary,
summary-line,success-page,order-receipt), and the order totals (@theme/order/order-totals) serve the cart
and checkout from a model (order_totals()); the steps, forms, delivery, payment and the order button stay in the
core. Breaking for themes: the cart'sblocks.totalsis nowtotals(OrderTotalsModel). The shop looks and
works as before. - The account is a theme template:
@theme/account/account-layoutandaccount-menu,overview-page,orders-page,
order-pageandaddresses-pagewith their parts, each reading its page from a hook of the SDK (/account/page)
that a runtime in the core fills; an order's status comes as a tone the theme colours. The forms stay in the core.
The pages of e-mail links (activation, password reset, newsletter, back in stock) draw
@theme/components/message-page. The shop looks and works as before. - CMS pages render on the server, and CMS blocks and the blog are theme parts rendered there: a block type of the
page editor is@theme/cms/<type>(sections and tiles), the blog's pages@theme/blog/blog-page,post-pageand
author-pagewith their parts. The core reads what a document shows before it renders (button addresses,
products, posts) and hands it over in props typed in the SDK (/cms,/blog); carousels and product cards stay
browser parts inside. A CMS page loads about 28 KiB less JavaScript; the shop looks and works as before. THEMEin_CONFIG/app.config.jsonis nowCOLOR_SCHEME("light"or"dark"), so that "theme" means only the
installed theme. Breaking: rename the key in every_CONFIG/app.config.json; a config withTHEMEfails the build.- First step to themes installed on the core: a pnpm workspace with
packages/sdk(@entirius/storefront-sdk:
message catalogues,t(),price(),useI18n) andpackages/theme-default(@entirius/theme-default: the
shadcn/ui primitives). The core imports them as@theme/ui/<name>;@theme/*resolves to an installed theme in
theme/first, then to the default theme. The shop looks and works as before. Breaking for code built on the
template:@/components/ui/<primitive>→@theme/ui/<primitive>,@/providers/i18n.provider→
@entirius/storefront-sdk/i18n/client,@/lib/i18n/translate→@entirius/storefront-sdk/i18n, message
catalogues inpackages/sdk/src/i18n/messages/. - Header search reads the products of matrix
search/in the shape ofproducts/(matrix 5.0): the row reuses the
catalog's product nor...
v0.1.0-alpha.13
Pre-release to try. Everything merged on develop since v0.1.0-alpha.11 (alpha.12 was tagged one fix earlier and its npm packages were not published) (CHANGELOG.md, [Unreleased]).
- Agreements come from the backend: the review step and the register form offer the django-agreements definitions meant for that place (
display_contexts), and registration records the mandatory ones throughconsents/. A shop setsAPI_AGREEMENTS_KEYinchannels.config.json; without it a guest's agreements are not recorded. - Footer: links to every published legal page of the active language and a "Cookie settings" link; one footer per language.
- CMS video section (
section-video): nothing is loaded from YouTube before the click; cover from the editor's picture or the video's thumbnail served from the shop's origin (/video-cover/<id>.jpg). The default CSP is unchanged: a shop that uses the section addshttps://www.youtube-nocookie.comtoCSP.frame-srcinapp.config.json. - Fixes: the header moving sideways between pages on a wide screen (
scrollbar-gutter: stableonhtml), sideways scroll on the home page, footer jump while a page loads, the filter panel's "Apply" bar, filters on an empty listing, order steps on an empty cart, the wishlist sheet staying open, legal pages in the shared cache with one H1.
For theme authors:
@theme/forms/register-formplaces the agreement boxes with{consents}from its model; the core draws them (AgreementFields).@theme/layout/page-shellhides the footer while a whole-pagePageLoadingis shown (data-page-loading) and clips sideways overflow.@theme/catalog/listing-pagedraws only the empty message when there are no products and no filter is chosen;@theme/cart/cart-pagedraws the order steps only for a cart with lines.- New theme parts
@theme/cms/section-videoandyoutube-player;CmsSectionVideoPropsin the SDK with an optionalcover;useLayout().legal.
v0.1.0-alpha.12
Pre-release to try. Everything merged on develop since v0.1.0-alpha.11 (CHANGELOG.md, [Unreleased]).
- Agreements come from the backend: the review step and the register form offer the django-agreements definitions meant for that place (
display_contexts), and registration records the mandatory ones throughconsents/. A shop setsAPI_AGREEMENTS_KEYinchannels.config.json; without it a guest's agreements are not recorded. - Footer: links to every published legal page of the active language and a "Cookie settings" link; one footer per language.
- CMS video section (
section-video): nothing is loaded from YouTube before the click; cover from the editor's picture or the video's thumbnail served from the shop's origin (/video-cover/<id>.jpg). The default CSP is unchanged: a shop that uses the section addshttps://www.youtube-nocookie.comtoCSP.frame-srcinapp.config.json. - Fixes: sideways scroll on the home page, footer jump while a page loads, the filter panel's "Apply" bar, filters on an empty listing, order steps on an empty cart, the wishlist sheet staying open, legal pages in the shared cache with one H1.
For theme authors:
@theme/forms/register-formplaces the agreement boxes with{consents}from its model; the core draws them (AgreementFields).@theme/layout/page-shellhides the footer while a whole-pagePageLoadingis shown (data-page-loading) and clips sideways overflow.@theme/catalog/listing-pagedraws only the empty message when there are no products and no filter is chosen;@theme/cart/cart-pagedraws the order steps only for a cart with lines.- New theme parts
@theme/cms/section-videoandyoutube-player;CmsSectionVideoPropsin the SDK with an optionalcover;useLayout().legal.
v0.1.0-alpha.11
Pre-release to try on the Ooh la la staging.
- Legal pages: a contentdb
legal-page(terms, privacy policy linked to django-agreements definitions) is served at its route like a static page when no static page holds it; the 404 check and the sitemap know it too (#51).
Plus everything merged on develop since v0.1.0-alpha.10.
v0.1.0-alpha.10
A shop builds from a checkout of the core, without Docker: STOREFRONT_DIR points storefront build / start at a checkout of this tag installed with pnpm install --frozen-lockfile --prod; the standalone build type-checks through tsconfig.build.json. Steps: docs/themes/shop.md, "Without Docker".
v0.1.0-alpha.9
The first public pre-release of the storefront's theme platform: a build to try, not yet for production.
- npm (
next):@entirius/storefront-sdk,@entirius/theme-default,@entirius/create-theme,@entirius/theme-cli - Images:
ghcr.io/entirius/storefront-dev,storefront-builderandstorefront-runtime, tag0.1.0-alpha.9
Start a theme:
pnpm create @entirius/theme@0.1.0-alpha.9 my-themeEverything that changed is in the changelog's [Unreleased] section.