Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This pull request updates the Switcher Client SDK for Deno to version 2.4.0 and refactors how snapshot data is handled throughout the codebase. The main change is the removal of the extra
dataproperty wrapper from snapshot objects, which simplifies the structure and usage of snapshots across the SDK. The changes affect core logic, tests, and configuration files.Snapshot Structure Refactor
dataproperty from all snapshot objects, so snapshots now directly contain thedomainproperty. This change is reflected across core files such assrc/client.ts,src/lib/remote.ts,src/lib/resolver.ts, andsrc/lib/snapshot.ts, as well as all test and example snapshot JSON files. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Core Logic Updates
snapshot.domaininstead ofsnapshot.data.domain). This affects methods for accessing the snapshot version, checking snapshot availability, resolving criteria, and validating switchers. [1] [2] [3] [4]Type and Interface Changes
Domainstructure, removing references toSnapshotDataand ensuring all functions and types useDomainas the main snapshot data type. [1] [2]Breaking change
Snapshot content before:
{ "data": { "domain": { "name": "switcher-domain", "activated": true, "group": [...] } } }Snapshot content now:
{ "domain": { "name": "switcher-domain", "activated": true, "group": [...] } }