github oculus42/short-uuid v4.0.1
4.0.1

latest releases: v4.2.0, v4.1.0, v4.0.3...
3 years ago

[4.0.1] - 2020-09-06

Changed

  • Fixed default .generate() to use padStart correctly.

[4.0.0] - 2020-09-06 (Unreleased)

MAJOR CHANGES

  • 🛑 short-uuid will now throw an error when provided an alphabet with duplicate characters. Duplicate characters will cause translation errors.
  • ℹī¸ 4.0.0 is written in modern ECMAScript. It uses features through ES9/ES2018.
  • ℹī¸ 4.x does not yet include the pre-built version for browsers. If needed, continue to use 3.1.1 in the meantime.
  • ℹī¸ By default, short-uuid will pad shortened IDs to a consistent length.
    • Padding does not affect translation, and the values are compatible with previous releases.
    • Padding can be disabled with the option consistentLength: false when instantiating a translator. This is consistent with previous versions.

Added

  • eslint rules
  • tape testing library

Changed

  • Merged PR #44 from qgerome to fix uuid version deprecation.
  • Merged PR #47 from thadeucity to resolve #39 for consistent length.
  • Switched tests to tape
  • Updated to ES6
  • Switched from Greenkeeper to Snyk.io
  • Dropped support for Node prior to 8.x
  • Updated link to uuid repo in Notes in [README.md]

Removed

  • Removed browserify, grunt, & mocha
  • Removed built version for browser

Don't miss a new short-uuid release

NewReleases is sending notifications on new releases.