Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 106c728

Browse files
author
Hendrik van Antwerpen
committed
Release tree-sitter-stack-graphs v0.9.0
Includes a bit of code cleanup.
1 parent f715ed1 commit 106c728

File tree

21 files changed

+46
-144
lines changed

21 files changed

+46
-144
lines changed

languages/tree-sitter-stack-graphs-java/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ cli = ["anyhow", "clap", "tree-sitter-stack-graphs/cli"]
4141
anyhow = { version = "1.0", optional = true }
4242
clap = { version = "4", features = ["derive"], optional = true }
4343
tree-sitter-java = { version = "=0.20.2" }
44-
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs" }
44+
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }
4545

4646
[dev-dependencies]
4747
anyhow = { version = "1.0" }
48-
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs", features = ["cli"] }
48+
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs", features = ["cli"] }

languages/tree-sitter-stack-graphs-java/rust/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ pub const STACK_GRAPHS_BUILTINS_PATH: &str = "src/builtins.java";
1414
/// The stack graphs builtins source for this language.
1515
pub const STACK_GRAPHS_BUILTINS_SOURCE: &str = include_str!("../src/builtins.java");
1616

17-
/// The name of the file path global variable
18-
pub const FILE_PATH_VAR: &str = "FILE_PATH";
1917
/// The name of the project name global variable
2018
pub const PROJECT_NAME_VAR: &str = "PROJECT_NAME";
2119

languages/tree-sitter-stack-graphs-javascript/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ serde_json = "1.0"
3333
stack-graphs = { path = "../../stack-graphs" }
3434
tree-sitter-graph = "0.11.2"
3535
tree-sitter-javascript = "=0.20.4"
36-
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs" }
36+
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }
3737

3838
[dev-dependencies]
3939
anyhow = "1.0"
40-
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs", features = ["cli"] }
40+
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs", features = ["cli"] }

languages/tree-sitter-stack-graphs-javascript/rust/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ pub const STACK_GRAPHS_BUILTINS_PATH: &str = "src/builtins.js";
2626
/// The stack graphs builtins source for this language.
2727
pub const STACK_GRAPHS_BUILTINS_SOURCE: &str = include_str!("../src/builtins.js");
2828

29-
/// The name of the file path global variable.
30-
pub const FILE_PATH_VAR: &str = "FILE_PATH";
29+
/// The name of the project name global variable
3130
pub const PROJECT_NAME_VAR: &str = "PROJECT_NAME";
3231

3332
pub fn language_configuration(cancellation_flag: &dyn CancellationFlag) -> LanguageConfiguration {

languages/tree-sitter-stack-graphs-python/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ cli = ["anyhow", "clap", "tree-sitter-stack-graphs/cli"]
3030
[dependencies]
3131
anyhow = { version = "1.0", optional = true }
3232
clap = { version = "4", optional = true, features = ["derive"] }
33-
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs" }
33+
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }
3434
tree-sitter-python = "=0.20.4"
3535

3636
[dev-dependencies]
3737
anyhow = "1.0"
38-
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs", features = ["cli"] }
38+
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs", features = ["cli"] }

languages/tree-sitter-stack-graphs-python/rust/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ pub const STACK_GRAPHS_BUILTINS_PATH: &str = "src/builtins.py";
2121
/// The stack graphs builtins source for this language.
2222
pub const STACK_GRAPHS_BUILTINS_SOURCE: &str = include_str!("../src/builtins.py");
2323

24-
/// The name of the file path global variable.
25-
pub const FILE_PATH_VAR: &str = "FILE_PATH";
26-
2724
pub fn language_configuration(cancellation_flag: &dyn CancellationFlag) -> LanguageConfiguration {
2825
try_language_configuration(cancellation_flag).unwrap_or_else(|err| panic!("{}", err))
2926
}

languages/tree-sitter-stack-graphs-typescript/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ glob = "0.3"
3333
serde = { version = "1.0", features = ["derive"] }
3434
serde_json = "1.0"
3535
stack-graphs = { path = "../../stack-graphs" }
36-
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs" }
36+
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }
3737
tree-sitter-typescript = "=0.20.2"
3838
tsconfig = "0.1.0"
3939

4040
[dev-dependencies]
4141
anyhow = { version = "1.0" }
42-
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs", features = ["cli"] }
42+
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs", features = ["cli"] }
4343

4444
[build-dependencies]
4545
anyhow = { version = "1.0" }

languages/tree-sitter-stack-graphs-typescript/rust/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ pub const STACK_GRAPHS_BUILTINS_PATH: &str = "src/builtins.ts";
3131
/// The stack graphs builtins source for this language
3232
pub const STACK_GRAPHS_BUILTINS_SOURCE: &str = include_str!("../src/builtins.ts");
3333

34-
/// The name of the file path global variable
35-
pub const FILE_PATH_VAR: &str = "FILE_PATH";
3634
/// The name of the project name global variable
3735
pub const PROJECT_NAME_VAR: &str = "PROJECT_NAME";
3836

tree-sitter-stack-graphs/CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,29 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## v0.8.2 -- unreleased
8+
## v0.9.0 -- 2024-07-09
9+
10+
11+
### Library
12+
13+
- New crate-level constants `FILE_PATH_VAR` and `ROOT_PATH_VAR` standardize the TSG global variable names to use for the file and root path.
14+
- The file path variable will only use the filename set in the stack graph if no value was explicitly set.
915

1016
### CLI
1117

1218
#### Added
1319

1420
- Tests run faster for languages with builtins sources by caching the partial paths for the builtins.
21+
- Indexing will set a value for the root path variable that is passed to TSG. The value is based on the directory that was provided on the command line.
1522

1623
#### Changed
1724

1825
- Failure to index a file will not abort indexing anymore, but simply mark the file as failed, as we already do for files with parse errors.
1926

27+
#### Removed
28+
29+
- The NPM distribution has been deprecated.
30+
2031
## v0.8.1 -- 2024-03-06
2132

2233
The `stack-graphs` dependency was updated to `v0.13` to fix the build problems of the `v0.8.0` release.

tree-sitter-stack-graphs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tree-sitter-stack-graphs"
3-
version = "0.8.2"
3+
version = "0.9.0"
44
description = "Create stack graphs using tree-sitter parsers"
55
homepage = "https://github.com/github/stack-graphs/tree/main/tree-sitter-stack-graphs"
66
repository = "https://github.com/github/stack-graphs/"

0 commit comments

Comments
 (0)