Releases: matoous/go-nanoid
Releases · matoous/go-nanoid
v1.5.1 Fix issue with alphabet size 1
Full Changelog: v1.5.0...v1.5.1
v2.1.0
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
- Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 by @dependabot-preview in #21
- Upgrade to GitHub-native Dependabot by @dependabot-preview in #22
- Configure Renovate by @renovate in #24
- chore(deps): update actions/setup-go action to v2 by @renovate in #26
- chore(deps): update actions/checkout action to v2 by @renovate in #25
- feat: bump go version to 1.20 by @matoous in #50
- Bump actions/setup-go from 2 to 5 by @dependabot in #52
- Bump github.com/stretchr/testify from 1.7.0 to 1.9.0 by @dependabot in #51
New Contributors
- @dependabot-preview made their first contribution in #21
- @renovate made their first contribution in #24
- @dependabot made their first contribution in #52
Full Changelog: v1.5.0...v2.1.0
v2.0.0: API changes, bug fixes and codebase refactor
Change API to provide 4 functions:
New
- generates new IDMust
- generates new ID and panics on errorGenerate
- generates new ID with custom alphabet and lengthMustGenerate
- 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
Add MustID
and MustGenerate
functions. Similar to ID
and Generate
but panic on error.
v1.4.1: Fix previous release
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
- Generate valid id for any alphabet (support for non-ascii alphabets)
- Add more complex examples
v1.3.0: ID function
- Add
ID(length)
function, shorthand forNanoid()
. - Add checks for parameters of
Nanoid()
function.
v1.2.0: Update golang version to 1.14
- Update golang to 1.14
v1.0.0: First release
- A release with all that's needed same as implementations in other languages.