fix(deps): update dependency swetrix to v3 #95
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.0.1
->^3.0.0
Release Notes
Swetrix/swetrix-js (swetrix)
v3.5.2
Compare Source
Changelog:
Error [ERR_REQUIRE_ESM]: require() of ES Module ...
) for the NPM versionv3.5.1
Compare Source
Changelog:
exports
topackage.json
(thanks @KaelWD / https://github.com/Swetrix/swetrix-js/pull/17)swetrix.orig.js
file has been removed from thedist
. It was not described in the documentation and was not recommended to be used, but if you were using this file, please opt to useswetrix.js
instead.Other than that, there were no other user-facing changes.
DX wise:
package-lock.json
is now removed from.gitignore
v3.5.0
Compare Source
Changelog:
prev
parameter from pageview tracking.v3.4.1
Compare Source
Changelog:
UTM Term
andUTM Content
.v3.4.0
Compare Source
Changelog:
UTM Term
andUTM Content
for analytics & custom events.v3.3.0
Compare Source
fetch
API instead ofXMLHttpRequest
(https://github.com/Swetrix/swetrix-js/issues/14)track
methodv3.2.1
Compare Source
Changelog:
pageview
function now addsprev
parameter by default.v3.2.0
Compare Source
Changelog:
meta
toIPageViewPayload
interface. Now you can supply metadata with your pageview events just like on custom events.trackPageview
function in favour ofpageview
.v3.1.1
Compare Source
Changelog:
callback
intrackErrors
function was not evoking properlyv3.1.0
Compare Source
Changelog:
1. Introducing Error tracking! This release adds 2 new methods: trackErrors and trackError which allow you to track client-side errors on your websites.
2. Updated a few misc dependencies.
v3.0.3
Compare Source
Changelog:
For full v3 release notes see https://github.com/Swetrix/swetrix-js/releases/tag/v3.0.0
v3.0.2
Compare Source
Changelog:
trackViews
callback - updated return type fromIPageViewPayload
toPartial<IPageViewPayload>
For full v3 release notes see https://github.com/Swetrix/swetrix-js/releases/tag/v3.0.0
v3.0.1
Compare Source
Changelog:
IPageViewPayload
pg typeFor full v3 release notes see https://github.com/Swetrix/swetrix-js/releases/tag/v3.0.0
v3.0.0
Compare Source
Changelog:
noUserFlow
,doNotAnonymise
,ignore
andnoHeartbeat
parameters for thetrackViews
function.debug
parameter for theinit
function has been removed. Instead,devMode
is introduced. The only difference betweendebug
anddevMode
is that messages are no longer printed to the console.trackViews
optional parameter -callback
. The callback is supposed to replaceignore
parameter and give you more control over what data is tracked.The callback accepts the following object as it's only parameter:
The callback should return one of the following:
true
- to send the pageview event as-is.false
- to prevent sending the payload.object
- the object should contain the edited fields that will be assigned to the payload. For example, if yourpg
has some sensitive information (like/account/54345345
), you can replace it with/account/redacted
and return it as a callback result to be sent to the API. Note that the Swetrix script will append the callback result to an already existing payload, so if you're only returningpg
- all the other parameters will be sent as is, if you'd like to overwrite them - you'll need to explicitly return them in the callback object.Migration guide:
No changes in Swetrix config are needed unless you've been using the
ignore
parameter in thetrackViews
function.If you were using
ignore
parameter in past - you may need to replace it with thecallback
instead. Here's an example on how you can do that.Before upgrading to that version of Swetrix, your setup may look like this:
After upgrading, you'll need to replace
ignore
with acallback
and here's an example on how you can do that:v2.4.0
Compare Source
Changelog:
trackPageview
function to manually track pageviews. (Swetrix/swetrix-js@77ce797)v2.3.1
Compare Source
Changelog:
meta
object into thetrack()
funciton. (https://github.com/Swetrix/swetrix-js/pull/8)v2.3.0
: - the 5 September 2023 ReleaseCompare Source
Changelog:
doNotAnonymise
parameter totrackViews
function. It allows to not send paths from ignore list to API. If set tofalse
, the page view information will be sent to the Swetrix API, but the page will be displayed as a 'Redacted page' in the dashboard.v2.2.1
: - the 27 April 2023 ReleaseCompare Source
Changelog:
previous
page was sent without validating it withignore
parameter first.v2.2.0
: - the 26 April 2023 ReleaseCompare Source
Changelog:
noUserFlow
boolean parameter toPageViewsOptions
. If you want to disable user flow tracking, just set this parameter totrue
. By default it'sfalse
which means that the user flow tracking is enabled.v2.1.0
: - the 9 February 2023 ReleaseCompare Source
Changelog:
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.