RobinBlomberg / kysely-codegen

Generate Kysely type definitions from your database.
MIT License
819 stars 73 forks source link

Version 0.16.4 doesn't export DB from index.js #195

Closed daviduzumeri closed 2 months ago

daviduzumeri commented 2 months ago

The documentation still says to import DB from kysely-codegen, but you need to import it from kysely-codegen/dist/db with 0.16.4. I think it's a missing export still? I know the index was missing in a previous issue (https://github.com/RobinBlomberg/kysely-codegen/issues/191) but for those of us who still codegen to inside the node_modules boundary it's an undocumented breaking change (and also importing from dist just always sets off aesthetic klaxons for me :)).

Thanks a ton for the package btw, it's been a lifesaver for us!

Upvote & Fund

Fund with Polar

RobinBlomberg commented 2 months ago

I forget that DB is imported in this way. I will fix! Thanks.

RobinBlomberg commented 2 months ago

Fixed in kysely-codegen@0.16.5.

daviduzumeri commented 2 months ago

Thank you so much!