v2.0.0 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.