Skip to content

v0.15.0

Latest
Compare
Choose a tag to compare
@dchest dchest released this 19 Mar 19:31
· 10 commits to master since this release
v0.15.0
  • Added validation of base64-encoded input: decodeBase64 will throw if the string contains invalid characters. If you want to ignore whitespace, you should remove it before passing to decoder. (Previously only browser version would throw in this case. Turns out Node.js Buffer doesn't validate encoding at all, for "performance" reasons — that is, it returns some kind of output even for invalid input — for example Buffer.from("бред", "base64") results in <Buffer d7 9e> — which is ridiculous.)
  • Buffer.from is now used on modern Node.js versions (versions that don't have from will continue using the deprecated constructor.)

This is the last version to be published on Bower: for simplicity, newer versions will only be published on NPM.