|
| 1 | +# Changelog |
| 2 | + |
| 3 | +All notable changes to this project will be documented in this file. |
| 4 | + |
| 5 | +The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) |
| 6 | +and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). |
| 7 | + |
| 8 | +## v0.6.7 - 2023-06-20 |
| 9 | + |
| 10 | +### Added |
| 11 | + |
| 12 | +- added `allowedScopes` configuration, which validates that correct scope names are used for updates |
| 13 | + |
| 14 | +### Fixed |
| 15 | + |
| 16 | +- separate `rootValue` from other `scopedValues` in `getFeatureInfo` and `getFeaturesInfos` APIs |
| 17 | + |
| 18 | +## v0.6.6 - 2023-06-19 |
| 19 | + |
| 20 | +### Added |
| 21 | + |
| 22 | +- added `example-cap-server` code, that acts both as an example integration code into existing cap projects and as a |
| 23 | + starting point for manual testing |
| 24 | + |
| 25 | +### Fixed |
| 26 | + |
| 27 | +- first iteration towards updating documentation |
| 28 | + |
| 29 | +## v0.6.5 - 2023-06-13 |
| 30 | + |
| 31 | +### Fixed |
| 32 | + |
| 33 | +- fix bug where scoped values were ignored if they are falsy |
| 34 | + |
| 35 | +## v0.6.4 - 2023-06-11 |
| 36 | + |
| 37 | +### Added |
| 38 | + |
| 39 | +- simple migration for old sting-type state to hash-type persistence state |
| 40 | + |
| 41 | +## v0.6.2 - 2023-06-10 |
| 42 | + |
| 43 | +### Fixed |
| 44 | + |
| 45 | +- fix redis transaction re-writes |
| 46 | + |
| 47 | +## v0.6.1 - 2023-06-07 |
| 48 | + |
| 49 | +### Removed |
| 50 | + |
| 51 | +- remove API to read feature config and metadata `getFeatureConfig` and `getFeatureConfigs`. |
| 52 | + use `getFeatureInfo` and `getFeaturesInfos` instead |
| 53 | + |
| 54 | +### Added |
| 55 | + |
| 56 | +- new option to add _scope restrictions_ when reading or setting feature toggles |
| 57 | + |
| 58 | +- separate persistence on redis using `HGET`, `HSET`, so that individual toggle changes don't have to touch the state |
| 59 | + of all feature toggles. effectively we change the redis type for the persistence key from `string` to `hash`. |
| 60 | + |
| 61 | +- new API `getFeatureInfo` and `getFeaturesInfos` to get all config and state information in one call |
| 62 | + |
| 63 | +### Fixed |
| 64 | + |
| 65 | +- rewrite to improve config handling internally |
| 66 | + |
| 67 | +- fix some problems with the logger in combination with verror |
| 68 | + |
| 69 | +## v0.5.18 - 2023-04-25 |
| 70 | + |
| 71 | +### Removed |
| 72 | + |
| 73 | +- restrict to node v16+ |
| 74 | + |
| 75 | +### Added |
| 76 | + |
| 77 | +- new interface to get `main` and `subscriber` client in redis wrapper |
| 78 | + |
| 79 | +### Fixed |
| 80 | + |
| 81 | +- better coding and interface for `LazyCache` and `ExpiringLazyCache` |
| 82 | + |
| 83 | +- more and improved jsdocs |
| 84 | + |
| 85 | +- allow options to be passed in redis wrapper `set` implementation. |
| 86 | + see [SET](https://redis.io/commands/set/) for details. |
| 87 | + |
| 88 | +## v0.5.17 - 2022-12-13 |
| 89 | + |
| 90 | +### Fixed |
| 91 | + |
| 92 | +- make logging for warn level work properly |
| 93 | + |
| 94 | +## v0.5.16 - 2022-12-08 |
| 95 | + |
| 96 | +### Fixed |
| 97 | + |
| 98 | +- re-work logging approach so structured logging will capture [VError](https://www.npmjs.com/package/verror) info |
| 99 | + |
| 100 | +## v0.5.15 - 2022-06-03 |
| 101 | + |
| 102 | +### Fixed |
| 103 | + |
| 104 | +- update feature value is now exclusive under high concurrency |
| 105 | + (semaphore implementation by [oklemenz2](https://github.com/oklemenz2)) |
| 106 | + |
| 107 | +- prettier and documentation work better together |
| 108 | + |
| 109 | +## v0.5.14 - 2022-03-29 |
| 110 | + |
| 111 | +### Added |
| 112 | + |
| 113 | +- users can rely on _always_ getting fallback value |
| 114 | + |
| 115 | +## v0.5.13 - 2022-03-18 |
| 116 | + |
| 117 | +### Added |
| 118 | + |
| 119 | +- local integration tests |
| 120 | + |
| 121 | +- write own env implementation replacing [@sap/xsenv](https://www.npmjs.com/package/@sap/xsenv) dependency |
| 122 | + |
| 123 | +## v0.5.12 - 2022-03-09 |
| 124 | + |
| 125 | +### Fixed |
| 126 | + |
| 127 | +- more fixes related to error event handling in local case after redis library v4 migration |
| 128 | + |
| 129 | +## v0.5.11 - 2022-03-09 |
| 130 | + |
| 131 | +### Removed |
| 132 | + |
| 133 | +- restrict to node v12+ |
| 134 | + |
| 135 | +### Fixed |
| 136 | + |
| 137 | +- fix `mainClient` and `subscriberClient` reference handling in error case |
| 138 | + |
| 139 | +## v0.5.10 - 2022-03-03 |
| 140 | + |
| 141 | +### Fixed |
| 142 | + |
| 143 | +- migrate [redis](https://www.npmjs.com/package/redis) dependency to v4 |
| 144 | + |
| 145 | +## v0.5.8 - 2022-02-03 |
| 146 | + |
| 147 | +### Added |
| 148 | + |
| 149 | +- allow to set singleton `uniqueName` via env variable `BTP_FEATURES_UNIQUE_NAME` |
| 150 | + |
| 151 | +## v0.5.7 - 2022-01-13 |
| 152 | + |
| 153 | +### Fixed |
| 154 | + |
| 155 | +- fix `readConfigFromFile` for yaml case |
| 156 | + |
| 157 | +## v0.5.6 - 2021-12-22 |
| 158 | + |
| 159 | +### Removed |
| 160 | + |
| 161 | +- config property `enabled` is discontinued, use `active` instead |
| 162 | + |
| 163 | +### Added |
| 164 | + |
| 165 | +- new config property: `active`. if active is set to false, no changes of the feature toggle is allowed, but old value |
| 166 | + stays in place |
| 167 | + |
| 168 | +- new API to read feature config and metadata `getFeatureConfig` and `getFeatureConfigs` |
| 169 | + |
| 170 | +### Fixed |
| 171 | + |
| 172 | +- change interface name `readConfigFromFilepath` to `readConfigFromFile` |
| 173 | + |
| 174 | +- change signature for `FeatureValueChangeHandler` to `handler(newValue, oldValue)` |
| 175 | + |
| 176 | +## v0.5.5 - 2021-12-15 |
| 177 | + |
| 178 | +### Fixed |
| 179 | + |
| 180 | +- change external validators interface to allow reporting multiple errors |
| 181 | + |
| 182 | +## v0.5.4 - 2021-12-10 |
| 183 | + |
| 184 | +### Fixed |
| 185 | + |
| 186 | +- change validator return interface to ValidationErrors for consistency |
| 187 | + |
| 188 | +## v0.5.3 - 2021-12-10 |
| 189 | + |
| 190 | +### Fixed |
| 191 | + |
| 192 | +- make singleton more IDE friendly and ensure correctness with test |
| 193 | + |
| 194 | +- switch to artifactory registry |
| 195 | + |
| 196 | +## v0.5.2 - 2021-12-06 |
| 197 | + |
| 198 | +### Added |
| 199 | + |
| 200 | +- feature: external validation |
| 201 | + |
| 202 | +### Fixed |
| 203 | + |
| 204 | +- readme update |
| 205 | + |
| 206 | +- handler name fallback for anonymous functions |
| 207 | + |
| 208 | +- inputValidation is now async to account for potentially async external validators |
| 209 | + |
| 210 | +## v0.5.0 - 2021-11-11 |
| 211 | + |
| 212 | +### Added |
| 213 | + |
| 214 | +- Initial public release |
0 commit comments