Skip to content

Releases: Swetrix/swetrix-js

v3.5.3

30 Nov 14:53
Compare
Choose a tag to compare

Changelog:

  • fix: trackError optional properties are not marked as optional in TypeScript (#18)
  • Removed unused dependencies and bumped dev dependencies.

v3.5.2

02 Nov 17:27
Compare
Choose a tag to compare

Changelog:

  • Fix broken CJS imports (Error [ERR_REQUIRE_ESM]: require() of ES Module ...) for the NPM version

v3.5.1

02 Nov 17:09
Compare
Choose a tag to compare

Changelog:

  • Added exports to package.json (thanks @KaelWD / #17)
  • The swetrix.orig.js file has been removed from the dist. It was not described in the documentation and was not recommended to be used, but if you were using this file, please opt to use swetrix.js instead.

Other than that, there were no other user-facing changes.

DX wise:

  • package-lock.json is now removed from .gitignore
  • Updated all the dependencies to the latest version.
  • At least node 22 is now required to build this package.

v3.5.0

26 Oct 20:16
Compare
Choose a tag to compare

Changelog:

  • Remove prev parameter from pageview tracking.

v3.4.1

10 Sep 20:40
Compare
Choose a tag to compare

Changelog:

  • Added types for UTM Term and UTM Content.

v3.4.0

10 Sep 20:33
Compare
Choose a tag to compare

Changelog:

  • Added support for UTM Term and UTM Content for analytics & custom events.

v3.3.0

09 Aug 19:41
Compare
Choose a tag to compare
  • Using fetch API instead of XMLHttpRequest (#14)
  • Returning a promise from track method

v3.2.1

04 Jul 21:49
Compare
Choose a tag to compare

Changelog:

  • Exporting internal interfaces.
  • pageview function now adds prev parameter by default.

v3.2.0

01 Jul 19:25
Compare
Choose a tag to compare

Changelog:

  • Added meta to IPageViewPayload interface. Now you can supply metadata with your pageview events just like on custom events.
  • Deprecated trackPageview function in favour of pageview.

v3.1.1

07 May 20:42
Compare
Choose a tag to compare

Changelog:

  • fix: callback in trackErrors function was not evoking properly