Nativescript Vue Versions Save

Native mobile applications using Vue and NativeScript.

3.0.0-rc.2

2 weeks ago

$showModal changes

If a closeCallback is passed to the $showModal options, it will now be called with all the arguments passed to $modal.close or $closeModal. Previously this was never called.

The props types are automatically inferred unless there's a first generic passed in.

/* Without a generic */
$showModal(Home, {
  props: {
     // this infers props/events from the "Home" component and provides intellisense.
  },
  closeCallback(data, ...args) {
    // data type is any
    // args type is any[]
  }
}).then(data => {
  // data type is any
});
/* With a generic */
type Example = { foo: string; };
$showModal<Example>(Home, {
  props: {
    // this is `any` because we explicitly passed in `<Example>` as the generic above.
  }
  closeCallback(data, ...args) {
    // data type is Example
    // args type is any[]
    // this is called with the closeModal data + additional args
  }
}).then(data => { 
  // data type is Example
  // this is called with only the 1st argument passed to closeModal because promises can't resolve multiple values.
});

$navigateTo changes

Similarly to $showModal the type of props is now inferred.

Full Changelog: https://github.com/nativescript-vue/nativescript-vue/compare/3.0.0-rc.1...3.0.0-rc.2

3.0.0-rc.1

2 weeks ago

What's Changed

New Contributors

Full Changelog: https://github.com/nativescript-vue/nativescript-vue/commits/3.0.0-rc.1

v2.9.3

1 year ago

2.9.3 (2022-08-09)

Features

  • template-compiler: include sfc tag locations (792e6ba)

v2.9.1

2 years ago

2.9.1 (2022-03-08)

Bug Fixes

v2.9.0

3 years ago

2.9.0 (2021-04-01)

Features

v2.8.4

3 years ago

2.8.4 (2021-03-10)

Bug Fixes

  • child of NavigationEntry key generated in render (#813) (#814) (ee47fc1)
  • incorrect nextSibling of prevSibling in appendChild/insertBefore (#811) (5156f20), closes #809 #809

v2.7.2

3 years ago

2.7.2 (2021-02-10)

Bug Fixes

  • patchTemplate should flush pending callbacks (#790) (199a31a)

v2.8.3

3 years ago

2.8.3 (2020-11-24)

Bug Fixes

  • patchTemplate should flush pending callbacks (9125286)

v2.8.2

3 years ago

2.8.2 (2020-11-21)

Bug Fixes

v2.8.1

3 years ago

2.8.1 (2020-09-03)

Bug Fixes

  • use preferred imports for ns7 (4c38dfa)