Skip to content

Releases: switcherapi/switcher-client-deno

v2.4.0

07 Oct 04:14
5c58255

Choose a tag to compare

What's Changed

  • chore: replaced stmt with snapshotVersion (bump Deno v.2.4.5) by @petruki in #94
  • chore: fixes code smells by @petruki in #95
  • feat: removed data attribute from snapshot by @petruki in #96

Breaking change

Snapshot content before:

{
   "data": {
        "domain": {
            "name": "switcher-domain",
            "activated": true,
            "group": [...]
        }
    }
}

Snapshot content now:

{
    "domain": {
        "name": "switcher-domain",
        "activated": true,
        "group": [...]
    }
}

Full Changelog: v2.3.1...v2.4.0

v2.3.1

09 Jul 03:06
7ec968b

Choose a tag to compare

What's Changed

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

Breaking change

Replace optional flag static with freeze, e.g.

Client.buildContext({ url, apiKey, domain, component, environment }, { local, freeze: true });

Full Changelog: v2.3.0...v2.3.1

v2.3.0

05 Jul 20:41
faab36f

Choose a tag to compare

What's Changed

  • Major improvement on performance - added static context option by @petruki in #89
  • Added Client.snapshotVersion(), replaced snapshot() for security matters by @petruki in #90
  • Improved Switcher implementation, optimizaed for sync/async usage by @petruki in #91
  • chore: moved snapshotWatcher from client to lib by @petruki in #92

Full Changelog: v2.2.0...v2.3.0

v2.2.0

28 Jun 02:12
14c6031

Choose a tag to compare

What's Changed

  • Fixed circular dependency issues and other code smells by @petruki in #84
  • Added context configuration managed snapshotWatcher option by @petruki in #85
  • Added context configuration to allow or bypass Relay check when local by @petruki in #86
  • chore: refactored Switcher class for better SoC by @petruki in #87
  • Major refactory: improved resolver, remote and overall error handling by @petruki in #88

Full Changelog: v2.1.0...v2.2.0

v2.1.0

10 Dec 02:32
7522aa3

Choose a tag to compare

What's Changed

  • Bump std/fs@1.0.2, upgraded Deno CI runtime to v1.46.2 by @petruki in #76
  • Bump std/fs@1.0.4 by @petruki in #77
  • Added support to Deno v2 by @petruki in #78
  • Bump deps - CI Deno runtime to 2.0.4 by @petruki in #79
  • Added Client.assume:when criteria to bypass Switcher results by @petruki in #80
  • Bump Deno runtime to 2.1.3 and dev deps deps by @petruki in #81
  • chore: fixes Sonar action by @petruki in #82

Full Changelog: v2.0.2...v2.1.0

v2.0.2

04 Jun 02:29
282bf2b

Choose a tag to compare

What's Changed

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

Full Changelog: v2.0.1...v2.0.2

v2.0.1

17 May 03:55
96d1f9a

Choose a tag to compare

What's Changed

  • Fixes loadSnapshot option arguments by @petruki in #74

Full Changelog: v2.0.0...v2.0.1

v2.0.0

15 May 03:52
a47caa0

Choose a tag to compare

What's Changed

  • Fixes snapshot path when missing slash by @petruki in #67
  • Closes #68 - Replaced check arguments by fluent style by @petruki in #69
  • Refactored switcher-client into separated modules by @petruki in #70
  • Added Client.getExecution(switcher) by @petruki in #71
  • Added switcher.defaultResult() to handle panic events by @petruki in #72
  • Standardized callback for watchSnapshot and scheduleSnapshotAutoUpdate by @petruki in #73

Full Changelog: v1.1.0...v2.0.0

v1.1.0

05 May 06:39
4ac0986

Choose a tag to compare

What's Changed

  • chore: Added publish to JSR workflow by @petruki in #61
  • Replaced hardcode deps to Deno managed JSR modules by @petruki in #62
  • Fixes import deps, improved default context/options assignment by @petruki in #63
  • Improved async error handling, added Switcher.subscribeNotifyError by @petruki in #64
  • chore: replaced verbose stmt by function by @petruki in #65
  • Project cleanup, included types to export by @petruki in #66

Full Changelog: v1.0.9...v1.1.0

v1.0.9

23 Apr 02:42
b4917a1

Choose a tag to compare

What's Changed

Full Changelog: v1.0.7...v1.0.9