vue 2.5.12 → 2.5.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -58
- package/dist/vue.common.js +443 -337
- package/dist/vue.esm.js +443 -337
- package/dist/vue.js +443 -337
- package/dist/vue.min.js +3 -3
- package/dist/vue.runtime.common.js +377 -294
- package/dist/vue.runtime.esm.js +377 -294
- package/dist/vue.runtime.js +377 -294
- package/dist/vue.runtime.min.js +3 -3
- package/package.json +42 -29
- package/src/compiler/codegen/events.js +25 -8
- package/src/compiler/directives/model.js +5 -2
- package/src/compiler/helpers.js +3 -1
- package/src/compiler/parser/filter-parser.js +1 -1
- package/src/compiler/parser/html-parser.js +3 -2
- package/src/compiler/parser/index.js +9 -17
- package/src/core/components/keep-alive.js +5 -5
- package/src/core/index.js +6 -0
- package/src/core/instance/inject.js +6 -6
- package/src/core/instance/lifecycle.js +15 -10
- package/src/core/instance/proxy.js +2 -3
- package/src/core/instance/render-helpers/check-keycodes.js +16 -9
- package/src/core/instance/render-helpers/index.js +0 -2
- package/src/core/instance/render-helpers/render-static.js +2 -6
- package/src/core/instance/render.js +8 -11
- package/src/core/instance/state.js +13 -8
- package/src/core/observer/array.js +7 -5
- package/src/core/observer/dep.js +1 -1
- package/src/core/observer/index.js +26 -11
- package/src/core/observer/traverse.js +2 -1
- package/src/core/util/env.js +1 -2
- package/src/core/util/next-tick.js +8 -8
- package/src/core/util/props.js +25 -16
- package/src/core/vdom/create-component.js +16 -23
- package/src/core/vdom/create-element.js +23 -5
- package/src/core/vdom/create-functional-component.js +49 -21
- package/src/core/vdom/modules/ref.js +2 -2
- package/src/core/vdom/patch.js +28 -9
- package/src/core/vdom/vnode.js +3 -21
- package/src/platforms/web/compiler/directives/model.js +5 -3
- package/src/platforms/web/compiler/modules/model.js +13 -2
- package/src/platforms/web/runtime/directives/model.js +3 -5
- package/src/platforms/web/runtime/directives/show.js +1 -1
- package/src/platforms/web/runtime/index.js +26 -19
- package/src/platforms/web/runtime/modules/attrs.js +27 -21
- package/src/platforms/web/runtime/modules/transition.js +16 -12
- package/src/platforms/web/runtime/node-ops.js +2 -2
- package/src/platforms/web/server/directives/show.js +5 -1
- package/src/platforms/weex/compiler/modules/recycle-list/component-root.js +1 -0
- package/src/platforms/weex/compiler/modules/recycle-list/index.js +4 -0
- package/src/platforms/weex/compiler/modules/recycle-list/recycle-list.js +50 -0
- package/src/platforms/weex/compiler/modules/recycle-list/v-bind.js +2 -3
- package/src/platforms/weex/compiler/modules/recycle-list/v-if.js +21 -5
- package/src/platforms/weex/compiler/modules/recycle-list/v-once.js +19 -0
- package/src/platforms/weex/compiler/modules/style.js +7 -3
- package/src/platforms/weex/entry-framework.js +49 -105
- package/src/platforms/weex/runtime/modules/class.js +9 -5
- package/src/platforms/weex/runtime/node-ops.js +25 -15
- package/src/platforms/weex/util/index.js +1 -1
- package/src/platforms/weex/util/parser.js +60 -0
- package/src/server/optimizing-compiler/runtime-helpers.js +21 -14
- package/src/server/render-context.js +11 -1
- package/src/server/render.js +20 -3
- package/src/shared/util.js +18 -4
- package/types/options.d.ts +14 -9
- package/types/vnode.d.ts +1 -3
- package/types/vue.d.ts +4 -4
- package/src/core/instance/render-helpers/create-inline-computed.js +0 -28
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<p align="center"><a href="https://vuejs.org" target="_blank"><img width="100" src="https://vuejs.org/images/logo.png" alt="Vue logo"></a></p>
|
|
1
|
+
<p align="center"><a href="https://vuejs.org" target="_blank" rel="noopener noreferrer"><img width="100" src="https://vuejs.org/images/logo.png" alt="Vue logo"></a></p>
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<a href="https://circleci.com/gh/vuejs/vue/tree/dev"><img src="https://img.shields.io/circleci/project/vuejs/vue/dev.svg" alt="Build Status"></a>
|
|
5
5
|
<a href="https://codecov.io/github/vuejs/vue?branch=dev"><img src="https://img.shields.io/codecov/c/github/vuejs/vue/dev.svg" alt="Coverage Status"></a>
|
|
6
|
-
<a href="https://
|
|
6
|
+
<a href="https://npmcharts.com/compare/vue?minimal=true"><img src="https://img.shields.io/npm/dm/vue.svg" alt="Downloads"></a>
|
|
7
7
|
<a href="https://www.npmjs.com/package/vue"><img src="https://img.shields.io/npm/v/vue.svg" alt="Version"></a>
|
|
8
8
|
<a href="https://www.npmjs.com/package/vue"><img src="https://img.shields.io/npm/l/vue.svg" alt="License"></a>
|
|
9
9
|
<a href="https://chat.vuejs.org/"><img src="https://img.shields.io/badge/chat-on%20discord-7289da.svg" alt="Chat"></a>
|
|
@@ -17,141 +17,164 @@ Vue.js is an MIT-licensed open source project. It's an independent project with
|
|
|
17
17
|
|
|
18
18
|
- [Become a backer or sponsor on Patreon](https://www.patreon.com/evanyou).
|
|
19
19
|
- [Become a backer or sponsor on Open Collective](https://opencollective.com/vuejs).
|
|
20
|
+
- [One-time donation via PayPal or crypto-currencies.](https://vuejs.org/support-vuejs/#One-time-Donations)
|
|
20
21
|
|
|
21
22
|
#### What's the difference between Patreon and OpenCollective?
|
|
22
23
|
|
|
23
|
-
Funds donated via Patreon
|
|
24
|
+
Funds donated via Patreon go directly to support Evan You's full-time work on Vue.js. Funds donated via OpenCollective are managed with transparent expenses and will be used for compensating work and expenses for core team members or sponsoring community events. Your name/logo will receive proper recognition and exposure by donating on either platform.
|
|
25
|
+
|
|
26
|
+
<h3 align="center">Special Sponsors</h3>
|
|
27
|
+
<!--special start-->
|
|
28
|
+
<table>
|
|
29
|
+
<tbody>
|
|
30
|
+
<tr>
|
|
31
|
+
<td align="center" valign="middle">
|
|
32
|
+
<a href="https://stdlib.com" target="_blank" rel="noopener noreferrer">
|
|
33
|
+
<img width="222px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/stdlib.png">
|
|
34
|
+
</a>
|
|
35
|
+
</td>
|
|
36
|
+
<td align="center" valign="middle">
|
|
37
|
+
<a href="https://www.bitsrc.io/?utm_source=vue&utm_medium=vue&utm_campaign=vue&utm_term=vue&utm_content=vue" target="_blank" rel="noopener noreferrer">
|
|
38
|
+
<img height="90px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/bit-wide.png">
|
|
39
|
+
</a>
|
|
40
|
+
</td>
|
|
41
|
+
<td align="center" valign="middle">
|
|
42
|
+
<a href="https://xiaozhuanlan.com" target="_blank" rel="noopener noreferrer">
|
|
43
|
+
<img width="222px" src="https://raw.githubusercontent.com/vuejs/cn.vuejs.org/master/themes/vue/source/images/xiaozhuanlan.png">
|
|
44
|
+
</a>
|
|
45
|
+
</td>
|
|
46
|
+
</tr><tr></tr>
|
|
47
|
+
</tbody>
|
|
48
|
+
</table>
|
|
49
|
+
<!--special end-->
|
|
24
50
|
|
|
25
51
|
<h3 align="center">Sponsors via Patreon</h3>
|
|
26
52
|
|
|
27
53
|
<h4 align="center">Platinum</h4>
|
|
28
54
|
|
|
55
|
+
<!--platinum start-->
|
|
29
56
|
<table>
|
|
30
57
|
<tbody>
|
|
31
58
|
<tr>
|
|
32
59
|
<td align="center" valign="middle">
|
|
33
|
-
<a href="
|
|
34
|
-
<img width="
|
|
60
|
+
<a href="http://tooltwist.com/" target="_blank" rel="noopener noreferrer">
|
|
61
|
+
<img width="222px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/tooltwist.png">
|
|
35
62
|
</a>
|
|
36
63
|
</td>
|
|
37
|
-
<td>
|
|
38
|
-
<a href="https://
|
|
39
|
-
<img width="
|
|
40
|
-
</a>
|
|
41
|
-
</td>
|
|
42
|
-
<td>
|
|
43
|
-
<a href="http://tooltwist.com" target="_blank">
|
|
44
|
-
<img width="200px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/tooltwist.png">
|
|
64
|
+
<td align="center" valign="middle">
|
|
65
|
+
<a href="https://vueschool.io/?utm_source=Vuejs.org&utm_medium=Banner&utm_campaign=Sponsored%20Banner&utm_content=V1" target="_blank" rel="noopener noreferrer">
|
|
66
|
+
<img width="222px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/vueschool.png">
|
|
45
67
|
</a>
|
|
46
68
|
</td>
|
|
47
|
-
<td>
|
|
48
|
-
<a href="https://www.
|
|
49
|
-
<img width="
|
|
69
|
+
<td align="center" valign="middle">
|
|
70
|
+
<a href="https://www.datacamp.com/careers?utm_source=vuejs&utm_medium=sidebar" target="_blank" rel="noopener noreferrer">
|
|
71
|
+
<img width="222px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/datacamp.png">
|
|
50
72
|
</a>
|
|
51
73
|
</td>
|
|
52
|
-
</tr>
|
|
74
|
+
</tr><tr></tr>
|
|
53
75
|
</tbody>
|
|
54
76
|
</table>
|
|
77
|
+
<!--platinum end-->
|
|
55
78
|
|
|
56
79
|
<h4 align="center">Gold</h4>
|
|
57
80
|
|
|
81
|
+
<!--gold start-->
|
|
58
82
|
<table>
|
|
59
83
|
<tbody>
|
|
60
84
|
<tr>
|
|
61
85
|
<td align="center" valign="middle">
|
|
62
|
-
<a href="https://
|
|
63
|
-
<img width="
|
|
86
|
+
<a href="https://laravel.com" target="_blank" rel="noopener noreferrer">
|
|
87
|
+
<img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/laravel.png">
|
|
64
88
|
</a>
|
|
65
89
|
</td>
|
|
66
90
|
<td align="center" valign="middle">
|
|
67
|
-
<a href="https://
|
|
68
|
-
<img width="
|
|
91
|
+
<a href="https://htmlburger.com" target="_blank" rel="noopener noreferrer">
|
|
92
|
+
<img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/htmlburger.png">
|
|
69
93
|
</a>
|
|
70
94
|
</td>
|
|
71
95
|
<td align="center" valign="middle">
|
|
72
|
-
<a href="https://chaitin.cn/">
|
|
73
|
-
<img width="
|
|
96
|
+
<a href="https://chaitin.cn/en/" target="_blank" rel="noopener noreferrer">
|
|
97
|
+
<img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/chaitin.png">
|
|
74
98
|
</a>
|
|
75
99
|
</td>
|
|
76
100
|
<td align="center" valign="middle">
|
|
77
|
-
<a href="https://
|
|
78
|
-
<img width="
|
|
101
|
+
<a href="https://anymod.com" target="_blank" rel="noopener noreferrer">
|
|
102
|
+
<img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/anymod.png">
|
|
79
103
|
</a>
|
|
80
104
|
</td>
|
|
81
105
|
<td align="center" valign="middle">
|
|
82
|
-
<a href="https://
|
|
83
|
-
<img width="
|
|
106
|
+
<a href="https://www.frontenddeveloperlove.com/" target="_blank" rel="noopener noreferrer">
|
|
107
|
+
<img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/frontend-love.png">
|
|
84
108
|
</a>
|
|
85
109
|
</td>
|
|
86
110
|
<td align="center" valign="middle">
|
|
87
|
-
<a href="
|
|
88
|
-
<img width="
|
|
111
|
+
<a href="https://onsen.io/vue/" target="_blank" rel="noopener noreferrer">
|
|
112
|
+
<img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/onsen-ui.png">
|
|
89
113
|
</a>
|
|
90
114
|
</td>
|
|
91
|
-
</tr>
|
|
92
|
-
<tr></tr>
|
|
115
|
+
</tr><tr></tr>
|
|
93
116
|
<tr>
|
|
94
117
|
<td align="center" valign="middle">
|
|
95
|
-
<a href="https://
|
|
96
|
-
<img width="
|
|
118
|
+
<a href="https://vuetifyjs.com" target="_blank" rel="noopener noreferrer">
|
|
119
|
+
<img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/vuetify.png">
|
|
97
120
|
</a>
|
|
98
121
|
</td>
|
|
99
122
|
<td align="center" valign="middle">
|
|
100
|
-
<a href="https://
|
|
101
|
-
<img width="
|
|
123
|
+
<a href="https://neds.com.au/" target="_blank" rel="noopener noreferrer">
|
|
124
|
+
<img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/neds.png">
|
|
102
125
|
</a>
|
|
103
126
|
</td>
|
|
104
127
|
<td align="center" valign="middle">
|
|
105
|
-
<a href="https://
|
|
106
|
-
<img width="
|
|
128
|
+
<a href="https://hackr.io/tutorials/learn-vue-js" target="_blank" rel="noopener noreferrer">
|
|
129
|
+
<img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/hackr-io.png">
|
|
107
130
|
</a>
|
|
108
131
|
</td>
|
|
109
132
|
<td align="center" valign="middle">
|
|
110
|
-
<a href="https://
|
|
111
|
-
<img width="
|
|
133
|
+
<a href="https://icons8.com/" target="_blank" rel="noopener noreferrer">
|
|
134
|
+
<img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/icons8.png">
|
|
112
135
|
</a>
|
|
113
136
|
</td>
|
|
114
137
|
<td align="center" valign="middle">
|
|
115
|
-
<a href="https://
|
|
116
|
-
<img width="
|
|
138
|
+
<a href="https://vuejobs.com/?ref=vuejs" target="_blank" rel="noopener noreferrer">
|
|
139
|
+
<img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/vuejobs.png">
|
|
117
140
|
</a>
|
|
118
141
|
</td>
|
|
119
142
|
<td align="center" valign="middle">
|
|
120
|
-
<a href="https://
|
|
121
|
-
<img width="
|
|
143
|
+
<a href="https://leanpub.com/vuejs2" target="_blank" rel="noopener noreferrer">
|
|
144
|
+
<img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/tmvuejs2.png">
|
|
122
145
|
</a>
|
|
123
146
|
</td>
|
|
124
|
-
</tr>
|
|
125
|
-
<tr></tr>
|
|
147
|
+
</tr><tr></tr>
|
|
126
148
|
<tr>
|
|
127
149
|
<td align="center" valign="middle">
|
|
128
|
-
<a href="https://
|
|
129
|
-
<img width="
|
|
150
|
+
<a href="https://www.bmqb.com/jobs" target="_blank" rel="noopener noreferrer">
|
|
151
|
+
<img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/bmqb.png">
|
|
130
152
|
</a>
|
|
131
153
|
</td>
|
|
132
154
|
<td align="center" valign="middle">
|
|
133
|
-
<a href="https://
|
|
134
|
-
<img width="
|
|
155
|
+
<a href="https://codepilot.ai" target="_blank" rel="noopener noreferrer">
|
|
156
|
+
<img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/codepilot.png">
|
|
135
157
|
</a>
|
|
136
158
|
</td>
|
|
137
|
-
</tr>
|
|
159
|
+
</tr><tr></tr>
|
|
138
160
|
</tbody>
|
|
139
161
|
</table>
|
|
162
|
+
<!--gold end-->
|
|
140
163
|
|
|
141
164
|
<h3 align="center">Sponsors via <a href="https://opencollective.com/vuejs">Open Collective</a></h3>
|
|
142
165
|
|
|
143
166
|
<h4 align="center">Platinum</h4>
|
|
144
167
|
|
|
145
|
-
<a href="https://opencollective.com/vuejs/tiers/
|
|
146
|
-
<a href="https://opencollective.com/vuejs/tiers/
|
|
168
|
+
<a href="https://opencollective.com/vuejs/tiers/platinum-sponsors/0/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/platinum-sponsors/0/avatar.svg"></a>
|
|
169
|
+
<a href="https://opencollective.com/vuejs/tiers/platinum-sponsors/1/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/platinum-sponsors/1/avatar.svg"></a>
|
|
147
170
|
|
|
148
171
|
<h4 align="center">Gold</h4>
|
|
149
172
|
|
|
150
|
-
<a href="https://opencollective.com/vuejs/tiers/
|
|
151
|
-
<a href="https://opencollective.com/vuejs/tiers/
|
|
152
|
-
<a href="https://opencollective.com/vuejs/tiers/
|
|
153
|
-
<a href="https://opencollective.com/vuejs/tiers/
|
|
154
|
-
<a href="https://opencollective.com/vuejs/tiers/
|
|
173
|
+
<a href="https://opencollective.com/vuejs/tiers/gold-sponsors/0/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/gold-sponsors/0/avatar.svg" height="60px"></a>
|
|
174
|
+
<a href="https://opencollective.com/vuejs/tiers/gold-sponsors/1/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/gold-sponsors/1/avatar.svg" height="60px"></a>
|
|
175
|
+
<a href="https://opencollective.com/vuejs/tiers/gold-sponsors/2/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/gold-sponsors/2/avatar.svg" height="60px"></a>
|
|
176
|
+
<a href="https://opencollective.com/vuejs/tiers/gold-sponsors/3/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/gold-sponsors/3/avatar.svg" height="60px"></a>
|
|
177
|
+
<a href="https://opencollective.com/vuejs/tiers/gold-sponsors/4/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/gold-sponsors/4/avatar.svg" height="60px"></a>
|
|
155
178
|
|
|
156
179
|
---
|
|
157
180
|
|
|
@@ -227,7 +250,7 @@ Detailed changes for each release are documented in the [release notes](https://
|
|
|
227
250
|
|
|
228
251
|
## Contribution
|
|
229
252
|
|
|
230
|
-
Please make sure to read the [Contributing Guide](https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md) before making a pull request. If you have a Vue-related project/component/tool, add it with a pull
|
|
253
|
+
Please make sure to read the [Contributing Guide](https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md) before making a pull request. If you have a Vue-related project/component/tool, add it with a pull request to [this curated list](https://github.com/vuejs/awesome-vue)!
|
|
231
254
|
|
|
232
255
|
Thank you to all the people who already contributed to Vue!
|
|
233
256
|
|