Releases: mondaycom/apps-sdk
Releases · mondaycom/apps-sdk
3.0.0
Breaking changes
Secure storage contract change
Before the change, Secure Storage used to wrap values that are not Object with a generic object { value: RECEIVED_VALUE }
.
Now, every set value will stay the same and won't get wrapped in an object.
Note: Old stored values that are not an Object, will be get returned in the { value: RECEIVED_VALUE }
format.
The provided function below can help identify those and act accordingly.
const isObjectFromDeprecatedApi = <T>(value: T): boolean => {
return typeof value === 'object' && value !== null && !Array.isArray(value) && value.value !== undefined;
};