Skip to content

Latest commit

 

History

History
97 lines (63 loc) · 2.03 KB

CHANGELOG.md

File metadata and controls

97 lines (63 loc) · 2.03 KB

Changelog

v4.0.1

  • Reduce library size 15.62 KiB -> 13.01 KiB by compressing PI numbers

v4.0.0

  • Breaking: Now this library exports only as JS native module (not UMD) and use named export (not default export)

Migration on Nodejs:

// v3 common js
const Blowfish = require('egoroof-blowfish');

// v3 esm interop
import Blowfish from 'egoroof-blowfish';

// v4
import { Blowfish } from 'egoroof-blowfish';

Migration on browsers:

<!-- v3 -->
<script src="blowfish.js"></script>
<script>
  // your code using Blowfish
</script>

<!-- v4 -->
<script type="module">
  import { Blowfish } from 'blowfish.mjs';
  // your code
</script>

v3.0.0

  • Breaking: Drop Babel & encoding lib, so now this library requires ES6 native support (IE isn't supported anymore)
  • Fixed: Empty key leads to infinite loop

v2.2.2

  • Fixed: Truncated result encoding 8 characters text

v2.2.1

  • Include typings in dist files list

v2.2.0

  • Add types definition

v2.1.0

  • Fixed: Empty string is not properly decoded

v2.0.0

  • Breaking: Now bf.encode() doesn't accept second parameter and always returns Uint8Array
// v1
const encoded = bf.encode('input text', Blowfish.TYPE.UINT8_ARRAY);

// v2
const encoded = bf.encode('input text');

v1.0.1

  • Reduce library size from 38.6 KiB to 20.9 KiB

v1.0.0

  • Breaking: Removed bf.setReturnType()

Setting bf.setReturnType() was annoying so it's removed. Now you can pass second optional argument to bf.encode() / bf.decode() to specify return type. Default return type is Blowfish.TYPE.UINT8_ARRAY for bf.encode() and Blowfish.TYPE.STRING for bf.decode:

// v0.1.0
bf.setReturnType(Blowfish.TYPE.UINT8_ARRAY);
const encoded = bf.encode('input text');
bf.setReturnType(Blowfish.TYPE.STRING);
const decoded = bf.decode(encoded);

// v1
const encoded = bf.encode('input text', Blowfish.TYPE.UINT8_ARRAY); // type is optional
const decoded = bf.decode(encoded, Blowfish.TYPE.STRING); // type is optional

v0.1.0

  • First release