This page is
brand/en/release.mdin kitDesign (the English translation ofbrand/版本與發布.md). For what changed in each version, see the changelog.
kitDesign is the shared interface for kitJoin, kitsUI, and future KIT apps. Each of the three packages has its own version. They stay in step because each app states which version of kitDesign it uses. The development rules shared by all KIT packages (files, dependencies, NEWS, Shiny apps, statistical computing) are in the package development guide.
Version numbers: semantic versioning (X.Y.Z)
| What changed | Which number goes up | Example |
|---|---|---|
| A fix; neither the screen nor any function changed | patch (0.1.0 → 0.1.1) | Fix a JavaScript bug, fix the docs, fix a test |
| A new component or option; existing apps need no changes | minor (0.1.1 → 0.2.0) | Add kit_xxx(); add an argument with a default value to
an existing function |
| A function renamed or removed, an argument’s meaning changed, a visible design change | major (0.2.0 → 1.0.0) | Change the status box color, change the button size, remove
kit_status_ui()
|
- Before 1.0.0 (0.x), the same rules apply. We suggest releasing 1.0.0 as the first version that both apps use.
- Any visible change counts as major: what users see on screen is part of the design language, so a change must be announced to both apps.
-
design-language.mdhas its own version, separate from kitDesign. When the design language gets a new version, write the matching kitDesign version in NEWS.md.
Every release
Update
VersionandDateinDESCRIPTION.Add a section at the top of
NEWS.md:# kitDesign X.Y.Z (YYYY-MM-DD), with the subsections “元件” (components), “修正” (fixes), and “看得到的改變” (visible changes).-
Checks (all must pass):
LC_ALL=en_US.UTF-8 Rscript tools/escape_non_ascii.R LC_ALL=en_US.UTF-8 Rscript -e 'roxygen2::roxygenise()' LC_ALL=en_US.UTF-8 R CMD build . LC_ALL=en_US.UTF-8 R CMD check --no-manual kitDesign_X.Y.Z.tar.gz # 0 errors, 0 warnings LC_ALL=en_US.UTF-8 Rscript tools/check_gallery.R # screenshots; no horizontal scrolling Look at the screenshots from
tools/check_gallery.R(1280 and 390 wide) and compare them with the previous version.Commit and tag:
git tag vX.Y.Z, then push to GitHub (git push origin main --tags).
Upgrading kitDesign in an app
- In the app’s
DESCRIPTION:Imports: kitDesign (>= X.Y.Z)-
Remotes: jiewenTsai/kitDesign@vX.Y.Z(pinned to the tag, not following main)
- Install that version:
remotes::install_github("jiewenTsai/kitDesign@vX.Y.Z"). - Run the app’s tests. For a major upgrade, update the code following
“看得到的改變” (visible changes) in NEWS.md and
migration.md, and compare screenshots. - Regenerate
manifest.json(rsconnect::writeManifest()) and deploy. - Bump the app’s own version too (usually patch; minor if the screen changed), and write “改用 kitDesign X.Y.Z” (“Now uses kitDesign X.Y.Z”) in NEWS.md.