Releases: switcherapi/switcher-client-js
Releases · switcherapi/switcher-client-js
v4.5.0
What's Changed
- ci: improved workflow process for PR from forked repos by @petruki in #208
- Bump dev deps chai, env-cmd, eslint and ci sonar action to v5.3.1 by @petruki in #209
- Bump sonarsource/sonarqube-scan-action from 5.3.1 to 6.0.0 in /.github/workflows by @dependabot[bot] in #210
- chore: fixes code smells, added Node v24 test matrix by @petruki in #211
- feat: removed data attribute from snapshot by @petruki in #212
Breaking change #212
Snapshot content before:
{
"data": {
"domain": {
"name": "switcher-domain",
"activated": true,
"group": [...]
}
}
}
Snapshot content now:
{
"domain": {
"name": "switcher-domain",
"activated": true,
"group": [...]
}
}
Full Changelog: v4.4.1...v4.5.0
v4.4.1
What's Changed
Breaking change
Replace optional flag static
with freeze
, e.g.
Client.buildContext({ url, apiKey, domain, component, environment }, { local, freeze: true });
Full Changelog: v4.4.0...v4.4.1
v4.4.0
What's Changed
- Major improvement on performance - added static context option by @petruki in #203
- Added Client.snapshotVersion(), replaced snapshot() for security matters by @petruki in #204
- Improved Switcher implementation, optimizaed for sync/async usage by @petruki in #205
- chore: moved snapshotWatcher from client to lib by @petruki in #206
Full Changelog: v4.3.0...v4.4.0
v4.3.0
What's Changed
- chore: Replaced FF for Integration test, bump dev deps, added devcontainer by @petruki in #197
- Removing cycle dependency: remote-auth and remote by @petruki in #198
- Added context configuration managed snapshotWatcher option by @petruki in #199
- chore: refactored Switcher class for better SoC by @petruki in #200
- Added context configuration to allow or bypass Relay check when local by @petruki in #201
- Major refactory: improved resolver, remote and overall error handling by @petruki in #202
Full Changelog: v4.2.0...v4.3.0
v4.2.0
What's Changed
- Bump dev deps c8 and mocha by @petruki in #191
- Bump eslint dev deps by @petruki in #192
- chore: migrated eslint to v9 by @petruki in #193
- Updated api key for integrated test - bump dev deps by @petruki in #194
- Added Client.assume:when criteria to bypass Switcher results by @petruki in #195
- chore: Added Node 22 to test matrix by @petruki in #196
Full Changelog: v4.1.1...v4.2.0
v4.1.1
v4.1.0
What's Changed
- Fixes several inconsistencies with types by @petruki in #179
- Fixes #178 - watcher validates change event by @petruki in #180
- Improved async error handling, added Switcher.subscribeNotifyError by @petruki in #181
- Applied several module improvements - removed node-fetch dep by @petruki in #182
- Moved fixture to test folder by @petruki in #183
- Removed fetch default implementation by @petruki in #184
- Replaced check arguments by fluent style by @petruki in #185
- Refactored switcher-client into separated modules by @petruki in #186
- Added Client.getExecution(switcher) by @petruki in #187
- Added switcher.defaultResult() to handle panic events by @petruki in #188
- Standardized callback for loadSnapshot and watchSnapshot by @petruki in #189
Full Changelog: v4.0.3...v4.1.0