DaBigBlob / libsql-stateless-easy

Thin libSQL stateless HTTP driver for TypeScript and JavaScript for the edge but easy 🚀
https://www.npmjs.com/package/libsql-stateless-easy
MIT License
62 stars 3 forks source link

feat: support intMode #2

Closed AsyncBanana closed 9 months ago

AsyncBanana commented 9 months ago

This PR adds intMode as a configuration option to match @libsql/client's behavior (however, the default is still BigInt to match the behavior of previous versions of libsql-stateless-easy).

Closes #1.

Side note: Could you add something for formatters like a Prettier or editorconfig config file? It would make it a lot easier for people who do not have the same editor settings to contribute and make the code style more uniform.

DaBigBlob commented 9 months ago

interesting. let me audit your pull. then i'll merge.

DaBigBlob commented 9 months ago

there were some issues. eg: new libsqlConfig/libsqlEasyConfig was not imported from ./types.ts, non-strict case handling in parseLibsqlInt in parsers.ts, etc. they have been fixed in b23a27a.

overall good PR 👍