Skip to content

ox@0.8.0

Choose a tag to compare

@github-actions github-actions released this 08 Jun 16:15
· 509 commits to main since this release
71bb135

Minor Changes

  • 7fc1da0 Thanks @jxom! - Breaking(Keystore): Keystore derivation functions (e.g. Keystore.pbkdf2) now return a tuple of the key and derivation options,
    instead of an object with the key and options.

    import { Keystore } from 'ox'
    
    - const key = Keystore.pbkdf2({ password: 'testpassword' })
    + const [key, opts] = Keystore.pbkdf2({ password: 'testpassword' })
  • 7fc1da0 Thanks @jxom! - Breaking(Keystore): Keystore.decrypt function interface no longer requires an object as the second parameter, now it only requires the key itself.

    import { Keystore } from 'ox'
    
    const [key, opts] = Keystore.pbkdf2({ password: 'testpassword' })
    
    const encrypted = await Keystore.encrypt(secret, key, opts)
    
    + const decrypted = await Keystore.decrypt(encrypted, key)
  • 7fc1da0 Thanks @jxom! - Breaking(Keystore): Keystore.encrypt function interface has changed to require derivation options (opts).

    import { Keystore } from 'ox'
    
    const [key, opts] = Keystore.pbkdf2({ password: 'testpassword' })
    
    - const encrypted = await Keystore.encrypt(secret, key)
    + const encrypted = await Keystore.encrypt(secret, key, opts)