Skip to content

Commit

Permalink
release: sink-{console, mongo, parquet, postgres, webhook} (#370)
Browse files Browse the repository at this point in the history
### Summary

sink-console: 0.6.0
sink-mongo: 0.9.0
sink-parquet: 0.7.0
sink-postgres: 0.8.0
sink-webhook: 0.7.0
  • Loading branch information
fracek authored Jun 10, 2024
2 parents a101221 + 4e7ac73 commit cd17bf3
Show file tree
Hide file tree
Showing 14 changed files with 63 additions and 15 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion script/src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ impl Script {
}

fn default_permissions(options: &ScriptOptions) -> Result<PermissionsContainer, ScriptError> {
let allow_env = options.allow_env.clone().map(remove_empty_strings);
// If users use an empty hostname, allow all hosts.
let allow_net = options.allow_net.clone().map(remove_empty_strings);
let allow_read = options.allow_read.clone().map(|paths| {
Expand All @@ -378,7 +379,7 @@ impl Script {
});

match Permissions::from_options(&PermissionsOptions {
allow_env: options.allow_env.clone(),
allow_env,
allow_hrtime: true,
allow_net,
allow_read,
Expand Down
9 changes: 9 additions & 0 deletions sinks/sink-console/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ The format is based on [Common Changelog](https://common-changelog.org/), and
this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.0] - 2024-06-10

_Simplify access to all environment variables._

### Changed

- If the argument to `--allow-env-from-env` is an empty string, grant access to
all environment variables.

## [0.5.0] - 2024-04-09

_Support Starknet 0.13.1 and the new RPC 0.7.1 data._
Expand Down
2 changes: 1 addition & 1 deletion sinks/sink-console/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "apibara-sink-console"
version = "0.5.0"
version = "0.6.0"
edition.workspace = true
authors.workspace = true
repository.workspace = true
Expand Down
9 changes: 9 additions & 0 deletions sinks/sink-mongo/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ The format is based on [Common Changelog](https://common-changelog.org/), and
this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.9.0] - 2024-06-10

_Simplify access to all environment variables._

### Changed

- If the argument to `--allow-env-from-env` is an empty string, grant access to
all environment variables.

## [0.8.0] - 2024-04-09

_Support Starknet 0.13.1 and the new RPC 0.7.1 data._
Expand Down
2 changes: 1 addition & 1 deletion sinks/sink-mongo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "apibara-sink-mongo"
version = "0.8.0"
version = "0.9.0"
edition.workspace = true
authors.workspace = true
repository.workspace = true
Expand Down
9 changes: 9 additions & 0 deletions sinks/sink-parquet/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ The format is based on [Common Changelog](https://common-changelog.org/), and
this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.7.0] - 2024-06-10

_Simplify access to all environment variables._

### Changed

- If the argument to `--allow-env-from-env` is an empty string, grant access to
all environment variables.

## [0.6.0] - 2024-04-09

_Support Starknet 0.13.1 and the new RPC 0.7.1 data._
Expand Down
2 changes: 1 addition & 1 deletion sinks/sink-parquet/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "apibara-sink-parquet"
version = "0.6.0"
version = "0.7.0"
edition.workspace = true
authors.workspace = true
repository.workspace = true
Expand Down
9 changes: 9 additions & 0 deletions sinks/sink-postgres/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ The format is based on [Common Changelog](https://common-changelog.org/), and
this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.8.0] - 2024-06-10

_Simplify access to all environment variables._

### Changed

- If the argument to `--allow-env-from-env` is an empty string, grant access to
all environment variables.

## [0.7.0] - 2024-04-09

_Support Starknet 0.13.1 and the new RPC 0.7.1 data._
Expand Down
2 changes: 1 addition & 1 deletion sinks/sink-postgres/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "apibara-sink-postgres"
version = "0.7.0"
version = "0.8.0"
edition.workspace = true
authors.workspace = true
repository.workspace = true
Expand Down
9 changes: 9 additions & 0 deletions sinks/sink-webhook/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ The format is based on [Common Changelog](https://common-changelog.org/), and
this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.7.0] - 2024-06-10

_Simplify access to all environment variables._

### Changed

- If the argument to `--allow-env-from-env` is an empty string, grant access to
all environment variables.

## [0.6.0] - 2024-04-09

_Support Starknet 0.13.1 and the new RPC 0.7.1 data._
Expand Down
2 changes: 1 addition & 1 deletion sinks/sink-webhook/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "apibara-sink-webhook"
version = "0.6.0"
version = "0.7.0"
edition.workspace = true
authors.workspace = true
repository.workspace = true
Expand Down
8 changes: 5 additions & 3 deletions starknet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ path = "src/lib.rs"
name = "apibara-starknet"
path = "src/bin.rs"

[features]
default = ["jemalloc"]
jemalloc = ["dep:jemallocator"]

[dependencies]
apibara-core = { path = "../core" }
apibara-node = { path = "../node" }
Expand Down Expand Up @@ -48,9 +52,7 @@ tracing.workspace = true
tracing-futures.workspace = true
url = "2.2.2"
warp.workspace = true

[target.'cfg(not(windows))'.dependencies]
jemallocator.workspace = true
jemallocator = { workspace = true, optional = true }

[dev-dependencies]
apibara-core = { path = "../core" }
Expand Down
2 changes: 1 addition & 1 deletion starknet/src/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use clap::{Parser, Subcommand};
use error_stack::{Result, ResultExt};
use tokio_util::sync::CancellationToken;

#[cfg(not(windows))]
#[cfg(feature = "jemalloc")]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;

Expand Down

0 comments on commit cd17bf3

Please sign in to comment.