Skip to content

Commit d7665d1

Browse files
Merge pull request #451 from github/releases
New releases
2 parents 20a2554 + a68b92d commit d7665d1

File tree

33 files changed

+109
-158
lines changed

33 files changed

+109
-158
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ 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.4.0 -- 2024-07-09
9+
10+
### Added
11+
12+
- Add rules for the `condition` node that was missing.
13+
14+
### Removed
15+
16+
- The `FILE_PATH_VAR` constant has been replaced in favor of `tree_sitter_stack_graphs::FILE_PATH_VAR`.
17+
818
## v0.3.0 -- 2024-03-06
919

1020
The `tree-sitter-stack-graphs` is updated to `v0.8`.

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.3.0"
3+
version = "0.4.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"
@@ -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/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.3"
16+
tree-sitter-stack-graphs-java = "0.4"
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: 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/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.2.0 -- 2024-07-09
9+
10+
### Removed
11+
12+
- The `FILE_PATH_VAR` constant has been replaced in favor of `tree_sitter_stack_graphs::FILE_PATH_VAR`.
13+
814
## v0.1.0 -- 2024-03-06
915

1016
Initial release.

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.1.0"
3+
version = "0.2.0"
44
description = "Stack graphs definition for JavaScript using tree-sitter-javascript"
55
readme = "README.md"
66
keywords = ["tree-sitter", "stack-graphs", "javascript"]
@@ -30,11 +30,11 @@ 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.13", path = "../../stack-graphs" }
33+
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/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.1"
16+
tree-sitter-stack-graphs-javascript = "0.2"
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 & 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/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ 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.2.0 -- 2024-07-09
9+
10+
### Added
11+
12+
- Added support for root paths. This fixes import problems when indexing using absolute directory paths.
13+
14+
### Fixed
15+
16+
- Fixed crash for lambdas with parameters.
17+
- Fixed crash for nested functions definitions.
18+
19+
### Removed
20+
21+
- The `FILE_PATH_VAR` constant has been replaced in favor of `tree_sitter_stack_graphs::FILE_PATH_VAR`.
22+
823
## v0.1.0 -- 2024-03-06
924

1025
Initial release.

languages/tree-sitter-stack-graphs-python/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-python"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
description = "Stack graphs definition for Python using tree-sitter-python"
55
readme = "README.md"
66
keywords = ["tree-sitter", "stack-graphs", "python"]
@@ -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/LICENSE

Whitespace-only changes.

languages/tree-sitter-stack-graphs-python/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-python = "0.1"
16+
tree-sitter-stack-graphs-python = "0.2"
1717
```
1818

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

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/CHANGELOG.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,23 @@ 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
8+
## v0.3.0 -- 2024-07-09
99

1010
### Added
1111

12-
- Support for TSX. A new language configuration for TSX is available, and TSX is enabled in the CLI next to TypeScript.
12+
- Support for TSX. A new language configuration for TSX is available with `{try_,}language_configuration_tsx`. TSX is enabled in the CLI next to TypeScript.
13+
14+
### Fixed
15+
16+
- Imports are more robust to the presence of file extensions in the import name.
17+
18+
### Changed
19+
20+
- The functions `{try_,}language_configuration` have been renamed to `{try_,}language_configuration_typescript`.
21+
22+
### Removed
23+
24+
- The `FILE_PATH_VAR` constant has been replaced in favor of `tree_sitter_stack_graphs::FILE_PATH_VAR`.
1325

1426
## v0.2.0 -- 2024-03-06
1527

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ 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.13", path = "../../stack-graphs" }
36-
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs" }
35+
stack-graphs = { path = "../../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/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-typescript = "0.2"
16+
tree-sitter-stack-graphs-typescript = "0.3"
1717
```
1818

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

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

stack-graphs/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.14.0 -- 2024-07-09
9+
10+
### Changed
11+
12+
- The method `StackGraph::add_from_graph` returns the handles of the newly added files.
13+
814
## v0.13.0 -- 2024-03-06
915

1016
### 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.13.0"
3+
version = "0.14.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.13"
12+
stack-graphs = "0.14"
1313
```
1414

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

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 removed.
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: 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.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/"
@@ -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.13", path="../stack-graphs" }
72+
stack-graphs = { 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"] }

tree-sitter-stack-graphs/README.md

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

1515
```toml
1616
[dependencies]
17-
tree-sitter-stack-graphs = "0.8"
17+
tree-sitter-stack-graphs = "0.9"
1818
```
1919

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

tree-sitter-stack-graphs/npm/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

tree-sitter-stack-graphs/npm/README.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

tree-sitter-stack-graphs/npm/cli.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

tree-sitter-stack-graphs/npm/install.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)