Skip to content

Releases: Facepunch/react-class-model

v0.0.16

04 Jul 14:31

Choose a tag to compare

  • Add a proxiedValue field to the proxy objects returned by use and watch hooks to get the unproxied model
  • Improved TypeScript typings to better show when you are working with a proxy or not

v0.0.15

04 Jul 14:29

Choose a tag to compare

  • Breaking: use and watch hooks now return proxy mirrors to the model
  • Automatically get rid of redundant re-renders by tracking what fields are referenced during renders

v0.0.13

04 Jul 12:55

Choose a tag to compare

  • Fix errors in environments where window is not defined

v0.0.12

04 Jul 12:53

Choose a tag to compare

  • Breaking: useModel will now throw an exception if the model is not available in context
  • defineModel can now take the model as an argument (this is preferred over the previous way)
  • watchModel now handles null/undefined values

v0.0.10

04 Jul 12:50

Choose a tag to compare

  • Package to CommonJS instead of as a module

v0.0.8

10 Jun 01:53

Choose a tag to compare

Make watchModel support watching an array of models as an overload

v0.0.7

10 Jun 01:53

Choose a tag to compare

Support serializing and deserializing Map<string,T> values

v0.0.6

09 Jun 21:19

Choose a tag to compare

Fix fields not being copied over from model instances

v0.0.5

09 Jun 21:19

Choose a tag to compare

Replacing serialization binder/field mapping logic with straight serlalize/deserialize functions
Add unit tests for serialization code
(Skipped 0.0.4 cause it got messed up on npm)

v0.0.3

09 Jun 21:18

Choose a tag to compare

Updated dependencies to make more sense for people using the package
Add in some TSDoc documentation for most public things because I've forgotten what some things did over time