From c86e1023e9814bcb885b78a41e771742062758c2 Mon Sep 17 00:00:00 2001 From: NataliaTepluhina Date: Wed, 15 Jul 2020 13:13:43 +0300 Subject: [PATCH 1/3] feat: added removed and breaking features --- src/guide/migration/introduction.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/guide/migration/introduction.md b/src/guide/migration/introduction.md index 91322fb8cf..745ba672d8 100644 --- a/src/guide/migration/introduction.md +++ b/src/guide/migration/introduction.md @@ -4,9 +4,7 @@ We're glad you asked! The answer is no. We've gone to great lengths to ensure most of the API is the same and the core concepts haven't changed. It's long because we like to offer very detailed explanations and include a lot of examples. Rest assured, **this is not something you have to read from top to bottom!** -[//]: # 'TODO: update composition API with a link' - -Possibly the biggest change is our new Composition API, which is entirely additive- the previous Options API will continue to be supported, as the Composition API is an advanced feature. +Possibly the biggest change is our new [Composition API](/guide/composition-api-introduction.html), which is entirely additive- the previous Options API will continue to be supported, as the Composition API is an advanced feature. ## Overview @@ -15,8 +13,8 @@ Possibly the biggest change is our new Composition API, which is entirely additi Some of the new features to keep an eye on in Vue 3 include: - [Composition API](/guide/composition-api-introduction.html) -- [Teleport](/guide/teleport) -- [Fragments](/guide/migration/fragments) +- [Teleport](/guide/teleport.html) +- [Fragments](/guide/migration/fragments.html) - [Emits Component Option](/guide/component-custom-events.html) - `createRenderer` API from `@vue/runtime-core` to create custom renderers @@ -24,7 +22,18 @@ Some of the new features to keep an eye on in Vue 3 include: The following consists a list of breaking changes from v2: -- **keyCode support as `v-on` modifiers.** For more information, [see in-depth explanation](/guides/migration/keycodes.html) +- [Global Vue API is changed to use an application instance](/guide/migration/global-api.html) +- [Global and internal APIs have been restructured to be tree-shakable](/guide/migration/treeshaking.html) +- [`model` component option and `v-bind`'s `sync` modifier are removed in favor of `v-model` arguments](/guide/migration/v-model.html) +- [Functional components can only be created using a plain function](/guide/migration/functional-components.html) +- [Async components now require `defineAsyncComponent` method to be created](/guide/migration/async-components.html) +- [Component data option should always be declared as a function](/guide/migration/data-option.html) + +### Removed + +- [`keyCode` support as `v-on` modifiers](/guides/migration/keycodes.html) +- [$on, $off and $once instance methods](/guide/migration/events-api.html) +- [Filters](/guide/migration/filters.html) ## FAQ From 4eac48d67fecf50cfbefa6220b489f8a32891bb7 Mon Sep 17 00:00:00 2001 From: NataliaTepluhina Date: Wed, 15 Jul 2020 13:21:44 +0300 Subject: [PATCH 2/3] fix: removed outdated info from installation --- src/guide/installation.md | 207 +--------------------------- src/guide/migration/introduction.md | 16 +-- 2 files changed, 9 insertions(+), 214 deletions(-) diff --git a/src/guide/installation.md b/src/guide/installation.md index 04b6f930bb..7586007b45 100644 --- a/src/guide/installation.md +++ b/src/guide/installation.md @@ -2,7 +2,7 @@ ## Release Notes -Latest beta version: 3.0.0-beta.14 +Latest beta version: 3.0.0-beta.121 Detailed release notes for each version are available on [GitHub](https://github.com/vuejs/vue-next/releases). @@ -22,18 +22,13 @@ For prototyping or learning purposes, you can use the latest version with: For production, we recommend linking to a specific version number and build to avoid unexpected breakage from newer versions. -Make sure to read about [the different builds of Vue](#explanation-of-different-builds) and use the **production -version** in your published site, replacing `vue.js` with `vue.min.js`. This is a smaller build optimized for speed instead of development experience. - ## NPM -> Currently not available for Vue 3 - NPM is the recommended installation method when building large scale applications with Vue. It pairs nicely with module bundlers such as [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/). Vue also provides accompanying tools for authoring [Single File Components](../guide/single-file-component.html). ```bash # latest stable -$ npm install vue +$ npm install vue@next ``` ## CLI @@ -45,201 +40,3 @@ The CLI assumes prior knowledge of Node.js and the associated build tools. If yo ::: For beta, Vue CLI now has experimental support via [vue-cli-plugin-vue-next](https://github.com/vuejs/vue-cli-plugin-vue-next). - -## Explanation of Different Builds - -In the [`dist/` directory of the NPM package](TODO) you will find many different builds of Vue.js. Here's an overview of the difference between them: - -| | UMD | CommonJS | ES Module (for bundlers) | ES Module (for browsers) | -| ----------------------------- | ------------------ | --------------------- | ------------------------ | ------------------------ | -| **Full** | vue.js | vue.common.js | vue.esm.js | vue.esm.browser.js | -| **Runtime-only** | vue.runtime.js | vue.runtime.common.js | vue.runtime.esm.js | - | -| **Full (production)** | vue.min.js | - | - | vue.esm.browser.min.js | -| **Runtime-only (production)** | vue.runtime.min.js | - | - | - | - -### Terms - -- **Full**: builds that contain both the compiler and the runtime. - -- **Compiler**: code that is responsible for compiling template strings into JavaScript render functions. - -- **Runtime**: code that is responsible for creating Vue instances, rendering and patching virtual DOM, etc. Basically everything minus the compiler. - -- **[UMD](https://github.com/umdjs/umd)**: UMD builds can be used directly in the browser via a `