1.1.0:
-
ES6 source; ES5 dist
-
UMD support (Node.js repo is merging into this one)
-
Added Eslint (npm run lint)
-
Added Mocha (npm run test)
-
Added Coveralls (npm run coverage)
-
Added build script (npm run build)
-
Moved CHANGELOG out of
README.md
-
README.md
completely updated -
examples/
folder removed; all examples are now in the README -
Bug fix: escaping regex
-
Improvement: relaxed parameter checks to
encode()
. All of these are allowed:var hashids = new Hashids(); hashids.encode(1, 2, 3); // o2fXhV hashids.encode([1, 2, 3]); // o2fXhV hashids.encode('1', '2', '3'); // o2fXhV hashids.encode(['1', '2', '3']); // o2fXhV
1.0.2:
- Support for older browsers (using
charAt
) by @tauanz: niieani#15
1.0.1:
- require.js support by @nleclerc: niieani#12
1.0.0:
-
Several public functions are renamed to be more appropriate:
- Function
encrypt()
changed toencode()
- Function
decrypt()
changed todecode()
- Function
encryptHex()
changed toencodeHex()
- Function
decryptHex()
changed todecodeHex()
Hashids was designed to encode integers, primary ids at most. We've had several requests to encrypt sensitive data with Hashids and this is the wrong algorithm for that. So to encourage more appropriate use,
encrypt/decrypt
is being "downgraded" toencode/decode
. - Function
-
Version tag added:
1.0
-
README.md
updated
0.3.0:
PRODUCED HASHES IN THIS VERSION ARE DIFFERENT THAN IN 0.1.4, DO NOT UPDATE IF YOU NEED THEM TO KEEP WORKING:
- Same algorithm as PHP and Node.js versions now
- Overall approximately 4x faster
- Consistent shuffle function uses slightly modified version of Fisher–Yates algorithm
- Generate large hash strings faster (where minHashLength is more than 1000 chars)
- When using minHashLength, hash character disorder has been improved
- Basic English curse words will now be avoided even with custom alphabet
- encrypt function now also accepts array of integers as input
- Passing JSLint now
- Support for Bower package manager
0.1.4:
- Global var leak for hashSplit (thanks to @BryanDonovan)
- Class capitalization (thanks to @BryanDonovan)
0.1.3:
Warning: If you are using 0.1.2 or below, updating to this version will change your hashes.
- Updated default alphabet (thanks to @speps)
- Constructor removes duplicate characters for default alphabet as well (thanks to @speps)
0.1.2:
Warning: If you are using 0.1.1 or below, updating to this version will change your hashes.
- Minimum hash length can now be specified
- Added more randomness to hashes
- Added unit tests
- Added example files
- Changed warnings that can be thrown
- Renamed
encode/decode
toencrypt/decrypt
- Consistent shuffle does not depend on md5 anymore
- Speed improvements
0.1.1:
- Speed improvements
- Bug fixes
0.1.0:
- First commit