Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.67 KB

CHANGELOG.md

File metadata and controls

35 lines (28 loc) · 1.67 KB

CHANGELOG

v0.5.0

  • Support Python 3.12 and 3.13.
  • Speed up encoding by ~85% by optimizing blocklist checks (PR #23, thanks to @kurtmckee). This improvement requires more calculation when the Sqids class is instantiated, so users are encouraged to instantiate Sqids once and always reuse the instance.

v0.4.1

  • Compatibility with Python 3.6 (not officially supported)

v0.4.0

  • Use double underscore convention to specify private methods
  • Separate single module into a package for better readability
  • Add PEP 561 compatible type hints

v0.3.0: ⚠️ BREAKING CHANGE

  • Breaking change: IDs change. Algorithm has been fine-tuned for better performance [Issue #11]
  • alphabet cannot contain multibyte characters
  • min_length upper limit has increased from alphabet length to 255
  • Max blocklist re-encoding attempts has been capped at the length of the alphabet - 1
  • Minimum alphabet length has changed from 5 to 3
  • min_value() and max_value() functions have been removed
  • Max integer encoding value is sys.maxsize

v0.2.1:

  • Bug fix: spec update (PR #7): blocklist filtering in uppercase-only alphabet [PR #7]
  • Lower uniques test from 1_000_000 to 10_000

v0.2.0:

v0.1.0: