Skip to content

Upgrading

Archidocs follows semantic versioning. A version is major.minor.patch, such as 1.2.0. This page says what each part promises, and how to move to a new version.

Within a major, such as every 1.x release, these keep working:

  • CLI: the commands, their flags and their exit codes change only in a major release.
  • Model YAML: a Workspace, the repo that holds the whole architecture, that passes archidocs check keeps passing within a major.
  • New rules: a new rule arrives as a warning first.
  • MCP tools: tool names, required inputs and existing output fields change only in a major release.
  • New MCP tools: new tools and new optional fields can arrive in a minor release.
  • Rule ids: a rule’s id is never reused.
  • Removed rules: a removed rule keeps a stub page, so the links that archidocs check printed still open.
  • Viewer URLs: a shared viewer link keeps opening the same screen within a major, except for the change below.
  • Node.js: Archidocs supports every Node.js line in active or maintenance LTS.
  • Dropping Node.js: dropping support for a Node.js line needs a major release.

The viewer URL reference lists the routes and parameters that the promise covers.

Viewer URLs will drop /#/ in a 1.x release, so the hash form, such as #/view/c2, will change within v1. What an old #/view/… link does after that change isn’t decided yet. Nothing is promised about old links until that work is specified.

The Workspace Bundle, the one file the viewer and MCP server read, has no promise. Its format and its schemaVersion are internal, and can change in any release. Sites and caches rebuild the Workspace Bundle from git, so a new format needs no action from you. The viewer and the MCP server’s --bundle read a site built by an older Archidocs by migrating its Bundles, but not one built by a newer Archidocs. For that, rebuild the site, or use an archidocs at least as new as the one that built it. The Changelog says when the format changes.

  • @v1: a moving tag that each 1.x release moves to itself, so chalharb/archidocs@v1 always runs the newest 1.x release. A beta never moves it.
  • @v1.2.0: a fixed tag that pins one release.

The GitLab template’s URL uses the same tags. There the tag picks only the template file. The template’s version input picks the CLI it runs.

Run the same version on your machine and in CI, so a check that passes locally passes in the pipeline.

Install the new version with the package manager you used. Installation has the command for npm, pnpm and npx.

With @v1 and no version input, there is nothing to change: the next 1.x release moves the tag. If you pin, change the tag or the version input to the new release:

.github/workflows/architecture.yml
- uses: chalharb/archidocs@v1
with:
version: 1.2.0

For a new major, change @v1 to the new major, such as @v2. See the GitHub Action reference.

From the Workspace repo’s root, run:

Terminal window
archidocs init

It refreshes the agent skill files that the new version changed, and adds any setup that is missing. It leaves your Model, every Element and Relationship of your architecture, alone. Installation shows what it prints.

Terminal window
archidocs check
0 errors, 0 warnings

Within a major, a Workspace that passed still has no errors. A new rule can add a warning, and the warning’s line links the rule’s page. With archidocs check --strict, a warning fails the check, so fix it before you upgrade CI.

Before a release, its changes ship as betas, such as 1.4.0-beta.1, under the npm beta tag. A beta can change, or be replaced by the next one, before its release. Try one in a branch or a scratch repo, not in the pipeline your team relies on.

Run a beta once without installing it:

Terminal window
npx archidocs@beta check

Or install it in place of the release, and go back with archidocs@latest:

Terminal window
npm install --global archidocs@beta

The docs for the betas are at beta.archidocs.dev. Each beta’s notes are on GitHub Releases, marked as a pre-release. The Changelog lists only releases.

The Changelog lists every release, newest first. semantic-release writes it from the type of each commit message. The type decides the section and the version number:

Commit type Changelog section Release
A breaking change, marked ! ⚠ BREAKING CHANGES Major
feat Features Minor
fix Bug fixes Patch

perf and revert commits get the Performance and Reverts sections. Other types, such as docs, refactor and chore, don’t appear in the Changelog. Before a major upgrade, read its ⚠ BREAKING CHANGES section, which lists the breaking changes.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.