Skip to content

Commit 97bd117

Browse files
committed
add v-for range values change to migration guide
1 parent 415363b commit 97bd117

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/guide/migration.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,17 @@ You would now write:
221221
</div>
222222
{% endraw %}
223223

224+
### `v-for` Range Values
225+
226+
Previously, `v-for="number in 10"` would have `number` starting at 0 and ending at 9. Now it starts at 1 and ends at 10.
227+
228+
{% raw %}
229+
<div class="upgrade-path">
230+
<h4>Upgrade Path</h4>
231+
<p>Search your codebase for the regex <code>/\w+ in \d+/</code>. Wherever it appears in a <code>v-for</code>, check to see if you may be affected.</p>
232+
</div>
233+
{% endraw %}
234+
224235
## Props
225236

226237
### `coerce` Prop Option <sup>deprecated</sup>

0 commit comments

Comments
 (0)