Skip to content

Commit 415a042

Browse files
anvansterclaude
andcommitted
chore(release): bump to 0.21.0 and document the upgrade
0.21.0 rather than a patch: it adds --split-identifiers, changes what every camelCase symbol is embedded from, and re-embeds existing indexes on first open. Moves every release pin together: Cargo.toml and the workspace members in Cargo.lock, both ENGINE_VERSION pins (fetch-engine.js, shared with the VS Code client, and the JetBrains resolver), the npm package, both version fields in server.json, the VSIX version, pluginVersion, and the VSIX install examples in both READMEs. Left at 0.20.1 on purpose: lsp4ijVersion, which is the LSP4IJ dependency and only coincidentally matches; the comments and README lines that name 0.20.1 as the last release without vector stamps; and the test fixtures that publish and download their own fake release. The README gains an "Upgrading to 0.21" section. The upgrade guidance existed but sat inside the flags table, where nobody upgrading would look. It also says something nothing else did: graphs persisted by 0.20.1 can already hold files its watcher let in from excluded directories, and stale symbols from workspaces reached through a symlink. The fixes stop new damage but do not remove what is already stored, so those users need one reindex. The clients now ask for v0.21.0 release assets, which do not exist yet. package-npm.sh refuses to package until they are published. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017rVbt7rENTwXkdHt3Bpgb5
1 parent 3dfd84d commit 415a042

10 files changed

Lines changed: 37 additions & 13 deletions

File tree

‎Cargo.lock‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ members = [
6060
]
6161

6262
[workspace.package]
63-
version = "0.20.1"
63+
version = "0.21.0"
6464
edition = "2021"
6565
license = "Apache-2.0"
6666
repository = "https://github.com/codegraph-ai/codegraph"

‎README.md‎

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The server indexes the current working directory automatically.
3030
Install the VSIX:
3131

3232
```bash
33-
code --install-extension codegraph-0.20.1.vsix
33+
code --install-extension codegraph-0.21.0.vsix
3434
```
3535

3636
One VSIX serves every platform.
@@ -85,6 +85,30 @@ one tool and exits without the MCP stdio handshake — ideal for scripting.
8585

8686
---
8787

88+
## Upgrading to 0.21
89+
90+
Each project re-embeds once, in the background, the first time 0.21 opens it.
91+
Stored vectors now record the model and settings that built them, and an index from 0.20.1 or earlier records none.
92+
Keyword search keeps working while it runs.
93+
94+
Restart any `--watch` daemon after upgrading.
95+
A daemon left running keeps writing vectors that 0.21 will not load, and sessions attached to it run without semantic search until it restarts.
96+
97+
Identifiers whose words run together, like `getUserById`, are now also embedded in word-split form.
98+
This mostly helps natural-language search in camelCase languages such as TypeScript, Java and C#.
99+
Pass `--split-identifiers=false` to keep the old behaviour.
100+
101+
`--full-body-embedding=false` now takes effect; in 0.20.1 the flag was always on.
102+
103+
Run a reindex once (`codegraph_reindex_workspace`) if either of these applied to you:
104+
105+
- you excluded generated directories with `--exclude` or `.codegraphignore`, because 0.20.1's file watcher still let changes to them into the graph;
106+
- your workspace path goes through a symlink (on macOS that includes anything under `/tmp`), because 0.20.1 kept the old symbols of every edited or deleted file.
107+
108+
Both are fixed, but symbols already persisted by 0.20.1 stay until the graph is rebuilt.
109+
110+
---
111+
88112
## Configuration
89113

90114
### MCP Server flags

‎jetbrains/gradle.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# clients. The engine it fetches is pinned separately, in
66
# CodeGraphServerResolver.ENGINE_VERSION, so a plugin-only patch cannot start
77
# asking the release server for a tag that was never published.
8-
pluginVersion=0.20.1
8+
pluginVersion=0.21.0
99

1010
# Target platform. 243 = 2024.3, the oldest build LSP4IJ 0.20.x supports that
1111
# also has a stable Code Vision API. Bumping this is a compatibility decision,

‎jetbrains/src/main/kotlin/ai/codegraph/jetbrains/server/CodeGraphServerResolver.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ object CodeGraphServerResolver {
309309
* held equal to Cargo.toml by `scripts/publish-release-assets.sh`, which
310310
* refuses to publish while they disagree.
311311
*/
312-
const val ENGINE_VERSION = "0.20.1"
312+
const val ENGINE_VERSION = "0.21.0"
313313

314314
private val ARM64_ARCHES = setOf("aarch64", "arm64")
315315
private val X64_ARCHES = setOf("x86_64", "amd64", "x64")

‎mcp-package/bin/fetch-engine.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const RELEASE_BASE = "https://github.com/codegraph-ai/CodeGraph/releases/downloa
7575
* Kept equal to the engine version by `scripts/publish-release-assets.sh`, which
7676
* refuses to publish while any channel's pin disagrees with Cargo.toml.
7777
*/
78-
const ENGINE_VERSION = "0.20.1";
78+
const ENGINE_VERSION = "0.21.0";
7979

8080
/** Codes Windows and POSIX use for "something else has this file open". */
8181
const IN_USE_ERROR_CODES = new Set(["EPERM", "EACCES", "EBUSY", "ETXTBSY"]);

‎mcp-package/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@astudioplus/codegraph-mcp",
3-
"version": "0.20.1",
3+
"version": "0.21.0",
44
"mcpName": "io.github.codegraph-ai/codegraph",
55
"description": "CodeGraph MCP server \u2014 cross-language code intelligence with 42 tools, 38 languages",
66
"author": "Andrey Vasilevsky <anvanster@gmail.com>",

‎mcp-package/server.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"url": "https://github.com/codegraph-ai/CodeGraph",
77
"source": "github"
88
},
9-
"version": "0.20.1",
9+
"version": "0.21.0",
1010
"packages": [
1111
{
1212
"registryType": "npm",
1313
"identifier": "@astudioplus/codegraph-mcp",
14-
"version": "0.20.1",
14+
"version": "0.21.0",
1515
"transport": {
1616
"type": "stdio"
1717
},

‎vscode/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The server indexes the current working directory automatically.
3030
Install from the marketplace, or sideload the VSIX:
3131

3232
```bash
33-
code --install-extension codegraph-0.20.1.vsix
33+
code --install-extension codegraph-0.21.0.vsix
3434
```
3535

3636
One VSIX serves every platform.

‎vscode/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "codegraph",
33
"displayName": "CodeGraph",
44
"description": "Cross-language code intelligence powered by graph analysis",
5-
"version": "0.20.1",
5+
"version": "0.21.0",
66
"publisher": "aStudioPlus",
77
"author": "Andrey Vasilevsky <anvanster@gmail.com>",
88
"license": "Apache-2.0",

0 commit comments

Comments
 (0)