Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mobx-keystone

Package Overview
Dependencies
Maintainers
1
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-keystone - npm Package Versions

1
20

0.55.0

Diff

Changelog

Source

0.55.0

  • [BREAKING CHANGE] setterAction: true prop option is now prop().withSetter()
  • [BREAKING CHANGE] setterAction: "assign" prop option is now prop().withSetter("assign")
  • [BREAKING CHANGE] Functional models have now been removed in favor of Data models, which serve a similar function while having a syntax closer to standard class models. See the relevant new section in the docs for more info.
  • [BREAKING CHANGE] Property transforms have been removed (including 'prop_mapArray', 'prop_setArray', ...). Consider switching to 'objectMap', 'asMap', etc. or a getter/setter with a transform inside pattern.
  • [BREAKING CHANGE] Property transform decorators have been removed.
  • [BREAKING CHANGE - types] Some type helpers have been renamed: ModelPropsData / ModelInstanceData -> ModelData, ModelPropsCreationData / ModelInstanceCreationData -> ModelCreationData.
  • onSnapshot now also takes a function that returns a node.
  • Added valueType option to Model/ExtendedModel so that class models of that kind automatically get auto-cloned when assigned to a property/array/etc., useful for example for primitive data structures such as points, colors, etc. Check the relevant section of the docs for more info
xaviergonz
published 0.54.0 •

Changelog

Source

0.54.0

  • Added withGroupFlow to UndoManager so that several async actions can be undone/redone as a single step.
xaviergonz
published 0.53.0 •

Changelog

Source

0.53.0

  • [BREAKING CHANGE] Now requires TypeScript 4.2.0.
  • [BREAKING CHANGE] Class model setterAction: true prop option will now generate a setter like setX automatically instead of making the property assignable. To get the old behaviour use setterAction: "assign" instead.
  • [BREAKING CHANGE] Functional model setterActions now just take the field names rather than an object with the setter mapping.
  • Fixed an issue when using ExtendedModel with abstract classes in TypeScript 4.2.0.
  • Fixed committing non-idempotent sandbox changes to the original subtree.
xaviergonz
published 0.52.0 •

Changelog

Source

0.52.0

  • Added withGroup to UndoManager so that several sync actions can be undone/redone as a single step.
xaviergonz
published 0.51.1 •

Changelog

Source

0.51.1

  • Fix for broken library build.
xaviergonz
published 0.51.0 •

Changelog

Source

0.51.0

  • Added withoutUndo and isUndoRecordingDisabled to UndoManager. Consider using those instead of the global withoutUndo if more precision over which UndoManager to skip recording to is needed.
xaviergonz
published 0.50.0 •

Changelog

Source

0.50.0

  • It is now possible to use a custom property as model id instead of $modelId by assigning to a property the new idProp value. In any case, model instances can still use model.$modelId to read/write this custom property if desired.
xaviergonz
published 0.49.0 •

Changelog

Source

0.49.0

  • [BREAKING CHANGE] The sandbox manager's withSandbox method now requires an array of nodes from the original tree and the corresponding sandbox nodes are now positional arguments of the callback function.
  • Fix for a possible issue when using applySnapshot with hot reloading.
xaviergonz
published 0.48.5 •

Changelog

Source

0.48.5

  • Fixed incompatibility with MobX >= 6.1 (in order to fix it $modelId is now an enumerable property though).
  • Fixed the sandbox to group commit patches so that the undo manager will undo the commit in a single step.
  • Added assign to fnObject.
xaviergonz
published 0.48.4 •

Changelog

Source

0.48.4

  • Fixed TypeError path for refinement types.
  • Fix for the undo manager so it will correctly group reference invalidations inside the action that caused it.
  • ExtendedModel will now throw when the baseModel argument is not a model class.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc