@vueuse/nuxt 8.5.0 → 8.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/README.md +13 -0
- package/index.d.ts +13 -0
- package/index.mjs +2 -1
- package/package.json +23 -23
package/README.md
CHANGED
|
@@ -19,6 +19,19 @@ export default defineNuxtConfig({
|
|
|
19
19
|
})
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
## Caveats
|
|
23
|
+
|
|
24
|
+
The following utils are **disabled** from auto-import for Nuxt to avoid conflicts with Nuxt's built-in utils:
|
|
25
|
+
|
|
26
|
+
- `toRefs`
|
|
27
|
+
- `useFetch`
|
|
28
|
+
- `useCookie`
|
|
29
|
+
- `useHead`
|
|
30
|
+
- `useTitle`
|
|
31
|
+
- `useStorage`
|
|
32
|
+
|
|
33
|
+
You can always use them by explicitly import from `@vueuse/core`
|
|
34
|
+
|
|
22
35
|
## License
|
|
23
36
|
|
|
24
37
|
[MIT License](https://github.com/vueuse/vueuse/blob/master/LICENSE) © 2021-PRESENT [Anthony Fu](https://github.com/antfu)
|
package/index.d.ts
CHANGED
|
@@ -11,6 +11,19 @@ interface VueUseNuxtOptions {
|
|
|
11
11
|
*/
|
|
12
12
|
ssrHandlers?: boolean;
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Auto import for VueUse in Nuxt
|
|
16
|
+
* Usage:
|
|
17
|
+
*
|
|
18
|
+
* ```ts
|
|
19
|
+
* // nuxt.config.js
|
|
20
|
+
* export deafult {
|
|
21
|
+
* buildModules: [
|
|
22
|
+
* '@vueuse/nuxt'
|
|
23
|
+
* ]
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
14
27
|
declare const _default: _nuxt_schema.NuxtModule<VueUseNuxtOptions>;
|
|
15
28
|
|
|
16
29
|
declare module '@nuxt/schema' {
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vueuse/nuxt",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.0",
|
|
4
4
|
"description": "VueUse Nuxt Module",
|
|
5
|
+
"author": "Anthony Fu <https://github.com/antfu>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"funding": "https://github.com/sponsors/antfu",
|
|
8
|
+
"homepage": "https://github.com/vueuse/vueuse/tree/main/packages/nuxt#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/vueuse/vueuse.git",
|
|
12
|
+
"directory": "packages/nuxt"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/vueuse/vueuse/issues"
|
|
16
|
+
},
|
|
5
17
|
"keywords": [
|
|
6
18
|
"vue",
|
|
7
19
|
"vueuse",
|
|
@@ -9,38 +21,26 @@
|
|
|
9
21
|
"nuxt3",
|
|
10
22
|
"nuxt-module"
|
|
11
23
|
],
|
|
12
|
-
"
|
|
13
|
-
"bugs": {
|
|
14
|
-
"url": "https://github.com/vueuse/vueuse/issues"
|
|
15
|
-
},
|
|
16
|
-
"license": "MIT",
|
|
17
|
-
"author": "Anthony Fu <https://github.com/antfu>",
|
|
18
|
-
"repository": {
|
|
19
|
-
"type": "git",
|
|
20
|
-
"url": "git+https://github.com/vueuse/vueuse.git",
|
|
21
|
-
"directory": "packages/nuxt"
|
|
22
|
-
},
|
|
23
|
-
"funding": "https://github.com/sponsors/antfu",
|
|
24
|
-
"main": "./index.cjs",
|
|
25
|
-
"module": "./index.mjs",
|
|
26
|
-
"types": "./index.d.ts",
|
|
24
|
+
"sideEffects": false,
|
|
27
25
|
"exports": {
|
|
28
26
|
".": {
|
|
27
|
+
"types": "./index.d.ts",
|
|
29
28
|
"import": "./index.mjs",
|
|
30
|
-
"require": "./index.cjs"
|
|
31
|
-
"types": "./index.d.ts"
|
|
29
|
+
"require": "./index.cjs"
|
|
32
30
|
},
|
|
33
31
|
"./*": "./*"
|
|
34
32
|
},
|
|
35
|
-
"
|
|
33
|
+
"main": "./index.cjs",
|
|
34
|
+
"module": "./index.mjs",
|
|
35
|
+
"types": "./index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@nuxt/kit": "^3.0.0-rc.
|
|
38
|
-
"@vueuse/core": "8.
|
|
39
|
-
"@vueuse/metadata": "8.
|
|
37
|
+
"@nuxt/kit": "^3.0.0-rc.3",
|
|
38
|
+
"@vueuse/core": "8.6.0",
|
|
39
|
+
"@vueuse/metadata": "8.6.0",
|
|
40
40
|
"local-pkg": "^0.4.1",
|
|
41
41
|
"vue-demi": "*"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@nuxt/schema": "^3.0.0-rc.
|
|
44
|
+
"@nuxt/schema": "^3.0.0-rc.3"
|
|
45
45
|
}
|
|
46
46
|
}
|