Skip to content

Release v2.0.0: built on the core SDK v2, with realtime socket tokens - #26

Merged
roncodes merged 7 commits into
mainfrom
release/v2.0.0
Oct 8, 2026
Merged

roncodes merged 7 commits into
mainfrom
release/v2.0.0

Conversation

@roncodes

@roncodes roncodes commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Summary

This is the v2.0.0 release branch of the Storefront SDK. It contains:

The release prep commit:

  • bumps package.json to 2.0.0;
  • writes RELEASE.md, including the breaking changes;
  • adds the 2.0.0 changelog entry.

It's a major version because resources now follow core SDK 2 behaviour, for example getAttribute fallbacks for null. The Storefront API surface itself is unchanged.

Merging this PR into main tags and publishes v2.0.0 to npm. Merge it only after the items below are done.

Before merging

Downstream

The storefront mobile app (release/v0.1.0) will move to @fleetbase/sdk 2.1 and @fleetbase/storefront 2.0 together.

POST customers/socket-token with the customer's Customer-Token header,
resolving to { token, expires_in, expires_at } (SocketTokenResponse).
Declarations under types/ updated by hand; dist/ needs regenerating.
The core SDK is now a regular dependency. Its ESM and CommonJS entries,
declarations and Fetch transport resolve cleanly, so the module builds import
it instead of inlining a copy, and applications that also use the core SDK
share one copy of its resources and adapters. Only the browser bundle inlines it.

- Drop the local @fleetbase/sdk declaration shim and the axios-era overrides.
- Type resources and stores against the SDK 2 declarations; listing endpoints
  keep resolving to collections in Storefront's types.
- Send no Customer-Token header when signed out instead of an empty one.
- Rebuild dist and types.
feat(socket-auth): add customer.socketToken() for realtime channels
feat!: build on @fleetbase/sdk 2 instead of a bundled 1.2.13
2.1.0 fixes the core SDK's Node transport (GET paths and headers set after
construction), which Storefront uses under Node and server rendering. The
browser bundle is rebuilt with it.
@roncodes
roncodes merged commit aa3d7fe into main Oct 8, 2026
29 checks passed
@roncodes
roncodes deleted the release/v2.0.0 branch October 8, 2026 15:17
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.

1 participant