Hashids

Latest version: v1.3.1

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

2.0.0

This is pretty much a TypeScript rewrite.

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 `BigInt`s. 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.
- lifted the limitation that the alphabet cannot containin spaces
- both the alphabet and salt may now contain multi-byte characters (e.g. for an emoji-based alphabet)

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

1.3.1

Fixed

Python requirement changed to `>=2.7`

1.3.0

1.2.2

- another issue https://github.com/ivanakimov/hashids.js/issues/56

1.2.1

- fixes a bug issue https://github.com/ivanakimov/hashids.js/issues/54

1.2.0

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.