You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.txt
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,10 @@
1
+
2.2.0 (March 28, 2025)
2
+
- Added a new optional argument to the client `getTreatment` methods to allow passing additional evaluation options, such as a map of properties to append to the generated impressions sent to Split backend. Read more in our docs.
3
+
- Added two new configuration options for the SDK storage in browsers when using storage type `LOCALSTORAGE`:
4
+
- `storage.expirationDays` to specify the validity period of the rollout cache.
5
+
- `storage.clearOnInit` to clear the rollout cache on SDK initialization.
6
+
- Updated SDK_READY_FROM_CACHE event when using the `LOCALSTORAGE` storage type to be emitted alongside the SDK_READY event if it has not already been emitted.
7
+
1
8
2.1.0 (January 17, 2025)
2
9
- Added support for the new impressions tracking toggle available on feature flags, both respecting the setting and including the new field being returned on `SplitView` type objects. Read more in our docs.
[c.ERROR_EVENT_TYPE_FORMAT,'%s: you passed "%s", event_type must adhere to the regular expression /^[a-zA-Z0-9][-_.:a-zA-Z0-9]{0,79}$/g. This means an event_type must be alphanumeric, cannot be more than 80 characters long, and can only include a dash, underscore, period, or colon as separators of alphanumeric characters.'],
23
23
[c.ERROR_NOT_PLAIN_OBJECT,'%s: %s must be a plain object.'],
24
-
[c.ERROR_SIZE_EXCEEDED,'%s: the maximum size allowed for the properties is 32768 bytes, which was exceeded. Event not queued.'],
24
+
[c.ERROR_SIZE_EXCEEDED,'%s: the maximum size allowed for the properties is 32768 bytes, which was exceeded.'],
25
25
[c.ERROR_NOT_FINITE,'%s: value must be a finite number.'],
26
26
[c.ERROR_NULL,'%s: you passed a null or undefined %s. It must be a non-empty string.'],
27
27
[c.ERROR_TOO_LONG,'%s: %s too long. It must have 250 characters or less.'],
[c.CLIENT_NO_LISTENER,'No listeners for SDK Readiness detected. Incorrect control treatments could have been logged if you called getTreatment/s while the SDK was not yet ready.'],
19
19
// input validation
20
20
[c.WARN_SETTING_NULL,'%s: Property "%s" is of invalid type. Setting value to null.'],
21
-
[c.WARN_TRIMMING_PROPERTIES,'%s: Event has more than 300 properties. Some of them will be trimmed when processed.'],
21
+
[c.WARN_TRIMMING_PROPERTIES,'%s: more than 300 properties were provided. Some of them will be trimmed when processed.'],
22
22
[c.WARN_CONVERTING,'%s: %s "%s" is not of type string, converting.'],
23
23
[c.WARN_TRIMMING,'%s: %s "%s" has extra whitespace, trimming.'],
24
24
[c.WARN_NOT_EXISTENT_SPLIT,'%s: feature flag "%s" does not exist in this environment. Please double check what feature flags exist in the Split user interface.'],
0 commit comments