Skip to content

Commit a25d2fa

Browse files
taplinclaude
andcommitted
README and plan: 4.0.0 release, legacy branch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 58791d9 commit a25d2fa

3 files changed

Lines changed: 14 additions & 11 deletions

File tree

‎Documentation/modernization-plan.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Perfect-MongoDB modernization plan
22

3-
Status: **Phases 1, 2 and 4 done (Phase 4 on 2026-09-29), except the Atlas/TLS check.** 36 tests pass against MongoDB 8.3 locally and on Linux (`Scripts/test-linux.sh`). The 26 from Phases 1-2 also pass in CI on Linux (Swift 6.4, MongoDB 8, libmongoc 2.5.5 built from source). Captured 2026-09-27 from a research session so work can be picked up later on a laptop.
3+
Status: **Released as 4.0.0 on 2026-09-29.** Phases 1, 2 and 4 are done; the Atlas `mongodb+srv://`/TLS check was deferred. The pre-4.0 code is on the `legacy` branch. 36 tests pass against MongoDB 8.3 locally and on Linux (`Scripts/test-linux.sh`). The 26 from Phases 1-2 also pass in CI on Linux (Swift 6.4, MongoDB 8, libmongoc 2.5.5 built from source). Captured 2026-09-27 from a research session so work can be picked up later on a laptop.
44

55
Decision on 2026-09-27: **target libmongoc 2.x only.** Homebrew's `mongo-c-driver` is now 2.x; 1.x survives only as the deprecated, keg-only `mongo-c-driver@1`, which Homebrew disables on 2027-04-01. Phase 3's 2.x work was therefore folded into Phase 1. The catch: Linux distributions that still ship 1.x (Ubuntu's `libmongoc-dev` is 1.26) need libmongoc 2 built from source until they package it.
66

‎README.md‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ MongoDB stopped developing its official server-side Swift driver in 2023. libmon
1515
still maintains and keeps compliant with its specifications (server discovery, retryable writes,
1616
authentication, TLS), so this package builds on it.
1717

18-
**This package is being modernized for Swift 6** on the `swift6-modernization` branch. It now builds in
19-
Swift 6 language mode against libmongoc 2.x, with the existing public API unchanged. See
20-
[Documentation/modernization-plan.md](Documentation/modernization-plan.md) for progress and for the few
21-
behaviour changes. The 3.x releases (Swift 4/5, libmongoc 1.x) remain available by tag.
18+
**Version 4 modernizes this package for Swift 6.** It builds in Swift 6 language mode against libmongoc 2.x,
19+
keeps the existing public API, and adds Codable and async/await APIs. A few behaviour changes, forced by
20+
libmongoc 2, are listed in [Documentation/modernization-plan.md](Documentation/modernization-plan.md).
21+
22+
The pre-4.0 version (Swift 4/5, libmongoc 1.x) is preserved on the [`legacy`](../../tree/legacy) branch and
23+
the 3.x tags.
2224

2325
```swift
2426
dependencies: [
25-
.package(url: "https://github.com/PerfectlySoft/Perfect-MongoDB.git", branch: "swift6-modernization")
27+
.package(url: "https://github.com/PerfectlySoft/Perfect-MongoDB.git", from: "4.0.0")
2628
],
2729
targets: [
2830
.target(name: "MyTarget", dependencies: [

‎README.zh_CN.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414
MongoDB 已于 2023 年停止开发官方的服务器端 Swift 驱动。libmongoc 是 MongoDB 仍在维护、并持续符合其驱动规范
1515
(服务器发现、可重试写入、身份验证、TLS)的驱动,因此本项目基于它构建。
1616

17-
**本项目正在 `swift6-modernization` 分支上针对 Swift 6 进行现代化改造。** 目前已能在 Swift 6 语言模式下基于
18-
libmongoc 2.x 编译,现有公共 API 保持不变。进展情况以及少数行为变化请参阅
19-
[Documentation/modernization-plan.md](Documentation/modernization-plan.md)(英文)。3.x 版本(Swift 4/5、libmongoc 1.x)
20-
仍可通过标签获取。
17+
**4.0 版本针对 Swift 6 对本项目进行了现代化改造。** 它在 Swift 6 语言模式下基于 libmongoc 2.x 编译,保留了
18+
现有公共 API,并新增了 Codable 与 async/await API。由 libmongoc 2 导致的少数行为变化列于
19+
[Documentation/modernization-plan.md](Documentation/modernization-plan.md)(英文)。
20+
21+
4.0 之前的版本(Swift 4/5、libmongoc 1.x)保留在 [`legacy`](../../tree/legacy) 分支以及 3.x 标签中。
2122

2223
```swift
2324
dependencies: [
24-
.package(url: "https://github.com/PerfectlySoft/Perfect-MongoDB.git", branch: "swift6-modernization")
25+
.package(url: "https://github.com/PerfectlySoft/Perfect-MongoDB.git", from: "4.0.0")
2526
],
2627
targets: [
2728
.target(name: "MyTarget", dependencies: [

0 commit comments

Comments
 (0)