Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: unplugin/unplugin-auto-import
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 13087065fd66c1b67f37400abc9e7ff088febfa7
Choose a base ref
..
head repository: unplugin/unplugin-auto-import
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f9f7f456c5711af8584551b02c50eb0a2bd9dc01
Choose a head ref
Showing with 1,277 additions and 1,338 deletions.
  1. +2 −2 .gitignore
  2. +3 −0 README.md
  3. +4 −4 examples/solid-js/package.json
  4. +6 −6 examples/vite-astro/package.json
  5. +7 −7 examples/vite-react/package.json
  6. +6 −6 examples/vite-svelte/package.json
  7. +15 −15 package.json
  8. +6 −6 playground/package.json
  9. +1 −0 playground/vite.config.ts
  10. +1,197 −1,290 pnpm-lock.yaml
  11. +19 −0 src/core/ctx.ts
  12. +1 −2 src/nuxt.ts
  13. +10 −0 src/types.ts
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -81,5 +81,5 @@ dist
.idea
auto-imports.d.ts
.eslintrc-auto-import.json

.vscode
.unimport-items.json
.vscode
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -346,6 +346,9 @@ AutoImport({
enabled: false, // Default `false`
filepath: './.biomelintrc-auto-import.json', // Default `./.biomelintrc-auto-import.json`
},

// Save unimport items into a JSON file for other tools to consume
dumpUnimportItems: './auto-imports.json', // Default `false`
})
```

8 changes: 4 additions & 4 deletions examples/solid-js/package.json
Original file line number Diff line number Diff line change
@@ -11,12 +11,12 @@
"serve": "vite preview"
},
"dependencies": {
"@solidjs/router": "^0.14.10",
"@solidjs/router": "^0.15.1",
"solid-js": "^1.9.3"
},
"devDependencies": {
"typescript": "^5.6.3",
"vite": "^5.4.11",
"vite-plugin-solid": "^2.10.2"
"typescript": "^5.7.2",
"vite": "^6.0.1",
"vite-plugin-solid": "^2.11.0"
}
}
12 changes: 6 additions & 6 deletions examples/vite-astro/package.json
Original file line number Diff line number Diff line change
@@ -11,14 +11,14 @@
"astro": "astro"
},
"devDependencies": {
"@astrojs/react": "^3.6.2",
"@astrojs/svelte": "^5.7.3",
"@astrojs/vue": "^4.5.2",
"astro": "^4.16.12",
"@astrojs/react": "^3.6.3",
"@astrojs/svelte": "^6.0.2",
"@astrojs/vue": "^4.5.3",
"astro": "^4.16.15",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"svelte": "^4.2.19",
"svelte": "^5.2.9",
"unplugin-auto-import": "workspace:*",
"vue": "^3.5.12"
"vue": "^3.5.13"
}
}
14 changes: 7 additions & 7 deletions examples/vite-react/package.json
Original file line number Diff line number Diff line change
@@ -9,22 +9,22 @@
},
"dependencies": {
"ahooks": "^3.8.1",
"i18next": "^23.16.5",
"i18next": "^24.0.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^15.1.1",
"react-router": "^6.28.0",
"react-router-dom": "^6.28.0"
"react-i18next": "^15.1.2",
"react-router": "^7.0.1",
"react-router-dom": "^7.0.1"
},
"devDependencies": {
"@iconify-json/logos": "*",
"@svgr/core": "^8.1.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react-refresh": "^1.3.6",
"typescript": "^5.6.3",
"typescript": "^5.7.2",
"unplugin-auto-import": "workspace:*",
"unplugin-icons": "^0.19.3",
"vite": "^5.4.11"
"unplugin-icons": "^0.20.1",
"vite": "^6.0.1"
}
}
12 changes: 6 additions & 6 deletions examples/vite-svelte/package.json
Original file line number Diff line number Diff line change
@@ -9,16 +9,16 @@
"check": "svelte-check --tsconfig ./tsconfig.json"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@sveltejs/vite-plugin-svelte": "^5.0.1",
"@tsconfig/svelte": "^5.0.4",
"detect-browser-es": "^0.1.1",
"svelte": "^4.2.19",
"svelte-check": "^4.0.7",
"svelte": "^5.2.9",
"svelte-check": "^4.1.0",
"svelte-preprocess": "^6.0.3",
"tslib": "^2.8.1",
"typescript": "^5.6.3",
"typescript": "^5.7.2",
"unplugin-auto-import": "workspace:*",
"vite": "^5.4.11",
"vite-plugin-inspect": "^0.8.7"
"vite": "^6.0.1",
"vite-plugin-inspect": "^0.10.0"
}
}
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "unplugin-auto-import",
"type": "module",
"version": "0.18.4",
"packageManager": "pnpm@9.13.0",
"version": "0.18.6",
"packageManager": "pnpm@9.14.2",
"description": "Register global imports on demand for Vite and Webpack",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
@@ -165,31 +165,31 @@
"dependencies": {
"@antfu/utils": "^0.7.10",
"@rollup/pluginutils": "^5.1.3",
"local-pkg": "^0.5.0",
"magic-string": "^0.30.12",
"local-pkg": "^0.5.1",
"magic-string": "^0.30.14",
"picomatch": "^4.0.2",
"tinyglobby": "^0.2.10",
"unimport": "3.14.2",
"unplugin": "^1.15.0"
"unplugin": "^1.16.0"
},
"devDependencies": {
"@antfu/eslint-config": "^3.8.0",
"@antfu/ni": "^0.23.0",
"@nuxt/kit": "^3.14.159",
"@antfu/eslint-config": "^3.10.0",
"@antfu/ni": "^0.23.1",
"@nuxt/kit": "^3.14.1592",
"@svgr/plugin-jsx": "^8.1.0",
"@types/node": "^22.9.0",
"@types/node": "^22.10.0",
"@types/picomatch": "^3.0.1",
"@types/resolve": "^1.20.6",
"@vueuse/metadata": "^11.2.0",
"@vueuse/metadata": "^12.0.0",
"bumpp": "^9.8.1",
"eslint": "^9.14.0",
"eslint": "^9.15.0",
"esno": "^4.8.0",
"publint": "^0.2.12",
"rollup": "^4.26.0",
"rollup": "^4.27.4",
"tsup": "^8.3.5",
"typescript": "^5.6.3",
"vite": "^5.4.11",
"vitest": "^2.1.5",
"typescript": "^5.7.2",
"vite": "^6.0.1",
"vitest": "^2.1.6",
"webpack": "^5.96.1"
}
}
12 changes: 6 additions & 6 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -5,15 +5,15 @@
"build": "vite build"
},
"dependencies": {
"@vueuse/core": "^11.2.0",
"@vueuse/core": "^12.0.0",
"vue": "3.3.4"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.2.0",
"@vue/compiler-sfc": "^3.5.12",
"element-plus": "^2.8.7",
"@vitejs/plugin-vue": "^5.2.1",
"@vue/compiler-sfc": "^3.5.13",
"element-plus": "^2.8.8",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.11",
"vite-plugin-inspect": "^0.8.7"
"vite": "^6.0.1",
"vite-plugin-inspect": "^0.10.0"
}
}
1 change: 1 addition & 0 deletions playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@ export default defineConfig({
return normalizeImportFrom.includes('/directives/')
},
},
dumpUnimportItems: true,
}),
],
})
Loading