Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.0 BigInt, TypeScript, automated deployments #65

Merged
merged 37 commits into from
Aug 31, 2019
Merged

2.0.0 BigInt, TypeScript, automated deployments #65

merged 37 commits into from
Aug 31, 2019

Conversation

niieani
Copy link
Owner

@niieani niieani commented Aug 14, 2019

2.0.0:

Breaking changes

  • BREAKING CHANGE: Hashids now throws errors when being constructed with incorrect options (previously, it silently falled back to defaults)
  • BREAKING CHANGE: when used from Node (without ESM enabled), you now need to require('hashids/cjs')

Features

  • transparent support of BigInts. If your environment supports them,
    you can use the standard API to encode and decode them.
    Note that trying to decode a BigInt hashid on an unsupported environment will throw an error. Fixes Add BigInt support #58.
  • lifted the limitation that the alphabet cannot contain spaces
  • both the alphabet and salt may now contain multi-byte characters (e.g. for an emoji-based alphabet)
  • it is now possible to provide custom seps (e.g. to avoid custom curses). Fixes Custom curse list / seps #17.

Chores

  • upgraded all dependencies
  • tests now use jest testing framework
  • extracted static methods to helper functions
  • converted the implementation to TypeScript
  • added prettier
  • added stricter eslint rules
  • added semantic-release for automated releases

Try it by installing the @next tag: yarn add hashids@next.

https://github.com/niieani/hashids.js/releases/tag/2.0.0-prerelease.1%40next

@niieani niieani merged commit 4b4e3ad into master Aug 31, 2019
@niieani niieani deleted the next branch August 31, 2019 11:08
@niieani
Copy link
Owner Author

niieani commented Aug 31, 2019

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom curse list / seps
1 participant