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

Commit c2df61c

Browse files
author
Hendrik van Antwerpen
committed
Upgrade tree-sitter dependency to 0.24
1 parent 627e93c commit c2df61c

37 files changed

Lines changed: 169 additions & 178 deletions

‎languages/tree-sitter-stack-graphs-java/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ 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.5.0 -- Unreleased
9+
10+
- The `tree-sitter-stack-graphs` dependency is updated to version 0.10.
11+
12+
- The `tree-sitter-java` dependency is updated to version 0.23.4.
13+
814
## v0.4.0 -- 2024-07-09
915

1016
### Added

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tree-sitter-stack-graphs-java"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
description = "Stack graphs for the Java programming language"
55

66
homepage = "https://github.com/github/stack-graphs/tree/main/languages/tree-sitter-stack-graphs-java"
@@ -40,8 +40,8 @@ cli = ["anyhow", "clap", "tree-sitter-stack-graphs/cli"]
4040
[dependencies]
4141
anyhow = { version = "1.0", optional = true }
4242
clap = { version = "4", features = ["derive"], optional = true }
43-
tree-sitter-java = { version = "=0.20.2" }
44-
tree-sitter-stack-graphs = { version = "0.9", path = "../../tree-sitter-stack-graphs" } # explicit version is required to be able to publish crate
43+
tree-sitter-java = { version = "=0.23.4" }
44+
tree-sitter-stack-graphs = { version = "0.10", path = "../../tree-sitter-stack-graphs" } # explicit version is required to be able to publish crate
4545

4646
[dev-dependencies]
4747
anyhow = { version = "1.0" }

‎languages/tree-sitter-stack-graphs-java/README.md‎

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

1414
```toml
1515
[dependencies]
16-
tree-sitter-stack-graphs-java = "0.4"
16+
tree-sitter-stack-graphs-java = "0.5"
1717
```
1818

1919
Check out our [documentation](https://docs.rs/tree-sitter-stack-graphs-java/*/) for more details on how to use this library.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn try_language_configuration(
2525
cancellation_flag: &dyn CancellationFlag,
2626
) -> Result<LanguageConfiguration, LoadError> {
2727
LanguageConfiguration::from_sources(
28-
tree_sitter_java::language(),
28+
tree_sitter_java::LANGUAGE.into(),
2929
Some(String::from("source.java")),
3030
None,
3131
vec![String::from("java")],

‎languages/tree-sitter-stack-graphs-java/src/stack-graphs.tsg‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,10 +1078,6 @@ attribute node_symbol = node => symbol = (source-text node), source_n
10781078
edge @child.lexical_scope -> @expr.lexical_scope
10791079
}
10801080

1081-
(condition (_) @child) @expr {
1082-
edge @child.lexical_scope -> @expr.lexical_scope
1083-
}
1084-
10851081
;; =============
10861082
;; Expressions
10871083
;; =============
@@ -1111,7 +1107,6 @@ attribute node_symbol = node => symbol = (source-text node), source_n
11111107
(this)
11121108
; (identifier)
11131109
(parenthesized_expression)
1114-
(condition)
11151110
(object_creation_expression)
11161111
(field_access)
11171112
(array_access)

‎languages/tree-sitter-stack-graphs-javascript/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ 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.3.0 -- Unreleased
9+
10+
- The `tree-sitter-stack-graphs` dependency is updated to version 0.10.
11+
12+
- The `tree-sitter-javascript` dependency is updated to version 0.23.1.
13+
814
## v0.2.0 -- 2024-07-09
915

1016
### Removed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tree-sitter-stack-graphs-javascript"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
description = "Stack graphs definition for JavaScript using tree-sitter-javascript"
55
readme = "README.md"
66
keywords = ["tree-sitter", "stack-graphs", "javascript"]
@@ -31,9 +31,9 @@ clap = { version = "4", optional = true }
3131
serde = { version = "1.0", features = ["derive"] }
3232
serde_json = "1.0"
3333
stack-graphs = { version = "0.14", path = "../../stack-graphs" } # explicit version is required to be able to publish crate
34-
tree-sitter-graph = "0.11.2"
35-
tree-sitter-javascript = "=0.20.4"
36-
tree-sitter-stack-graphs = { version = "0.9", path = "../../tree-sitter-stack-graphs" } # explicit version is required to be able to publish crate
34+
tree-sitter-graph = "0.12"
35+
tree-sitter-javascript = "=0.23.1"
36+
tree-sitter-stack-graphs = { version = "0.10", path = "../../tree-sitter-stack-graphs" } # explicit version is required to be able to publish crate
3737

3838
[dev-dependencies]
3939
anyhow = "1.0"

‎languages/tree-sitter-stack-graphs-javascript/README.md‎

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

1414
```toml
1515
[dependencies]
16-
tree-sitter-stack-graphs-javascript = "0.2"
16+
tree-sitter-stack-graphs-javascript = "0.3"
1717
```
1818

1919
Check out our [documentation](https://docs.rs/tree-sitter-stack-graphs-javascript/*/) for more details on how to use this library.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub fn try_language_configuration(
3737
cancellation_flag: &dyn CancellationFlag,
3838
) -> Result<LanguageConfiguration, LoadError> {
3939
let mut lc = LanguageConfiguration::from_sources(
40-
tree_sitter_javascript::language(),
40+
tree_sitter_javascript::LANGUAGE.into(),
4141
Some(String::from("source.js")),
4242
None,
4343
vec![String::from("js")],

‎languages/tree-sitter-stack-graphs-python/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ 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.3.0 -- Unreleased
9+
10+
- The `tree-sitter-stack-graphs` dependency is updated to version 0.10.
11+
12+
- The `tree-sitter-python` dependency is updated to version 0.23.5.
13+
814
## v0.2.0 -- 2024-07-09
915

1016
### Added

0 commit comments

Comments
 (0)