vite-plugin-svg-icons
Advanced tools
Comparing version 0.5.0 to 0.6.0-beta.1
@@ -0,1 +1,10 @@ | ||
# [0.6.0](https://github.com/anncwb/vite-plugin-svg-icons/compare/v0.4.1...v0.6.0) (2021-05-25) | ||
### Bug Fixes | ||
- **cors:** fix [#4](https://github.com/anncwb/vite-plugin-svg-icons/issues/4) ([7cfc386](https://github.com/anncwb/vite-plugin-svg-icons/commit/7cfc386d26c1506fc1bc5d71886d4cecfb8b5aad)) | ||
- **ssr:** fix SSR Cannot find module, fixed [#7](https://github.com/anncwb/vite-plugin-svg-icons/issues/7) ([d7f8791](https://github.com/anncwb/vite-plugin-svg-icons/commit/d7f879159fcec8e0ca5a2ebe78ab02756dc09116)) | ||
## [0.5.1](https://github.com/anncwb/vite-plugin-svg-icons/compare/v0.4.1...v0.5.1) (2021-05-09) | ||
# [0.5.0](https://github.com/anncwb/vite-plugin-svg-icons/compare/v0.4.1...v0.5.0) (2021-04-28) | ||
@@ -2,0 +11,0 @@ |
import { Plugin } from 'vite'; | ||
import { Options } from 'svgo'; | ||
import { OptimizeOptions } from 'svgo'; | ||
@@ -13,3 +13,3 @@ interface ViteSvgIconsPlugin { | ||
*/ | ||
svgoOptions?: boolean | Options; | ||
svgoOptions?: boolean | OptimizeOptions; | ||
/** | ||
@@ -29,3 +29,3 @@ * icon format | ||
declare function createModuleCode(cache: Map<string, FileStats>, svgoOptions: Options, options: ViteSvgIconsPlugin): Promise<{ | ||
declare function createModuleCode(cache: Map<string, FileStats>, svgoOptions: OptimizeOptions, options: ViteSvgIconsPlugin): Promise<{ | ||
code: string; | ||
@@ -39,7 +39,7 @@ idSet: string; | ||
*/ | ||
declare function compilerIcons(cache: Map<string, FileStats>, svgOptions: Options, options: ViteSvgIconsPlugin): Promise<{ | ||
declare function compilerIcons(cache: Map<string, FileStats>, svgOptions: OptimizeOptions, options: ViteSvgIconsPlugin): Promise<{ | ||
insertHtml: string; | ||
idSet: Set<string>; | ||
}>; | ||
declare function compilerIcon(file: string, symbolId: string, svgOptions: Options): Promise<string | null>; | ||
declare function compilerIcon(file: string, symbolId: string, svgOptions: OptimizeOptions): Promise<string | null>; | ||
declare function createSymbolId(name: string, options: ViteSvgIconsPlugin): string; | ||
@@ -46,0 +46,0 @@ declare function discreteDir(name: string): { |
{ | ||
"name": "vite-plugin-svg-icons", | ||
"version": "0.5.0", | ||
"version": "0.6.0-beta.1", | ||
"description": "Vite Plugin for fast creating SVG sprites.", | ||
@@ -12,4 +12,4 @@ "main": "dist/index.js", | ||
"dist", | ||
"register.d.ts", | ||
"client.d.ts" | ||
"register.ts", | ||
"client.ts" | ||
], | ||
@@ -47,6 +47,7 @@ "scripts": { | ||
"dependencies": { | ||
"@types/svgo": "^1.3.5", | ||
"@types/svgo": "^2.3.0", | ||
"cors": "^2.8.5", | ||
"debug": "^4.3.2", | ||
"etag": "^1.8.1", | ||
"fs-extra": "^9.1.0", | ||
"fs-extra": "^10.0.0", | ||
"svg-baker": "1.7.0", | ||
@@ -59,4 +60,5 @@ "svgo": "^2.3.0" | ||
"devDependencies": { | ||
"@commitlint/cli": "^12.1.1", | ||
"@commitlint/config-conventional": "^12.1.1", | ||
"@commitlint/cli": "^12.1.4", | ||
"@commitlint/config-conventional": "^12.1.4", | ||
"@types/cors": "^2.8.10", | ||
"@types/debug": "^4.1.5", | ||
@@ -66,22 +68,22 @@ "@types/etag": "^1.8.0", | ||
"@types/jest": "^26.0.23", | ||
"@types/node": "^14.14.43", | ||
"@typescript-eslint/eslint-plugin": "^4.22.0", | ||
"@typescript-eslint/parser": "^4.22.0", | ||
"commitizen": "^4.2.3", | ||
"@types/node": "^15.6.1", | ||
"@typescript-eslint/eslint-plugin": "^4.25.0", | ||
"@typescript-eslint/parser": "^4.25.0", | ||
"commitizen": "^4.2.4", | ||
"conventional-changelog-cli": "^2.1.1", | ||
"eslint": "^7.25.0", | ||
"eslint": "^7.27.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-jest": "^24.3.6", | ||
"husky": "^5.2.0", | ||
"husky": "^6.0.0", | ||
"jest": "^26.6.3", | ||
"lint-staged": "^10.5.4", | ||
"lint-staged": "^11.0.0", | ||
"pinst": "^2.1.6", | ||
"prettier": "^2.2.1", | ||
"prettier": "^2.3.0", | ||
"pretty-quick": "^3.1.0", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^26.5.5", | ||
"tsup": "^4.10.1", | ||
"ts-jest": "^26.5.6", | ||
"tsup": "^4.11.1", | ||
"typescript": "^4.2.4", | ||
"vite": "^2.2.3" | ||
"vite": "^2.3.3" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
348426
8
26
10149
+ Addedcors@^2.8.5
+ Added@types/node@22.10.10(transitive)
+ Added@types/svgo@2.6.4(transitive)
+ Addedcors@2.8.5(transitive)
+ Addedfs-extra@10.1.0(transitive)
+ Addedundici-types@6.20.0(transitive)
+ Addedvary@1.1.2(transitive)
- Removed@types/svgo@1.3.6(transitive)
- Removedat-least-node@1.0.0(transitive)
- Removedfs-extra@9.1.0(transitive)
Updated@types/svgo@^2.3.0
Updatedfs-extra@^10.0.0