sebastianwessel / surrealdb-client-generator

Tool which generates a typescript client for SurrealDB and zod schema of a given database
MIT License
76 stars 12 forks source link

Update Dependency to Support Latest surrealdb SDK Library Naming Change #59

Closed jascenc1 closed 2 months ago

jascenc1 commented 2 months ago

I noticed the library currently depends on surrealdb.js version 1.0.0-beta.9, but the latest version is beta 20. In beta 18, the library was renamed from surrealdb.js to just surrealdb. We're currently using the latest version and it required changing the imports to surrealdb instead of surrealdb.js. On your end, and from what I can tell, this mainly affects import { type RecordId } from "surrealdb.js".

Would you be open to updating the library to support this change? It would ensure compatibility with the latest versions. If not, possibly making a beta version of surrealdb-client-generator to support those of us on SDK beta > 17.

jascenc1 commented 2 months ago

Closing this out as I just noticed that beta 20 is being used. Sorry about that!