Skip to content

Commit 9691b8a

Browse files
committed
chore(preprocess-inline-svg): migrate to js, drop support for svelte v4 and below
1 parent cb4cf45 commit 9691b8a

32 files changed

Lines changed: 564 additions & 1138 deletions

.changeset/tiny-dancers-live.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@svelte-put/preprocess-inline-svg": major
3+
---
4+
5+
support Svelte v5, drop support for v4 and below, now written in JS with JSDocs

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@typescript-eslint/eslint-plugin": "^7.5.0",
3232
"@typescript-eslint/parser": "^7.5.0",
3333
"@vnphanquang/eslint-config": "^2.0.0",
34-
"dts-buddy": "^0.4.6",
34+
"dts-buddy": "^0.4.7",
3535
"eslint": "^8.56.0",
3636
"eslint-config-prettier": "^9.1.0",
3737
"eslint-plugin-jsdoc": "^48.2.4",

packages/avatar/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"devDependencies": {
7676
"@internals/tsconfig": "workspace:*",
7777
"@types/md5": "^2.3.5",
78-
"dts-buddy": "^0.4.6",
78+
"dts-buddy": "^0.4.7",
7979
"svelte": "^4.2.12"
8080
},
8181
"volta": {

packages/preprocess-auto-slug/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
},
5757
"dependencies": {
5858
"github-slugger": "^2.0.0",
59-
"magic-string": "^0.30.9",
59+
"magic-string": "^0.30.10",
6060
"svelte-parse-markup": "^0.1.2"
6161
}
6262
}

packages/preprocess-inline-svg/README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ import inlineSvg from '@svelte-put/preprocess-inline-svg';
2525

2626
/** @type {import('@sveltejs/kit').Config} */
2727
const config = {
28-
preprocess: [
29-
inlineSvg([
30-
{
31-
directories: 'src/assets/icons',
32-
attributes: {
33-
class: 'icon',
34-
width: '20',
35-
height: '20',
36-
},
37-
},
38-
{
39-
directories: 'src/assets/pictograms',
40-
},
41-
]),
42-
// other preprocessors
43-
],
28+
preprocess: [
29+
inlineSvg([
30+
{
31+
directories: 'src/assets/icons',
32+
attributes: {
33+
class: 'icon',
34+
width: '20',
35+
height: '20',
36+
},
37+
},
38+
{
39+
directories: 'src/assets/pictograms',
40+
},
41+
]),
42+
// other preprocessors
43+
],
4444
};
4545
export default config;
4646
```

packages/preprocess-inline-svg/api/docs/index.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/preprocess-inline-svg/api/docs/preprocess-inline-svg.inlinesvg.md

Lines changed: 0 additions & 96 deletions
This file was deleted.

packages/preprocess-inline-svg/api/docs/preprocess-inline-svg.inlinesvgconfig.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/preprocess-inline-svg/api/docs/preprocess-inline-svg.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/preprocess-inline-svg/api/docs/preprocess-inline-svg.source.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)