Skip to content

Releases

v0.1.0

Choose a tag to compare

@klo-chi klo-chi released this 29 Nov 17:46
6c150af

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, the default and
    pl profiles) instead of the Emporium dataset: every value of the dataset is in tests/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/mocks export (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 from app/_components/layout/ to @theme/layout/* (breadcrumbs:
    @theme/components/page-breadcrumbs). The core works the layout out in lib/layout/ (LayoutRuntime, useLayout(),
    Storefront hooks), the search query is lib/search/, the account forms are components/*-form.client.tsx, the
    cart's price and discount code app/_components/order/. The shop looks and works as before.
  • The product page is a theme template: @theme/product/product-page arranges named parts (gallery, header,
    price, stock-status, variant-picker, buy-box, description, specs, stories, related,
    sticky-buy-bar), each reading the page from useProductPage(); 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 / SanitizeHTML into the SDK as Media / RichText. The
    shop looks and works as before. pnpm test:e2e:theme checks a theme's override (tests/theme-example/).
  • The category listing and the search results are a theme template: @theme/catalog/listing-page arranges named
    parts (listing-header, filters, sort-options, filter-range, filter-options, filters-sheet,
    pagination, product-grid, listing-empty), each reading the list from useListingPage() and the filter
    panel's hooks; the core works the list out in ListingPageRuntime (query, filters in the URL, pages). The shop
    looks and works as before.
  • The cart page is a theme template: @theme/cart/cart-page arranges cart-line, cart-summary and cart-bar,
    reading the cart from useCartPage() (CartPageRuntime in 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 new storefront-runtime image with Next's
    standalone server (storefront build puts 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): what next build needs (Tailwind, TypeScript,
    the type packages, shadcn's stylesheet) moved from devDependencies to dependencies. Upgrade: a shop's
    Dockerfile gets 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/resolvers 7 (the form schemas no longer need a cast), DOMPurify 3.4.18 through
    isomorphic-dompurify 4.8 (it escapes < and > inside attribute values), ESLint 10, Vitest 5.1, Playwright 1.65;
    minimatch is held at a patched version (GHSA-g3hv-75wg-m249, through shadcn). The images and CI run Node 24
    (the core's engines: >=24); the workflow actions are at their current major versions. TypeScript stays at 6:
    typescript-eslint does not support 7 yet.
  • One pnpm for the core: packageManager in package.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.yml checks the
    tag against the four packages, publishes them to npm through trusted publishing (with the LICENSE, under next
    for a prerelease) and pushes the core images for linux/amd64 and linux/arm64 to ghcr.io (releasing).
    entirius check on 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 --registry lost the folder
    name; entirius check could not reach the default theme's libraries under pnpm's strict layout (a new theme also
    hoists them, publicHoistPattern); entirius dev without a terminal and without its flags now writes nothing and
    names the flags; storefront build says 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's blocks.gift_lines / blocks.gift_picker are now gift_lines / gift_picker, checkout's
    blocks.gift_lines is gift_lines). The shop looks and works as before.
  • entirius check renders 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.alerts is now alerts) 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. TokenLinks moved into the SDK (/components/token-links); the SDK now
    peers on react-hook-form for 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's blocks.totals is now totals (OrderTotalsModel). The shop looks and
    works as before.
  • The account is a theme template: @theme/account/account-layout and account-menu, overview-page, orders-page,
    order-page and addresses-page with 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-page and
    author-page with 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.
  • THEME in _CONFIG/app.config.json is now COLOR_SCHEME ("light" or "dark"), so that "theme" means only the
    installed theme. Breaking: rename the key in every _CONFIG/app.config.json; a config with THEME fails the build.
  • First step to themes installed on the core: a pnpm workspace with packages/sdk (@entirius/storefront-sdk:
    message catalogues, t(), price(), useI18n) and packages/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 in packages/sdk/src/i18n/messages/.
  • Header search reads the products of matrix search/ in the shape of products/ (matrix 5.0): the row reuses the
    catalog's product nor...
Read more

v0.1.0-alpha.13

v0.1.0-alpha.13 Pre-release
Pre-release

Choose a tag to compare

@klo-chi klo-chi released this 27 Nov 19:34

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 through consents/. A shop sets API_AGREEMENTS_KEY in channels.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 adds https://www.youtube-nocookie.com to CSP.frame-src in app.config.json.
  • Fixes: the header moving sideways between pages on a wide screen (scrollbar-gutter: stable on html), 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-form places the agreement boxes with {consents} from its model; the core draws them (AgreementFields).
  • @theme/layout/page-shell hides the footer while a whole-page PageLoading is shown (data-page-loading) and clips sideways overflow.
  • @theme/catalog/listing-page draws only the empty message when there are no products and no filter is chosen; @theme/cart/cart-page draws the order steps only for a cart with lines.
  • New theme parts @theme/cms/section-video and youtube-player; CmsSectionVideoProps in the SDK with an optional cover; useLayout().legal.

v0.1.0-alpha.12

v0.1.0-alpha.12 Pre-release
Pre-release

Choose a tag to compare

@klo-chi klo-chi released this 27 Nov 19:16

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 through consents/. A shop sets API_AGREEMENTS_KEY in channels.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 adds https://www.youtube-nocookie.com to CSP.frame-src in app.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-form places the agreement boxes with {consents} from its model; the core draws them (AgreementFields).
  • @theme/layout/page-shell hides the footer while a whole-page PageLoading is shown (data-page-loading) and clips sideways overflow.
  • @theme/catalog/listing-page draws only the empty message when there are no products and no filter is chosen; @theme/cart/cart-page draws the order steps only for a cart with lines.
  • New theme parts @theme/cms/section-video and youtube-player; CmsSectionVideoProps in the SDK with an optional cover; useLayout().legal.

v0.1.0-alpha.11

v0.1.0-alpha.11 Pre-release
Pre-release

Choose a tag to compare

@wiktorwysocki wiktorwysocki released this 27 Nov 09:22
abf8af2

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

v0.1.0-alpha.10 Pre-release
Pre-release

Choose a tag to compare

@klo-chi klo-chi released this 22 Nov 19:20

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

v0.1.0-alpha.9 Pre-release
Pre-release

Choose a tag to compare

@ostrowskill ostrowskill released this 20 Nov 17:18
0e45a0b

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-builder and storefront-runtime, tag 0.1.0-alpha.9

Start a theme:

pnpm create @entirius/theme@0.1.0-alpha.9 my-theme

Everything that changed is in the changelog's [Unreleased] section.