Releases: Swetrix/swetrix-js
Releases · Swetrix/swetrix-js
v3.5.3
Changelog:
- fix:
trackError
optional properties are not marked as optional in TypeScript (#18)
- Removed unused dependencies and bumped dev dependencies.
v3.5.2
Changelog:
- Fix broken CJS imports (
Error [ERR_REQUIRE_ESM]: require() of ES Module ...
) for the NPM version
v3.5.1
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
Changelog:
- Remove
prev
parameter from pageview tracking.
v3.4.1
Changelog:
- Added types for
UTM Term
and UTM Content
.
v3.4.0
Changelog:
- Added support for
UTM Term
and UTM Content
for analytics & custom events.
v3.3.0
- Using
fetch
API instead of XMLHttpRequest
(#14)
- Returning a promise from
track
method
v3.2.1
Changelog:
- Exporting internal interfaces.
pageview
function now adds prev
parameter by default.
v3.2.0
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
Changelog:
- fix:
callback
in trackErrors
function was not evoking properly