Skip to content

Commit 7e52de7

Browse files
authored
chore: bump versions after 1.1.0 release (#3724)
## Why? ## What does this PR do? ## Related issues ## AI Contribution Checklist - [ ] Substantial AI assistance was used in this PR: `yes` / `no` - [ ] If `yes`, I included a completed [AI Contribution Checklist](https://github.com/apache/fory/blob/main/AI_POLICY.md#9-contributor-checklist-for-ai-assisted-prs) in this PR description and the required `AI Usage Disclosure`. - [ ] If `yes`, my PR description includes the required `ai_review` summary and screenshot evidence of the final clean AI review results from both fresh reviewers on the current PR diff or current HEAD after the latest code changes. ## Does this PR introduce any user-facing change? - [ ] Does this PR introduce any public API change? - [ ] Does this PR introduce any binary protocol compatibility change? ## Benchmark
1 parent c6a228b commit 7e52de7

72 files changed

Lines changed: 171 additions & 114 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
module(
1919
name = "fory",
20-
version = "1.1.0",
20+
version = "1.2.0",
2121
)
2222

2323
# Platforms (needed for platform-specific build configurations)

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -132,30 +132,30 @@ Maven:
132132
<dependency>
133133
<groupId>org.apache.fory</groupId>
134134
<artifactId>fory-core</artifactId>
135-
<version>1.0.0</version>
135+
<version>1.1.0</version>
136136
</dependency>
137137
```
138138

139139
Gradle:
140140

141141
```gradle
142-
implementation "org.apache.fory:fory-core:1.0.0"
142+
implementation "org.apache.fory:fory-core:1.1.0"
143143
```
144144

145145
**Scala**
146146

147147
sbt:
148148

149149
```scala
150-
libraryDependencies += "org.apache.fory" %% "fory-scala" % "1.0.0"
150+
libraryDependencies += "org.apache.fory" %% "fory-scala" % "1.1.0"
151151
```
152152

153153
**Kotlin**
154154

155155
Gradle:
156156

157157
```kotlin
158-
implementation("org.apache.fory:fory-kotlin:1.0.0")
158+
implementation("org.apache.fory:fory-kotlin:1.1.0")
159159
```
160160

161161
Maven:
@@ -164,7 +164,7 @@ Maven:
164164
<dependency>
165165
<groupId>org.apache.fory</groupId>
166166
<artifactId>fory-kotlin</artifactId>
167-
<version>1.0.0</version>
167+
<version>1.1.0</version>
168168
</dependency>
169169
```
170170

@@ -186,7 +186,7 @@ pip install "pyfory[format]"
186186

187187
```toml
188188
[dependencies]
189-
fory = "1.0.0"
189+
fory = "1.1.0"
190190
```
191191

192192
**C++**
@@ -198,7 +198,7 @@ include(FetchContent)
198198
FetchContent_Declare(
199199
fory
200200
GIT_REPOSITORY https://github.com/apache/fory.git
201-
GIT_TAG v1.0.0
201+
GIT_TAG v1.1.0
202202
SOURCE_SUBDIR cpp
203203
)
204204
FetchContent_MakeAvailable(fory)
@@ -209,8 +209,8 @@ Bazel:
209209

210210
```bazel
211211
# MODULE.bazel
212-
bazel_dep(name = "fory", version = "1.0.0")
213-
git_override(module_name = "fory", remote = "https://github.com/apache/fory.git", commit = "v1.0.0")
212+
bazel_dep(name = "fory", version = "1.1.0")
213+
git_override(module_name = "fory", remote = "https://github.com/apache/fory.git", commit = "v1.1.0")
214214

215215
# BUILD
216216
deps = ["@fory//cpp/fory/serialization:fory_serialization"]
@@ -243,13 +243,13 @@ npm install @apache-fory/core @apache-fory/hps
243243
**C#**
244244

245245
```bash
246-
dotnet add package Apache.Fory --version 1.0.0
246+
dotnet add package Apache.Fory --version 1.1.0
247247
```
248248

249249
**Dart**
250250

251251
```bash
252-
dart pub add fory:^1.0.0
252+
dart pub add fory:^1.1.0
253253
dart pub add dev:build_runner
254254
```
255255

@@ -259,7 +259,7 @@ Add Fory to `Package.swift`:
259259

260260
```swift
261261
dependencies: [
262-
.package(url: "https://github.com/apache/fory.git", exact: "1.0.0")
262+
.package(url: "https://github.com/apache/fory.git", exact: "1.1.0")
263263
],
264264
targets: [
265265
.target(

benchmarks/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if(POLICY CMP0169)
2222
endif()
2323

2424
project(fory_cpp_benchmark
25-
VERSION 1.1.0
25+
VERSION 1.2.0
2626
DESCRIPTION "C++ Benchmark comparing Fory, Protobuf, and Msgpack serialization"
2727
LANGUAGES CXX
2828
)

benchmarks/go/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module github.com/apache/fory/benchmarks/go
2020
go 1.24.0
2121

2222
require (
23-
github.com/apache/fory/go/fory v1.1.0-alpha.0
23+
github.com/apache/fory/go/fory v1.2.0-alpha.0
2424
github.com/vmihailenco/msgpack/v5 v5.4.1
2525
google.golang.org/protobuf v1.36.0
2626
)

benchmarks/java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<parent>
2727
<artifactId>fory-parent</artifactId>
2828
<groupId>org.apache.fory</groupId>
29-
<version>1.1.0-SNAPSHOT</version>
29+
<version>1.2.0-SNAPSHOT</version>
3030
</parent>
3131

3232
<artifactId>benchmark</artifactId>

benchmarks/rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
[package]
1919
name = "fory-benchmarks"
20-
version = "1.1.0-alpha.0"
20+
version = "1.2.0-alpha.0"
2121
edition = "2021"
2222

2323
[[bin]]

ci/release.py

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ def bump_version(**kwargs):
183183
_normalize_js_version(new_version),
184184
_update_js_version,
185185
)
186+
_bump_version(
187+
"integration_tests/idl_tests/javascript",
188+
"package.json",
189+
_normalize_js_version(new_version),
190+
_update_js_version,
191+
)
186192
elif lang == "cpp":
187193
bump_cpp_version(new_version)
188194
elif lang == "go":
@@ -213,13 +219,13 @@ def bump_java_version(new_version):
213219
new_version = _normalize_java_version(new_version)
214220
for p in [
215221
"integration_tests/graalvm_tests",
222+
"integration_tests/grpc_tests/java",
216223
"integration_tests/jdk_compatibility_tests",
217224
"integration_tests/jpms_tests",
218225
"integration_tests/idl_tests/java",
219226
"benchmarks/java",
220227
"java/fory-core",
221228
"java/fory-format",
222-
"java/fory-simd",
223229
"java/fory-extensions",
224230
"java/fory-graalvm-feature",
225231
"java/fory-test-core",
@@ -253,6 +259,12 @@ def bump_python_version(new_version):
253259
new_version,
254260
_update_pyproject_version,
255261
)
262+
_bump_version(
263+
"integration_tests/grpc_tests/python",
264+
"pyproject.toml",
265+
new_version,
266+
_update_pyproject_version,
267+
)
256268

257269

258270
def bump_rust_version(new_version):
@@ -278,6 +290,7 @@ def bump_kotlin_version(new_version):
278290
"kotlin/fory-kotlin",
279291
"kotlin/fory-kotlin-ksp",
280292
"kotlin/fory-kotlin-tests",
293+
"integration_tests/idl_tests/kotlin",
281294
]:
282295
_bump_version(p, "pom.xml", new_version, _update_pom_parent_version)
283296

@@ -289,6 +302,7 @@ def bump_cpp_version(new_version):
289302
"integration_tests/idl_tests/cpp",
290303
]:
291304
_bump_version(p, "CMakeLists.txt", new_version, _update_cmake_project_version)
305+
_bump_version("", "MODULE.bazel", new_version, _update_bazel_module_version)
292306

293307

294308
def bump_go_version(new_version):
@@ -297,13 +311,15 @@ def bump_go_version(new_version):
297311
"integration_tests/idl_tests/go",
298312
]:
299313
_bump_version(p, "go.mod", new_version, _update_go_mod_version)
314+
_bump_version("go/fory/cmd/fory", "main.go", new_version, _update_go_cli_version)
300315

301316

302317
def bump_dart_version(new_version):
303318
for p in [
304319
"dart",
305320
"dart/packages/fory",
306321
"dart/packages/fory-test",
322+
"integration_tests/idl_tests/dart",
307323
]:
308324
_bump_version(p, "pubspec.yaml", new_version, _update_pubspec_version)
309325
_bump_version(
@@ -503,6 +519,24 @@ def _update_cmake_project_version(lines, v: str):
503519
return lines
504520

505521

522+
def _update_bazel_module_version(lines, v: str):
523+
bazel_version = _normalize_cmake_version(v)
524+
in_module = False
525+
for index, line in enumerate(lines):
526+
if re.search(r"^\s*module\(", line):
527+
in_module = True
528+
if in_module and re.search(r"^\s*version\s*=", line):
529+
lines[index] = re.sub(
530+
r'(version\s*=\s*")[^"]+(")',
531+
r"\g<1>" + bazel_version + r"\2",
532+
line,
533+
)
534+
return lines
535+
if in_module and ")" in line:
536+
in_module = False
537+
raise ValueError("No MODULE.bazel module version found")
538+
539+
506540
def _update_go_mod_version(lines, v: str):
507541
go_version = _normalize_go_version(v)
508542
for index, line in enumerate(lines):
@@ -516,12 +550,23 @@ def _update_go_mod_version(lines, v: str):
516550
return lines
517551

518552

553+
def _update_go_cli_version(lines, v: str):
554+
v = v.strip()
555+
if v.startswith("v"):
556+
v = v[1:]
557+
for index, line in enumerate(lines):
558+
if line.startswith("const version = "):
559+
lines[index] = f'const version = "{v}"\n'
560+
return lines
561+
raise ValueError("No Go CLI version constant found")
562+
563+
519564
def _update_pubspec_version(lines, v: str):
520565
for index, line in enumerate(lines):
521566
if re.match(r"^version\s*:", line):
522567
lines[index] = f"version: {v}\n"
523568
continue
524-
if re.match(r"^\s*fory\s*:", line):
569+
if re.match(r"^\s*fory\s*:\s+\S+", line):
525570
prefix = re.match(r"^(\s*fory\s*:)\s*.*", line)
526571
if prefix:
527572
lines[index] = f"{prefix.group(1)} {v}\n"

compiler/fory_compiler/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
"""Fory IDL compiler for Apache Fory."""
1919

20-
__version__ = "1.1.0.dev0"
20+
__version__ = "1.2.0.dev0"
2121

2222
from fory_compiler.ir.ast import Schema, Message, Enum, Field, EnumValue, Import
2323
from fory_compiler.frontend.fdl import FDLFrontend

compiler/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ build-backend = "setuptools.build_meta"
2121

2222
[project]
2323
name = "fory-compiler"
24-
version = "1.1.0.dev0"
24+
version = "1.2.0.dev0"
2525
description = "FDL (Fory Definition Language) compiler for Apache Fory cross-language serialization"
2626
readme = "README.md"
2727
license = {text = "Apache-2.0"}

cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
cmake_minimum_required(VERSION 3.16)
1919

2020
project(fory
21-
VERSION 1.1.0
21+
VERSION 1.2.0
2222
DESCRIPTION "Apache Fory - A blazingly fast multi-language serialization framework"
2323
LANGUAGES CXX
2424
)

0 commit comments

Comments
 (0)