All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
validate
method to check shortIds for simple or "complete" validity
uuid25Base36
constant to support uuid25 style
- Updated
engines
inpackage.json
to reflect correct support (Node >=14)
- 🛑 5.0.0 drops support for Node 10 and 12
- ℹ️ 5.x will be quickly succeeded by 6.0 which will drop Node 14.x and 16.x support
- UUID version to 9.0.1
- Dropped support for Node prior to 14.x
- Updated GitHub Actions to test Node 14.x-22.x
- Updated README
- GitHub Actions
- Testing to Node 16.x and 18.x
- npm audit updated dependencies
- Travis-CI integration
- Snyk.io integration
- maxLength property to TypeScript definitions
- UUID types to TypeScript definitions
- UUID version to 8.3.2
- Updated dev dependencies
- maxLength property to translators
- Translator objects are now frozen
- Fixed default generate length inconsistency identified by thadeucity
- Added additional test
- No code changes
- Eslint cleanup
- Test cleanup based on CodeClimate
- Updated bad links and formatting in [README.md]
- Fixed default
.generate()
to use padStart correctly.
- 🛑 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.
- eslint rules
- tape testing library
- 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 browserify, grunt, & mocha
- Removed built version for browser
- Updated dev packages to replace istanbul with nyc
- Updated [gruntfile.js] for nyc
- Updated [.gitignore] for nyc
- Removed Node 4.x build in [.travis.yml]
- Included Node 12.x build in [.travis.yml]
- Dropped Node 4.x build due to nested build dependencies
- Updated dev packages for vulnerability fixes
- Added top-level
generate
in [index.js] - Added
generate
alias on translators in [index.js] - Added tests for
generate
- Updated [index.d.ts] definitions
- Update [README.md] to help clarify the functionality
- Build dependencies update
- Refactored export in [gruntfile.js] for CodeClimate
- Refactored export in [index.js] for CodeClimate
- Updated dependencies - all patch or minor
- Updated Mocha devDependency - Major version update
- Updated other devDependencies - all patch or minor
- Dropped build support for Node 0.10 and 0.12 due to nested build dependencies
- Corrected shortenUUID function in [index.js]
- Added test cases for uppercase in [test/index.js]
- Added 2.3.4 fix notes in [README.md]
- Refactored "random" test cases so only the assertions loop in [test/index.js]
- Updated devDependencies for codeclimate-test-reporter in [package.json]
- Included Node 8.x support in [.travis.yml]
- Changed [.npmignore] To remove dist, so the built files end up on the package. No code changes.
- Added [index.d.ts] TypeScript definitions. No code changes.
- Changed [package.json] to reference TypeScript definitions
- Merged 2.1.x revision history in [README.md] and [revisions.md]. No code changes.
- Moved Snyk to devDependencies in [package.json]
- Updated devDependencies grunt-contrib-uglify
- Corrected Snyk spelling error in [README.md]
- Added Snyk vulnerability monitoring and patching
- Updated devDependencies and added Snyk scripts to [package.json]
- Correction of unpublish to deprecate. No code changes.
- Updated [README.md], versions.
- Correction of bad npm publish. No code changes.
- Updated [README.md], versions.
- Updated from
node-uuid
touuid
, per the author - Switched to using only
uuid/v4
for a smaller footprint
- Add dist files to npm package
- Add files list to [package.json]
- Add browser support with Browserify as proposed by voronianski
- Include
grunt-mkdir
to support build process - Include
grunt-browserify
to support build process - Include
grunt-contrib-uglify
to support build process - Add example/index.html for Browserify demo
- Add various dotfiles for CodeClimate configs
- Add to [gruntfile.js] for new modules
- Add to [package.json] for build command
- Add dist folder to [.gitignore]
- Update [revisions.md]
- Update [README.md] with Browserify details
2.0.0 - 2016-06-19
- Include
node-uuid
so we can generate our own UUIDs. - Add
.new()
to the translator object to generate a translated v4 UUID. - Add
.alphabet
to the translator object so you can inspect the alphabet. - Expose
.uuid()
for v4 UUID generation on the export and on each translator, for convenience. - Added this change log.
- Added [revisions.md] for tracking usage of old versions.
- Added tests for new UUID generation, defaults, and exposed alphabet.
- Use a Constructor rather than needing to call .new() against the export.
- Default flickrBase58 alphabet if none is provided.
- Changed to IIFE for better minification.
- Changed tests for updated object format.
- Remove the pre-built
.b58
library so we don't waste resources. - Remove
.toHex()
and.fromHex()
from the translators. Useany-base
directly if needed.
- Provide
.new()
to create a translator. - Provide
.constants
for useful alphabets flickrBase58
is meant to reduce human transcription errorscookieBase90
provides the characters supported by cookies for the smallest cookie-safe UUIDs- Provide
.fromUUID()
and.toUUID()
from the translators. - Provide
.toHex()
and.fromHex()
from the translators. - Provide the flickrBase58 translator by default as
.b58