- Added
pathEqualto 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
jestfor testingeslintfor linting
- Default export is now a
Fliprclass - async/await replaces callbacks everywhere
- Removed input validator
- Removed connect middleware
- Renamed
getDictionaryandgetDictionaryByRulestogetConfig - Renamed
getValueByRulestogetValue preloadandflushare nowasyncand required on all sourcesinitreplaced with class constructor- Removed a lot of unnecessary function parameter validation
getValueandgetConfigwill 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.