Comments (5)
We will definitely keep it in mind, if a method get's created for this in the protocol we can always reconsider!
from surrealdb.js.
Seems like an API for checking the version is already implemented after all, I'll get this implemented soon for a check probably between 1.0.0-beta.8 and 2.0.0
AKA; it might still break during the development before 1.0.0, but should be solid afterwards!
from surrealdb.js.
Hi @netcodedev, while I like your suggestion, keep in mind that surrealdb is still in beta! There was a slight hickup because of a change in the websocket protocol. I patched it first thing this week after easter and we put out the v0.6.0 release of the library Tuesday evening.
Once a stable 1.0.0 release is out the protocol will stay backwards compatible until a new major release. Hope that helps!
Edit: would also like to add: I don't think there is actually an endpoint to check the version of surrealdb as of now
from surrealdb.js.
Hi @kearfy
Thank you for your quick reply. While I still mostly agree and of course know that surrealdb is still in beta I hope you may still keep this suggestion in mind. As you already mentioned the protocol will stay backwards compatible, but only until a new major release. But this is exactly the situation where things might break and imo it would slightly improve DX if there was some kind of notice that an outdated library version might cause trouble when connecting to an updated instance of surrealdb.
Anyways thank you for your work on this great project 💕
from surrealdb.js.
Great to hear!
from surrealdb.js.
Related Issues (20)
- Bug: Not working with Bun? HOT 12
- Bug: Cant pass NONE value to MERGE object to unset fields HOT 1
- Feature: Safe way of using IDs in create/update statements HOT 2
- Bug: NoActiveSocket: No socket is currently connected to a SurrealDB instance. Please call the .connect() method first! HOT 8
- Bug: Not working on an IDE with Nix like Replit? HOT 2
- Bug: ErrorEvent is not defined
- Documentation: The documentation about live queries is wrong HOT 1
- Feature: Allow getting & validating signin token without authenticating token HOT 8
- Bug: type RawQueryResult doesn't allow boolean
- Bug: authenticate() can only be used with scopes. HOT 9
- Feature: Tagged Template Literals HOT 2
- Bug: Using 3rd party tokens results in "IAM error: Not enough permissions to perform this action" for create actions HOT 1
- Bug: need better error messaging HOT 2
- Feature: Temp solution for Bun websocket? HOT 7
- Feature: .open() HOT 2
- Bug: import_ws.WebSocket is not a constructor HOT 1
- Bug: HTTPStrategy doesnt seem to remain authed after 1 hour HOT 1
- Bug: Can't connect to surreal with deno HOT 7
- Bug: live query does not return a json patch
- Bug: db is not reconnecting HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from surrealdb.js.