@webamoki/web-svelte 1.2.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 +35 -46
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,29 +4,12 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "1.2.
|
|
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
|
-
"preinstall": "npx only-allow pnpm",
|
|
15
|
-
"dev": "vite dev",
|
|
16
|
-
"build:site": "vite build",
|
|
17
|
-
"build:lib": "pnpm prepack",
|
|
18
|
-
"preview": "vite preview",
|
|
19
|
-
"prepare": "svelte-kit sync || echo ''",
|
|
20
|
-
"prepack": "svelte-kit sync && svelte-package && publint",
|
|
21
|
-
"check": "pnpm fmt && pnpm lint:es --fix && pnpm lint:svelte && pnpm test",
|
|
22
|
-
"fmt": "prettier --write --cache --cache-location=.cache/.prettier-cache --cache-strategy metadata --log-level warn .",
|
|
23
|
-
"lint": "pnpm lint:es && pnpm lint:svelte",
|
|
24
|
-
"lint:es": "eslint --cache --cache-location .cache/.eslintcache --cache-strategy metadata .",
|
|
25
|
-
"lint:svelte": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
26
|
-
"test:unit": "vitest run",
|
|
27
|
-
"test": "pnpm test:unit",
|
|
28
|
-
"watch": "svelte-package --watch"
|
|
29
|
-
},
|
|
30
13
|
"files": [
|
|
31
14
|
"dist",
|
|
32
15
|
"!dist/**/*.test.*",
|
|
@@ -83,31 +66,33 @@
|
|
|
83
66
|
}
|
|
84
67
|
},
|
|
85
68
|
"peerDependencies": {
|
|
86
|
-
"@internationalized/date": "
|
|
87
|
-
"@sveltejs/kit": "
|
|
88
|
-
"@tailwindcss/forms": "
|
|
89
|
-
"@tailwindcss/typography": "
|
|
90
|
-
"arktype": "
|
|
91
|
-
"svelte": "
|
|
92
|
-
"sveltekit-superforms": "
|
|
93
|
-
"tailwindcss": "
|
|
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"
|
|
94
77
|
},
|
|
95
78
|
"devDependencies": {
|
|
79
|
+
"@anolilab/semantic-release-pnpm": "^5.0.0",
|
|
96
80
|
"@eslint/compat": "^2.0.3",
|
|
97
81
|
"@eslint/js": "^9.39.4",
|
|
98
|
-
"@internationalized/date": "
|
|
82
|
+
"@internationalized/date": "^3.12.0",
|
|
99
83
|
"@sveltejs/adapter-static": "^3.0.10",
|
|
100
|
-
"@sveltejs/kit": "
|
|
84
|
+
"@sveltejs/kit": "^2.55.0",
|
|
101
85
|
"@sveltejs/package": "^2.5.7",
|
|
102
86
|
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
103
|
-
"@tailwindcss/forms": "
|
|
104
|
-
"@tailwindcss/typography": "
|
|
87
|
+
"@tailwindcss/forms": "^0.5.11",
|
|
88
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
105
89
|
"@tailwindcss/vite": "^4.2.2",
|
|
106
90
|
"@types/node": "^25.5.0",
|
|
107
91
|
"@types/ramda": "^0.31.1",
|
|
108
92
|
"@types/sorted-array-functions": "^1.3.3",
|
|
109
|
-
"arktype": "
|
|
93
|
+
"arktype": "^2.2.0",
|
|
110
94
|
"clsx": "^2.1.1",
|
|
95
|
+
"conventional-changelog-conventionalcommits": "^9.3.0",
|
|
111
96
|
"eslint": "^9.39.4",
|
|
112
97
|
"eslint-config-prettier": "^10.1.8",
|
|
113
98
|
"eslint-plugin-perfectionist": "^5.7.0",
|
|
@@ -119,13 +104,13 @@
|
|
|
119
104
|
"publint": "^0.3.18",
|
|
120
105
|
"semantic-release": "^25.0.3",
|
|
121
106
|
"shiki": "^4.0.2",
|
|
122
|
-
"svelte": "
|
|
107
|
+
"svelte": "^5.55.0",
|
|
123
108
|
"svelte-check": "^4.4.5",
|
|
124
109
|
"svelte-eslint-parser": "^1.6.0",
|
|
125
|
-
"sveltekit-superforms": "
|
|
110
|
+
"sveltekit-superforms": "^2.30.0",
|
|
126
111
|
"tailwind-merge": "^3.5.0",
|
|
127
112
|
"tailwind-variants": "^3.2.2",
|
|
128
|
-
"tailwindcss": "
|
|
113
|
+
"tailwindcss": "^4.2.2",
|
|
129
114
|
"tw-animate-css": "^1.4.0",
|
|
130
115
|
"typescript": "^5.9.3",
|
|
131
116
|
"typescript-eslint": "^8.57.2",
|
|
@@ -135,16 +120,6 @@
|
|
|
135
120
|
"keywords": [
|
|
136
121
|
"svelte"
|
|
137
122
|
],
|
|
138
|
-
"pnpm": {
|
|
139
|
-
"onlyBuiltDependencies": [
|
|
140
|
-
"@tailwindcss/oxide",
|
|
141
|
-
"esbuild",
|
|
142
|
-
"sharp"
|
|
143
|
-
],
|
|
144
|
-
"ignoredBuiltDependencies": [
|
|
145
|
-
"workerd"
|
|
146
|
-
]
|
|
147
|
-
},
|
|
148
123
|
"dependencies": {
|
|
149
124
|
"@lucide/svelte": "^1.6.0",
|
|
150
125
|
"bits-ui": "^2.16.3",
|
|
@@ -160,5 +135,19 @@
|
|
|
160
135
|
"node": "^24.0.0",
|
|
161
136
|
"pnpm": "^10.0.0"
|
|
162
137
|
},
|
|
163
|
-
"
|
|
164
|
-
|
|
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"
|
|
152
|
+
}
|
|
153
|
+
}
|