- Added
pathEqual
to valid rule types invalidateRule
- Added a new rule: pathEqual
- Updated docs and tests
- Updated dependencies
- Added three new rules: includes, includesListAny, and includesListAll
- Updated docs and tests
- Fixed a case sensitivity bug in the rules
- ES6+ Rewrite
- Now supports async/await
- Lots of cleanup and prep work for more features
jest
for testingeslint
for linting
- Default export is now a
Flipr
class - async/await replaces callbacks everywhere
- Removed input validator
- Removed connect middleware
- Renamed
getDictionary
andgetDictionaryByRules
togetConfig
- Renamed
getValueByRules
togetValue
preload
andflush
are nowasync
and required on all sourcesinit
replaced with class constructor- Removed a lot of unnecessary function parameter validation
getValue
andgetConfig
will return undefined for dynamic config keys if no input is given- Removed memoization of getValue and getConfig, just relying on source caching now
- Drop support for node < v8.3
- Flipr sources must now support async/await
- Dropped support for the existing flipr-etcd source, that will need a rewrite.
Features:
- Added another shorthand notation to the flipr function.
flipr(someInput, 'someKey', cb)
is now equivalent toflipr.getValueByRules(someInput, 'someKey', cb)
. This was done to promote usage of getValueByRules, which is much more performant for large configs.
Flipr, now with sources!
Features:
- Refactored flipr to use sources.
- Initial sources are yaml and etcd.