@merkur/svelte 0.47.2 → 1.0.3
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 +67 -22
- package/package.json +3 -5
- package/LICENSE +0 -7
package/README.md
CHANGED
|
@@ -38,8 +38,42 @@ To check out [live demo](https://merkur.js.org/demo) and [docs](https://merkur.j
|
|
|
38
38
|
|
|
39
39
|
Contribute to this project via [Pull-Requests](https://github.com/mjancarik/merkur/pulls).
|
|
40
40
|
|
|
41
|
-
We are
|
|
41
|
+
We are using [Changesets](https://github.com/changesets/changesets) for versioning and releasing. To add a changeset describing your changes, run `npm run changeset`.
|
|
42
42
|
|
|
43
|
+
> **Note:** The release process is documented **only** in this root README. Any per-package README sections that still describe a Lerna/Conventional Commits–based release flow are outdated and should be ignored in favour of the instructions below.
|
|
44
|
+
|
|
45
|
+
### Changeset format
|
|
46
|
+
|
|
47
|
+
Each changeset file (`.changeset/*.md`) must follow this structure:
|
|
48
|
+
|
|
49
|
+
**Frontmatter** — standard Changesets YAML listing affected package names and bump types (`patch`, `minor`, `major`).
|
|
50
|
+
|
|
51
|
+
**First line after frontmatter** — a single brief sentence summarising the change. No heading, no bold, no trailing bullet — just a plain declarative sentence. This section is not required but helps to quickly understand the change when browsing the changesets.
|
|
52
|
+
|
|
53
|
+
**Body** — three bullet points in this exact order, with no blank lines between them:
|
|
54
|
+
|
|
55
|
+
- **What** One or more sentences describing what changed: which APIs, files, or behaviours were added, removed, or fixed. Make sublists if needed to break down complex changes, but keep each bullet point as a single paragraph.
|
|
56
|
+
- **Why** One or more sentences explaining the motivation: why the change was necessary or beneficial.
|
|
57
|
+
- **How** Migration steps for consumers or contributors. If no action is required, write exactly: `Nothing.`
|
|
58
|
+
|
|
59
|
+
Additional rules:
|
|
60
|
+
- Each bullet is a single paragraph — no nested lists, no code blocks inside a bullet.
|
|
61
|
+
- Do not use headings (`##`, `###`) inside the body.
|
|
62
|
+
- Code symbols (function names, paths, package names) use backtick inline code.
|
|
63
|
+
|
|
64
|
+
Example:
|
|
65
|
+
|
|
66
|
+
```markdown
|
|
67
|
+
---
|
|
68
|
+
"@merkur/example": minor
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
Add `createFoo` helper for simplified widget initialisation.
|
|
72
|
+
|
|
73
|
+
- **What** New `createFoo(options)` export in `@merkur/example` wraps the low-level `initFoo` call and applies sensible defaults for `name` and `version`.
|
|
74
|
+
- **Why** Every project was duplicating the same boilerplate to call `initFoo`; centralising it reduces setup friction and ensures consistent defaults.
|
|
75
|
+
- **How** Replace direct `initFoo` calls with `createFoo({ name, version })`. The returned object is API-compatible, so no further changes are needed.
|
|
76
|
+
```
|
|
43
77
|
|
|
44
78
|
### Release
|
|
45
79
|
|
|
@@ -48,32 +82,43 @@ To release a version you must have the right permissions, please contact one of
|
|
|
48
82
|
|
|
49
83
|
#### Regular version release
|
|
50
84
|
|
|
51
|
-
To do a regular release,
|
|
85
|
+
To do a regular release, from the `master` branch with no uncommitted changes, run:
|
|
52
86
|
|
|
53
87
|
```
|
|
54
88
|
npm run release
|
|
55
89
|
```
|
|
56
90
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
91
|
+
This runs `release:prepare` (applies pending changesets, bumps versions, updates `package-lock.json`) followed by `release:push` (commits, tags, and pushes to the repository).
|
|
92
|
+
|
|
93
|
+
Packages are published from a GitHub Action triggered when a new version tag is pushed.
|
|
94
|
+
|
|
95
|
+
#### RC (pre-release) release
|
|
96
|
+
|
|
97
|
+
1. Enter pre-release mode (only needs to be done once per RC cycle):
|
|
98
|
+
```
|
|
99
|
+
npm run release:next:init
|
|
100
|
+
```
|
|
101
|
+
This sets pre-release mode to `rc`, so subsequent version bumps produce `rc` versions (e.g. `v0.44.0-rc.0`).
|
|
102
|
+
|
|
103
|
+
2. Add a changeset describing your changes:
|
|
104
|
+
```
|
|
105
|
+
npm run changeset
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
3. Bump versions and push the RC release:
|
|
109
|
+
```
|
|
110
|
+
npm run release
|
|
111
|
+
```
|
|
112
|
+
Repeat steps 2–3 for each subsequent RC iteration (e.g. `rc.0 → rc.1`).
|
|
113
|
+
|
|
114
|
+
4. When ready to graduate to a stable release, exit pre-release mode and prepare the final version:
|
|
115
|
+
```
|
|
116
|
+
npm run release:graduate
|
|
117
|
+
```
|
|
118
|
+
Then push with:
|
|
119
|
+
```
|
|
120
|
+
npm run release:push
|
|
121
|
+
```
|
|
77
122
|
|
|
78
123
|
---
|
|
79
124
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkur/svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Collection of helpers to aid with Svelte integration to @merkur",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo 'Tests pass.'",
|
|
7
7
|
"test:es:version": "echo 'Tests pass.'",
|
|
8
8
|
"build": "rollup -c rollup.config.mjs",
|
|
9
|
-
"dev": "rollup -c rollup.config.mjs -w"
|
|
10
|
-
"postpublish": "node ../../utils/restoreLatestTag.mjs"
|
|
9
|
+
"dev": "rollup -c rollup.config.mjs -w"
|
|
11
10
|
},
|
|
12
11
|
"exports": {
|
|
13
12
|
"./entries/client.js": "./entries/client.js",
|
|
@@ -53,6 +52,5 @@
|
|
|
53
52
|
"esbuild-svelte": "^0.8.0",
|
|
54
53
|
"svelte": "^3.59.2",
|
|
55
54
|
"svelte-loader": "^3.2.0"
|
|
56
|
-
}
|
|
57
|
-
"gitHead": "1f8dd906f352a28828785d33791a8a4129836f35"
|
|
55
|
+
}
|
|
58
56
|
}
|
package/LICENSE
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Copyright 2020 Miroslav Jancarik jancarikmiroslav@gmail.com
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
|
|
5
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|