Releases: Relewise/relewise-sdk-javascript
Releases · Relewise/relewise-sdk-javascript
[email protected]
[email protected]
What's Changed
Full Changelog: https://github.com/Relewise/relewise-sdk-javascript/compare/[email protected]@1.20.1
[email protected]
What's Changed
Full Changelog: https://github.com/Relewise/relewise-sdk-javascript/compare/[email protected]
v1.20.0
1.19.0
What's Changed
- feat: implement filter settings for all filters by @RAORelewise in #42
Full Changelog: 1.18.0...1.19.0
v1.18.0
v1.17.1
1.17.0
What's Changed
- feat: add product data object sorting by @RAORelewise in #38
It is now possible to sort using DataObjects.
Code example:
.sorting(sorting => {
sorting.sortByProductDataObject('Variant', 'Ascending',
valueSelector => valueSelector.select('priceCollection', {
childSelector: childSelector => childSelector.select('price', {
filter: {
conditions: conditions => {
conditions.addLessThanCondition('validFromDate', nowUnixSeconds)
conditions.addGreaterThanCondition('validToDate', nowUnixSeconds)
conditions.addMinByCondition('price')
},
take: 1,
},
}),
}))
Full Changelog: 1.16.0...1.17.0
v1.16.0
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