Skip to content

Commit e7ff026

Browse files
committed
chore: bump version to 0.16.1 and update release workflow
- Update wp-motor engine to v1.14.1-alpha with new strip/bom processor - Fix GitHub release workflow to use correct branch for pre-release versions - Update changelog extraction script to handle branch detection for links
1 parent 1fdcb0c commit e7ff026

File tree

7 files changed

+92
-44
lines changed

7 files changed

+92
-44
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,20 @@ jobs:
180180
- name: Checkout repository
181181
uses: actions/checkout@v6
182182

183+
- name: Determine branch
184+
id: branch
185+
run: |
186+
VERSION="${{ github.ref_name }}"
187+
if [[ "$VERSION" == *"-alpha"* ]]; then
188+
BRANCH="alpha"
189+
elif [[ "$VERSION" == *"-beta"* ]]; then
190+
BRANCH="beta"
191+
else
192+
BRANCH="main"
193+
fi
194+
echo "branch=$BRANCH" >> $GITHUB_OUTPUT
195+
echo "Using branch: $BRANCH"
196+
183197
- name: Extract changelog
184198
id: changelog
185199
run: |
@@ -235,7 +249,7 @@ jobs:
235249
236250
### Quick Install Script
237251
```bash
238-
curl -fsSL https://raw.githubusercontent.com/wp-labs/warp-parse/main/scripts/install.sh | bash
252+
curl -fsSL https://raw.githubusercontent.com/wp-labs/warp-parse/${{ steps.branch.outputs.branch }}/scripts/install.sh | bash
239253
```
240254
241255
### Docker Image
@@ -262,9 +276,9 @@ jobs:
262276
263277
## 📚 Documentation
264278
265-
- [Release Management](https://github.com/wp-labs/warp-parse/blob/main/docs/RELEASE_MANAGEMENT.md)
266-
- [User Guide](https://github.com/wp-labs/warp-parse/tree/main/docs/user-guide)
267-
- [Performance Benchmarks](https://github.com/wp-labs/warp-parse/blob/main/docs/performance.md)
279+
- [Release Management](https://github.com/wp-labs/warp-parse/blob/${{ steps.branch.outputs.branch }}/docs/RELEASE_MANAGEMENT.md)
280+
- [User Guide](https://github.com/wp-labs/warp-parse/tree/${{ steps.branch.outputs.branch }}/docs/user-guide)
281+
- [Performance Benchmarks](https://github.com/wp-labs/warp-parse/blob/${{ steps.branch.outputs.branch }}/docs/performance.md)
268282
269283
## 🐛 Found an Issue?
270284

CHANGELOG.en.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ All notable changes to this project will be documented in this file.
77
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
88
and the project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
99

10+
## [0.16.1] - 2026-02-05
11+
12+
### Changed
13+
- Upgraded `wp-motor` core engine to v1.14.1-alpha with the following key changes:
14+
- **WPL Pipe Processor**: Added `strip/bom` processor for removing BOM (Byte Order Mark) from data
15+
- Supports UTF-8, UTF-16 LE/BE, and UTF-32 LE/BE BOM detection and removal
16+
- Fast O(1) detection by checking only first 2-4 bytes
17+
- Preserves input container type (String → String, Bytes → Bytes, ArcBytes → ArcBytes)
18+
1019
## [0.16.0] - 2026-02-04
1120

1221
### Changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ All notable changes to this project will be documented in this file.
77
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
88
and the project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
99

10+
## [0.16.1] - 2026-02-05
11+
12+
### Changed
13+
- 升级 `wp-motor` 核心引擎到 v1.14.1-alpha 版本,主要变化包括:
14+
- **WPL 管道处理器**:新增 `strip/bom` 处理器用于移除 BOM(字节顺序标记)
15+
- 支持 UTF-8、UTF-16 LE/BE、UTF-32 LE/BE BOM 检测和移除
16+
- O(1) 快速检测(仅检查前 2-4 字节)
17+
- 保留输入容器类型(String → String, Bytes → Bytes, ArcBytes → ArcBytes)
18+
1019
## [0.16.0] - 2026-02-04
1120

1221
### Changed

Cargo.lock

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
[package]
1818
name = "warp-parse"
19-
version = "0.16.0"
19+
version = "0.16.1"
2020
edition = "2021"
2121
rust-version = "1.75"
2222
authors = ["Warp Parse Team"]
@@ -229,12 +229,12 @@ wp-data-fmt = "0.1"
229229

230230
# --- Internal: Engine ---
231231

232-
wp-engine = { git = "https://github.com/wp-labs/wp-motor", tag = "v1.14.0" }
233-
wp-config = { package = "wp-config", git = "https://github.com/wp-labs/wp-motor", tag = "v1.14.0" }
234-
wp-lang = { package = "wp-lang", git = "https://github.com/wp-labs/wp-motor", tag = "v1.14.0" }
235-
wp_knowledge = { package = "wp-knowledge", git = "https://github.com/wp-labs/wp-motor", tag = "v1.14.0" }
236-
wp-cli-core = { package = "wp-cli-core", git = "https://github.com/wp-labs/wp-motor", tag = "v1.14.0" }
237-
wp-proj = { package = "wp-proj", git = "https://github.com/wp-labs/wp-motor", tag = "v1.14.0" }
232+
wp-engine = { git = "https://github.com/wp-labs/wp-motor", tag = "v1.14.1-alpha" }
233+
wp-config = { package = "wp-config", git = "https://github.com/wp-labs/wp-motor", tag = "v1.14.1-alpha" }
234+
wp-lang = { package = "wp-lang", git = "https://github.com/wp-labs/wp-motor", tag = "v1.14.1-alpha" }
235+
wp_knowledge = { package = "wp-knowledge", git = "https://github.com/wp-labs/wp-motor", tag = "v1.14.1-alpha" }
236+
wp-cli-core = { package = "wp-cli-core", git = "https://github.com/wp-labs/wp-motor", tag = "v1.14.1-alpha" }
237+
wp-proj = { package = "wp-proj", git = "https://github.com/wp-labs/wp-motor", tag = "v1.14.1-alpha" }
238238

239239
wp-connectors = { package = "wp-connectors", git = "https://github.com/wp-labs/wp-connectors", tag = "v0.7.5-beta" }
240240

scripts/extract-changelog.sh

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,22 @@ fi
3333
# Remove 'v' prefix if present
3434
VERSION="${VERSION#v}"
3535

36+
# Determine the branch from version suffix or git branch
37+
if [[ "$VERSION" == *"-alpha"* ]]; then
38+
BRANCH="alpha"
39+
elif [[ "$VERSION" == *"-beta"* ]]; then
40+
BRANCH="beta"
41+
else
42+
# Try to get current branch from git, fallback to main
43+
BRANCH=$(git branch --show-current 2>/dev/null || echo "main")
44+
# If detached HEAD (common in CI with tags), default to main
45+
if [[ -z "$BRANCH" ]]; then
46+
BRANCH="main"
47+
fi
48+
fi
49+
50+
echo "Using branch: $BRANCH for changelog links"
51+
3652
# ===========================================================================
3753
# Extract from Chinese CHANGELOG
3854
# ===========================================================================
@@ -59,7 +75,7 @@ if [[ -f "CHANGELOG.md" ]]; then
5975
echo "⚠ No Chinese changelog found for version $VERSION"
6076
echo "## 更新日志" > /tmp/changelog-zh.md
6177
echo "" >> /tmp/changelog-zh.md
62-
echo "请查看完整的 [CHANGELOG.md](https://github.com/wp-labs/warp-parse/blob/main/CHANGELOG.md)" >> /tmp/changelog-zh.md
78+
echo "请查看完整的 [CHANGELOG.md](https://github.com/wp-labs/warp-parse/blob/$BRANCH/CHANGELOG.md)" >> /tmp/changelog-zh.md
6379
fi
6480
else
6581
echo "⚠ CHANGELOG.md not found"
@@ -93,7 +109,7 @@ if [[ -f "CHANGELOG.en.md" ]]; then
93109
echo "⚠ No English changelog found for version $VERSION"
94110
echo "## Changelog" > /tmp/changelog-en.md
95111
echo "" >> /tmp/changelog-en.md
96-
echo "Please see the full [CHANGELOG.en.md](https://github.com/wp-labs/warp-parse/blob/main/CHANGELOG.en.md)" >> /tmp/changelog-en.md
112+
echo "Please see the full [CHANGELOG.en.md](https://github.com/wp-labs/warp-parse/blob/$BRANCH/CHANGELOG.en.md)" >> /tmp/changelog-en.md
97113
fi
98114
else
99115
echo "⚠ CHANGELOG.en.md not found"

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.16.0
1+
0.16.1

0 commit comments

Comments
 (0)