@serwist/nuxt 9.0.0-preview.24 → 9.0.0-preview.26

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
@@ -41,7 +41,6 @@ interface ClientOptions {
41
41
  registerPlugin?: boolean;
42
42
  }
43
43
  interface ModuleOptions extends Optional<PluginOptions, "swSrc" | "swDest" | "globDirectory"> {
44
- manifest?: string;
45
44
  /**
46
45
  * Options for plugin.
47
46
  */
package/dist/module.d.ts CHANGED
@@ -41,7 +41,6 @@ interface ClientOptions {
41
41
  registerPlugin?: boolean;
42
42
  }
43
43
  interface ModuleOptions extends Optional<PluginOptions, "swSrc" | "swDest" | "globDirectory"> {
44
- manifest?: string;
45
44
  /**
46
45
  * Options for plugin.
47
46
  */
package/dist/module.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "nuxt": "^3.8.0",
6
6
  "bridge": false
7
7
  },
8
- "version": "9.0.0-preview.24"
8
+ "version": "9.0.0-preview.26"
9
9
  }
package/dist/module.mjs CHANGED
@@ -6,7 +6,7 @@ import { createReadStream } from 'node:fs';
6
6
  import fs from 'node:fs/promises';
7
7
  import pathe from 'pathe';
8
8
 
9
- const version = "9.0.0-preview.24";
9
+ const version = "9.0.0-preview.26";
10
10
 
11
11
  function configurePwaOptions(options, nuxt, nitroConfig) {
12
12
  let buildAssetsDir = nuxt.options.app.buildAssetsDir ?? "_nuxt/";
@@ -112,7 +112,7 @@ const module = defineNuxtModule({
112
112
  const resolver = createResolver(import.meta.url);
113
113
  let ctx;
114
114
  let api;
115
- const { manifest: manifestPath, client: _client, ...userOptions } = options;
115
+ const { client: _client, ...userOptions } = options;
116
116
  const client = { registerPlugin: true, ..._client };
117
117
  const runtimeDir = resolver.resolve("./runtime");
118
118
  if (!nuxt.options.ssr)
@@ -124,7 +124,7 @@ const module = defineNuxtModule({
124
124
  });
125
125
  }
126
126
  nuxt.hook("prepare:types", ({ references }) => {
127
- references.push({ path: resolver.resolve(runtimeDir, "plugins/augmentation") });
127
+ references.push({ path: resolver.resolve(runtimeDir, "plugins/augmentation.d.ts") });
128
128
  });
129
129
  nuxt.hook("nitro:init", (nitro) => {
130
130
  configurePwaOptions(options, nuxt, nitro.options);
@@ -1,7 +1,7 @@
1
- import { getSerwist } from "@serwist/vite/browser";
1
+ import { swScope, swType, swUrl } from "virtual:serwist";
2
2
  import { defineNuxtPlugin } from "#imports";
3
3
  const plugin = defineNuxtPlugin(async () => {
4
- const serwist = await getSerwist();
4
+ const serwist = "serviceWorker" in navigator ? new (await import("@serwist/window")).Serwist(swUrl, { scope: swScope, type: swType }) : void 0;
5
5
  return {
6
6
  provide: {
7
7
  serwist
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/nuxt",
3
- "version": "9.0.0-preview.24",
3
+ "version": "9.0.0-preview.26",
4
4
  "type": "module",
5
5
  "description": "A Nuxt module that integrates Serwist into your application.",
6
6
  "files": [
@@ -23,8 +23,8 @@
23
23
  "engines": {
24
24
  "node": ">=18.0.0"
25
25
  },
26
- "repository": "https://gitlab.com/serwist/serwist",
27
- "bugs": "https://gitlab.com/serwist/serwist/issues",
26
+ "repository": "https://github.com/serwist/serwist",
27
+ "bugs": "https://github.com/serwist/serwist/issues",
28
28
  "homepage": "https://serwist.pages.dev",
29
29
  "main": "./dist/module.mjs",
30
30
  "types": "./dist/types.d.ts",
@@ -48,34 +48,31 @@
48
48
  "@serwist/vite",
49
49
  "pathe",
50
50
  "ufo",
51
- "virtual:serwist-nuxt-configuration"
51
+ "virtual:serwist-nuxt-configuration",
52
+ "virtual:serwist"
52
53
  ]
53
54
  },
54
55
  "dependencies": {
55
- "@nuxt/kit": "3.11.1",
56
+ "@nuxt/kit": "3.11.2",
56
57
  "fast-json-stable-stringify": "2.1.0",
57
58
  "pathe": "1.1.2",
58
59
  "ufo": "1.5.3",
59
- "@serwist/build": "9.0.0-preview.24",
60
- "@serwist/vite": "9.0.0-preview.24",
61
- "@serwist/window": "9.0.0-preview.24"
60
+ "@serwist/build": "9.0.0-preview.26",
61
+ "@serwist/vite": "9.0.0-preview.26",
62
+ "@serwist/window": "9.0.0-preview.26"
62
63
  },
63
64
  "devDependencies": {
64
65
  "@nuxt/module-builder": "0.5.5",
65
- "@nuxt/schema": "3.11.1",
66
- "@nuxt/test-utils": "3.12.0",
67
- "@playwright/test": "1.42.1",
68
- "@types/node": "20.12.4",
69
- "eslint": "8.57.0",
70
- "nuxt": "3.11.1",
71
- "publint": "0.2.7",
66
+ "@nuxt/schema": "3.11.2",
67
+ "@types/node": "20.12.7",
68
+ "eslint": "9.0.0",
69
+ "nuxt": "3.11.2",
72
70
  "rimraf": "5.0.5",
73
71
  "serve": "14.2.1",
74
- "typescript": "5.5.0-dev.20240404",
72
+ "typescript": "5.5.0-dev.20240415",
75
73
  "vite": "5.2.8",
76
- "vitest": "1.4.0",
77
- "vue-tsc": "2.0.7",
78
- "@serwist/constants": "9.0.0-preview.24"
74
+ "vue-tsc": "2.0.13",
75
+ "@serwist/configs": "9.0.0-preview.26"
79
76
  },
80
77
  "peerDependencies": {
81
78
  "typescript": ">=5.0.0",