@sdsrs/code-graph 0.76.3 → 0.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "sdsrs"
6
6
  },
7
- "version": "0.76.3",
7
+ "version": "0.77.0",
8
8
  "keywords": [
9
9
  "code-graph",
10
10
  "ast",
@@ -83,6 +83,10 @@ function shouldCheck(state) {
83
83
 
84
84
  // ── Version Comparison (semver) ────────────────────────────
85
85
 
86
+ // Assumes plain numeric "M.m.p" releases (the project's tag scheme). A pre-release
87
+ // tag (e.g. "1.2.4-rc1") is NOT semver-ordered: `Number("4-rc1")` is NaN → coerced
88
+ // to 0, dropping that segment's number (so "1.2.4-rc1" wrongly sorts below "1.2.3").
89
+ // Revisit with a real semver compare only if the release process adopts pre-releases.
86
90
  function compareVersions(a, b) {
87
91
  const pa = a.split('.').map(Number);
88
92
  const pb = b.split('.').map(Number);
@@ -57,7 +57,13 @@ function getPackageVersion() {
57
57
  catch { return null; }
58
58
  }
59
59
 
60
- /** Compare semver-ish "M.m.p" strings; returns -1, 0, or 1. Non-numeric parts → 0. */
60
+ /**
61
+ * Compare semver-ish "M.m.p" strings; returns -1, 0, or 1. Non-numeric parts → 0.
62
+ * Assumes plain numeric releases (the project's tag scheme); a pre-release tag
63
+ * (e.g. "1.2.3-rc1") is NOT semver-ordered — `parseInt("3-rc1", 10)` keeps the
64
+ * leading 3 and drops the suffix, so "1.2.3-rc1" compares EQUAL to "1.2.3".
65
+ * Revisit only if releases adopt pre-release tags.
66
+ */
61
67
  function compareVersions(a, b) {
62
68
  const pa = String(a).split('.').map(s => parseInt(s, 10));
63
69
  const pb = String(b).split('.').map(s => parseInt(s, 10));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdsrs/code-graph",
3
- "version": "0.76.3",
3
+ "version": "0.77.0",
4
4
  "description": "MCP server that indexes codebases into an AST knowledge graph with semantic search, call graph traversal, and HTTP route tracing",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -35,10 +35,10 @@
35
35
  "node": ">=16"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@sdsrs/code-graph-linux-x64": "0.76.3",
39
- "@sdsrs/code-graph-linux-arm64": "0.76.3",
40
- "@sdsrs/code-graph-darwin-x64": "0.76.3",
41
- "@sdsrs/code-graph-darwin-arm64": "0.76.3",
42
- "@sdsrs/code-graph-win32-x64": "0.76.3"
38
+ "@sdsrs/code-graph-linux-x64": "0.77.0",
39
+ "@sdsrs/code-graph-linux-arm64": "0.77.0",
40
+ "@sdsrs/code-graph-darwin-x64": "0.77.0",
41
+ "@sdsrs/code-graph-darwin-arm64": "0.77.0",
42
+ "@sdsrs/code-graph-win32-x64": "0.77.0"
43
43
  }
44
44
  }