Skip to content

Release all affected crates in workspace #383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ members = [
"intl-memoizer",
]

exclude = [
"fluent-cli",
]
exclude = ["fluent-cli"]

[workspace.package]
homepage = "https://www.projectfluent.org"
Expand All @@ -37,18 +35,18 @@ futures = "0.3"
iai = "0.1"
intl_pluralrules = "7.0"
once_cell = "1.21"
rustc-hash = "2"
rustc-hash = "2.1"
serde = "1.0"
serde_json = "1.0"
thiserror = "2.0"
tokio = "1.38"
unic-langid = "0.9"

fluent-bundle = { version = "0.15.3", path = "fluent-bundle" }
fluent-fallback = { version = "0.7.1", path = "fluent-fallback" }
fluent-pseudo = { version = "0.3.2", path = "fluent-pseudo" }
fluent-syntax = { version = "0.11.1", path = "fluent-syntax" }
intl-memoizer = { version = "0.5.2", path = "intl-memoizer" }
fluent-bundle = { version = "0.16.0", path = "fluent-bundle" }
fluent-fallback = { version = "0.7.2", path = "fluent-fallback" }
fluent-pseudo = { version = "0.3.3", path = "fluent-pseudo" }
fluent-syntax = { version = "0.12.0", path = "fluent-syntax" }
intl-memoizer = { version = "0.5.3", path = "intl-memoizer" }

[workspace.metadata.typos.default]
locale = "en-us"
Expand All @@ -57,7 +55,6 @@ extend-ignore-re = [
]

[workspace.metadata.typos.default.extend-words]
travelled = "travelled" # sadly part of a public API and fixing would be a breaking change
nd = "nd" # appears frequently in inline test messages

[workspace.metadata.typos.files]
Expand Down
7 changes: 7 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[graph]
all-features = true
exclude-dev = true

# Not exhaustive, just whitelist the current dependency tree
[licenses]
allow = ["Apache-2.0", "MIT", "Unicode-3.0"]
2 changes: 2 additions & 0 deletions fluent-bundle/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## Unreleased

## fluent-bundle 0.16.0 (May 20, 2025)
- Implement NUMBER builtin
- Improve examples
- Refactor to remove unnecessary named lifetimes
Expand Down
2 changes: 1 addition & 1 deletion fluent-bundle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = """
A low-level implementation of a collection of localization messages for a single locale for Project Fluent,
a localization system designed to unleash the entire expressive power of natural language translations.
"""
version = "0.15.3"
version = "0.16.0"
edition.workspace = true
rust-version.workspace = true
homepage.workspace = true
Expand Down
14 changes: 7 additions & 7 deletions fluent-bundle/src/resolver/scope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct Scope<'bundle, 'ast, 'args, 'errors, R, M> {
/// Laughs and Quadratic Blowup attacks.
pub(super) placeables: u8,
/// Tracks hashes to prevent infinite recursion.
travelled: smallvec::SmallVec<[&'ast ast::Pattern<&'bundle str>; 2]>,
traveled: smallvec::SmallVec<[&'ast ast::Pattern<&'bundle str>; 2]>,
/// Track errors accumulated during resolving.
pub errors: Option<&'errors mut Vec<FluentError>>,
/// Makes the resolver bail.
Expand All @@ -37,7 +37,7 @@ impl<'bundle, 'ast, 'args, 'errors, R, M> Scope<'bundle, 'ast, 'args, 'errors, R
args,
local_args: None,
placeables: 0,
travelled: Default::default(),
traveled: Default::default(),
errors,
dirty: false,
}
Expand Down Expand Up @@ -65,8 +65,8 @@ impl<'bundle, 'ast, 'args, 'errors, R, M> Scope<'bundle, 'ast, 'args, 'errors, R
W: fmt::Write,
M: MemoizerKind,
{
if self.travelled.is_empty() {
self.travelled.push(pattern);
if self.traveled.is_empty() {
self.traveled.push(pattern);
}
exp.write(w, self)?;
if self.dirty {
Expand All @@ -89,15 +89,15 @@ impl<'bundle, 'ast, 'args, 'errors, R, M> Scope<'bundle, 'ast, 'args, 'errors, R
W: fmt::Write,
M: MemoizerKind,
{
if self.travelled.contains(&pattern) {
if self.traveled.contains(&pattern) {
self.add_error(ResolverError::Cyclic);
w.write_char('{')?;
exp.write_error(w)?;
w.write_char('}')
} else {
self.travelled.push(pattern);
self.traveled.push(pattern);
let result = pattern.write(w, self);
self.travelled.pop();
self.traveled.pop();
result
}
}
Expand Down
2 changes: 1 addition & 1 deletion fluent-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ path = "src/main.rs"
[dependencies]
fluent-bundle.workspace = true
fluent-syntax.workspace = true
serde = { workspace = true, features = ["derive"]}
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
annotate-snippets = { version = "0.6", features = ["color"] }
clap = "2.33"
2 changes: 2 additions & 0 deletions fluent-fallback/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## Unreleased

## fluent-fallback 0.7.2 (May 20, 2025)
- Refactor to remove unnecessary named lifetimes
- Cleanup docs
- Satiate Clippy
Expand Down
2 changes: 1 addition & 1 deletion fluent-fallback/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = """
A high-level implementation of a collection of locale bundles including fallback between locales for Project Fluent,
a localization system designed to unleash the entire expressive power of natural language translations.
"""
version = "0.7.1"
version = "0.7.2"
edition.workspace = true
rust-version.workspace = true
homepage.workspace = true
Expand Down
2 changes: 2 additions & 0 deletions fluent-pseudo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## Unreleased

## fluent-pseudo 0.3.3 (May 20, 2025)
- Eliminate unsafe block using `once_cell` instead of undefined behavior of mutable reference to mutable static
- Cleanup docs
- Satiate Clippy
Expand Down
4 changes: 2 additions & 2 deletions fluent-pseudo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = """
A pseudolocalization and transformation API for Project Fluent,
a localization system designed to unleash the entire expressive power of natural language translations.
"""
version = "0.3.2"
version = "0.3.3"
edition.workspace = true
rust-version = "1.65.0"
homepage.workspace = true
Expand All @@ -20,7 +20,7 @@ include = [
"Cargo.toml",
"README.md",
"LICENSE-APACHE",
"LICENSE-MIT"
"LICENSE-MIT",
]

[dependencies]
Expand Down
2 changes: 2 additions & 0 deletions fluent-resmgr/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## Unreleased

## fluent-resmgr 0.0.8 (May 20, 2025)
- Cleanup docs
- Satiate Clippy
- Bump `elsa` to 1.10
Expand Down
2 changes: 1 addition & 1 deletion fluent-resmgr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = """
A standalone solution for managing resource files and returning locale bundles for Project Fluent,
a localization system designed to unleash the entire expressive power of natural language translations.
"""
version = "0.0.7"
version = "0.0.8"
edition.workspace = true
rust-version.workspace = true
homepage.workspace = true
Expand Down
2 changes: 2 additions & 0 deletions fluent-syntax/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## Unreleased

## fluent-syntax 0.12.0 (May 20, 2025)
- Add module `serializer`
- De-ambiguate dependencies vs. features
- Cleanup docs
Expand Down
4 changes: 2 additions & 2 deletions fluent-syntax/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = """
A low-level parser, AST, and serializer API for the syntax used by Project Fluent,
a localization system designed to unleash the entire expressive power of natural language translations.
"""
version = "0.11.1"
version = "0.12.0"
edition.workspace = true
rust-version = "1.64.0"
homepage.workspace = true
Expand All @@ -20,7 +20,7 @@ include = [
"Cargo.toml",
"README.md",
"LICENSE-APACHE",
"LICENSE-MIT"
"LICENSE-MIT",
]

[dependencies]
Expand Down
4 changes: 2 additions & 2 deletions fluent-syntax/tests/fixtures/call_expressions.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ unindented-closing-paren = {FUN(
one-argument = {FUN(1,)}
many-arguments = {FUN(1, 2, 3,)}
inline-sparse-args = {FUN( 1, 2, 3, )}
mulitline-args = {FUN(
multiline-args = {FUN(
1,
2,
)}
mulitline-sparse-args = {FUN(
multiline-sparse-args = {FUN(

1
,
Expand Down
4 changes: 2 additions & 2 deletions fluent-syntax/tests/fixtures/call_expressions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@
"type": "Message",
"id": {
"type": "Identifier",
"name": "mulitline-args"
"name": "multiline-args"
},
"value": {
"type": "Pattern",
Expand Down Expand Up @@ -1060,7 +1060,7 @@
"type": "Message",
"id": {
"type": "Identifier",
"name": "mulitline-sparse-args"
"name": "multiline-sparse-args"
},
"value": {
"type": "Pattern",
Expand Down
2 changes: 2 additions & 0 deletions fluent-testing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## Unreleased

## fluent-testing 0.0.5 (May 20, 2025)
- Cleanup docs

## fluent-testing 0.0.4 (March 16, 2024)
Expand Down
11 changes: 8 additions & 3 deletions fluent-testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = """
A collection of mock scenarios for testing components of Project Fluent,
a localization system designed to unleash the entire expressive power of natural language translations.
"""
version = "0.0.4"
version = "0.0.5"
edition.workspace = true
rust-version.workspace = true
homepage.workspace = true
Expand All @@ -20,13 +20,18 @@ include = [
"Cargo.toml",
"README.md",
"LICENSE-APACHE",
"LICENSE-MIT"
"LICENSE-MIT",
]

[dependencies]
fluent-bundle.workspace = true
fluent-fallback.workspace = true
tokio = { workspace = true, optional = true, features = ["fs", "rt-multi-thread", "macros", "io-util"] }
tokio = { workspace = true, optional = true, features = [
"fs",
"rt-multi-thread",
"macros",
"io-util",
] }

[features]
default = ["sync"]
Expand Down
2 changes: 2 additions & 0 deletions fluent/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## Unreleased

## fluent 0.16.2 (May 20, 2025)
- Cleanup docs

## fluent 0.16.1 (March 16, 2024)
Expand Down
4 changes: 2 additions & 2 deletions fluent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = """
An umbrella crate exposing the combined features of fluent-rs crates with additional convenience macros for Project Fluent,
a localization system designed to unleash the entire expressive power of natural language translations.
"""
version = "0.16.1"
version = "0.16.2"
edition.workspace = true
rust-version.workspace = true
homepage.workspace = true
Expand All @@ -20,7 +20,7 @@ include = [
"Cargo.toml",
"README.md",
"LICENSE-APACHE",
"LICENSE-MIT"
"LICENSE-MIT",
]

[dependencies]
Expand Down
2 changes: 2 additions & 0 deletions intl-memoizer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## Unreleased

## intl-memoizer 0.5.3 (May 20, 2025)
- Cleanup docs

## intl-memoizer 0.5.2 (March 16, 2024)
Expand Down
4 changes: 2 additions & 2 deletions intl-memoizer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = """
A memoizer specifically tailored for storing lazy-initialized intl formatters for Project Fluent,
a localization system designed to unleash the entire expressive power of natural language translations.
"""
version = "0.5.2"
version = "0.5.3"
edition.workspace = true
rust-version.workspace = true
homepage.workspace = true
Expand All @@ -20,7 +20,7 @@ include = [
"Cargo.toml",
"README.md",
"LICENSE-APACHE",
"LICENSE-MIT"
"LICENSE-MIT",
]

[dependencies]
Expand Down