tursodatabase / kysely-libsql

Kysely dialect for sqld
MIT License
51 stars 8 forks source link

Add dependabot, update CI #7

Closed ottomated closed 2 months ago

ottomated commented 3 months ago

Typescript complains when the @libsql/client version is out of sync. I updated it, enabled dependabot to automatically bump versions, and updated the CI to match the new version.

Error: Type 'import("node_modules/.pnpm/@libsql+core@0.9.0/node_modules/@libsql/core/lib-esm/api").Client' is not assignable to type 'import("node_modules/.pnpm/@libsql+core@0.8.1/node_modules/@libsql/core/lib-esm/api").Client'.
  The types returned by 'sync()' are incompatible between these types.
    Type 'Promise<Replicated>' is not assignable to type 'Promise<void>'.
      Type 'Replicated' is not assignable to type 'void'.
        Type '{ frame_no: number; frames_synced: number; }' is not assignable to type 'void'. 

export const db = new Kysely<DB>({
  dialect: new LibsqlDialect({ client: dbClient }),
});