Skip to content

v2.0.0 release

Compare
Choose a tag to compare
@nbarikipoulos nbarikipoulos released this 20 Aug 22:37
· 23 commits to master since this release

Major release mainly dedicated to:

  • Refactoring of internal code (note the facing factory of the module does not change),
  • Remove the useless option typed,
  • Provide tests 🥳 ,
  • Misc. packaging update.

Breaking Changes

Internal Cipher objects have been fully refactored.

In particular, in CipherObject, the 'encrypt' and 'decrypt' functions have been gathered into a new one named perform.

const factory = require('json-cipher-value')

const cipherObject = factory('My secret password')

const object = {}

const cipheredObject = cipherObject.perform('cipher', object) // instead of cipherObject.encrypt

const decipheredObject = cipherObject.perform('decipher', cipheredObject) // instead of cipherObject.decrypt

Check API.md for further details.