SDK versioning and upgrades

  • All @guidelytech/* packages share one version (0.x while pre-1.0). Within 0.x, minor releases may include breaking changes; patch releases never do. From 1.0, semantic versioning applies.
  • The public SDK API is versioned in the URL (/api/v1/sdk/*). The dashboard will keep serving v1 for at least 12 months after a v2 is introduced. The config payload contains configVersion (per environment) and every guide carries its version; the SDK sends sdk.name/sdk.version with every event batch so you can see which versions are in the field (Events → properties).
  • Cached configuration: SDK clients send If-None-Match and keep the last good config in localStorage. After a publish, clients refresh within configRefreshMs (default 5 min) or on the next page load; old published versions remain readable so a client that cached version N still runs it until it refreshes.
  • Script-tag users load /sdk/guidely.js, a small loader cached for 60 seconds that injects the current release's content-hashed bundle (cached for a year). Each Guidely release reaches every script-tag install within a minute or two, with no change to the customer's snippet. To pin a build instead, copy guidely-sdk.js (and the guidely-recorder.js / guidely-capture.js files next to it) to your own CDN and load guidely-sdk.js directly. The embed exposes Guidely.version.
  • npm packages (@guidelytech/react, nextjs, svelte, sdk-core, …) and the mobile SDKs are bundled into the customer's app, so they only change when the customer upgrades and redeploys.
  • The native iOS and Android SDKs have their own version (0.x, same compatibility rules) and are released separately from the JavaScript packages. The Flutter SDK (mobile/flutter, guidely_flutter) has its own version too and is a preview that is not published to pub.dev yet.
  • The server SDKs version on their own as well: Java (com.guidelytech:guidely-flags, sdks/java/pom.xml) and PHP (guidelytech/guidely-php) share a number and carry both feature flags and Track Events; the Node server SDK @guidelytech/node is part of the @guidelytech/* npm set.
  • The browser extension (apps/extension) takes its version from its package.json and ships through the store listing or .crx your IT deploys, not npm.
  • Server first. A new SDK version may send event names or endpoints older servers reject (an unknown event name fails the whole batch). Deploy the dashboard/API before releasing SDKs that use them: e.g. the app lifecycle events (app_install, app_update, app_open, app_background) of iOS/Android 0.4.0, React Native 0.11.0 and Flutter, and /api/v1/sdk/server/batch for the Track Events server SDKs.
  • Upgrade procedure: bump all @guidelytech/* packages together, read the changelog, run your own end-to-end tests and roll out behind your normal deploy.