Skip to content

Release new version (beta) - #1

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 14, 2026 •

Copy link
Copy Markdown

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

main is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on main.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@labdigital/commercetools-mock@5.0.0-beta.1

Minor Changes

  • #430 2e8ae39 Thanks @mvantellingen! - Persist expansionPaths, dependencies and additionalContext when creating
    an API Extension.

    The Extension repository only copied key, timeoutInMs, destination and
    triggers out of the draft, so the three fields added by the 2026-03-12 API
    release were silently dropped on create. POST /{projectKey}/extensions with
    expansionPaths returned an extension without them, which made it look like
    the field was rejected. The setExpansionPaths, setDependencies and
    setAdditionalContext update actions were already implemented, so only the
    create path was affected.

    dependencies are now resolved through the storage layer like every other
    resource identifier, so they can be given by key as well as by id (on both
    create and setDependencies, which previously assumed id was set) and an
    unknown dependency returns a ReferencedResourceNotFound error instead of a
    reference with id: undefined.

Patch Changes

  • #433 74adf7c Thanks @robertmoelker! - Update astro (docs) to v7.* for security reasons

  • #432 756eb56 Thanks @robertmoelker! - Enforce BusinessUnit key uniqueness within a project. Creating a business unit with a key that is already taken now returns a 400 DuplicateField error on the key field instead of silently storing a second unit under the same key.

  • #432 756eb56 Thanks @robertmoelker! - clear() now also resets the auth store. Tokens issued before a clear() used to stay valid and keep resolving to customers and anonymous sessions that no longer existed, leaking identity between tests. Tests that issue a token (for example through customerSession) must do so after each clear().

  • #434 cb56f14 Thanks @robertmoelker! - Scope customer email uniqueness to the stores a customer is assigned to. The same email can now be used in different stores, matching commercetools behaviour. Customers created through an in-store endpoint are assigned to that store, and the in-store password flow only matches customers of that store.

    Implement the addStore, removeStore and setStores customer update actions, which re-validate email uniqueness for any store scope the customer newly enters (including becoming a global customer again).

    Store resource identifiers are now validated by key as well as by id, so referencing a non-existent store in a draft returns a 400 ReferencedResourceNotFound error instead of silently passing through. This also fixes getStoreKeyReference, which previously always failed for id-based references.

    In-store endpoints (/{projectKey}/in-store/key={storeKey}/...) now return a 404 ResourceNotFound when the store in the path does not exist, matching commercetools.

@github-actions github-actions Bot changed the title Release new version Release new version (beta) Sep 15, 2026
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 29f33bd to b0e0eab Compare September 15, 2026 08:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants