@webamoki/web-svelte 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -11
- package/package.json +45 -47
package/README.md
CHANGED
|
@@ -42,9 +42,7 @@ In your project's main CSS entry point (e.g., `src/app.css`), include the follow
|
|
|
42
42
|
|
|
43
43
|
---
|
|
44
44
|
|
|
45
|
-
## 🛠 Development
|
|
46
|
-
|
|
47
|
-
### Local Development
|
|
45
|
+
## 🛠 Local Development
|
|
48
46
|
|
|
49
47
|
If you want to make changes to `@webamoki/web-svelte` and test them in a host application simultaneously without publishing:
|
|
50
48
|
|
|
@@ -73,15 +71,76 @@ Alternatively, to develop and test components in isolation, you can use the buil
|
|
|
73
71
|
pnpm dev
|
|
74
72
|
```
|
|
75
73
|
|
|
76
|
-
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Versioning & Releases
|
|
77
77
|
|
|
78
78
|
We use **Semantic Versioning** managed automatically by `semantic-release`.
|
|
79
79
|
|
|
80
|
-
Every merge to `main` is automatically
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
Every merge to `main` is automatically analysed based on each commit message to determine the correct version bump, generate a GitHub Release and publish the package to npm.
|
|
81
|
+
|
|
82
|
+
- **Patch Release (`v0.0.X`)**: Minor tweaks that should not affect API
|
|
83
|
+
- **Minor Release (`v0.X.0`)**: New features added in a backwards-compatible manner
|
|
84
|
+
- **Major Release (`vX.0.0`)**: Any commit that makes breaking API changes
|
|
85
|
+
|
|
86
|
+
If there are multiple version bumps triggered, only the highest one will take effect (major > minor > patch).
|
|
87
|
+
|
|
88
|
+
Any commit causing a version bump will be displayed in the final release notes.
|
|
89
|
+
|
|
90
|
+
### Commit Signature
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
type(scope): subject
|
|
94
|
+
|
|
95
|
+
footer
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Standard Types
|
|
99
|
+
|
|
100
|
+
If a commit has any of these types, they cause a version bump:
|
|
101
|
+
|
|
102
|
+
- **Patch**: `fix|refactor|perf|build`
|
|
103
|
+
- **Minor**: `feat`
|
|
104
|
+
|
|
105
|
+
Other types not mentioned above will not trigger a version bump.
|
|
106
|
+
|
|
107
|
+
### Scope
|
|
108
|
+
|
|
109
|
+
If the commit has any of `major|minor|patch` in its scope, then it triggers a version bump regardless of its type.
|
|
84
110
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
111
|
+
### Versioning Examples:
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
refactor(ui): a function // patch - standard type
|
|
115
|
+
fix: a bug // patch - standard type
|
|
116
|
+
fix(minor): a bug // minor - scope overrides type
|
|
117
|
+
chore: comment typo // No versioning - not a standard type
|
|
118
|
+
chore(major): something // major - scope overrides type
|
|
119
|
+
ci: blah // No versioning - not standard
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Breaking Changes
|
|
123
|
+
|
|
124
|
+
For breaking changes, you must append `!` before the colon in the commit header as such:
|
|
125
|
+
|
|
126
|
+
```
|
|
127
|
+
refactor!: change api
|
|
128
|
+
fix(ui)!: change button api
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Breaking changes will be displayed separately in the release notes.
|
|
132
|
+
If you want to give more detail for a breaking commit, add messages in the footer following these templates:
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
refactor!: change api
|
|
136
|
+
|
|
137
|
+
BREAKING CHANGE: Remove endpoint for auth
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
fix(ui)!: change button api
|
|
142
|
+
|
|
143
|
+
BREAKING CHANGES: button api
|
|
144
|
+
- Remove content prop
|
|
145
|
+
- Add colour prop
|
|
146
|
+
```
|
package/package.json
CHANGED
|
@@ -4,28 +4,12 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "1.1
|
|
7
|
+
"version": "1.2.1",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/Webamoki/Web-svelte.git"
|
|
12
12
|
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"dev": "vite dev",
|
|
15
|
-
"build:site": "vite build",
|
|
16
|
-
"build:lib": "pnpm prepack",
|
|
17
|
-
"preview": "vite preview",
|
|
18
|
-
"prepare": "svelte-kit sync || echo ''",
|
|
19
|
-
"prepack": "svelte-kit sync && svelte-package && publint",
|
|
20
|
-
"check": "pnpm fmt && pnpm lint:es --fix && pnpm lint:svelte && pnpm test",
|
|
21
|
-
"fmt": "prettier --write --cache --cache-location=.cache/.prettier-cache --cache-strategy metadata --log-level warn .",
|
|
22
|
-
"lint": "pnpm lint:es && pnpm lint:svelte",
|
|
23
|
-
"lint:es": "eslint --cache --cache-location .cache/.eslintcache --cache-strategy metadata .",
|
|
24
|
-
"lint:svelte": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
25
|
-
"test:unit": "vitest run",
|
|
26
|
-
"test": "pnpm test:unit",
|
|
27
|
-
"watch": "svelte-package --watch"
|
|
28
|
-
},
|
|
29
13
|
"files": [
|
|
30
14
|
"dist",
|
|
31
15
|
"!dist/**/*.test.*",
|
|
@@ -82,30 +66,37 @@
|
|
|
82
66
|
}
|
|
83
67
|
},
|
|
84
68
|
"peerDependencies": {
|
|
85
|
-
"@internationalized/date": "^3.
|
|
86
|
-
"@
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
69
|
+
"@internationalized/date": "^3.12.0",
|
|
70
|
+
"@sveltejs/kit": "^2.55.0",
|
|
71
|
+
"@tailwindcss/forms": "^0.5.11",
|
|
72
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
73
|
+
"arktype": "^2.2.0",
|
|
74
|
+
"svelte": "^5.55.0",
|
|
75
|
+
"sveltekit-superforms": "^2.30.0",
|
|
76
|
+
"tailwindcss": "^4.2.2"
|
|
90
77
|
},
|
|
91
78
|
"devDependencies": {
|
|
79
|
+
"@anolilab/semantic-release-pnpm": "^5.0.0",
|
|
92
80
|
"@eslint/compat": "^2.0.3",
|
|
93
81
|
"@eslint/js": "^9.39.4",
|
|
82
|
+
"@internationalized/date": "^3.12.0",
|
|
94
83
|
"@sveltejs/adapter-static": "^3.0.10",
|
|
95
|
-
"@sveltejs/kit": "^2.
|
|
84
|
+
"@sveltejs/kit": "^2.55.0",
|
|
96
85
|
"@sveltejs/package": "^2.5.7",
|
|
97
86
|
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
98
87
|
"@tailwindcss/forms": "^0.5.11",
|
|
99
88
|
"@tailwindcss/typography": "^0.5.19",
|
|
100
|
-
"@tailwindcss/vite": "^4.2.
|
|
89
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
101
90
|
"@types/node": "^25.5.0",
|
|
102
91
|
"@types/ramda": "^0.31.1",
|
|
103
92
|
"@types/sorted-array-functions": "^1.3.3",
|
|
93
|
+
"arktype": "^2.2.0",
|
|
104
94
|
"clsx": "^2.1.1",
|
|
95
|
+
"conventional-changelog-conventionalcommits": "^9.3.0",
|
|
105
96
|
"eslint": "^9.39.4",
|
|
106
97
|
"eslint-config-prettier": "^10.1.8",
|
|
107
|
-
"eslint-plugin-perfectionist": "^5.
|
|
108
|
-
"eslint-plugin-svelte": "^3.
|
|
98
|
+
"eslint-plugin-perfectionist": "^5.7.0",
|
|
99
|
+
"eslint-plugin-svelte": "^3.16.0",
|
|
109
100
|
"globals": "^17.4.0",
|
|
110
101
|
"prettier": "^3.8.1",
|
|
111
102
|
"prettier-plugin-svelte": "^3.5.1",
|
|
@@ -113,35 +104,24 @@
|
|
|
113
104
|
"publint": "^0.3.18",
|
|
114
105
|
"semantic-release": "^25.0.3",
|
|
115
106
|
"shiki": "^4.0.2",
|
|
116
|
-
"svelte": "^5.
|
|
107
|
+
"svelte": "^5.55.0",
|
|
117
108
|
"svelte-check": "^4.4.5",
|
|
118
109
|
"svelte-eslint-parser": "^1.6.0",
|
|
110
|
+
"sveltekit-superforms": "^2.30.0",
|
|
119
111
|
"tailwind-merge": "^3.5.0",
|
|
120
112
|
"tailwind-variants": "^3.2.2",
|
|
121
|
-
"tailwindcss": "^4.2.
|
|
113
|
+
"tailwindcss": "^4.2.2",
|
|
122
114
|
"tw-animate-css": "^1.4.0",
|
|
123
115
|
"typescript": "^5.9.3",
|
|
124
|
-
"typescript-eslint": "^8.57.
|
|
125
|
-
"vite": "^8.0.
|
|
126
|
-
"vitest": "^4.1.
|
|
116
|
+
"typescript-eslint": "^8.57.2",
|
|
117
|
+
"vite": "^8.0.2",
|
|
118
|
+
"vitest": "^4.1.1"
|
|
127
119
|
},
|
|
128
120
|
"keywords": [
|
|
129
121
|
"svelte"
|
|
130
122
|
],
|
|
131
|
-
"pnpm": {
|
|
132
|
-
"onlyBuiltDependencies": [
|
|
133
|
-
"@tailwindcss/oxide",
|
|
134
|
-
"esbuild",
|
|
135
|
-
"sharp"
|
|
136
|
-
],
|
|
137
|
-
"ignoredBuiltDependencies": [
|
|
138
|
-
"workerd"
|
|
139
|
-
]
|
|
140
|
-
},
|
|
141
123
|
"dependencies": {
|
|
142
|
-
"@
|
|
143
|
-
"@lucide/svelte": "^0.577.0",
|
|
144
|
-
"arktype": "^2.2.0",
|
|
124
|
+
"@lucide/svelte": "^1.6.0",
|
|
145
125
|
"bits-ui": "^2.16.3",
|
|
146
126
|
"devalue": "^5.6.4",
|
|
147
127
|
"drizzle-orm": "^0.45.1",
|
|
@@ -149,7 +129,25 @@
|
|
|
149
129
|
"ramda": "^0.32.0",
|
|
150
130
|
"sorted-array-functions": "^1.3.0",
|
|
151
131
|
"svelte-awesome-color-picker": "^4.1.1",
|
|
152
|
-
"svelte-sonner": "^1.1.0"
|
|
153
|
-
|
|
132
|
+
"svelte-sonner": "^1.1.0"
|
|
133
|
+
},
|
|
134
|
+
"engines": {
|
|
135
|
+
"node": "^24.0.0",
|
|
136
|
+
"pnpm": "^10.0.0"
|
|
137
|
+
},
|
|
138
|
+
"scripts": {
|
|
139
|
+
"preinstall": "npx only-allow pnpm",
|
|
140
|
+
"dev": "vite dev",
|
|
141
|
+
"build:site": "vite build",
|
|
142
|
+
"build:lib": "pnpm prepack",
|
|
143
|
+
"preview": "vite preview",
|
|
144
|
+
"check": "pnpm fmt && pnpm lint:es --fix && pnpm lint:svelte && pnpm test",
|
|
145
|
+
"fmt": "prettier --write --cache --cache-location=.cache/.prettier-cache --cache-strategy metadata --log-level warn .",
|
|
146
|
+
"lint": "pnpm lint:es && pnpm lint:svelte",
|
|
147
|
+
"lint:es": "eslint --cache --cache-location .cache/.eslintcache --cache-strategy metadata .",
|
|
148
|
+
"lint:svelte": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
149
|
+
"test:unit": "vitest run",
|
|
150
|
+
"test": "pnpm test:unit",
|
|
151
|
+
"watch": "svelte-package --watch"
|
|
154
152
|
}
|
|
155
|
-
}
|
|
153
|
+
}
|