SDK v1.x (Current)
The current stable release. No breaking changes since initial release.Installation
Changelog highlights
| Version | Change |
|---|---|
1.3.0 | Added storefront.locations.getDistance() for delivery zone checks |
1.2.0 | Added storefront.analyticsEvents namespace for funnel tracking |
1.1.0 | Added storefront.cart.getRecommendations() for upsell suggestions |
1.0.0 | Initial release — 8 namespaces, 30+ methods |
API versioning
The API is versioned via the URL path:Checking your API version
The response includes aX-API-Version header:
General upgrade checklist
When upgrading the SDK:- Read the changelog for the versions you’re skipping
- Update the package:
pnpm add @craveup/storefront-sdk@latest - Run
pnpm typecheck— TypeScript will catch removed or renamed methods - Test the full ordering flow in test mode (session → cart → checkout → payment)
- Verify webhook handlers still work with current payload formats
Future breaking changes
When breaking changes are planned, they will be:- Announced in the Changelog at least 30 days in advance
- Documented on this page with migration instructions
- Released under a new API version (
v2) - The old version (
v1) will continue working for 12 months