From 52d7210fd567b3bc924ebc3fbb90eda3f6ba1808 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 20 Nov 2025 03:11:44 +0000 Subject: [PATCH 1/2] Update project to Swift 6.2 with concurrency support - Update Package.swift swift-tools-version from 5.9 to 6.2 - Update CI workflow to use swift:6.2 Docker image for Linux tests - Update documentation (README.md and CLAUDE.md) to reflect Swift 6.2+ requirement - Enables full Swift concurrency support (async/await, actors, structured concurrency) Swift concurrency has been available since Swift 5.5, but updating to 6.2 provides the latest improvements including approachable concurrency features, better debugging support, and named tasks. --- .github/workflows/ci.yml | 2 +- CLAUDE.md | 2 +- Package.swift | 2 +- README.md | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d943a14..c95f02d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: name: Test on Linux runs-on: ubuntu-latest container: - image: swift:5.9 + image: swift:6.2 steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/CLAUDE.md b/CLAUDE.md index 50fead3..85bb4fd 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -168,7 +168,7 @@ The library has been fully implemented with: ## Installing Swift for Testing -This project requires **Swift 5.9** or later. +This project requires **Swift 6.2** or later. ### Prerequisites diff --git a/Package.swift b/Package.swift index 8347ac5..e8d3340 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 5.9 +// swift-tools-version: 6.2 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription diff --git a/README.md b/README.md index f64e592..31b12be 100644 --- a/README.md +++ b/README.md @@ -325,7 +325,7 @@ cp .build/release/ejson /usr/local/bin/ ``` **Requirements:** -- Swift 5.9+ +- Swift 6.2+ - Linux only: libsodium-dev (`apt-get install libsodium-dev`) - macOS: No additional dependencies (uses bundled libsodium) @@ -428,7 +428,7 @@ swift test ## Requirements -- Swift 5.9+ +- Swift 6.2+ - macOS 10.15+ / iOS 13+ / tvOS 13+ / watchOS 6+ - Linux: libsodium-dev package required From 650dc2b419be654a25e1b196189d7c39dae500dc Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 20 Nov 2025 03:20:21 +0000 Subject: [PATCH 2/2] Update GitHub Actions to use macos-26 runner - Change CI workflow from macos-latest to macos-26 - Change release workflow from macos-latest to macos-26 - Ensures Swift 6.2 compatibility on macOS 26 (Tahoe) beta - macos-26 runs on Apple Silicon (ARM64) architecture --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c95f02d..b7c930e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ on: jobs: test-macos: name: Test on macOS - runs-on: macos-latest + runs-on: macos-26 steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a4d33e0..ee766e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ on: jobs: build-macos: name: Build macOS Universal Binary - runs-on: macos-latest + runs-on: macos-26 steps: - name: Checkout code uses: actions/checkout@v4