You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

mobx-keystone

Package Overview
Dependencies
Maintainers
0
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-keystone - npm Package Compare versions

Comparing version

to
1.11.3

4

CHANGELOG.md
# Change Log
## 1.11.3
- Fix: observable data will now be turned into plain data when frozen, which also fixes an issue when undoing/redoing changes to frozen objects.
## 1.11.2

@@ -4,0 +8,0 @@

2

package.json
{
"name": "mobx-keystone",
"version": "1.11.2",
"version": "1.11.3",
"description": "A MobX powered state management solution based on data trees with first class support for TypeScript, snapshots, patches and much more",

@@ -5,0 +5,0 @@ "keywords": [

@@ -0,1 +1,2 @@

import { isObservable, toJS } from "mobx"
import { getGlobalConfig } from "../globalConfig"

@@ -43,2 +44,6 @@ import type { SnapshotInOfFrozen } from "../snapshot"

constructor(dataToFreeze: T, checkMode: FrozenCheckMode = FrozenCheckMode.DevModeOnly) {
if (isObservable(dataToFreeze)) {
dataToFreeze = toJS(dataToFreeze)
}
const check =

@@ -45,0 +50,0 @@ checkMode === FrozenCheckMode.On || (inDevMode && checkMode === FrozenCheckMode.DevModeOnly)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display