-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(evolver): add frost and sandbox options to allow control over be…
…havior of input data with respect to output changes to default behavior, which changes how output behaves BREAKING CHANGE: by default, output is frozen and sandbox mode is copy
- Loading branch information
Jake Lauer
authored and
Jake Lauer
committed
Aug 1, 2024
1 parent
34fa279
commit 59a2bb8
Showing
13 changed files
with
365 additions
and
214 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import type { SandboxParams } from "theseus-sandbox"; | ||
|
||
export interface SandboxableParams { | ||
/** | ||
* Configuration for sandboxing the data object. | ||
*/ | ||
sandbox?: Partial<SandboxParams>; | ||
frost?: { | ||
/** | ||
* Whether to disable automatic frosting of the provided data object. By default, the data object will be | ||
* automatically frosted when passed to an Evolver and the output data will remain frosty in order to | ||
* provide maximal immutability. Manually defrosting the resulting data object is still possible. | ||
* | ||
* If `true`, the data object will not be automatically frosted, and immutability will not be guaranteed. | ||
* The returned data object's frost status will be the same as the input data object's frost status. | ||
* | ||
* @default false | ||
*/ | ||
manual?: boolean; | ||
} | ||
} |
Oops, something went wrong.