Skip to content

Commit 3593b1f

Browse files
authored
Merge pull request #38 from sprinteins/chore/migrate-svelte-5
2 parents 760da33 + b9098bd commit 3593b1f

File tree

15 files changed

+1134
-1459
lines changed

15 files changed

+1134
-1459
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.1] - 2025-10-29
9+
10+
### Added
11+
- Added Documentation how to test in the OpenSCD instance
12+
13+
### Changed
14+
- Migrated to Svelte 5
15+
- `installed` is not a property of Plugin anymore
16+
817
## [1.0.0] - 2024-11-18
918

1019
### Added

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
# OSCD Plugin Svelte
22

33
Run with `VITE_EXTERNAL_PLUGINS=true pnpm run build:watch`. <br>
4-
The restricted version (no ability to add manual plugins) is available with just `pnpm run build:watch`.
4+
The restricted version (no ability to add manual plugins) is available with just `pnpm run build:watch`.
5+
6+
## Test in the OpenSCD Instance
7+
8+
To use the unrestricted version, set `VITE_EXTERNAL_PLUGINS=true` and use:
9+
```
10+
http://localhost:50713/index.js
11+
```
12+
For the restricted version, use:
13+
```
14+
http://localhost:50713/index-restricted.js
15+
```
16+
17+
In your custom plugin, add a new menu item:
18+
- Uncheck "Requires loaded document"
19+
- Set the position to "bottom"
20+
- Use the appropriate URL from above
21+
22+
## Troubleshooting
23+
24+
If you do not see your changes, try clearing your browser cache.
25+

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "oscd-plugin-store",
33
"private": true,
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -14,30 +14,30 @@
1414
"postinstall": "mkdir -p dist"
1515
},
1616
"devDependencies": {
17-
"@sveltejs/vite-plugin-svelte": "^3.1.1",
17+
"@sveltejs/vite-plugin-svelte": "^5.0.3",
1818
"@tsconfig/svelte": "^5.0.4",
19-
"@types/node": "^22.7.6",
20-
"sass": "^1.80.1",
21-
"svelte": "^4.2.18",
22-
"svelte-check": "^3.8.5",
23-
"tslib": "^2.6.3",
24-
"typescript": "^5.5.3",
25-
"vite": "^5.4.1",
19+
"@types/node": "^22.18.12",
20+
"sass": "^1.93.2",
21+
"svelte": "^5.19.8",
22+
"svelte-check": "^4.1.4",
23+
"tslib": "^2.8.1",
24+
"typescript": "^5.9.3",
25+
"vite": "6.1.0",
2626
"vite-plugin-css-injected-by-js": "^3.5.2"
2727
},
2828
"dependencies": {
2929
"@material/mwc-icon": "^0.27.0",
3030
"@material/typography": "^14.0.0",
31-
"@smui/button": "^7.0.0",
32-
"@smui/dialog": "^7.0.0",
33-
"@smui/icon-button": "^7.0.0",
34-
"@smui/list": "^7.0.0",
35-
"@smui/menu": "^7.0.0",
36-
"@smui/snackbar": "^7.0.0",
37-
"@smui/switch": "^7.0.0",
38-
"@smui/textfield": "^7.0.0",
31+
"@smui/button": "^8.0.3",
32+
"@smui/dialog": "^8.0.3",
33+
"@smui/icon-button": "^8.0.3",
34+
"@smui/list": "^8.0.3",
35+
"@smui/menu": "^8.0.3",
36+
"@smui/snackbar": "^8.0.3",
37+
"@smui/switch": "^8.0.3",
38+
"@smui/textfield": "^8.0.3",
3939
"concurrently": "^8.2.2",
40-
"svelte-material-ui": "^7.0.0"
40+
"svelte-material-ui": "^8.0.3"
4141
},
4242
"packageManager": "pnpm@9.12.1+sha512.e5a7e52a4183a02d5931057f7a0dbff9d5e9ce3161e33fa68ae392125b79282a8a8a470a51dfc8a0ed86221442eb2fb57019b0990ed24fab519bf0e1bc5ccfc4"
4343
}

0 commit comments

Comments
 (0)