|
| 1 | +# Release Notes v0.2.0 (Async-Only + WebSocket v2) |
| 2 | + |
| 3 | +Release target for the `feat/ws-v2-async` migration line. |
| 4 | + |
| 5 | +## Highlights |
| 6 | + |
| 7 | +- WebSocket v2 is now the bridge transport baseline (`ws://127.0.0.1:27841/ws`). |
| 8 | +- `pyritone.Client` is the canonical async client API. |
| 9 | +- Typed Baritone wrappers are available under `client.baritone.*`. |
| 10 | +- Minecraft constants are available under `pyritone.minecraft.*`. |
| 11 | +- Docs/demos were rewritten to async-only usage. |
| 12 | + |
| 13 | +## Breaking Direction Changes |
| 14 | + |
| 15 | +- Sync runtime semantics were removed from the Python client path. |
| 16 | +- Bridge usage is now websocket-first (legacy socket bridge path removed). |
| 17 | +- New code should use: |
| 18 | + - generated command wrappers (for command dispatch), |
| 19 | + - typed wrappers (`client.baritone.*`) for richer API calls. |
| 20 | + |
| 21 | +## Compatibility Policy For v0.2.x |
| 22 | + |
| 23 | +- Keep compatibility aliases: |
| 24 | + - `PyritoneClient -> Client` |
| 25 | + - `AsyncPyritoneClient -> Client` |
| 26 | +- Keep generated sync command shim modules: |
| 27 | + - `python/src/pyritone/commands/sync_*.py` |
| 28 | +- Treat both as soft-deprecated migration cushions; removal target is no earlier than `v0.3.0`. |
| 29 | +- Keep `client.execute(...)` available as an advanced raw-command escape hatch. |
| 30 | + - Guidance: prefer wrapper/typed APIs in user-facing docs and new application code. |
| 31 | + |
| 32 | +## Parity + Debt Snapshot |
| 33 | + |
| 34 | +- Canonical command wrappers: `42` |
| 35 | +- Alias wrappers: `21` |
| 36 | +- Compatibility alias assignments: `3` |
| 37 | +- Sync command shim modules: `6` |
| 38 | +- Legacy socket bridge path: removed (guarded by tests) |
| 39 | +- Cancel fallback `"stop"` command path: removed (guarded by tests) |
| 40 | + |
| 41 | +Primary references: |
| 42 | + |
| 43 | +- `python/docs/release-parity-fallback-report.md` |
| 44 | +- `python/docs/baritone-typed-parity.md` |
| 45 | +- `docs/release-checklist.md` |
| 46 | + |
| 47 | +## Upgrade Notes |
| 48 | + |
| 49 | +1. Prefer importing `Client` from `pyritone`. |
| 50 | +2. Move command calls to awaited async flows (`await client.goto(...)`, etc.). |
| 51 | +3. Keep alias imports only as transitional compatibility while migrating existing codebases. |
| 52 | +4. Use `client.execute(...)` only when wrapper/typed surfaces do not cover the needed command flow. |
0 commit comments