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.63.1

Diff

Changelog

Source

0.63.1

  • Added FromSnapshotDefaultType<typeof props> and ToSnapshotDefaultType<typeof props> so the default type does not need to be repeated when using fromSnapshotProcessor / toSnapshotProcessor.
xaviergonz
published 0.63.0 •

Changelog

Source

0.63.0

  • [BREAKING CHANGE] The model override fromSnapshot has been removed in favor of fromSnapshotProcessor / toSnapshotProcessor options of Model / ExtendedModel. These allow you to set up pre/post snapshot processors for models.
xaviergonz
published 0.62.0 •

Changelog

Source

0.62.0

  • [BREAKING CHANGE] $modelId is no longer a requirement and will be no longer automatically added to models. If you want your models to keep using the old behavior (having a $modelId property) then add a [modelIdKey]: idProp or a $modelId: idProp property to them. Note that $modelId can still be used in instances to get/set the current ID property, just that it might be undefined (get) / throw (set) when there is none.
xaviergonz
published 0.61.3 •

Changelog

Source

0.61.3

  • Fix to avoid calling onAttachedToRootStore more more often than it should.
xaviergonz
published 0.61.2 •

Changelog

Source

0.61.2

  • Fixed a typing issue related to extending a class model with an idProp.
xaviergonz
published 0.61.1 •

Changelog

Source

0.61.1

  • Fixed types.model sometimes picking any as the model type.
  • Fixed type checking sometimes giving false errors upon reconciliation.
xaviergonz
published 0.61.0 •

Changelog

Source

0.61.0

  • Added withTransform(), a new way to do property transforms, as well as the pre-made transforms timestampToDateTransform, isoStringToDateTransform, objectToMapTransform, arrayToMapTransform and arrayToSetTransform. See the docs Maps, Sets, Dates section for more info.
  • Data models can now use default property initializers.
  • Added apply and applyComputed to contexts so that they can be used to share information with models on creation time (kind of like envs in Mobx-state-tree). See the context docs for more details.
  • Fixed an issue with asMap where the map would not get updated when the backing array/object changed.
  • Fixed an issue with asSet where the set would not get updated when the backing array changed.
xaviergonz
published 0.60.7 •

Changelog

Source

0.60.7

  • idProp now correctly handles withSetter.
xaviergonz
published 0.60.6 •

xaviergonz
published 0.60.5 •

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