# Upgrading Fellow

Read the notes of every version you cross. Pre-releases (alpha, beta, rc) may break between any two versions;
from 1.0.0 on only major versions break. The CLI does the mechanical part:

```bash
bun add @fellowframework/core@alpha @fellowframework/vue@alpha @fellowframework/cli@alpha
fellow upgrade:check            # what is compatible, what can be rewritten, which notes apply
fellow upgrade --dry-run        # review the plan
fellow upgrade                  # rewrite module `fellow` ranges, @fellowframework/* dependencies, installed agent skills
bun install
fellow migrate
fellow check --tests
```

`fellow upgrade` only edits files you own:

- the `fellow` range of local modules (for example `^1.0.0-alpha.0` → `^1.0.0-beta.0`) — review the module against the notes below first;
- `@fellowframework/*` ranges in `package.json` (never `workspace:` ones);
- skills installed with `fellow skills:install`, so agents do not learn outdated commands.

Modules installed from a registry (listed in `fellow.lock.json`) are never rewritten: their publisher declares
compatibility. If one does not support the new version, `upgrade:check` reports FW-UPG-001; install a compatible
version (`fellow module:outdated`, `fellow module:install <id> --upgrade`) or wait for the publisher before
upgrading. Ranges that are not a simple caret (`>=0.5 <0.6`, `~0.6.1`) are reported too, to change by hand.

## 1.0.0-alpha.2

First release on npm. The packages moved from `@fellow/*` to the `@fellowframework` scope:

- replace `@fellow/` with `@fellowframework/` in `package.json` and in every import, then run `bun install`;
- run `fellow upgrade`.

## 1.0.0-alpha.1

First pre-release of Fellow 1.0:

- modules and applications declare `fellow: ^1.0.0-alpha.0`, which accepts every later pre-release and the final
  1.x (`^1.0.0` would reject pre-releases);
- run `fellow upgrade`, then `fellow migrate`.
