Skip to content

Releases: matoous/go-nanoid

v1.5.1 Fix issue with alphabet size 1

09 Oct 07:42
44a7dd3
Compare
Choose a tag to compare

v2.1.0

16 May 13:57
df99abc
Compare
Choose a tag to compare

Last version of go-nanoid drops support for older Go versions. From now on we will maintain support for last 3 major versions (that is, right now the oldest supported version is v1.20). Other than that, a few small updates and dependency bumps, see changelog for more details.

What's Changed

New Contributors

Full Changelog: v1.5.0...v2.1.0

v2.0.0: API changes, bug fixes and codebase refactor

19 Nov 12:32
Compare
Choose a tag to compare

Change API to provide 4 functions:

  • New - generates new ID
  • Must - generates new ID and panics on error
  • Generate - generates new ID with custom alphabet and length
  • MustGenerate - generates new ID with custom alphabet and length and panics on error

Furthermore some tests were changed/adjusted/added which revealed a bug with custom alphabet containing non-ascii characters.

v1.5.0: Add Must functions

08 Oct 19:51
Compare
Choose a tag to compare

Add MustID and MustGenerate functions. Similar to ID and Generate but panic on error.

v1.4.1: Fix previous release

18 May 08:23
Compare
Choose a tag to compare
Generate valid id for any custom alphabet (#15)

* Generate valid id for any alphabet
* Add more complex examples

v1.4.0: Generate valid id for any custom alphabet

18 May 07:05
Compare
Choose a tag to compare
  • Generate valid id for any alphabet (support for non-ascii alphabets)
  • Add more complex examples

v1.3.0: ID function

23 Mar 08:05
Compare
Choose a tag to compare
  • Add ID(length) function, shorthand for Nanoid().
  • Add checks for parameters of Nanoid() function.

v1.2.0: Update golang version to 1.14

01 Mar 17:21
Compare
Choose a tag to compare

v1.0.0: First release

19 Aug 14:00
Compare
Choose a tag to compare
  • A release with all that's needed same as implementations in other languages.