Skip to content

Commit

Permalink
chore(preprocess-inline-svg): migrate to js, drop support for svelte …
Browse files Browse the repository at this point in the history
…v4 and below
  • Loading branch information
vnphanquang committed May 17, 2024
1 parent 50cc532 commit 702bdf3
Show file tree
Hide file tree
Showing 32 changed files with 564 additions and 1,138 deletions.
5 changes: 5 additions & 0 deletions .changeset/tiny-dancers-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@svelte-put/preprocess-inline-svg": major
---

support Svelte v5, drop support for v4 and below, now written in JS with JSDocs
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"@vnphanquang/eslint-config": "^2.0.0",
"dts-buddy": "^0.4.6",
"dts-buddy": "^0.4.7",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jsdoc": "^48.2.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"devDependencies": {
"@internals/tsconfig": "workspace:*",
"@types/md5": "^2.3.5",
"dts-buddy": "^0.4.6",
"dts-buddy": "^0.4.7",
"svelte": "^4.2.12"
},
"volta": {
Expand Down
2 changes: 1 addition & 1 deletion packages/preprocess-auto-slug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
"dependencies": {
"github-slugger": "^2.0.0",
"magic-string": "^0.30.9",
"magic-string": "^0.30.10",
"svelte-parse-markup": "^0.1.2"
}
}
32 changes: 16 additions & 16 deletions packages/preprocess-inline-svg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ import inlineSvg from '@svelte-put/preprocess-inline-svg';

/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: [
inlineSvg([
{
directories: 'src/assets/icons',
attributes: {
class: 'icon',
width: '20',
height: '20',
},
},
{
directories: 'src/assets/pictograms',
},
]),
// other preprocessors
],
preprocess: [
inlineSvg([
{
directories: 'src/assets/icons',
attributes: {
class: 'icon',
width: '20',
height: '20',
},
},
{
directories: 'src/assets/pictograms',
},
]),
// other preprocessors
],
};
export default config;
```
Expand Down
11 changes: 0 additions & 11 deletions packages/preprocess-inline-svg/api/docs/index.md

This file was deleted.

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions packages/preprocess-inline-svg/api/docs/preprocess-inline-svg.md

This file was deleted.

This file was deleted.

This file was deleted.

101 changes: 0 additions & 101 deletions packages/preprocess-inline-svg/api/preprocess-inline-svg.api.md

This file was deleted.

Loading

0 comments on commit 702bdf3

Please sign in to comment.