unplugin-auto-import
Advanced tools
Comparing version 0.15.3 to 0.16.1
@@ -7,4 +7,4 @@ /* eslint-disable */ | ||
declare global { | ||
const $$: typeof import('vue/macros')['$$'] | ||
const $: typeof import('vue/macros')['$'] | ||
const $: typeof import('vue/macros')[' | ||
] | ||
const $computed: typeof import('vue/macros')['$computed'] | ||
@@ -15,2 +15,15 @@ const $customRef: typeof import('vue/macros')['$customRef'] | ||
const $toRef: typeof import('vue/macros')['$toRef'] | ||
const afterAll: typeof import('vitest')['afterAll'] | ||
const afterEach: typeof import('vitest')['afterEach'] | ||
const assert: typeof import('vitest')['assert'] | ||
const beforeAll: typeof import('vitest')['beforeAll'] | ||
const beforeEach: typeof import('vitest')['beforeEach'] | ||
const chai: typeof import('vitest')['chai'] | ||
const describe: typeof import('vitest')['describe'] | ||
const expect: typeof import('vitest')['expect'] | ||
const it: typeof import('vitest')['it'] | ||
const suite: typeof import('vitest')['suite'] | ||
const test: typeof import('vitest')['test'] | ||
const vi: typeof import('vitest')['vi'] | ||
const vitest: typeof import('vitest')['vitest'] | ||
} |
import { | ||
unplugin_default | ||
} from "./chunk-Z2HKEFMM.js"; | ||
} from "./chunk-76YHQO4V.js"; | ||
import "./chunk-UDE7NMNZ.js"; | ||
@@ -5,0 +5,0 @@ |
import { | ||
unplugin_default | ||
} from "./chunk-Z2HKEFMM.js"; | ||
} from "./chunk-76YHQO4V.js"; | ||
import "./chunk-UDE7NMNZ.js"; | ||
@@ -5,0 +5,0 @@ |
import { | ||
unplugin_default | ||
} from "./chunk-Z2HKEFMM.js"; | ||
} from "./chunk-76YHQO4V.js"; | ||
import "./chunk-UDE7NMNZ.js"; | ||
@@ -5,0 +5,0 @@ export { |
import { | ||
unplugin_default | ||
} from "./chunk-Z2HKEFMM.js"; | ||
} from "./chunk-76YHQO4V.js"; | ||
import "./chunk-UDE7NMNZ.js"; | ||
@@ -5,0 +5,0 @@ |
import { | ||
unplugin_default | ||
} from "./chunk-Z2HKEFMM.js"; | ||
} from "./chunk-76YHQO4V.js"; | ||
import "./chunk-UDE7NMNZ.js"; | ||
@@ -5,0 +5,0 @@ |
@@ -140,11 +140,2 @@ import { Arrayable, Awaitable } from '@antfu/utils'; | ||
/** | ||
* Cache the result of resolving, across multiple vite builds. | ||
* | ||
* A custom path is supported. | ||
* When set to `true`, the cache will be stored in `node_modules/.cache/unplugin-auto-import.json`. | ||
* | ||
* @default false | ||
*/ | ||
cache?: string | boolean; | ||
/** | ||
* Auto import inside Vue templates | ||
@@ -151,0 +142,0 @@ * |
import { | ||
unplugin_default | ||
} from "./chunk-Z2HKEFMM.js"; | ||
} from "./chunk-76YHQO4V.js"; | ||
import "./chunk-UDE7NMNZ.js"; | ||
@@ -5,0 +5,0 @@ |
import { | ||
unplugin_default | ||
} from "./chunk-Z2HKEFMM.js"; | ||
} from "./chunk-76YHQO4V.js"; | ||
import "./chunk-UDE7NMNZ.js"; | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "unplugin-auto-import", | ||
"type": "module", | ||
"version": "0.15.3", | ||
"packageManager": "pnpm@8.2.0", | ||
"version": "0.16.1", | ||
"packageManager": "pnpm@8.5.1", | ||
"description": "Register global imports on demand for Vite and Webpack", | ||
@@ -105,23 +105,23 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"magic-string": "^0.30.0", | ||
"minimatch": "^9.0.0", | ||
"unimport": "^3.0.6", | ||
"minimatch": "^9.0.1", | ||
"unimport": "^3.0.7", | ||
"unplugin": "^1.3.1" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^0.38.4", | ||
"@antfu/eslint-config": "^0.39.1", | ||
"@antfu/ni": "^0.21.3", | ||
"@nuxt/kit": "^3.4.1", | ||
"@types/node": "^18.15.11", | ||
"@nuxt/kit": "^3.5.0", | ||
"@types/node": "^18.16.13", | ||
"@types/resolve": "^1.20.2", | ||
"@vueuse/metadata": "^10.0.0", | ||
"@vueuse/metadata": "^10.1.2", | ||
"bumpp": "^9.1.0", | ||
"eslint": "^8.38.0", | ||
"eslint": "^8.41.0", | ||
"esno": "^0.16.3", | ||
"fast-glob": "^3.2.12", | ||
"rollup": "^3.20.2", | ||
"rollup": "^3.22.0", | ||
"tsup": "^6.7.0", | ||
"typescript": "^5.0.4", | ||
"vite": "^4.2.1", | ||
"vitest": "^0.30.1", | ||
"webpack": "^5.79.0" | ||
"vite": "^4.3.8", | ||
"vitest": "^0.31.1", | ||
"webpack": "^5.83.1" | ||
}, | ||
@@ -128,0 +128,0 @@ "scripts": { |
@@ -13,2 +13,3 @@ # unplugin-auto-import | ||
import { computed, ref } from 'vue' | ||
const count = ref(0) | ||
@@ -31,2 +32,3 @@ const doubled = computed(() => count.value * 2) | ||
import { useState } from 'react' | ||
export function Counter() { | ||
@@ -253,7 +255,2 @@ const [count, setCount] = useState(0) | ||
// Cache the result of resolving, across multiple vite builds. | ||
// A custom path is supported. | ||
// When set to `true`, the cache will be stored in `node_modules/.cache/unplugin-auto-import.json`. | ||
cache: false, | ||
// Auto import inside Vue template | ||
@@ -361,3 +358,3 @@ // see https://github.com/unjs/unimport/pull/15 and https://github.com/unjs/unimport/pull/72 | ||
From v0.8.0, `unplugin-auto-import` **uses** `unimport` underneath. `unimport` is designed to be a lower level tool (it also powered Nuxt's auto import). You can think `unplugin-auto-import` is a wrapper of it that provides more user-friendly config APIs and capability like resolvers. Development of new features will mostly happend in `unimport` from now. | ||
From v0.8.0, `unplugin-auto-import` **uses** `unimport` underneath. `unimport` is designed to be a lower-level tool (it also powered Nuxt's auto import). You can think `unplugin-auto-import` is a wrapper of it that provides more user-friendly config APIs and capabilities like resolvers. Development of new features will mostly happen in `unimport`` from now. | ||
@@ -364,0 +361,0 @@ ### Compare to [`vue-global-api`](https://github.com/antfu/vue-global-api) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
74763
2245
382
Updatedminimatch@^9.0.1
Updatedunimport@^3.0.7