Skip to content

Commit b6339b6

Browse files
committed
remove version badages for previous minors
1 parent 3c4ecd8 commit b6339b6

12 files changed

+40
-18
lines changed

src/api/application.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,12 @@ Provide a value that can be injected in all descendant components within the app
283283
- [App-level Provide](/guide/components/provide-inject#app-level-provide)
284284
- [app.runWithContext()](#app-runwithcontext)
285285

286-
## app.runWithContext()<sup class="vt-badge" data-text="3.3+" /> {#app-runwithcontext}
286+
## app.runWithContext() {#app-runwithcontext}
287287

288288
Execute a callback with the current app as injection context.
289289

290+
- Only supported in 3.3+
291+
290292
- **Type**
291293

292294
```ts

src/api/built-in-directives.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Dynamically bind one or more attributes, or a component prop to an expression.
259259

260260
- **Shorthand:**
261261
- `:` or `.` (when using `.prop` modifier)
262-
- Omitting value (when attribute and bound value has the same name) <sup class="vt-badge">3.4+</sup>
262+
- Omitting value (when attribute and bound value has the same name, requires 3.4+)
263263

264264
- **Expects:** `any (with argument) | Object (without argument)`
265265

@@ -268,8 +268,8 @@ Dynamically bind one or more attributes, or a component prop to an expression.
268268
- **Modifiers**
269269

270270
- `.camel` - transform the kebab-case attribute name into camelCase.
271-
- `.prop` - force a binding to be set as a DOM property. <sup class="vt-badge">3.2+</sup>
272-
- `.attr` - force a binding to be set as a DOM attribute. <sup class="vt-badge">3.2+</sup>
271+
- `.prop` - force a binding to be set as a DOM property (3.2+).
272+
- `.attr` - force a binding to be set as a DOM attribute (3.2+).
273273

274274
- **Usage**
275275

@@ -468,7 +468,9 @@ Render the element and component once only, and skip future updates.
468468
- [Data Binding Syntax - interpolations](/guide/essentials/template-syntax#text-interpolation)
469469
- [v-memo](#v-memo)
470470

471-
## v-memo <sup class="vt-badge" data-text="3.2+" /> {#v-memo}
471+
## v-memo {#v-memo}
472+
473+
- Only supported in 3.2+
472474

473475
- **Expects:** `any[]`
474476

src/api/compile-time-flags.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ See [Configuration Guides](#configuration-guides) on how to configure them depen
2626

2727
Enable / disable devtools support in production builds. This will result in more code included in the bundle, so it is recommended to only enable this for debugging purposes.
2828

29-
## `__VUE_PROD_HYDRATION_MISMATCH_DETAILS__` <sup class="vt-badge" data-text="3.4+" /> {#VUE_PROD_HYDRATION_MISMATCH_DETAILS}
29+
## `__VUE_PROD_HYDRATION_MISMATCH_DETAILS__` {#VUE_PROD_HYDRATION_MISMATCH_DETAILS}
3030

3131
- **Default:** `false`
3232

3333
Enable/disable detailed warnings for hydration mismatches in production builds. This will result in more code included in the bundle, so it is recommended to only enable this for debugging purposes.
3434

35+
- Only available in 3.4+
36+
3537
## Configuration Guides {#configuration-guides}
3638

3739
### Vite {#vite}

src/api/composition-api-dependency-injection.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,12 @@ Injects a value provided by an ancestor component or the application (via `app.p
107107
- [Guide - Provide / Inject](/guide/components/provide-inject)
108108
- [Guide - Typing Provide / Inject](/guide/typescript/composition-api#typing-provide-inject) <sup class="vt-badge ts" />
109109

110-
## hasInjectionContext() <sup class="vt-badge" data-text="3.3+" /> {#has-injection-context}
110+
## hasInjectionContext() {#has-injection-context}
111111

112112
Returns true if [inject()](#inject) can be used without warning about being called in the wrong place (e.g. outside of `setup()`). This method is designed to be used by libraries that want to use `inject()` internally without triggering a warning to the end user.
113113

114+
- Only supported in 3.3+
115+
114116
- **Type**
115117

116118
```ts

src/api/composition-api-helpers.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ If using TypeScript, [`defineSlots()`](/api/sfc-script-setup#defineslots) should
2222
function useSlots(): Record<string, (...args: any[]) => VNode[]>
2323
```
2424

25-
## useModel() <sup class="vt-badge" data-text="3.4+" /> {#usemodel}
25+
## useModel() {#usemodel}
2626

2727
This is the underlying helper that powers [`defineModel()`](/api/sfc-script-setup#definemodel). If using `<script setup>`, `defineModel()` should be preferred instead.
2828

29-
`useModel()` can be used in non-SFC components, e.g. when using raw `setup()` function. It expects the `props` object as the first argument, and the model name as the second argument. The optional third argument can be used to declare custom getter and setter for the resulting model ref. Note that unlike `defineModel()`, you are responsible for declaring the props and emits yourself.
29+
- Only available in 3.4+
3030

3131
- **Type**
3232

@@ -56,6 +56,10 @@ This is the underlying helper that powers [`defineModel()`](/api/sfc-script-setu
5656
}
5757
```
5858

59+
- **Details**
60+
61+
`useModel()` can be used in non-SFC components, e.g. when using raw `setup()` function. It expects the `props` object as the first argument, and the model name as the second argument. The optional third argument can be used to declare custom getter and setter for the resulting model ref. Note that unlike `defineModel()`, you are responsible for declaring the props and emits yourself.
62+
5963
## useTemplateRef() <sup class="vt-badge" data-text="3.5+" /> {#usetemplateref}
6064

6165
Returns a shallow ref whose value will be synced with the template element or component with a matching ref attribute.

src/api/general.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ A type helper for defining a Vue component with type inference.
129129
type FooInstance = InstanceType<typeof Foo>
130130
```
131131

132-
### Function Signature <sup class="vt-badge" data-text="3.3+" /> {#function-signature}
132+
### Function Signature {#function-signature}
133+
134+
- Only supported in 3.3+
133135

134136
`defineComponent()` also has an alternative signature that is meant to be used with Composition API and [render functions or JSX](/guide/extras/render-function.html).
135137

src/api/reactivity-core.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Takes a [getter function](https://developer.mozilla.org/en-US/docs/Web/JavaScrip
112112
- [Guide - Computed Properties](/guide/essentials/computed)
113113
- [Guide - Computed Debugging](/guide/extras/reactivity-in-depth#computed-debugging)
114114
- [Guide - Typing `computed()`](/guide/typescript/composition-api#typing-computed) <sup class="vt-badge ts" />
115-
- [Guide - Performance - Computed Stability](/guide/best-practices/performance#computed-stability) <sup class="vt-badge" data-text="3.4+" />
115+
- [Guide - Performance - Computed Stability](/guide/best-practices/performance#computed-stability)
116116

117117
## reactive() {#reactive}
118118

@@ -441,7 +441,7 @@ Watches one or more reactive data sources and invokes a callback function when t
441441
- **`deep`**: force deep traversal of the source if it is an object, so that the callback fires on deep mutations. In 3.5+, this can also be a number indicating the max traversal depth. See [Deep Watchers](/guide/essentials/watchers#deep-watchers).
442442
- **`flush`**: adjust the callback's flush timing. See [Callback Flush Timing](/guide/essentials/watchers#callback-flush-timing) and [`watchEffect()`](/api/reactivity-core#watcheffect).
443443
- **`onTrack / onTrigger`**: debug the watcher's dependencies. See [Watcher Debugging](/guide/extras/reactivity-in-depth#watcher-debugging).
444-
- **`once`**: run the callback only once. The watcher is automatically stopped after the first callback run. <sup class="vt-badge" data-text="3.4+" />
444+
- **`once`**: (3.4+) run the callback only once. The watcher is automatically stopped after the first callback run.
445445
446446
Compared to [`watchEffect()`](#watcheffect), `watch()` allows us to:
447447

src/api/reactivity-utilities.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,14 @@ Can also be used to create a ref for a property on a source reactive object. The
132132
133133
When using the object property signature, `toRef()` will return a usable ref even if the source property doesn't currently exist. This makes it possible to work with optional properties, which wouldn't be picked up by [`toRefs`](#torefs).
134134
135-
## toValue() <sup class="vt-badge" data-text="3.3+" /> {#tovalue}
135+
## toValue() {#tovalue}
136136
137137
Normalizes values / refs / getters to values. This is similar to [unref()](#unref), except that it also normalizes getters. If the argument is a getter, it will be invoked and its return value will be returned.
138138
139139
This can be used in [Composables](/guide/reusability/composables.html) to normalize an argument that can be either a value, a ref, or a getter.
140140
141+
- Only supported in 3.3+
142+
141143
- **Type**
142144
143145
```ts

src/api/sfc-script-setup.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,9 @@ This will be compiled to equivalent runtime props `default` options. In addition
267267
Note that default values for mutable reference types (like arrays or objects) should be wrapped in functions when using `withDefaults` to avoid accidental modification and external side effects. This ensures each component instance gets its own copy of the default value. This is **not** necessary when using default values with destructure.
268268
:::
269269

270-
## defineModel() <sup class="vt-badge" data-text="3.4+" /> {#definemodel}
270+
## defineModel() {#definemodel}
271+
272+
- Only available in 3.4+
271273

272274
This macro can be used to declare a two-way binding prop that can be consumed via `v-model` from the parent component. Example usage is also discussed in the [Component `v-model`](/guide/components/v-model) guide.
273275

src/guide/best-practices/performance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ Now, for most components the `active` prop will remain the same when `activeId`
124124

125125
`v-memo` is a built-in directive that can be used to conditionally skip the update of large sub-trees or `v-for` lists. Consult its [API reference](/api/built-in-directives#v-memo) for more details.
126126

127-
### Computed Stability <sup class="vt-badge" data-text="3.4+" /> {#computed-stability}
127+
### Computed Stability {#computed-stability}
128128

129-
Starting in 3.4, a computed property will only trigger effects when its computed value has changed from the previous one. For example, the following `isEven` computed only triggers effects if the returned value has changed from `true` to `false`, or vice-versa:
129+
In Vue 3.4 and above, a computed property will only trigger effects when its computed value has changed from the previous one. For example, the following `isEven` computed only triggers effects if the returned value has changed from `true` to `false`, or vice-versa:
130130

131131
```js
132132
const count = ref(0)

src/guide/essentials/template-syntax.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ Attributes that start with `:` may look a bit different from normal HTML, but it
6464

6565
> For the rest of the guide, we will be using the shorthand syntax in code examples, as that's the most common usage for Vue developers.
6666
67-
### Same-name Shorthand <sup class="vt-badge" data-text="3.4+" /> {#same-name-shorthand}
67+
### Same-name Shorthand {#same-name-shorthand}
68+
69+
- Only supported in 3.4+
6870

6971
If the attribute has the same name with the JavaScript value being bound, the syntax can be further shortened to omit the attribute value:
7072

src/guide/essentials/watchers.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ watch(
274274

275275
</div>
276276

277-
## Once Watchers <sup class="vt-badge" data-text="3.4+" /> {#once-watchers}
277+
## Once Watchers {#once-watchers}
278+
279+
- Only supported in 3.4+
278280

279281
Watcher's callback will execute whenever the watched source changes. If you want the callback to trigger only once when the source changes, use the `once: true` option.
280282

0 commit comments

Comments
 (0)