@poveste/plugin-nuxt 0.2.1 → 0.3.1

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/README.md CHANGED
@@ -1,10 +1,12 @@
1
- # Poveste + Nuxt 3
1
+ # Poveste + Nuxt 4
2
+
3
+ Requires `nuxt@^4.5.0` — the first Nuxt whose `@nuxt/vite-builder` runs on Vite 8.
2
4
 
3
5
  ```bash
4
6
  pnpm add -D @poveste/plugin-nuxt
5
7
  ```
6
8
 
7
- Add the plugin in histoire config:
9
+ Add the plugin in poveste config:
8
10
 
9
11
  ```js
10
12
  import { HstNuxt } from '@poveste/plugin-nuxt'
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@poveste/plugin-nuxt",
3
3
  "type": "module",
4
- "version": "0.2.1",
5
- "description": "Poveste plugin to integrate with Nuxt 3 and Nuxt 4",
4
+ "version": "0.3.1",
5
+ "description": "Poveste plugin to integrate with Nuxt 4",
6
6
  "author": {
7
7
  "name": "Sorin Gitlan"
8
8
  },
@@ -23,23 +23,23 @@
23
23
  "module": "./dist/index.js",
24
24
  "types": "./dist/index.d.ts",
25
25
  "peerDependencies": {
26
- "nuxt": "^3.0.0-rc.11 || ^4.0.0",
27
- "@poveste/plugin-vue": "^0.2.1",
28
- "poveste": "^0.2.1"
26
+ "nuxt": "^4.5.0",
27
+ "@poveste/plugin-vue": "^0.3.1",
28
+ "poveste": "^0.3.1"
29
29
  },
30
30
  "dependencies": {
31
- "@nuxt/kit": "^3.14.1592",
31
+ "@nuxt/kit": "^4.5.2",
32
32
  "@rollup/plugin-replace": "^6.0.1",
33
33
  "h3": "^1.13.0",
34
34
  "ofetch": "^1.4.1",
35
35
  "unenv": "^1.10.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@nuxt/schema": "^3.14.1592",
38
+ "@nuxt/schema": "^4.5.2",
39
39
  "@types/node": "^22.10.1",
40
40
  "typescript": "5.6.3",
41
- "vite": "^7.3.0",
42
- "poveste": "0.2.1"
41
+ "vite": "^8.2.0",
42
+ "poveste": "0.3.1"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "rimraf dist && tsc -d",
@@ -30,12 +30,12 @@ export async function setupNuxtApp(publicConfig: PublicRuntimeConfig) {
30
30
  win.document.body.appendChild(app)
31
31
 
32
32
  win.IntersectionObserver
33
- = win.IntersectionObserver
34
- || class IntersectionObserver {
35
- observe() {
33
+ = win.IntersectionObserver
34
+ || class IntersectionObserver {
35
+ observe() {
36
36
  // noop
37
- }
38
37
  }
38
+ }
39
39
 
40
40
  const h3App = createApp()
41
41
 
package/tsconfig.json CHANGED
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "rootDir": "src",
11
11
  "module": "ESNext",
12
- "moduleResolution": "node",
12
+ "moduleResolution": "bundler",
13
13
  "resolveJsonModule": true,
14
14
  "types": [
15
15
  "node"