Skip to content

Commit

Permalink
Merge pull request #451 from github/releases
Browse files Browse the repository at this point in the history
New releases
  • Loading branch information
hendrikvanantwerpen committed Jul 10, 2024
2 parents 20a2554 + a68b92d commit d7665d1
Show file tree
Hide file tree
Showing 33 changed files with 109 additions and 158 deletions.
10 changes: 10 additions & 0 deletions languages/tree-sitter-stack-graphs-java/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.4.0 -- 2024-07-09

### Added

- Add rules for the `condition` node that was missing.

### Removed

- The `FILE_PATH_VAR` constant has been replaced in favor of `tree_sitter_stack_graphs::FILE_PATH_VAR`.

## v0.3.0 -- 2024-03-06

The `tree-sitter-stack-graphs` is updated to `v0.8`.
Expand Down
6 changes: 3 additions & 3 deletions languages/tree-sitter-stack-graphs-java/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tree-sitter-stack-graphs-java"
version = "0.3.0"
version = "0.4.0"
description = "Stack graphs for the Java programming language"

homepage = "https://github.com/github/stack-graphs/tree/main/languages/tree-sitter-stack-graphs-java"
Expand Down Expand Up @@ -41,8 +41,8 @@ cli = ["anyhow", "clap", "tree-sitter-stack-graphs/cli"]
anyhow = { version = "1.0", optional = true }
clap = { version = "4", features = ["derive"], optional = true }
tree-sitter-java = { version = "=0.20.2" }
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs" }
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }

[dev-dependencies]
anyhow = { version = "1.0" }
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs", features = ["cli"] }
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs", features = ["cli"] }
2 changes: 1 addition & 1 deletion languages/tree-sitter-stack-graphs-java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To use this library, add the following to your `Cargo.toml`:

```toml
[dependencies]
tree-sitter-stack-graphs-java = "0.3"
tree-sitter-stack-graphs-java = "0.4"
```

Check out our [documentation](https://docs.rs/tree-sitter-stack-graphs-java/*/) for more details on how to use this library.
Expand Down
2 changes: 0 additions & 2 deletions languages/tree-sitter-stack-graphs-java/rust/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ pub const STACK_GRAPHS_BUILTINS_PATH: &str = "src/builtins.java";
/// The stack graphs builtins source for this language.
pub const STACK_GRAPHS_BUILTINS_SOURCE: &str = include_str!("../src/builtins.java");

/// The name of the file path global variable
pub const FILE_PATH_VAR: &str = "FILE_PATH";
/// The name of the project name global variable
pub const PROJECT_NAME_VAR: &str = "PROJECT_NAME";

Expand Down
6 changes: 6 additions & 0 deletions languages/tree-sitter-stack-graphs-javascript/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.2.0 -- 2024-07-09

### Removed

- The `FILE_PATH_VAR` constant has been replaced in favor of `tree_sitter_stack_graphs::FILE_PATH_VAR`.

## v0.1.0 -- 2024-03-06

Initial release.
8 changes: 4 additions & 4 deletions languages/tree-sitter-stack-graphs-javascript/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tree-sitter-stack-graphs-javascript"
version = "0.1.0"
version = "0.2.0"
description = "Stack graphs definition for JavaScript using tree-sitter-javascript"
readme = "README.md"
keywords = ["tree-sitter", "stack-graphs", "javascript"]
Expand Down Expand Up @@ -30,11 +30,11 @@ anyhow = { version = "1.0", optional = true }
clap = { version = "4", optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
stack-graphs = { version = "0.13", path = "../../stack-graphs" }
stack-graphs = { path = "../../stack-graphs" }
tree-sitter-graph = "0.11.2"
tree-sitter-javascript = "=0.20.4"
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs" }
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }

[dev-dependencies]
anyhow = "1.0"
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs", features = ["cli"] }
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs", features = ["cli"] }
2 changes: 1 addition & 1 deletion languages/tree-sitter-stack-graphs-javascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To use this library, add the following to your `Cargo.toml`:

```toml
[dependencies]
tree-sitter-stack-graphs-javascript = "0.1"
tree-sitter-stack-graphs-javascript = "0.2"
```

Check out our [documentation](https://docs.rs/tree-sitter-stack-graphs-javascript/*/) for more details on how to use this library.
Expand Down
3 changes: 1 addition & 2 deletions languages/tree-sitter-stack-graphs-javascript/rust/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ pub const STACK_GRAPHS_BUILTINS_PATH: &str = "src/builtins.js";
/// The stack graphs builtins source for this language.
pub const STACK_GRAPHS_BUILTINS_SOURCE: &str = include_str!("../src/builtins.js");

/// The name of the file path global variable.
pub const FILE_PATH_VAR: &str = "FILE_PATH";
/// The name of the project name global variable
pub const PROJECT_NAME_VAR: &str = "PROJECT_NAME";

pub fn language_configuration(cancellation_flag: &dyn CancellationFlag) -> LanguageConfiguration {
Expand Down
15 changes: 15 additions & 0 deletions languages/tree-sitter-stack-graphs-python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.2.0 -- 2024-07-09

### Added

- Added support for root paths. This fixes import problems when indexing using absolute directory paths.

### Fixed

- Fixed crash for lambdas with parameters.
- Fixed crash for nested functions definitions.

### Removed

- The `FILE_PATH_VAR` constant has been replaced in favor of `tree_sitter_stack_graphs::FILE_PATH_VAR`.

## v0.1.0 -- 2024-03-06

Initial release.
6 changes: 3 additions & 3 deletions languages/tree-sitter-stack-graphs-python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tree-sitter-stack-graphs-python"
version = "0.1.0"
version = "0.2.0"
description = "Stack graphs definition for Python using tree-sitter-python"
readme = "README.md"
keywords = ["tree-sitter", "stack-graphs", "python"]
Expand Down Expand Up @@ -30,9 +30,9 @@ cli = ["anyhow", "clap", "tree-sitter-stack-graphs/cli"]
[dependencies]
anyhow = { version = "1.0", optional = true }
clap = { version = "4", optional = true, features = ["derive"] }
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs" }
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }
tree-sitter-python = "=0.20.4"

[dev-dependencies]
anyhow = "1.0"
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs", features = ["cli"] }
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs", features = ["cli"] }
Empty file.
2 changes: 1 addition & 1 deletion languages/tree-sitter-stack-graphs-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To use this library, add the following to your `Cargo.toml`:

```toml
[dependencies]
tree-sitter-stack-graphs-python = "0.1"
tree-sitter-stack-graphs-python = "0.2"
```

Check out our [documentation](https://docs.rs/tree-sitter-stack-graphs-python/*/) for more details on how to use this library.
Expand Down
3 changes: 0 additions & 3 deletions languages/tree-sitter-stack-graphs-python/rust/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ pub const STACK_GRAPHS_BUILTINS_PATH: &str = "src/builtins.py";
/// The stack graphs builtins source for this language.
pub const STACK_GRAPHS_BUILTINS_SOURCE: &str = include_str!("../src/builtins.py");

/// The name of the file path global variable.
pub const FILE_PATH_VAR: &str = "FILE_PATH";

pub fn language_configuration(cancellation_flag: &dyn CancellationFlag) -> LanguageConfiguration {
try_language_configuration(cancellation_flag).unwrap_or_else(|err| panic!("{}", err))
}
Expand Down
16 changes: 14 additions & 2 deletions languages/tree-sitter-stack-graphs-typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,23 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.3.0 -- unreleased
## v0.3.0 -- 2024-07-09

### Added

- Support for TSX. A new language configuration for TSX is available, and TSX is enabled in the CLI next to TypeScript.
- 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.

### Fixed

- Imports are more robust to the presence of file extensions in the import name.

### Changed

- The functions `{try_,}language_configuration` have been renamed to `{try_,}language_configuration_typescript`.

### Removed

- The `FILE_PATH_VAR` constant has been replaced in favor of `tree_sitter_stack_graphs::FILE_PATH_VAR`.

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

Expand Down
6 changes: 3 additions & 3 deletions languages/tree-sitter-stack-graphs-typescript/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ clap = { version = "4", optional = true }
glob = "0.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
stack-graphs = { version = "0.13", path = "../../stack-graphs" }
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs" }
stack-graphs = { path = "../../stack-graphs" }
tree-sitter-stack-graphs = { path = "../../tree-sitter-stack-graphs" }
tree-sitter-typescript = "=0.20.2"
tsconfig = "0.1.0"

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

[build-dependencies]
anyhow = { version = "1.0" }
Expand Down
2 changes: 1 addition & 1 deletion languages/tree-sitter-stack-graphs-typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To use this library, add the following to your `Cargo.toml`:

```toml
[dependencies]
tree-sitter-stack-graphs-typescript = "0.2"
tree-sitter-stack-graphs-typescript = "0.3"
```

Check out our [documentation](https://docs.rs/tree-sitter-stack-graphs-typescript/*/) for more details on how to use this library.
Expand Down
2 changes: 0 additions & 2 deletions languages/tree-sitter-stack-graphs-typescript/rust/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ pub const STACK_GRAPHS_BUILTINS_PATH: &str = "src/builtins.ts";
/// The stack graphs builtins source for this language
pub const STACK_GRAPHS_BUILTINS_SOURCE: &str = include_str!("../src/builtins.ts");

/// The name of the file path global variable
pub const FILE_PATH_VAR: &str = "FILE_PATH";
/// The name of the project name global variable
pub const PROJECT_NAME_VAR: &str = "PROJECT_NAME";

Expand Down
6 changes: 6 additions & 0 deletions stack-graphs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.14.0 -- 2024-07-09

### Changed

- The method `StackGraph::add_from_graph` returns the handles of the newly added files.

## v0.13.0 -- 2024-03-06

### Added
Expand Down
2 changes: 1 addition & 1 deletion stack-graphs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stack-graphs"
version = "0.13.0"
version = "0.14.0"
description = "Name binding for arbitrary programming languages"
homepage = "https://github.com/github/stack-graphs/tree/main/stack-graphs"
repository = "https://github.com/github/stack-graphs/"
Expand Down
2 changes: 1 addition & 1 deletion stack-graphs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ To use this library, add the following to your `Cargo.toml`:

``` toml
[dependencies]
stack-graphs = "0.13"
stack-graphs = "0.14"
```

Check out our [documentation](https://docs.rs/stack-graphs/) for more details on
Expand Down
13 changes: 12 additions & 1 deletion tree-sitter-stack-graphs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,29 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.8.2 -- unreleased
## v0.9.0 -- 2024-07-09


### Library

- 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.
- The file path variable will only use the filename set in the stack graph if no value was explicitly set.

### CLI

#### Added

- Tests run faster for languages with builtins sources by caching the partial paths for the builtins.
- 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.

#### Changed

- 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.

#### Removed

- The NPM distribution has been removed.

## v0.8.1 -- 2024-03-06

The `stack-graphs` dependency was updated to `v0.13` to fix the build problems of the `v0.8.0` release.
Expand Down
4 changes: 2 additions & 2 deletions tree-sitter-stack-graphs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tree-sitter-stack-graphs"
version = "0.8.2"
version = "0.9.0"
description = "Create stack graphs using tree-sitter parsers"
homepage = "https://github.com/github/stack-graphs/tree/main/tree-sitter-stack-graphs"
repository = "https://github.com/github/stack-graphs/"
Expand Down Expand Up @@ -69,7 +69,7 @@ regex = "1"
rust-ini = "0.18"
serde_json = { version="1.0", optional=true }
sha1 = { version="0.10", optional=true }
stack-graphs = { version="0.13", path="../stack-graphs" }
stack-graphs = { path="../stack-graphs" }
thiserror = "1.0"
time = { version = "0.3", optional = true }
tokio = { version = "1.26", optional = true, features = ["io-std", "rt", "rt-multi-thread"] }
Expand Down
2 changes: 1 addition & 1 deletion tree-sitter-stack-graphs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To use this library, add the following to your `Cargo.toml`:

```toml
[dependencies]
tree-sitter-stack-graphs = "0.8"
tree-sitter-stack-graphs = "0.9"
```

Check out our [documentation](https://docs.rs/tree-sitter-stack-graphs/*/) for more details on how to use this library.
Expand Down
4 changes: 0 additions & 4 deletions tree-sitter-stack-graphs/npm/.gitignore

This file was deleted.

13 changes: 0 additions & 13 deletions tree-sitter-stack-graphs/npm/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions tree-sitter-stack-graphs/npm/cli.js

This file was deleted.

30 changes: 0 additions & 30 deletions tree-sitter-stack-graphs/npm/install.js

This file was deleted.

Loading

0 comments on commit d7665d1

Please sign in to comment.