Skip to content

v1.16.0

Compare
Choose a tag to compare
@mzanoni mzanoni released this 29 Aug 08:18
· 347 commits to main since this release
6b035ff

What's Changed

Error handling has greatly been improved in this release

try {
    await tracker.trackProductView({
        productId: null,
        user: UserFactory.anonymous(),
    });
}
catch (e) {
    console.log(e.message, e?.details)
}

We will now correctly throw an error, when an API request fails.
The details-property will contain the problem details response (Specification details), if any has been returned from the API.

Full Changelog: 1.15.0...1.16.0