Release first version
Closed this issue ยท 8 comments
4kimov commented
lvignoli commented
Main points to address before 0.1.0 are:
-
the initialization of the alphabet and blocklist: right now it is processed at each call to sqids.encodenot anymore - default blocklist
- alphabet validation: length and characters
- full test suite
I'll create dedicated issue to track them if it lingers for a while
4kimov commented
Nice, I commented on encode params here.
Regarding the blocklist, feel free to hardcode it from here: https://raw.githubusercontent.com/sqids/sqids-blocklist/main/output/blocklist.json
4kimov commented
@lvignoli Nice, thanks for letting me know & the test suite!
A few questions for you:
- Did I get examples right? Is it safe to omit
defer
for simplicity? - Am I using constructor opts correctly in those examples? I noticed the readme passes those opts to
encode
(at the bottom of the doc) - Do you know if it's possible to setup Github Actions for this repo?
lvignoli commented
- It is clearer to remove the allocator.free() calls from examples, docs (and Zig paradigm) seems sufficient.
- Yes your usage is correct, I forgot to update, will fix asap!
- That's the next step indeed, to automate linting and release. Zig is not 1.0 though, so every minor release may break the action, but that's expected.
4kimov commented
Great, thank you for clarifying everything. I'll close this issue since the first version is done! Thank you for the work ๐ช
lvignoli commented
I'll tag a v0.1 bound to work with a recent Zig version, and setup actions after Christmas ๐
Thank you for your nice feedback, it was a pleasure to contribute ๐
4kimov commented
Thank you, same ๐๐