Skip to content

Commit fd46af1

Browse files
committed
chore: reset SCHEMA_VERSION to 1; trim README install note
- Align db.ts and architecture.md with schema version 1. - Drop redundant pre-release parenthetical from README (covered in packaging docs).
1 parent 4ca4267 commit fd46af1

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ bun add @stainless-code/codemap
1616
# or: npm install @stainless-code/codemap
1717
```
1818

19-
(`0.0.0` until the first npm release; use a git dependency or `bun link` until then.)
20-
2119
The package exposes a **`codemap`** binary, a **library** entry (`import` / `exports`), compiled **`dist/`**, and **`templates/agents`** for **`codemap agents init`** — see [docs/packaging.md](docs/packaging.md).
2220

2321
**Engines:** Node **`^20.19.0 || >=22.12.0`** and/or Bun **`>=1.0.0`** — see `package.json` and [docs/packaging.md](docs/packaging.md).

docs/architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ The npm package exports **`createCodemap`**, **`Codemap`** (`query`, `index`), *
156156

157157
**Fresh database:** the default CLI **`codemap`** (incremental) calls **`createSchema()`** in **`runCodemapIndex`** before **`getChangedFiles()`**, so the **`meta`** table exists before **`getMeta(..., "last_indexed_commit")`** runs on an empty **`.codemap.db`**.
158158

159-
Current schema version: **2** — see [Schema Versioning](#schema-versioning) for details.
159+
Current schema version: **1** — see [Schema Versioning](#schema-versioning) for details.
160160

161161
All tables use `STRICT` mode. Tables marked with `WITHOUT ROWID` store data directly in the primary key B-tree. PRAGMAs and index design: [SQLite Performance Configuration](#sqlite-performance-configuration).
162162

@@ -431,7 +431,7 @@ When `SCHEMA_VERSION` is bumped (after the first release, when DDL changes requi
431431
- `createSchema()` detects the mismatch automatically and calls `dropAll()` before recreating
432432
- No manual intervention needed — run the indexer and it auto-rebuilds on version change
433433

434-
Until the first release, Codemap keeps **`SCHEMA_VERSION` at 2**; pull `--full` or delete `.codemap.db` when the DDL in `db.ts` changes without a version bump.
434+
Until the first release, Codemap keeps **`SCHEMA_VERSION` at 1**; pull `--full` or delete `.codemap.db` when the DDL in `db.ts` changes without a version bump.
435435

436436
## SQLite Performance Configuration
437437

src/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
* tweaks; run `--full` locally after pulling. After v1.0, bump in lockstep with
1010
* `createTables` / `createIndexes` when the on-disk schema changes.
1111
*/
12-
export const SCHEMA_VERSION = 2;
12+
export const SCHEMA_VERSION = 1;
1313

1414
export type { CodemapDatabase };
1515

0 commit comments

Comments
 (0)