surrealdb breaking changes
Updated December 4, 2026
On this page
Latest version 3.0.0, released November 4, 2026. Source repository
Its 2.0.0 release drops Python 3.9. Python end of life dates.
surrealdb 3.0.0 breaking changes
- Removed
surrealdb.AsyncEmbeddedSurrealConnection.vars
AsyncEmbeddedSurrealConnection.vars was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.AsyncHttpSurrealConnection.insert_relation
AsyncHttpSurrealConnection.insert_relation was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.AsyncHttpSurrealConnection.merge
AsyncHttpSurrealConnection.merge was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.AsyncHttpSurrealConnection.patch
AsyncHttpSurrealConnection.patch was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.AsyncHttpSurrealConnection.set_token
AsyncHttpSurrealConnection.set_token was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.AsyncSurrealSession.insert_relation
AsyncSurrealSession.insert_relation was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.AsyncSurrealSession.merge
AsyncSurrealSession.merge was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.AsyncSurrealSession.patch
AsyncSurrealSession.patch was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.AsyncSurrealTransaction.insert_relation
AsyncSurrealTransaction.insert_relation was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.AsyncSurrealTransaction.merge
AsyncSurrealTransaction.merge was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.AsyncSurrealTransaction.patch
AsyncSurrealTransaction.patch was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.AsyncWsSurrealConnection.insert_relation
AsyncWsSurrealConnection.insert_relation was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.AsyncWsSurrealConnection.merge
AsyncWsSurrealConnection.merge was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.AsyncWsSurrealConnection.patch
AsyncWsSurrealConnection.patch was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.BlockingHttpSurrealConnection.insert_relation
BlockingHttpSurrealConnection.insert_relation was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.BlockingHttpSurrealConnection.merge
BlockingHttpSurrealConnection.merge was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.BlockingHttpSurrealConnection.patch
BlockingHttpSurrealConnection.patch was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.BlockingHttpSurrealConnection.set_token
BlockingHttpSurrealConnection.set_token was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.BlockingSurrealSession.insert_relation
BlockingSurrealSession.insert_relation was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.BlockingSurrealSession.merge
BlockingSurrealSession.merge was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.BlockingSurrealSession.patch
BlockingSurrealSession.patch was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.BlockingSurrealTransaction.insert_relation
BlockingSurrealTransaction.insert_relation was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.BlockingSurrealTransaction.merge
BlockingSurrealTransaction.merge was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.BlockingSurrealTransaction.patch
BlockingSurrealTransaction.patch was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.BlockingWsSurrealConnection.insert_relation
BlockingWsSurrealConnection.insert_relation was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.BlockingWsSurrealConnection.merge
BlockingWsSurrealConnection.merge was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.BlockingWsSurrealConnection.patch
BlockingWsSurrealConnection.patch was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.cbor.decoder
surrealdb.cbor.decoder was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.cbor.encoder
surrealdb.cbor.encoder was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.cbor.key
surrealdb.cbor.key was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.cbor.tool
surrealdb.cbor.tool was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.cbor.types
surrealdb.cbor.types was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.cbor.value
surrealdb.cbor.value was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_embedded.AsyncEmbeddedDB
surrealdb.connections.async_embedded.AsyncEmbeddedDB was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_embedded.AsyncEmbeddedSurrealConnection.vars
AsyncEmbeddedSurrealConnection.vars was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_http.AsyncHttpSurrealConnection.set_token
AsyncHttpSurrealConnection.set_token was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_http.AsyncTemplate.insert_relation
AsyncTemplate.insert_relation was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_http.AsyncTemplate.merge
AsyncTemplate.merge was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_http.AsyncTemplate.patch
AsyncTemplate.patch was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_http.decode
surrealdb.connections.async_http.decode was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_http.SurrealError
surrealdb.connections.async_http.SurrealError was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_template.AsyncTemplate.insert_relation
AsyncTemplate.insert_relation was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_template.AsyncTemplate.merge
AsyncTemplate.merge was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_template.AsyncTemplate.patch
AsyncTemplate.patch was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_ws.AsyncSurrealSession.insert_relation
AsyncSurrealSession.insert_relation was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_ws.AsyncSurrealSession.merge
AsyncSurrealSession.merge was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_ws.AsyncSurrealSession.patch
AsyncSurrealSession.patch was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_ws.AsyncSurrealTransaction.insert_relation
AsyncSurrealTransaction.insert_relation was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_ws.AsyncSurrealTransaction.merge
AsyncSurrealTransaction.merge was removed in surrealdb 3.0.0 pypi.org - Removed
surrealdb.connections.async_ws.AsyncSurrealTransaction.patch
AsyncSurrealTransaction.patch was removed in surrealdb 3.0.0 pypi.org
And 269 more in this version. Sign up to see every change
surrealdb 3.0.0b11 breaking changes
- Default changed
timeout
Requests still default to 30 seconds; the timeout is now settable per connection. github.com
surrealdb 3.0.0b10 breaking changes
- Signature changed
rows
Code annotating rows() results as AsyncQueryStream or QueryStream must switch to SyncRows or AsyncRows. github.com
surrealdb 3.0.0b9 breaking changes
- Default changed
ping_interval
The default ping interval and timeout changed; the websockets floor is now 15.0. github.com - Signature changed
delete
On the blocking client, delete() without data returns a builder; call .execute() to run it. github.com - Signature changed
select
On the blocking client, select() returns a builder; call .execute() or iterate it to get rows. github.com
surrealdb 3.0.0b8 breaking changes
- Removed
surrealdb.spectron
The bundled memory client moved to the separate surrealdb-memory distribution. Install it with pip install 'surrealdb[memory]' and import from surrealdb.memory. github.com - Renamed
surrealdb.spectron.AsyncSpectron
AsyncSpectron is now AsyncMemory. github.com - Renamed
surrealdb.spectron.Spectron
Spectron is now Memory. Update imports and references. github.com - Renamed
surrealdb.spectron.SpectronError
The base error class is now MemoryServiceError. github.com
surrealdb 3.0.0b5 breaking changes
- Removed
set_token
Use authenticate() to authenticate; assigning db.token directly also works. github.com - Behavior changed
NULL values come back as surrealdb.Null, which is not equal to None; code checking for None must also handle NULL. github.com - Behavior changed
Python ints above the signed 64-bit maximum are refused at encode time instead of being silently corrupted. github.com - Behavior changed
Catch InvalidUrlError, which is a SurrealError, where a bare ValueError was caught before. github.com - Behavior changed
Catch ConnectionUnavailableError, a SurrealError, instead of the bare RuntimeError raised before. github.com - Behavior changed
Passing a value the SDK cannot encode now raises TypeError, so code catching BufferError must change. github.com - Behavior changed
close
After close() and connect(), the new socket is a fresh session, so sign in and use() again. github.com - Behavior changed
connect
Passing a different url to connect() on an open connection now switches endpoints instead of being ignored. github.com - Behavior changed
create
An explicit data=None on async create() is now an error, matching the blocking connections. github.com - Behavior changed
insert
An explicit data=None on async insert() is now an error, matching the blocking connections. github.com
And 7 more in this version. Sign up to see every change
Older versions
5 older versions, each with its first changes. Sign up to see every change
Show 5 older versions
surrealdb 3.0.0b4 breaking changes
- Behavior changed
__all__
AsyncEmbeddedSurrealConnection and BlockingEmbeddedSurrealConnection now appear in __all__ only when the embedded extra is installed. github.com - Behavior changed
UrlScheme
Unsupported URL schemes raise UnsupportedEngineError instead of ValueError. Code catching ValueError around connection construction should catch SurrealError or UnsupportedEngineError. github.com
surrealdb 3.0.0b1 breaking changes
- Behavior changed
Failures that previously leaked third-party exceptions such as requests or aiohttp errors are now mapped to SurrealError subclasses. Code catching the old third-party exceptions must catch SurrealError instead. github.com
surrealdb 3.0.0a3 breaking changes
- Behavior changed
delete
delete with a RecordID now returns dict | None instead of its previous return type. github.com
surrealdb 3.0.0a2 breaking changes
- Behavior changed
select
select() returns the unwrapped result rather than the wrapped form, so code handling the old wrapper shape must change. github.com
surrealdb 2.0.0 breaking changes
- Removed
Python 3.9 is no longer supported by this release. Users on Python 3.9 must upgrade their Python version before installing 2.0.0. github.com - Removed
surrealdb.errors.SurrealDBMethodError.__init__
SurrealDBMethodError() was removed in surrealdb 2.0.0 pypi.org
And 103 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.