Skip to content

Releases: js2me/mobx-view-model

8.2.1

22 Sep 08:34
1426975

Choose a tag to compare

Patch Changes

  • b595d0f Thanks @js2me! - revert back build (fix yummies missing typings)

Changes: 8.2.0...8.2.1

8.2.0

22 Sep 07:30
1ccf0a2

Choose a tag to compare

Minor Changes

  • cd2f8dc Thanks @js2me! - migrate build from tsc -> zshy (same as tsc)

Changes: 8.1.0...8.2.0

8.1.0

19 Sep 15:37
c371b07

Choose a tag to compare

Minor Changes

Changes: 8.0.1...8.1.0

8.0.1

13 Sep 20:59
16d1297

Choose a tag to compare

Patch Changes

Changes: 8.0.0...8.0.1

8.0.0

01 Sep 12:49
5003e17

Choose a tag to compare

Major Changes

  • #24 16d7a26 Thanks @js2me! - removed all marked as deprecation properties and methods

    • Removed config property in ViewModelParams interface (renamed to vmConfig)
    • Removed linkStore method in ViewModelSimple interface (renamed to attachViewModelStore)
    • Removed type ComponentWithLazyViewModel (renamed to VMLazyComponent)
    • Removed type ComponentWithViewModel (renamed to VMComponent)
    • Removed params property in ViewModelBase class (renamed to vmParams)
  • #24 16d7a26 Thanks @js2me! - modified global payload processing

    Previosly viewModelsConfig haved the following configuration:

      comparePayload: 'strict',
      payloadObservable: 'ref',
      payloadComputed: false,

    So it was a bit performance overhead. Now it is:

      comparePayload: false,
      payloadComputed: 'struct',
      payloadObservable: 'ref',

Minor Changes

  • #24 16d7a26 Thanks @js2me! - added default implementation for generateId property in global viewModelsConfig

  • #24 16d7a26 Thanks @js2me! - id property now is optional for implementation for ViewModelSimple interface

    Now you can do not implement ViewModelSimple interface to work with this library:

    class MyVM {
      bar = '1'
    }
    ...
    const model = useCreateViewModel(MyVM);
    return <div>{model.bar}</div>;
    class MyVM {
      foo = '1';
    }
    ...
    const YouComponent = withViewModel(MyVM, ({ model }) => {
      return <div>{model.foo}</div>
    });
  • #24 16d7a26 Thanks @js2me! - parentViewModel property for ViewModelSimple interface

Patch Changes

  • #24 16d7a26 Thanks @js2me! - fixed typings for ParentViewModel generic type argument for all interfaces/classes (support AnyViewModelSimple)

Changes: 7.2.0...8.0.0

7.2.0

31 Aug 14:23
2a9d5dc

Choose a tag to compare

Minor Changes

Changes: 7.1.0...7.2.0

7.1.0

30 Aug 06:29
6a17acc

Choose a tag to compare

Minor Changes

  • 8e6a123 Thanks @js2me! - improved documentation for missing viewModels param error

Changes: 7.0.1...7.1.0

7.0.1

13 Aug 08:39
d18b9a7

Choose a tag to compare

Patch Changes

Changes: 7.0.0...7.0.1

7.0.0

05 Aug 13:32
c23dfe8

Choose a tag to compare

Major Changes

  • 30907fe Thanks @js2me! - modify internal ViewModel ids generation. Counters starts from 1 (previously 0) (generateVmId)

Minor Changes

  • 7692d08 Thanks @js2me! - added type guards isViewModel and isViewModelClass

  • 756e0fe Thanks @js2me! - passing props to ViewModelBase as ref

  • 7c82d2d Thanks @js2me! - protected props property for ViewModelBase as reference to original component props (only withViewModel feature)

Patch Changes

  • 7692d08 Thanks @js2me! - fix missing throwing exception in useViewModel hook

  • b8bdd77 Thanks @js2me! - refactored useCreateViewModel

  • b8bdd77 Thanks @js2me! - rename linkStore -> attachViewModelStore (ViewModelSimple)

Changes: 6.16.1...7.0.0

6.16.1

01 Aug 14:40
6ceba27

Choose a tag to compare

Patch Changes

  • 4793d23 Thanks @js2me! - fixed bug with predefined function in withViewModel HOC

  • 4793d23 Thanks @js2me! - typings for ViewModelSimple and withViewModel HOC

Changes: 6.16.0...6.16.1