Hi Anton.
Here is the full changelog.
https://github.com/growthbook/growthbook/blob/ba4df9241891d075f342fea6fcf728249c568852/packages/sdk-js/CHANGELOG.md
While there are several changes, all APIs remain compatible. Here are some larger changes to note:
*Initialization and Feature Loading:*
*- *Versions 1.0.0 and later use init (async) and initSync for initialization and feature loading, instead of loadFeatures.
*- *Prior to 1.0.0, network requests started upon GrowthBook instance creation. Now, they're initiated with init or initSync.
*Payload Handling:*
*- *Version 1.0.0 introduces dedicated functions for payload management:
init({ payload }) for initialization with a payload. setPayload to set the payload.
getPayload and getDecryptedPayload for retrieval.
*Experiment Control:*
*- *Version 1.0.0 adds context properties to control experiment behavior:
blockedChangeIds, disableVisualExperiments, disableJsInjection, disableUrlRedirectExperiments, disableCrossOriginUrlRedirectExperiments, disableExperimentsOnLoad.
*Caching:*
*- *In 1.0.0, enableDevMode: true no longer automatically disables caching. You must explicitly add disableCache: true to maintain that behavior.
*Streaming:*
*- *Version 1.0.0 introduces the init({ streaming: true }) option for streaming customization.
*- *The autoRefresh context option is deprecated in favor of subscribeToChanges in version 0.28.0.
*Other:*
- getCompletedChangeIds*,* introduced in 1.0.0, provides a more specific way to get triggered experiments using changeId.
*- *Several methods that previously returned void are now async and return Promises in version 0.32.0 (e.g., setAttributes, setForcedVariations). This might require adding await in your code.