Skip to content

Conversation

@emmanuel-keller
Copy link
Collaborator

@emmanuel-keller emmanuel-keller commented May 14, 2025

Overview

This PR upgrades the SurrealDB Java SDK to version 3.0.0, adding full compatibility with SurrealDB 3.0.

🎯 Major Changes

Version Upgrade

  • Java SDK: 1.0.0-beta.13.0.0-SNAPSHOT
  • SurrealDB Core: 2.3.13.0.0 (development branch)

Rust Layer Improvements

  • Renamed Rust package from surrealdb to surrealdb-java for better clarity
  • Refactored native JNI bindings to work with SurrealDB 3.0 APIs
  • Updated all Rust dependencies to latest stable versions:
    • tokio 1.43.0 → 1.48.0
    • rust_decimal 1.36.0 → 1.39.0
    • chrono 0.4.39 → 0.4.42
    • parking_lot 0.12.3 → 0.12.5
    • once_cell 1.20.3 → 1.21.3

Feature Optimization

  • Disabled default SurrealDB features and explicitly enabled only required features:
    • rustls for TLS support
    • protocol-http for HTTP connections
    • protocol-ws for WebSocket connections
  • This results in smaller binary size and faster compilation

Code Quality

  • Simplified and refactored Java and Rust source code
  • Net reduction of ~290 lines of code across the codebase
  • Improved test coverage and fixed test compatibility
  • Enhanced code maintainability

🔧 Technical Details

Dependencies

The SDK now depends on SurrealDB 3.0 from the development branch:

surrealdb = { git = "https://github.com/surrealdb/surrealdb.git", 
              branch = "emmanuel/surrealdb.java", 
              default-features = false, 
              features = ["rustls", "protocol-http", "protocol-ws"] }

@emmanuel-keller emmanuel-keller changed the title Emmanuel/post release 1.0.0 beta.1 Prepare the next development iteration post 1.0.0-beta.1 May 14, 2025
@mumoshu mumoshu marked this pull request as ready for review October 13, 2025 02:59
@emmanuel-keller emmanuel-keller changed the title Prepare the next development iteration post 1.0.0-beta.1 Update to SurrealDB sdk 3.0.0 Oct 23, 2025
@emmanuel-keller emmanuel-keller changed the title Update to SurrealDB sdk 3.0.0 Upgrade to SurrealDB 3.0 - Java SDK v3.0.0 Oct 24, 2025
@emmanuel-keller emmanuel-keller merged commit 2bff0f1 into main Oct 27, 2025
30 checks passed
@emmanuel-keller emmanuel-keller deleted the emmanuel/post-release-1.0.0-beta.1 branch October 27, 2025 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants