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

Commit 640ba5e

Browse files
author
Hendrik van Antwerpen
committed
Release stack-graphs v0.13.0 and tree-sitter-stack-graphs v0.8.1
1 parent a8e4fa0 commit 640ba5e

File tree

8 files changed

+37
-7
lines changed

8 files changed

+37
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ anyhow = { version = "1.0", optional = true }
3030
clap = { version = "4", optional = true }
3131
serde = { version = "1.0", features = ["derive"] }
3232
serde_json = "1.0"
33-
stack-graphs = { version = "0.12", path = "../../stack-graphs" }
33+
stack-graphs = { version = "0.13", path = "../../stack-graphs" }
3434
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs" }
3535
tree-sitter-javascript = { git = "https://github.com/tree-sitter/tree-sitter-javascript", rev = "5720b249490b3c17245ba772f6be4a43edb4e3b7" }
3636

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ clap = { version = "4", optional = true }
3232
glob = "0.3"
3333
serde = { version = "1.0", features = ["derive"] }
3434
serde_json = "1.0"
35-
stack-graphs = { version = ">=0.11, <=0.12", path = "../../stack-graphs" }
35+
stack-graphs = { version = "0.13", path = "../../stack-graphs" }
3636
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs" }
3737
tree-sitter-typescript = "=0.20.2"
3838
tsconfig = "0.1.0"

stack-graphs/CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,32 @@ 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.13.0 -- 2024-03-06
9+
10+
### Added
11+
12+
- New type `StitcherConfig` to specify configuration flags that control stitching.
13+
- Path stiching statistics can now be collected during stitching for debugging purposes. Disabled by default and can be enabled with `StitcherConfig`.
14+
- A method `StackGraph::set_edge_precedence` that allows changing the precendence of an existing edge in a stack graph.
15+
- A method `StackGraph::incoming_edge_degree` that returns the number of edges ending in a given node.
16+
- A method `Database::get_incoming_path_degree` that returns the number of partial paths in the database ending in a given node.
17+
- Cycle detection improved by using incoming path or edge degrees to reduce the amount of data to keep in memory.
18+
- Visualization uses different colors for nodes of different files, which makes understanding multi-file graphs easier.
19+
20+
### Changed
21+
22+
- Methods and types that do stitching in their implementation now require a `StitcherConfig` value. These include `Assertion::run`, `ForwardPartialPathStitcher::find_*`, and `Test::run`.
23+
- The SQLite storage data encoding and queries changed to improve performance.
24+
25+
### Removed
26+
27+
- Method `StackGraph::remove_edge` has been removed.
28+
29+
### Fixed
30+
31+
- A panic when using an arena after `Arena::clear` or `SupplementalArena::clear` was called.
32+
- Missing candidates when looking up root paths in a `Database`.
33+
834
## v0.12.0 -- 2023-07-27
935

1036
### Added

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 = "stack-graphs"
3-
version = "0.12.0"
3+
version = "0.13.0"
44
description = "Name binding for arbitrary programming languages"
55
homepage = "https://github.com/github/stack-graphs/tree/main/stack-graphs"
66
repository = "https://github.com/github/stack-graphs/"

stack-graphs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ To use this library, add the following to your `Cargo.toml`:
99

1010
``` toml
1111
[dependencies]
12-
stack-graphs = "0.12"
12+
stack-graphs = "0.13"
1313
```
1414

1515
Check out our [documentation](https://docs.rs/stack-graphs/) for more details on

stack-graphs/src/graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ impl StackGraph {
13071307
}
13081308
}
13091309

1310-
/// Removes an edge from the stack graph.
1310+
/// Sets edge precedence of the given edge.
13111311
pub fn set_edge_precedence(
13121312
&mut self,
13131313
source: Handle<Node>,

tree-sitter-stack-graphs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ 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.1 -- 2024-03-06
9+
10+
The `stack-graphs` dependency was updated to `v0.13` to fix the build problems of the `v0.8.0` release.
11+
812
## v0.8.0 -- 2024-03-05
913

1014
The `tree-sitter` dependency version was updated to fix install problems.

tree-sitter-stack-graphs/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tree-sitter-stack-graphs"
3-
version = "0.8.0"
3+
version = "0.8.1"
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/"
@@ -69,7 +69,7 @@ regex = "1"
6969
rust-ini = "0.18"
7070
serde_json = { version="1.0", optional=true }
7171
sha1 = { version="0.10", optional=true }
72-
stack-graphs = { version="0.12", path="../stack-graphs" }
72+
stack-graphs = { version="0.13", path="../stack-graphs" }
7373
thiserror = "1.0"
7474
time = { version = "0.3", optional = true }
7575
tokio = { version = "1.26", optional = true, features = ["io-std", "rt", "rt-multi-thread"] }

0 commit comments

Comments
 (0)