Skip to content

Releases: switcherapi/switcher-client-js

v4.5.0

07 Oct 04:09
def41ff
Compare
Choose a tag to compare

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

09 Jul 03:02
bc41d1e
Compare
Choose a tag to compare

What's Changed

  • Renamed context attribute name to match effect (freeze) by @petruki in #207

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

05 Jul 20:31
1b95deb
Compare
Choose a tag to compare

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

28 Jun 20:10
25a7096
Compare
Choose a tag to compare

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

12 Dec 03:19
9bd839c
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.1.1...v4.2.0

v4.1.1

05 Jun 01:20
bfae09e
Compare
Choose a tag to compare

What's Changed

  • Fixes SnapshotAutoUpdater to prevent from exit when an error occurs by @petruki in #190

Full Changelog: v4.1.0...v4.1.1

v4.1.0

12 May 23:40
cea8ab8
Compare
Choose a tag to compare

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

v4.0.3

21 Apr 02:44
69aa051
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0.2...v4.0.3

v4.0.2

18 Apr 02:31
37f54b8
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0.1...v4.0.2

v4.0.1

17 Apr 04:21
abb61d9
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0.0...v4.0.1