Skip to content

1.0.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@yyx990803 yyx990803 released this 21 Sep 19:13
· 3591 commits to main since this release

This is the first beta release for 1.0.0, which implements all the changes / new features currently available in 1.0.0-alpha.5, but without the backwards compatibility. If your app works in 1.0.0-alpha.5 without raising any deprecation warnings, then it should work properly in 1.0.0-beta.1.

The API can be considered relatively stable. Breaking changes are still possible in new beta releases, but will be kept to a minimum with best effort.

Full Changes from 0.12.15

Breaking

General

  • The data binding syntax has been redesigned. Details
  • The prefix global config has been deprecated. All directives will now consistently use the v- prefix.
  • The strict global config has been deprecated. Asset resolution is now always in strict mode. Details
  • The interpolate global config has been deprecated. Use v-pre on elements that should be skipped by the template compiler.
  • The inherit option has been deprecated. Alway pass data to child components via props.
  • The $add method has been deprecated for both Vue instances and observed objects. Use $set instead. Details
  • Event propagation for events sent via $dispatch and $broadcast now stops when it triggers a handler for the first time, unless the handler explicitly returns true. Details

Directives

  • v-repeat has been deprecated in favor of v-for. Details
  • v-class and v-style have been deprecated in favor of the new binding syntax. Details
  • v-ref and v-el usage has changed. Details
  • v-component has been deprecated in favor of the is attribute. Details
  • v-on will now also listen to custom Vue events when used on a child component. Details
  • The key filter for v-on has been deprecated. Instead, use the new key modifer syntax. Details
  • The options param for <select v-model> has been deprecated. You can now just use v-for to render the options and it will work properly with the v-model on the containing <select> element.
  • The wait-for param for components has been deprecated in favor of the new activate lifecycle hook. Details

Component API

  • <content> outlet has been deprecated in favor of the new <slot> API. Details
  • Props syntax has changed as part of the new binding syntax.
  • $data can no longer be used as a prop.
  • Props with the data- prefix are no longer supported.
  • Literal props will no longer be auto-casted into Booleans or Numbers - they are now always passed down as Strings.

Non-Breaking Changes

  • vm.$log() messages now also include computed properties.
  • Prop expressions now support filters.