All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- removed package.json node engine definition preventing usage in newer nodejs versions
plasma.emit- returns properly array of promised results for matched reactions
plasma.emitOnce- hits the first matched reaction and stops the emit
pasma.emitdoesn't create a Promise wrapper and throws Array of Errors- updated to
jasmineas test runner and fixed tests
plasma.emit(c, callback)re-throws meaningful errors from failed callback method invokes including its stack frameREADME.mdshows the latest plasma version
breaking changes introduced
Upgrade path requires replacing plasma.emitAndCollect with await plasma.emit
plasma.emitis now with Promise/async/await support
- removed
plasma.emitAndCollect. It is covered byawait plasma.emit - removed chemical aggregation feature support.
plasma.onpassed handlers will no longer be able to stop the reaction of followup handlers
plasma.emitAndCollect- emits chemical to all and return collected their feedbacknew Plasma({throwOnMissingHandler: true})- throws Error when missing handler for a chemical
- when using
new Plasma({missingHandlersChemical: ...})storing chemicals will no longer trigger missing handlers chemical
The release contains breaking changes towards v1.x.x
Upgrade path requires removing organic-plasma-feedback decoration as feedback support is re-implemented in organic-plasma module
plasma.on- supports feedback callbackplasma.on(array)- supports feedback callbackplasma.emit- supports feedback callback, returnstrueBoolean value when chemical has been aggregatedplasma.off- added additional support for singlehandlerformplasma.store- supports String chemicals
- jasmine test specs
- plasma.emit to return true when chemical has been aggregated
plasma.emitwill not check for missing handlersnew Plasma()will not notify for missing handlers unless it is explicitly set asnew Plasma({missingHandlersChemical: String})
plasma.onto properly emit on stored checmical
- notification of missing listeners/handlers for a chemical via
plasma.on('plasma/missingHandler', function (c) {})by krasiyan in PR #4
plasma.trash
plasma.on(pattern)- supports class definitions for pattern- core organic Plasma interface inheritance support for browser usage
plasma.hasplasma.getplasma.getAllplasma.utils.deepEqualplasma.utils.isFilledArrayplasma.trashAllplasma.storeAndOverride
plasma.pipe
The release contains breaking changes towards v0.0.7.
Upgrade path requires organic-plasma-feedback decoration to be applied on v1.0.0 so that v0.0.7 features are 100% covered.
plasma.on- doesn't support feedback (callback || promises)plasma.on(array)- doesn't support feedback (callback || promises)plasma.emit- doesn't support feedback (callback || promises)plasma.pipe- doesn't support transformation function
plasma.storeplasma.trashplasma.unpipe
plasma.emitAndCollect
- plasma.once