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
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
-
2.2.0 (January XX, 2025)
1
+
2.2.0 (March 28, 2025)
2
+
- Added 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 impression object sent to Split backend.
2
3
- Added two new configuration options for the SDK storage in browsers when using storage type `LOCALSTORAGE`:
3
4
- `storage.expirationDays` to specify the validity period of the rollout cache.
4
5
- `storage.clearOnInit` to clear the rollout cache on SDK initialization.
[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