Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump and update dependencies to their latest compatible versions #108

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
75 changes: 51 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
"version": "2.0.1",
"license": "MIT",
"author": "Vben",
"packageManager": "[email protected]",
"scripts": {
"stub": "pnpm run prepack --filter ./packages -- --stub",
"postinstall": "pnpm run stub",
"stub": "corepack pnpm run prepack --filter ./packages -- --stub",
"postinstall": "corepack pnpm run stub",
"log": "conventional-changelog -p angular -i CHANGELOG.md -s",
"lint:pretty": "pretty-quick --staged",
"lint:eslint": "eslint \"packages/**/*.{ts,tsx}\" --fix",
"prepare": "husky install",
"prepare": "husky",
"preinstall": "npx only-allow pnpm",
"test": "vitest"
},
Expand All @@ -31,28 +32,30 @@
},
"homepage": "https://github.com/vbenjs/vite-plugin-svg-icons/tree/main/#readme",
"devDependencies": {
"@commitlint/cli": "^16.1.0",
"@commitlint/config-conventional": "^16.0.0",
"@types/html-minifier-terser": "^6.1.0",
"@types/jsdom": "^16.2.14",
"@types/node": "^17.0.13",
"@typescript-eslint/eslint-plugin": "^5.10.1",
"@typescript-eslint/parser": "^5.10.1",
"commitizen": "^4.2.4",
"conventional-changelog-cli": "^2.2.2",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@types/html-minifier-terser": "^7.0.2",
"@types/jsdom": "^16.2.15",
"@types/node": "^18.19.39",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.16.0",
"commitizen": "^4.3.0",
"conventional-changelog-cli": "^5.0.0",
"cross-env": "^7.0.3",
"eslint": "^8.7.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-html": "^6.2.0",
"husky": "^7.0.4",
"lint-staged": "^12.3.2",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"tsup": "^5.11.11",
"typescript": "^4.5.5",
"unbuild": "^0.6.9",
"vite": "^2.7.13",
"vitest": "^0.2.5"
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-html": "^8.1.1",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"pnpm": "^7.33.7",
"prettier": "^3.3.3",
"pretty-quick": "^4.0.0",
"rimraf": "^6.0.1",
"tsup": "^8.1.0",
"typescript": "^5.5.3",
"unbuild": "^2.0.0",
"vite": "^5.3.3",
"vitest": "^2.0.2"
},
"lint-staged": {
"*": [
Expand All @@ -64,5 +67,29 @@
"packages/**/*.d.ts": [
"eslint --ext .ts"
]
},
"pnpm": {
"overrides": {
"vite@<2.9.13": ">=2.9.13",
"follow-redirects@<1.14.8": ">=1.14.8",
"postcss@<7.0.36": ">=7.0.36",
"decode-uri-component@<0.2.1": ">=0.2.1",
"loader-utils@<1.4.1": ">=1.4.1",
"postcss@<8.4.31": ">=8.4.31",
"vite@<2.9.16": ">=2.9.16",
"loader-utils@>=1.0.0 <1.4.2": ">=1.4.2",
"vite@>=2.7.0 <=2.9.16": ">=2.9.17",
"follow-redirects@<1.15.4": ">=1.15.4",
"semver@>=7.0.0 <7.5.2": ">=7.5.2",
"semver@>=6.0.0 <6.3.1": ">=6.3.1",
"json5@<1.0.2": ">=1.0.2",
"json5@>=2.0.0 <2.2.2": ">=2.2.2",
"follow-redirects@<=1.15.5": ">=1.15.6",
"@babel/traverse@<7.23.2": ">=7.23.2",
"vite@>=2.7.0 <=2.9.17": ">=2.9.18",
"minimist@>=1.0.0 <1.2.6": ">=1.2.6",
"async@>=2.0.0 <2.6.4": ">=2.6.4",
"braces@<3.0.3": ">=3.0.3"
}
}
}
23 changes: 12 additions & 11 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,24 @@
},
"homepage": "https://github.com/anncwb/vite-plugin-svg-icons/tree/master/#readme",
"dependencies": {
"@types/svgo": "^2.6.1",
"@types/svgo": "^3.0.0",
"cors": "^2.8.5",
"debug": "^4.3.3",
"debug": "^4.3.5",
"etag": "^1.8.1",
"fs-extra": "^10.0.0",
"pathe": "^0.2.0",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"pathe": "^1.1.2",
"svg-baker": "1.7.0",
"svgo": "^2.8.0"
"svgo": "^3.3.2"
},
"peerDependencies": {
"vite": ">=2.0.0"
"vite": ">=4.0.0"
},
"devDependencies": {
"@types/cors": "^2.8.12",
"@types/debug": "^4.1.7",
"@types/etag": "^1.8.1",
"@types/fs-extra": "^9.0.13",
"@types/node": "^17.0.13"
"@types/cors": "^2.8.17",
"@types/debug": "^4.1.12",
"@types/etag": "^1.8.3",
"@types/fs-extra": "^11.0.4",
"@types/node": "^17.0.45"
}
}
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Plugin } from 'vite'
import type { OptimizedSvg, OptimizeOptions } from 'svgo'
import type { Output as OptimizedSvg, Config as OptimizeOptions } from 'svgo'
import type { ViteSvgIconsPlugin, FileStats, DomInject } from './typing'
import fg from 'fast-glob'
import getEtag from 'etag'
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/typing.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OptimizeOptions } from 'svgo'
import type { Config as OptimizeOptions } from 'svgo'

export type DomInject = 'body-first' | 'body-last'

Expand Down
18 changes: 9 additions & 9 deletions packages/playground/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
},
"dependencies": {
"etag": "^1.8.1",
"fast-glob": "^3.2.11",
"fs-extra": "^10.0.0",
"fast-glob": "^3.3.2",
"fs-extra": "^10.1.0",
"svgo": "^2.8.0",
"vue": "^3.2.29"
"vue": "^3.4.31"
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.1.0",
"@vitejs/plugin-vue-jsx": "^1.3.3",
"@vue/compiler-sfc": "^3.2.29",
"@vitejs/plugin-vue": "^2.3.4",
"@vitejs/plugin-vue-jsx": "^1.3.10",
"@vue/compiler-sfc": "^3.4.31",
"cross-env": "^7.0.3",
"http-server": "^14.1.0",
"typescript": "^4.5.5",
"vite": "^2.7.13",
"http-server": "^14.1.1",
"typescript": "^4.9.5",
"vite": "^2.9.18",
"vite-plugin-svg-icons": "workspace:*"
}
}
Loading