#
Migrate to v1.0
Follow this guide to migrate from @workleap-tracking/mixpanel
👇
#
Breaking changes
- The
buildTrackingFunction
function has been renamed tocreateTrackingFunction
. - The
createTrackingFunction
function now accepts a new sets of arguments.
#
New function arguments
The buildTrackingFunction
function had multiple overloads, the new createTrackingFunction
function has a single signature with an options object.
Before:
const track = buildTrackingFunction(productId, targetProductIdentifier, environmentVariables.navigationApiBaseUrl);
After:
const track = createTrackingFunction(productId, "development", {
targetProductId
});