@faststats/nuxt 0.8.2 → 0.9.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/module.d.mts CHANGED
@@ -1,14 +1,13 @@
1
1
  import { WebAnalyticsOptions } from "@faststats/web";
2
2
  import { ErrorTrackingExtensionOptions } from "@faststats/web/error";
3
3
  import { SessionReplayExtensionOptions } from "@faststats/web/replay";
4
- import { WebVitalsExtensionOptions } from "@faststats/web/web-vitals";
5
4
  import { NuxtModule } from "@nuxt/schema";
6
5
  //#region src/module.d.ts
7
6
  export type ModuleOptions = Omit<Partial<WebAnalyticsOptions>, "extensions"> & {
8
7
  extensions?: {
9
8
  outboundLinks?: boolean;
10
9
  errorTracking?: boolean | ErrorTrackingExtensionOptions;
11
- webVitals?: boolean | WebVitalsExtensionOptions;
10
+ webVitals?: boolean;
12
11
  sessionReplay?: boolean | SessionReplayExtensionOptions;
13
12
  };
14
13
  };
package/dist/module.mjs CHANGED
@@ -3,7 +3,7 @@ import { addPlugin, addTypeTemplate, createResolver, defineNuxtModule, useLogger
3
3
  import { defu } from "defu";
4
4
  //#region src/module.ts
5
5
  const SDK_NAME = "@faststats/nuxt";
6
- const SDK_VERSION = "0.8.2";
6
+ const SDK_VERSION = "0.9.0";
7
7
  const faststatsModule = defineNuxtModule({
8
8
  meta: {
9
9
  name: "@faststats/nuxt",
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/faststats-dev/faststats-javascript.git"
6
6
  },
7
- "version": "0.8.2",
7
+ "version": "0.9.0",
8
8
  "type": "module",
9
9
  "main": "./dist/module.mjs",
10
10
  "types": "./dist/module.d.mts",
@@ -31,7 +31,7 @@
31
31
  "nuxt": "^3.12.0 || ^4.0.0"
32
32
  },
33
33
  "dependencies": {
34
- "@faststats/web": "^0.8.2",
34
+ "@faststats/web": "^0.9.0",
35
35
  "@nuxt/kit": "^4.5.2",
36
36
  "@nuxt/schema": "^4.5.2",
37
37
  "defu": "^6.1.7"
@@ -39,6 +39,6 @@
39
39
  "devDependencies": {
40
40
  "nuxt": "^4.5.2",
41
41
  "tsdown": "^0.23.0",
42
- "typescript": "^6.0.3"
42
+ "typescript": "^7.0.2"
43
43
  }
44
44
  }
@@ -5,7 +5,6 @@ import {
5
5
  } from "@faststats/web";
6
6
  import type { ErrorTrackingExtensionOptions } from "@faststats/web/error";
7
7
  import type { SessionReplayExtensionOptions } from "@faststats/web/replay";
8
- import type { WebVitalsExtensionOptions } from "@faststats/web/web-vitals";
9
8
  import { defineNuxtPlugin, useRuntimeConfig } from "nuxt/app";
10
9
 
11
10
  type RuntimeOptions = Omit<WebAnalyticsOptions, "siteKey" | "extensions"> & {
@@ -13,7 +12,7 @@ type RuntimeOptions = Omit<WebAnalyticsOptions, "siteKey" | "extensions"> & {
13
12
  extensions?: {
14
13
  outboundLinks?: boolean;
15
14
  errorTracking?: boolean | ErrorTrackingExtensionOptions;
16
- webVitals?: boolean | WebVitalsExtensionOptions;
15
+ webVitals?: boolean;
17
16
  sessionReplay?: boolean | SessionReplayExtensionOptions;
18
17
  };
19
18
  };
@@ -46,7 +45,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
46
45
  : undefined,
47
46
  configured.webVitals
48
47
  ? import("@faststats/web/web-vitals").then(({ webVitals }) =>
49
- webVitals(extensionOptions(configured.webVitals)),
48
+ webVitals(),
50
49
  )
51
50
  : undefined,
52
51
  configured.sessionReplay