Skip to content

Upgrading

Upgrading from 3.x to 4.x

What's new?

  • Refactored internal implementation to Typescript
  • Improved tracking specificity through the use of scopes

Changes to Bootloader

Following is a list of changes that need to be noted when using the Bootloader 4.x interface. Note that these are required changes for the WebSDK 4.x to be fully functional. Not adhering to these standards will result in non-functional services and tracking.

orb.config

scope and namespace are required attributes to the <additional_configuration> parameter when using orb.config or orb('config', ... )

orb('config', 'SCRIPT_TOKEN');
orb("config", "SCRIPT_TOKEN", { scope: "SCOPE", namespace: "namespace1" });

orb.provide

scope is a required attribute to the <additional_configuration> parameter when using orb.provide or orb('provide', ...)

orb('provide', 'namespace', {
    version: <VERSION>,
    constructor: Namespace,
});
orb('provide', 'namespace', {
    version: <VERSION>,
    constructor: Namespace,
    scope: 'oa',
});

Last update: 2023-04-13