Releases: smartlook/smartlook-client
Releases · smartlook/smartlook-client
v10.0.0
v9.0.0
v8.3.0
v8.2.0
- Added types for interceptors
interface Interceptors {
click?: (
data: {
props?: Record<string, string | number | null | boolean>
text?: string
url: string
},
context: MouseEvent,
) => void | boolean,
error?: (
data: {
colno?: number
filename?: string
lineno?: number
message?: string
stack?: string
url: string
},
context: ErrorEvent | PromiseRejectionEvent | Error | string,
) => void | boolean
focus?: (data: { url: string }, context: FocusEvent) => void | boolean,
input?: (data: { url: string, value: string }, context: Event) => void | boolean
network?: (
data: {
request?: RequestOrResponse
response?: RequestOrResponse
url: string
},
context: { pageUrl: string },
) => void | false
url?: (data: { url: string }) => void
}
v8.0.0
- Add support for Relay proxy (read more at https://help.smartlook.com/en/articles/6120645-smartlook-relay-proxy)
- Remove support for legacy web SDK
- Improve docs -
init
method params
Add 'cookies' parameter
Add 'cookies' parameter to init function, more info at https://help.smartlook.com/en/articles/6064963-cookies-in-smartlook
v7.0.0
Breaking changes:
- Added support for new Record API
- Removed old Consent API
Read more about new Record API at https://docs.smartlook.com/docs/web/consent-sensitive-data
New Web SDK is coming out of BETA
Introducing new version of our Web SDK
1st party iframes support and shadow DOM, more features are yet to come so stay tuned.
Other changes:
-
Added readonly properties
playUrl sessionId visitorId recordId key version
-
Added support in
init
to changeregion
You can opt out from this new version using the init('xxx', { version: 'legacy' })
.