Skip to content

Release v2.1.0: driver workflows, socket tokens and a working Node transport - #47

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

roncodes merged 7 commits into
mainfrom
release/v2.1.0

Conversation

@roncodes

@roncodes roncodes commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Summary

This is the v2.1.0 release branch. It contains:

The release prep commit:

  • bumps package.json to 2.1.0;
  • writes RELEASE.md and the 2.1.0 changelog entry;
  • consumes the driver-stores changeset.

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

Before merging

Downstream

The Storefront SDK v2.0.0 release (fleetbase/storefront-js) moves Storefront onto @fleetbase/sdk 2 as a dependency. It should require ^2.1.0 once this release is published, so Node consumers get the transport fix. The storefront mobile app will then upgrade to both.

Adds a Socket helper on the client (fleetbase.socket.token()) that calls
POST socket/token and resolves to { token, expires_in, expires_at }.
Documents the server-side mint / browser authenticate flow.
NodeAdapter overrode request() with (method, url) while the inherited get()
calls request(path, 'GET', ...), so every GET under Node went to '/<ns>/GET'
with the path as its method. It also read the constructor-time config, so
headers set later with setHeaders (Customer-Token, Accept-Language) and host
changes were dropped. NodeAdapter now only adds its User-Agent and inherits
the browser transport.
@codecov

codecov Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b76e577) to head (444df50).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #47   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           17        18    +1     
  Lines          866       860    -6     
  Branches       144       143    -1     
=========================================
- Hits           866       860    -6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

fix(node): send Node requests through the shared Fetch transport
…ource-map-js

New high and critical advisories in development tooling (eslint, stryker,
vitest) failed the dependency audit. None of these ship in the package.
feat(socket-auth): add socket.token() to mint realtime socket tokens
@roncodes
roncodes merged commit 696c10c into main Oct 8, 2026
44 checks passed
@roncodes
roncodes deleted the release/v2.1.0 branch October 8, 2026 10:08
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