Skip to content

v2.0.0

Compare
Choose a tag to compare

Added

  • Support for on-device decisioning
  • New parameters added in create() when initializing the Node.js SDK
    • decisioningMethod
    • pollingInterval
    • artifactLocation
    • artifactPayload
    • events
  • New method getAttributes() to fetch experimentation and personalized experiences from Target and extract attribute values.
  • Campaign macro support

Changed

  • renamed locationHintCookie to locationHint in getOffers call
  • Replaced the the delivery request implementation with one based on Fetch. This allows the sdk to function in both node.js and browser environments.
  • Modified sendNotifications to use Navigator.sendBeacon if run in a browser environment.
  • Migrated tests from jasmine to jest
  • Changed to a mono repo structure using lerna to support multiple packages
    • target-nodejs-sdk - the sdk was moved inside the packages folder
    • target-decisioning-engine - adds the ability to load target rules and evaluate them locally instead of making a delivery api request
    • target-tools - shared code and config between the above packages