Skip to content

v0.0.140

Compare
Choose a tag to compare
@peterpeterparker peterpeterparker released this 05 May 12:12
· 2 commits to main since this release

@junobuild/analytics

⚠️ Breaking Changes ⚠️

  • The library now requires the Orbiter to be upgraded to version v0.2.0, as it starts collecting analytics through native HTTP requests.
  • The performance option is now opt-in (it was previously opt-out).
  • initOrbiter is no longer asynchronous and can now be called without await.

Features

  • Collect analytics through native HTTP fetch.
  • Remove usage of Web Workers and IndexedDB.
  • Remove DID declarations.
  • Remove actor logic.
  • Remove dependency on agent-js.
  • Introduce optional use of [email protected] (via opt-in) to collect limited information derived from the user agent.
  • Collect screen size dimensions (in addition to window.innerWidth / innerHeight).

Refactoring

  • Move modules and rename several files for improved structure and readability.

Tip

Upgrading your app:
To upgrade your frontend to use the new lightweight analytics client:

npm rm @junobuild/analytics && npm i @junobuild/analytics

You can also safely remove any postinstall scripts and the related web workers code you may have added to your static folder, they are no longer needed and won't be used anymore.

Also note that initOrbiter is no longer asynchronous and can now be called without await.

// Previously
await initOrbiter();

// New
initOrbiter();

@junobuild/admin

Chore

  • Update Orbiter DID declarations.

@junobuild/core

Chore

  • Disable ESLint rule local-rules/use-option-type-wrapper.

New Contributors