github klevultd/frontend-sdk @klevu/core-3.0.0

latest releases: @klevu/core-5.2.2, @klevu/core-5.2.1, @klevu/ui-2.2.0...
12 months ago

What's Changed

  • Chore/update dependencies by @rallu in #329
  • Klaviyo integration through modifier by @rallu in #296

BREAKING CHANGE: Refactored result object to be more straight forward

Instead of calling a analytical function to return function to call it can be used directly send a event.

So previous one called analytical events like this:

const res = await KlevuFetch(categoryMerchandising("women"))
const query = res.queriesById("categoryMerchandising")
const eventHandler = query.getCategoryMerchandisingClickSendEvent()

// somewhere in click handler
eventHandler(product.id)

Is changed something like this:

const res = await KlevuFetch(categoryMerchandising("women"))
const query = res.queriesById("categoryMerchandising")

// somewhere in click handler
query.categoryMerchandisingClickEvent({ productId: product.id })

Note that queriesById not returns KlevuResponseQueryObject instead of KlevuFetchQueryResult

Full Changelog: https://github.com/klevultd/frontend-sdk/compare/@klevu/core-2.0.13...@klevu/core-3.0.0

Don't miss a new frontend-sdk release

NewReleases is sending notifications on new releases.