@vskstudio/takt-astro 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -39,6 +39,8 @@ interface TaktOptions {
39
39
  trackQuery?: boolean;
40
40
  /** Whitelist of query params to keep when `trackQuery` is off. */
41
41
  queryParams?: string[];
42
+ /** Path prefixes never tracked, e.g. `['/app','/account']`. Segment-bounded: `'/app'` matches `'/app'` and `'/app/…'` but not `'/application'`. */
43
+ exclude?: string[];
42
44
  /**
43
45
  * Rewrite each URL before it is sent (e.g. strip a fragment or PII).
44
46
  * MUST be a self-contained function: it is stringified at build time and
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ function resolveOptions(options = {}) {
21
21
  sampleRate: options.sampleRate,
22
22
  trackQuery: options.trackQuery,
23
23
  queryParams: options.queryParams,
24
+ exclude: options.exclude,
24
25
  tagged: options.tagged
25
26
  };
26
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vskstudio/takt-astro",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "Astro integration for Takt privacy-friendly analytics",
5
5
  "license": "MIT",
6
6
  "author": "VSK Studio",
@@ -56,14 +56,14 @@
56
56
  "release": "pnpm build && changeset publish"
57
57
  },
58
58
  "peerDependencies": {
59
- "@vskstudio/takt-core": ">=0.6.0",
59
+ "@vskstudio/takt-core": ">=0.8.0",
60
60
  "astro": ">=4"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@changesets/cli": "^2.31.0",
64
64
  "@playwright/test": "^1.50.0",
65
65
  "@size-limit/preset-small-lib": "^11.1.6",
66
- "@vskstudio/takt-core": "^0.5.0",
66
+ "@vskstudio/takt-core": "^0.8.0",
67
67
  "astro": "^5.0.0",
68
68
  "eslint": "^9.0.0",
69
69
  "size-limit": "^11.1.6",