Skip to content

Commit 1c20b6d

Browse files
authored
Merge pull request #113 from ordago/updates-broken-links
updates broken links
2 parents ebd8d32 + 3fc9fca commit 1c20b6d

11 files changed

+98
-98
lines changed

README.md

+26-26
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
> `npm/yarn` install is recommended. Users can also try beta version from GitHub
3737
38-
#### Install from `npm/yarn`
38+
#### Install from `npm/yarn`
3939

4040
``` bash
4141
npm install @originjs/vue-codemod -g
@@ -81,7 +81,7 @@ npx vue-codemod <path> -t/-a [transformation params][...additional options]
8181

8282
1. `<path>` indicates the path of execution, which can be files and folders
8383
2. `-a` means executing all rules.
84-
3. `-t` means executing one specific rule (Conflicts with `-a`). When `-t` is used, parameter is required.
84+
3. `-t` means executing one specific rule (Conflicts with `-a`). When `-t` is used, parameter is required.
8585

8686
#### Execute All Rules
8787

@@ -156,7 +156,7 @@ index: 1
156156
position: '[33,0]',
157157
name: 'remove Vue(global api)',
158158
suggest: "The rule of thumb is any APIs that globally mutate Vue's behavior are now moved to the app instance.",
159-
website: 'https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp'
159+
website: 'https://v3-migration.vuejs.org/breaking-changes/global-api.html#a-new-global-api-createapp'
160160
}
161161
```
162162

@@ -206,36 +206,36 @@ We forked [vue2-element-touzi-admin](https://github.com/wdlhao/vue2-element-touz
206206

207207
| Rule Names | Descriptions or links |
208208
| --------------------------------- | ------------------------------------------------------------ |
209-
| new-component-api | https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp |
209+
| new-component-api | https://v3-migration.vuejs.org/breaking-changes/global-api.html#a-new-global-api-createapp |
210210
| vue-class-component-v8 | https://github.com/vuejs/vue-class-component/issues/406 |
211-
| new-global-api | https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp |
211+
| new-global-api | https://v3-migration.vuejs.org/breaking-changes/global-api.html#a-new-global-api-createapp |
212212
| vue-router-v4 | https://next.router.vuejs.org/guide/migration/index.html#new-router-becomes-createrouter<br>https://next.router.vuejs.org/guide/migration/index.html#new-history-option-to-replace-mode<br>https://next.router.vuejs.org/guide/migration/index.html#replaced-onready-with-isready |
213213
| vuex-v4 | new Store (...) => createStore (...) |
214214
| define-component | Vue.extend (...) => defineComponent (...) |
215-
| new-vue-to-create-app | https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp |
216-
| scoped-slots-to-slots | https://v3.vuejs.org/guide/migration/slots-unification.html#overview |
217-
| new-directive-api | https://v3.vuejs.org/guide/migration/custom-directives.html#overview |
218-
| remove-vue-set-and-delete | https://v3.vuejs.org/guide/migration/introduction.html#removed-apis |
219-
| rename-lifecycle | https://v3.vuejs.org/guide/migration/introduction.html#other-minor-changes |
220-
| add-emit-declaration | https://v3.vuejs.org/guide/migration/emits-option.html#overview |
221-
| tree-shaking | https://v3.vuejs.org/guide/migration/global-api-treeshaking.html |
222-
| v-model | https://v3.vuejs.org/guide/migration/v-model.html#overview |
223-
| render-to-resolveComponent | https://v3.vuejs.org/guide/migration/render-function-api.html#registered-component |
224-
| remove-contextual-h-from-render | https://v3.vuejs.org/guide/migration/render-function-api.html#render-function-argument |
225-
| remove-production-tip | https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp |
215+
| new-vue-to-create-app | https://v3-migration.vuejs.org/breaking-changes/global-api.html#a-new-global-api-createapp |
216+
| scoped-slots-to-slots | https://v3-migration.vuejs.org/breaking-changes/slots-unification.html#overview |
217+
| new-directive-api | https://v3-migration.vuejs.org/breaking-changes/custom-directives.html#overview |
218+
| remove-vue-set-and-delete | https://v3-migration.vuejs.org/breaking-changes/#removed-apis |
219+
| rename-lifecycle | https://v3-migration.vuejs.org/breaking-changes/#other-minor-changes |
220+
| add-emit-declaration | https://v3-migration.vuejs.org/breaking-changes/emits-option.html |
221+
| tree-shaking | https://v3-migration.vuejs.org/breaking-changes/global-api-treeshaking.html |
222+
| v-model | https://v3-migration.vuejs.org/breaking-changes/v-model.html#overview |
223+
| render-to-resolveComponent | https://v3-migration.vuejs.org/breaking-changes/render-function-api.html#registered-component |
224+
| remove-contextual-h-from-render | https://v3-migration.vuejs.org/breaking-changes/render-function-api.html#render-function-argument |
225+
| remove-production-tip | https://v3-migration.vuejs.org/breaking-changes/global-api.html#a-new-global-api-createapp |
226226
| remove-trivial-root | createApp ({ render: () => h (App) }) => createApp (App) |
227227
| vue-as-namespace-import | import Vue from "vue" => import * as Vue from "vue" |
228-
| slot-attribute | https://vuejs.org/v2/guide/components-slots.html#Deprecated-Syntax |
228+
| slot-attribute | https://v2.vuejs.org/v2/guide/components-slots.html#Deprecated-Syntax |
229229
| slot-default | If component tag did not contain a `<slot>` element, any content provided between its opening and closing tag would be discarded. |
230-
| slot-scope-attribute | https://vuejs.org/v2/guide/components-slots.html#Scoped-Slots-with-the-slot-scope-Attribute |
231-
| v-for-template-key | https://v3.vuejs.org/guide/migration/key-attribute.html#overview |
232-
| v-else-if-key | https://v3.vuejs.org/guide/migration/key-attribute.html#overview |
233-
| transition-group-root | https://v3.vuejs.org/guide/migration/transition-group.html#overview |
234-
| v-bind-order-sensitive | https://v3.vuejs.org/guide/migration/v-bind.html#overview |
235-
| v-for-v-if-precedence-changed | https://v3.vuejs.org/guide/migration/v-if-v-for.html#overview |
236-
| remove-listeners | https://v3.vuejs.org/guide/migration/listeners-removed.html#overview |
237-
| v-bind-sync | https://v3.vuejs.org/guide/migration/v-model.html#overview |
238-
| remove-v-on-native | https://v3.vuejs.org/guide/migration/v-on-native-modifier-removed.html#overview |
230+
| slot-scope-attribute | https://v2.vuejs.org/v2/guide/components-slots.html#Scoped-Slots |
231+
| v-for-template-key | https://v3-migration.vuejs.org/breaking-changes/key-attribute.html#with-template-v-for |
232+
| v-else-if-key | https://v3-migration.vuejs.org/breaking-changes/key-attribute.html#on-conditional-branches |
233+
| transition-group-root | https://v3-migration.vuejs.org/breaking-changes/transition-group.html#overview |
234+
| v-bind-order-sensitive | https://v3-migration.vuejs.org/breaking-changes/v-bind.html#overview |
235+
| v-for-v-if-precedence-changed | https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html#overview |
236+
| remove-listeners | https://v3-migration.vuejs.org/breaking-changes/listeners-removed.html#overview |
237+
| v-bind-sync | https://v3-migration.vuejs.org/breaking-changes/v-model.html#overview |
238+
| remove-v-on-native | https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html#overview |
239239
| router-link-event-tag | https://next.router.vuejs.org/guide/migration/index.html#removal-of-event-and-tag-props-in-router-link |
240240
| router-link-exact | https://next.router.vuejs.org/guide/migration/index.html#removal-of-the-exact-prop-in-router-link |
241241
| router-view-keep-alive-transition | https://next.router.vuejs.org/guide/migration/index.html#router-view-keep-alive-and-transition |

README_ZH.md

+24-24
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ index: 1
147147
position: '[33,0]',
148148
name: 'remove Vue(global api)',
149149
suggest: "The rule of thumb is any APIs that globally mutate Vue's behavior are now moved to the app instance.",
150-
website: 'https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp'
150+
website: 'https://v3-migration.vuejs.org/breaking-changes/global-api.html#a-new-global-api-createapp'
151151
}
152152
```
153153

@@ -197,36 +197,36 @@ Examples:
197197

198198
| 规则名称 | 描述或链接 |
199199
| --------------------------------- | ------------------------------------------------------------ |
200-
| new-component-api | https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp |
200+
| new-component-api | https://v3-migration.vuejs.org/breaking-changes/global-api.html#a-new-global-api-createapp |
201201
| vue-class-component-v8 | https://github.com/vuejs/vue-class-component/issues/406 |
202-
| new-global-api | https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp |
202+
| new-global-api | https://v3-migration.vuejs.org/breaking-changes/global-api.html#a-new-global-api-createapp |
203203
| vue-router-v4 | https://next.router.vuejs.org/guide/migration/index.html#new-router-becomes-createrouter<br>https://next.router.vuejs.org/guide/migration/index.html#new-history-option-to-replace-mode<br>https://next.router.vuejs.org/guide/migration/index.html#replaced-onready-with-isready |
204204
| vuex-v4 | new Store (...) => createStore (...) |
205205
| define-component | Vue.extend (...) => defineComponent (...) |
206-
| new-vue-to-create-app | https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp |
207-
| scoped-slots-to-slots | https://v3.vuejs.org/guide/migration/slots-unification.html#overview |
208-
| new-directive-api | https://v3.vuejs.org/guide/migration/custom-directives.html#overview |
209-
| remove-vue-set-and-delete | https://v3.vuejs.org/guide/migration/introduction.html#removed-apis |
210-
| rename-lifecycle | https://v3.vuejs.org/guide/migration/introduction.html#other-minor-changes |
211-
| add-emit-declaration | https://v3.vuejs.org/guide/migration/emits-option.html#overview |
212-
| tree-shaking | https://v3.vuejs.org/guide/migration/global-api-treeshaking.html |
213-
| v-model | https://v3.vuejs.org/guide/migration/v-model.html#overview |
214-
| render-to-resolveComponent | https://v3.vuejs.org/guide/migration/render-function-api.html#registered-component |
215-
| remove-contextual-h-from-render | https://v3.vuejs.org/guide/migration/render-function-api.html#render-function-argument |
216-
| remove-production-tip | https://v3.vuejs.org/guide/migration/global-api.html#a-new-global-api-createapp |
206+
| new-vue-to-create-app | https://v3-migration.vuejs.org/breaking-changes/global-api.html#a-new-global-api-createapp |
207+
| scoped-slots-to-slots | https://v3-migration.vuejs.org/breaking-changes/slots-unification.html#overview |
208+
| new-directive-api | https://v3-migration.vuejs.org/breaking-changes/custom-directives.html#overview |
209+
| remove-vue-set-and-delete | https://v3-migration.vuejs.org/breaking-changes/#removed-apis |
210+
| rename-lifecycle | https://v3-migration.vuejs.org/breaking-changes/#other-minor-changes |
211+
| add-emit-declaration | https://v3-migration.vuejs.org/breaking-changes/emits-option.html |
212+
| tree-shaking | https://v3-migration.vuejs.org/breaking-changes/global-api-treeshaking.html |
213+
| v-model | https://v3-migration.vuejs.org/breaking-changes/v-model.html#overview |
214+
| render-to-resolveComponent | https://v3-migration.vuejs.org/breaking-changes/render-function-api.html#registered-component |
215+
| remove-contextual-h-from-render | https://v3-migration.vuejs.org/breaking-changes/render-function-api.html#render-function-argument |
216+
| remove-production-tip | https://v3-migration.vuejs.org/breaking-changes/global-api.html#a-new-global-api-createapp |
217217
| remove-trivial-root | createApp ({ render: () => h (App) }) => createApp (App) |
218218
| vue-as-namespace-import | import Vue from "vue" => import * as Vue from "vue" |
219-
| slot-attribute | https://vuejs.org/v2/guide/components-slots.html#Deprecated-Syntax |
219+
| slot-attribute | https://v2.vuejs.org/v2/guide/components-slots.html#Deprecated-Syntax |
220220
| slot-default | If component tag did not contain a `<slot>` element, any content provided between its opening and closing tag would be discarded. |
221-
| slot-scope-attribute | https://vuejs.org/v2/guide/components-slots.html#Scoped-Slots-with-the-slot-scope-Attribute |
222-
| v-for-template-key | https://v3.vuejs.org/guide/migration/key-attribute.html#overview |
223-
| v-else-if-key | https://v3.vuejs.org/guide/migration/key-attribute.html#overview |
224-
| transition-group-root | https://v3.vuejs.org/guide/migration/transition-group.html#overview |
225-
| v-bind-order-sensitive | https://v3.vuejs.org/guide/migration/v-bind.html#overview |
226-
| v-for-v-if-precedence-changed | https://v3.vuejs.org/guide/migration/v-if-v-for.html#overview |
227-
| remove-listeners | https://v3.vuejs.org/guide/migration/listeners-removed.html#overview |
228-
| v-bind-sync | https://v3.vuejs.org/guide/migration/v-model.html#overview |
229-
| remove-v-on-native | https://v3.vuejs.org/guide/migration/v-on-native-modifier-removed.html#overview |
221+
| slot-scope-attribute | https://v2.vuejs.org/v2/guide/components-slots.html#Scoped-Slots |
222+
| v-for-template-key | https://v3-migration.vuejs.org/breaking-changes/key-attribute.html#with-template-v-for |
223+
| v-else-if-key | https://v3-migration.vuejs.org/breaking-changes/key-attribute.html#on-conditional-branches |
224+
| transition-group-root | https://v3-migration.vuejs.org/breaking-changes/transition-group.html#overview |
225+
| v-bind-order-sensitive | https://v3-migration.vuejs.org/breaking-changes/v-bind.html#overview |
226+
| v-for-v-if-precedence-changed | https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html#overview |
227+
| remove-listeners | https://v3-migration.vuejs.org/breaking-changes/listeners-removed.html#overview |
228+
| v-bind-sync | https://v3-migration.vuejs.org/breaking-changes/v-model.html#overview |
229+
| remove-v-on-native | https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html#overview |
230230
| router-link-event-tag | https://next.router.vuejs.org/guide/migration/index.html#removal-of-event-and-tag-props-in-router-link |
231231
| router-link-exact | https://next.router.vuejs.org/guide/migration/index.html#removal-of-the-exact-prop-in-router-link |
232232
| router-view-keep-alive-transition | https://next.router.vuejs.org/guide/migration/index.html#router-view-keep-alive-and-transition |

docs/manual-guide.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Please refer to [Vue2ToVue3](https://github.com/zdravkov/Vue2ToVue3) to see the
4949

5050
### Global API
5151

52-
[Migration Guide from Vue.js team](https://v3.vuejs.org/guide/migration/global-api.html)
52+
[Migration Guide from Vue.js team](https://v3-migration.vuejs.org/breaking-changes/global-api.html)
5353

5454
- Transform `Global API` to a plugin
5555

@@ -128,7 +128,7 @@ Please refer to [Vue2ToVue3](https://github.com/zdravkov/Vue2ToVue3) to see the
128128

129129
### Slot
130130

131-
Please refer to [Migration Guide from Vue.js team](https://vuejs.org/v2/guide/components-slots.html#Deprecated-Syntax) for more details.
131+
Please refer to [Migration Guide from Vue.js team](https://v2.vuejs.org/v2/guide/components-slots.html#Deprecated-Syntax) for more details.
132132

133133
`slot` attributes are deprecated since Vue 2.6.0. `v-slot` was introduced for named and scoped slots. In `vue-codemod` , the `slot-attribute` rule can transform `slot` attributes to `v-slot` syntax:
134134

@@ -185,17 +185,17 @@ We need to manually put `v-if` and `v-else` into one `<template>` tag.
185185

186186
#### Partial Filter
187187

188-
Please refer to [Migration Guide from Vue.js team](https://v3.vuejs.org/guide/migration/filters.html) for more details.
188+
Please refer to [Migration Guide from Vue.js team](https://v3-migration.vuejs.org/breaking-changes/filters.html) for more details.
189189

190190
#### Global Filter
191191

192-
Please refer to [Migration Guide from Vue.js team](https://v3.vuejs.org/guide/migration/filters.html#global-filters) for more details.
192+
Please refer to [Migration Guide from Vue.js team](https://v3-migration.vuejs.org/breaking-changes/filters.html#global-filters) for more details.
193193

194194
### Events API
195195

196196
In Vue 3, `$on`, `$off` and `$once` instance methods are removed. Component instances no longer implement the event emitter interface, thus it is no longer possible to use these APIs to listen to a component's own emitted events from within a component. The event bus pattern can be replaced by using an external library implementing the event emitter interface, for example [mitt](https://github.com/developit/mitt) or [tiny-emitter](https://github.com/scottcorgan/tiny-emitter).
197197
198-
Please refer to [Migration Guide from Vue.js team](https://v3.vuejs.org/guide/migration/events-api.html) for more details.
198+
Please refer to [Migration Guide from Vue.js team](https://v3-migration.vuejs.org/breaking-changes/events-api.html) for more details.
199199
200200
- Add `mitt` dependencies
201201

0 commit comments

Comments
 (0)