1.0.2
Released on Dec 21, 2023
Bug fixes:
Support connecting to beta servers from the Rust SDK.
Upgrade or install
Get SurrealDB v1.0.2
Pick how you want to install or upgrade. Surrealist can update connected instances in place, or choose a platform below to copy a CLI command for v1.0.2.
You can upgrade your SurrealDB Cloud instance to v1.0.2 effortlessly through the Surrealist app.
- Open the Surrealist app
- Select your organisation and instance
- On the dashboard, click on the "Upgrade" button
- Your instance will be updated and restarted automatically
1.0.1
Released on Dec 14, 2023
Bug fixes:
Add a patch for GHSA-x5fr-7hhj-34j3.
Tables defined without explicit permissions have NONE instead of FULL permissions.
Table permissions are always explicitly displayed with the INFO FOR DB statement.
Newer patch available
Upgrade to 1.0.2
You are viewing the 1.0.1 changelog. A newer patch in this release line is available - we recommend running 1.0.2 for the latest fixes and improvements.
1.0.0
Released on Sep 13, 2023
After numerous beta releases crammed into just months of development, we are releasing SurrealDB v1.0.0! 🎉
Here follow some of our 1.0.0 highlights:
Introducing new type validation methods in SurrealQL
v1.0.0 introduces new type validation methods. These new methods allow you to check which type any sort of value is on the go.
Guaranteed single item results with the new ONLY keyword
It was previously difficult to select, create, update or delete just a single record, so we simplified it a bit.
Get realtime updates in your application with SurrealDB Live Queries
v1.0.0 introduces Live Queries. This powerful technology allows you to write applications where you can serve realtime updates to your frontend.
Efficiently index and search your data with SurrealDB Full Text Search
With Full Text Search, you can efficiently store and index data, and search through it.
Allow or deny capabilities when starting your SurrealDB instance
All capabilities are disabled by default. This means that by default, you are not able to use any methods, embedded scripting functions, make outbound network calls, or access the database anonymously. Down below follows a set of examples to showcase how one can configure capabilities.
Capabilities are further documented in the Capabilities documentation.
Revamped root users
It is now possible to define multiple root users in SurrealDB. This change did require some changes in the way that you start your database, however.
With this change, you will now only initially have to provide the --user and --pass flags to create the initial root user, but once the first root user exists, they will no longer be utilised.
For more information, check out the Authentication guide, and the surreal start and DEFINE USER documentation.
Strict typing in SurrealQL
v1.0.0 introduces a more strict and powerful typing system. It makes things more simple to understand, and it goes a long way in preventing all kinds of weird bugs in your schemas!
Set a DEFAULT value on field definitions
PERMISSIONS on global parameters and custom functions
Scope and anonymous users previously had access to every defined global parameter and function. You can now define these resources with a PERMISSIONS clause to protect them.
FOR, BREAK and CONTINUE statements
THROW statement
Did something unexpected happen, and do you want to throw an error to the client? Now you can!
COMMENT away on resource definitions!
Less bulky IF ELSE statements
We found the IF ELSE statement to be a bit bulky at times. Now, when you use a block ({}) as the body of the statement, you can skip out on the THEN and END keywords!
More features for our embedded scripting functions
With fetch(), query(), value() and basically every SurrealQL function now being available within the embedded scripting functions, they are a very powerful extension to SurrealQL, and can be used to solve complex problems otherwise impossible!
Read more about them in the Embedded scripting functions documentation.
Support for FLEXIBLE fields on SCHEMAFULL tables
SCHEMAFULL and SCHEMALESS functionality can now be used together, suitable for capturing schema-free log data.
Support code blocks and advanced expressions
It is now possible to run blocks of code, with support for an arbitrary number of statements, including LET and RETURN statements. This allows for writing advanced custom logic, and allowing for more complicated handling of data operations.
Define custom functions with DEFINE FUNCTION statements
SurrealDB now supports the ability to define global database-wide custom functions, which allow for complicated or repeated user-defined code, to be run seamlessly within any query across the database. Custom functions support typed arguments, and multiple nested queries with custom logic.
Newer patch available
Upgrade to 1.0.2
You are viewing the 1.0.0 changelog. A newer patch in this release line is available - we recommend running 1.0.2 for the latest fixes and improvements.
Our newsletter
Get tutorials, AI agent recipes, webinars, and early product updates in your inbox every two weeks