Repository navigation
Versioning and Changelog
Nibtree has one version number and one changelog. Both are moved by tools, not by hand, so they can never disagree. This page explains where they live, every command of scripts/version.ts, and the rules for writing the changelog.
-
src-tauri/Cargo.tomlis the source of truth. Tauri builds the app with this version (tauri.conf.jsonhas none of its own), the About screen shows it, and the update check compares against it. -
package.jsonand the crate's entry insrc-tauri/Cargo.lockcarry the same number, so nothing drifts. -
npm/nibtree/package.json, the browser version's npm launcher, has it too, and pins each platform package to it (Browser Version Packages).
Never edit these by hand. Use bun scripts/version.ts set x.y.z, or better, let the release workflows move the version (see Releases and CI). CI runs bun scripts/version.ts check on every push and pull request.
Versions follow Semantic Versioning. Betas are x.y.z-beta.N.
All of them run from the repository root with bun scripts/version.ts <command>.
| Command | What it does |
|---|---|
show |
prints the version from Cargo.toml
|
check |
lists the version in all four files, marks any that disagree, exits 1 if one does |
set x.y.z |
writes the version into all four files, then runs check
|
notes [x.y.z] |
prints a changelog section: Unreleased by default, or the given version |
pending |
says whether a release is due and what it would be |
bump <level> |
moves to the next version: beta, release, patch, minor, major or an exact x.y.z
|
untried |
lists unreleased commits that change the program (not docs, test or chore) |
next-ticket |
prints the next free GM ticket number |
Some examples:
$ bun scripts/version.ts show
0.1.0-beta.2
$ bun scripts/version.ts check
src-tauri/Cargo.toml 0.1.0-beta.2
src-tauri/Cargo.lock 0.1.0-beta.2
package.json 0.1.0-beta.2
npm/nibtree/package.json 0.1.0-beta.2
all files agree on 0.1.0-beta.2
$ bun scripts/version.ts notes 0.2.0 # the [0.2.0] section, for release notes
$ bun scripts/version.ts bump beta # 0.2.0-beta.1 -> 0.2.0-beta.2
$ bun scripts/version.ts untried # "a1b2c3d fix:[GM-14] ..." lines, or nothing
$ bun scripts/version.ts next-ticket # 15"Unreleased commits" means commits that no v* tag contains yet, leaving out merge commits (git log HEAD --no-merges --not --tags=v*). next-ticket looks at every commit subject on every branch for [GM-N] and prints one more than the highest.
bump looks at the unreleased commit subjects to suggest a level:
- a breaking change, marked with
!before the colon (feat!:[GM-9] ...), suggests major; - any
featsuggests minor; - anything else (
fix,docs,chore, ...) suggests patch.
stateDiagram-v2
direction LR
S1: 0.1.0 stable
B1: 0.2.0-beta.1
B2: 0.2.0-beta.2
S2: 0.2.0 stable
P1: 0.1.1-beta.1
[*] --> S1
S1 --> B1: bump beta, a feat landed
S1 --> P1: bump beta, only fixes
B1 --> B2: bump beta
B2 --> S2: bump release
S2 --> [*]
The rules, from nextVersion in scripts/versioning.ts:
-
From a stable version:
betastarts the first beta of the suggested next version (0.1.0becomes0.2.0-beta.1after afeat).patch,minorandmajorskip the beta and jump straight to the next patch, minor or major version.releaseis refused, because there is no beta to finish. -
From a beta:
betamoves to the next beta (-beta.2), andreleasefinishes it (0.2.0-beta.2becomes0.2.0).patch,minorandmajorare refused. -
An exact
x.y.zis used as given.
bump also protects you:
- When nothing has landed since the last release, it changes nothing and says so. The workflows read an unchanged version as "nothing to release". Finishing a beta is the exception: a stable release usually ships exactly what was tried.
- A beta needs something under
## [Unreleased], because those notes are published with it as they are. - A stable version is refused when the changelog already has a section for it.
- For a stable version, it dates the changelog:
## [Unreleased]becomes## [x.y.z] - YYYY-MM-DD, with a fresh empty Unreleased section above it.
At the end, bump prints the commit message to use, like chore:[GM-15] release 0.2.0.
CHANGELOG.md follows Keep a Changelog. The rules for this project:
-
Every user-visible change adds a line under
## [Unreleased]in the same pull request. Waiting until release time means the notes get written from memory, and things get lost. -
Group lines under the standard headings:
### Added,### Changed,### Fixed,### Removed(and### Deprecatedor### Securitywhen needed). - Write for users, not developers. Say what they can now do or what no longer goes wrong, in plain words. "Blame no longer shows the wrong author after an undo" is good. "Fix off-by-one in mapBlame" is not.
- One line per change, starting with a capital letter.
- Leave out internal work: refactors, tests, CI and docs that users never see.
-
Never write a version heading yourself.
bump releasedates the section.
The changelog is the only source of release text. Nobody writes release notes anywhere else.
flowchart LR
C["CHANGELOG.md"] -->|"bump release dates it"| C
C -->|"notes: Unreleased"| BetaPR["beta release PR and pre-release"]
C -->|"notes x.y.z"| StablePR["stable release PRs and release"]
C -->|"imported with ?raw at build time"| App["What's New in the app"]
-
GitHub release notes. A beta is published with the Unreleased section, and a stable release with its dated section. If someone publishes a release by hand with empty or GitHub-generated notes,
release.ymlreplaces them with the changelog, but it keeps notes that a person wrote. -
What's New.
src/lib/update/WhatsNewDialog.svelteimportsCHANGELOG.md?raw, so the changelog is built into the app and works offline. After an update, the dialog shows the current version's section once (the Unreleased section on a beta build) and up to ten older ones. See How Updates Work.
Cargo.lock is rewritten as text. The first set ran cargo update --package nibtree --offline after editing Cargo.toml. That meant the release runners needed Rust just to change a number. Now setCargoLockVersion replaces only the version line of our own crate's entry in Cargo.lock. That entry has no checksum, so nothing else needs to change, and CI's --locked builds would catch a broken lockfile at once.
Dating the changelog twice would duplicate a section. If bump release ran again for a version that was already dated, it would add a second ## [x.y.z] heading and the notes would be split or repeated. So bump refuses when the changelog already has a section for the target version: that version looks released already.
A version with a "v" is not a version. Tags are v0.2.0, but versions in files are 0.2.0. The tools strip a leading v when they read a tag, and release.yml checks that the tag equals v plus the version in Cargo.toml.
These pages are generated from docs/wiki. To correct something, open a pull request against the source file; edits made here are overwritten.
Using Nibtree
- Getting Started
- Welcome Screen
- Workspaces
- Files Panel
- File Operations
- File Icons
- Rounded Panels
- Editor and Tabs
- Pin Reorder and Wrap Tabs
- Single Tab Title
- Split Editor
- New File and Unsaved Changes
- Unload Hidden Tabs
- Editing Code
- Code Appearance
- Markdown Editor
- Image and PDF Preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and Replace
- Changes and Commits
- Sign In Prompts
- Commit Box Layout
- Repository Actions
- Commit Options
- Ignoring Files
- Diffs
- Inline Diffs
- Staging View
- Revert a Change
- Resolving Conflicts
- Merge Tool
- Blame
- History and Log
- Merge Commits
- Branches and Tags
- Branches Popup
- Remotes
- Stashes
- Shelf
- Git Menu
- Git Dialogs
- Interactive Rebase
- Worktrees
- AI Agents
- AI Tasks
- AI Usage
- Keep Computer Awake
- Submodules
- Git LFS
- GitHub
- Git Console
- Terminal
- Terminal Features
- Scripts
- Navigation
- Menus
- Settings
- Settings Search
- Color Themes
- Settings Terminal and Automation
- Settings Files
- Updates
- Status Bar and Help
- Notifications
- Memory Use
- Clear Cache
- MCP and CLI
- Git Mergetool
- Keyboard Shortcuts
- Keyboard Shortcuts Editor
- Troubleshooting
- Troubleshooting Git
Developers
- Developer Guide
- Architecture
- Project Layout
- Backend
- How Folder Watching Works
- Folder Watching Bugs We Fixed
- How Workspace Files Work
- How the Preview Scheme Works
- Backend Services
- How Terminal Features Work
- Terminal Bugs We Fixed
- Frontend
- How the Rich Markdown Editor Works
- Rich Markdown Bugs We Fixed
- Git Menu Links
- Menu Keys and Routing
- Frontend Modules
- Blame Bugs We Fixed
- Project Color And Title Bar
- One Diff View
- Diff Bugs We Fixed
- Merge Tool Layouts
- Merge Tool Bugs We Fixed
- Color Theme Bugs We Fixed
- How the Connected Diff Works
- Rounded Panels Bugs We Fixed
- Update Bugs We Fixed
- Status Bar Bugs We Fixed
- MCP and CLI Bugs We Fixed
- Repository Actions Bugs We Fixed
- How the Changes Tab Works
- CodeMirror Patterns
- How the Cursor Works
- How Editor Features Work
- How the Path Bar Works
- Commands and Events
- Settings Reference
- Commands Workspace and Changes
- Commands Branches and Remotes
- Commands History and Extras
- Commands App and Tools
- Testing
- Test Suites
- Debugging
- Debugging with MCP
- Measuring Setting Memory
- How Terminal Memory Is Measured
- How Markdown Diagrams Work
- Releases and CI
- Publishing the Wiki
- Versioning and Changelog
- Browser Version Packages
- Browser Release Checks
- Docker Image
- Platforms and Signing
- Windows Support
- Windows Bugs We Fixed
- Windows MCP and CLI
- Docs and Screenshots
- UI Library
- UI Library MCP
- UI Library Bugs
- UI Library Migration
- Contributing
How features work
- Welcome screen
- Workspaces and folders
- Files panel
- File operations
- File icons
- Editor and tabs
- Pin, reorder and wrap tabs
- Single tab title
- Split editor
- New File and unsaved changes
- Unload hidden tabs
- Editing code
- Code appearance
- Markdown editor
- Image and PDF preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and replace
- Changes and commits
- Sign-in prompts
- Commit box layout
- Repository actions
- Commit options
- Ignoring files
- Diffs
- Inline diffs
- Staging view
- Revert a change
- Resolving conflicts
- Merge tool
- Blame
- History and log
- Merge commits
- Commit tabs
- Branches and tags
- Branches popup
- Remotes
- Stashes
- Shelf
- Git menu
- Git dialogs
- Interactive rebase
- Worktrees
- AI agents
- AI usage
- Keep computer awake
- AI tasks
- Submodules
- Git LFS
- GitHub account
- Git Console
- Back and Forward
- Integrated terminal
- Scripts tool window
- Menu bar
- Settings
- Search in Settings
- Color themes
- Rounded panels
- Updates and release channels
- Status bar and help links
- Notifications
- Memory readout and memory log
- Clear Cache
- MCP server and command line tool
- git mergetool mode