Skip to content

Commit 332f7c8

Browse files
committed
update branch references
1 parent 57a67e8 commit 332f7c8

File tree

14 files changed

+16
-16
lines changed

14 files changed

+16
-16
lines changed

src/about/community-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ You don't have to triage an issue with the goal of fixing it (although that woul
5454

5555
Contributing bug fixes or new features is the most direct form of contribution you can make.
5656

57-
The Vue core repository provides a [contributing guide](https://github.com/vuejs/core/blob/master/.github/contributing.md), which contains pull request guidelines and information regarding build setup and high-level architecture. Other sub-project repositories may also contain its own contribution guide - please make sure to read them before submitting pull requests.
57+
The Vue core repository provides a [contributing guide](https://github.com/vuejs/core/blob/main/.github/contributing.md), which contains pull request guidelines and information regarding build setup and high-level architecture. Other sub-project repositories may also contain its own contribution guide - please make sure to read them before submitting pull requests.
5858

5959
Bug fixes are welcome at any time. For new features, it is best to discuss the use case and implementation details first in the [RFC repo](https://github.com/vuejs/rfcs/discussions).
6060

src/about/releases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The current latest stable version of Vue is <strong>{{ version }}</strong>.
2222
Checking latest version...
2323
</p>
2424

25-
A full changelog of past releases is available on [GitHub](https://github.com/vuejs/core/blob/master/CHANGELOG.md).
25+
A full changelog of past releases is available on [GitHub](https://github.com/vuejs/core/blob/main/CHANGELOG.md).
2626

2727
## Release Cycle
2828

src/api/custom-renderer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ Creates a custom renderer. By providing platform-specific node creation and mani
8282
export * from '@vue/runtime-core'
8383
```
8484

85-
Vue's own `@vue/runtime-dom` is [implemented using the same API](https://github.com/vuejs/core/blob/master/packages/runtime-dom/src/index.ts). For a simpler implementation, check out [`@vue/runtime-test`](https://github.com/vuejs/core/blob/master/packages/runtime-test/src/index.ts) which is a private package for Vue's own unit testing.
85+
Vue's own `@vue/runtime-dom` is [implemented using the same API](https://github.com/vuejs/core/blob/main/packages/runtime-dom/src/index.ts). For a simpler implementation, check out [`@vue/runtime-test`](https://github.com/vuejs/core/blob/main/packages/runtime-test/src/index.ts) which is a private package for Vue's own unit testing.

src/api/sfc-script-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ const post = await fetch(`/api/post/1`).then((r) => r.json())
227227
In addition, the awaited expression will be automatically compiled in a format that preserves the current component instance context after the `await`.
228228

229229
:::warning Note
230-
`async setup()` must be used in combination with `Suspense`, which is currently still an experimental feature. We plan to finalize and document it in a future release - but if you are curious now, you can refer to its [tests](https://github.com/vuejs/core/blob/master/packages/runtime-core/__tests__/components/Suspense.spec.ts) to see how it works.
230+
`async setup()` must be used in combination with `Suspense`, which is currently still an experimental feature. We plan to finalize and document it in a future release - but if you are curious now, you can refer to its [tests](https://github.com/vuejs/core/blob/main/packages/runtime-core/__tests__/components/Suspense.spec.ts) to see how it works.
231231
:::
232232

233233
## TypeScript-only Features <sup class="vt-badge ts">TS</sup>

src/api/utility-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Utility Types
22

33
:::info
4-
This page only lists a few commonly used utility types that may need explanation for their usage. For a full list of exported types, consult the [source code](https://github.com/vuejs/core/blob/master/packages/runtime-core/src/index.ts#L131).
4+
This page only lists a few commonly used utility types that may need explanation for their usage. For a full list of exported types, consult the [source code](https://github.com/vuejs/core/blob/main/packages/runtime-core/src/index.ts#L131).
55
:::
66

77
## PropType\<T>

src/guide/best-practices/production-deployment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ If you are using Vue without a build tool by loading it from a CDN or self-hoste
1818
- If using global build (accessing via the `Vue` global): use `vue.global.prod.js`.
1919
- If using ESM build (accessing via native ESM imports): use `vue.esm-browser.prod.js`.
2020

21-
Consult the [dist file guide](https://github.com/vuejs/core/tree/master/packages/vue#which-dist-file-to-use) for more details.
21+
Consult the [dist file guide](https://github.com/vuejs/core/tree/main/packages/vue#which-dist-file-to-use) for more details.
2222

2323
## With Build Tools
2424

@@ -27,7 +27,7 @@ Projects scaffolded via `create-vue` (based on Vite) or Vue CLI (based on webpac
2727
If using a custom setup, make sure that:
2828

2929
1. `vue` resolves to `vue.runtime.esm-bundler.js`.
30-
2. The [compile time feature flags](https://github.com/vuejs/core/tree/master/packages/vue#bundler-build-feature-flags) are properly configured.
30+
2. The [compile time feature flags](https://github.com/vuejs/core/tree/main/packages/vue#bundler-build-feature-flags) are properly configured.
3131
3. <code>process.env<wbr>.NODE_ENV</code> is replaced with `"production"` during build.
3232

3333
Additional references:

src/guide/essentials/template-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Functions called inside binding expressions will be called every time the compon
160160

161161
### Restricted Globals Access
162162

163-
Template expressions are sandboxed and only have access to a [restricted list of globals](https://github.com/vuejs/core/blob/master/packages/shared/src/globalsWhitelist.ts#L3). The list exposes commonly used built-in globals such as `Math` and `Date`.
163+
Template expressions are sandboxed and only have access to a [restricted list of globals](https://github.com/vuejs/core/blob/main/packages/shared/src/globalsWhitelist.ts#L3). The list exposes commonly used built-in globals such as `Math` and `Date`.
164164

165165
Globals not explicitly included in the list, for example user-attached properties on `window`, will not be accessible in template expressions. You can, however, explicitly define additional globals for all Vue expressions by adding them to [`app.config.globalProperties`](/api/application.html#app-config-globalproperties).
166166

src/guide/extras/composition-api-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Code written in Composition API and `<script setup>` is also more efficient and
9898

9999
Yes in terms of stateful logic. When using Composition API, there are only a few options that may still be needed: `props`, `emits`, `name`, and `inheritAttrs`. If using `<script setup>`, then `inheritAttrs` is typically the only option that may require a separate normal `<script>` block.
100100

101-
If you intend to exclusively use Composition API (along with the options listed above), you can shave a few kbs off your production bundle via a [compile-time flag](https://github.com/vuejs/core/tree/master/packages/vue#bundler-build-feature-flags) that drops Options API related code from Vue. Note this also affects Vue components in your dependencies.
101+
If you intend to exclusively use Composition API (along with the options listed above), you can shave a few kbs off your production bundle via a [compile-time flag](https://github.com/vuejs/core/tree/main/packages/vue#bundler-build-feature-flags) that drops Options API related code from Vue. Note this also affects Vue components in your dependencies.
102102

103103
### Can I use both APIs together?
104104

src/guide/extras/reactivity-transform.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Reactivity Transform is a Composition-API-specific feature and requires a build
1212

1313
Ever since the introduction of the Composition API, one of the primary unresolved questions is the use of refs vs. reactive objects. It can be cumbersome to use `.value` everywhere, and it is easy to miss if not using a type system.
1414

15-
[Vue Reactivity Transform](https://github.com/vuejs/core/tree/master/packages/reactivity-transform) is a compile-time transform that allows us to write code like this:
15+
[Vue Reactivity Transform](https://github.com/vuejs/core/tree/main/packages/reactivity-transform) is a compile-time transform that allows us to write code like this:
1616

1717
```vue
1818
<script setup>

src/guide/extras/rendering-mechanism.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ createElementVNode("div", {
111111
}, null, 2 /* CLASS */)
112112
```
113113

114-
The last argument `2` is a [patch flag](https://github.com/vuejs/core/blob/master/packages/shared/src/patchFlags.ts). An element can have multiple patch flags, which will be merged into a single number. The runtime renderer can then check against the flags using [bitwise operations](https://en.wikipedia.org/wiki/Bitwise_operation) to determine whether it needs to do certain work:
114+
The last argument `2` is a [patch flag](https://github.com/vuejs/core/blob/main/packages/shared/src/patchFlags.ts). An element can have multiple patch flags, which will be merged into a single number. The runtime renderer can then check against the flags using [bitwise operations](https://en.wikipedia.org/wiki/Bitwise_operation) to determine whether it needs to do certain work:
115115

116116
```js
117117
if (vnode.patchFlag & PatchFlags.CLASS /* 2 */) {

src/guide/scaling-up/sfc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ That said, we do realize there are scenarios where SFCs can feel like overkill.
5252

5353
## How It Works
5454

55-
Vue SFC is a framework-specific file format and must be pre-compiled by [@vue/compiler-sfc](https://github.com/vuejs/core/tree/master/packages/compiler-sfc) into standard JavaScript and CSS. A compiled SFC is a standard JavaScript (ES) module - which means with proper build setup you can import an SFC like a module:
55+
Vue SFC is a framework-specific file format and must be pre-compiled by [@vue/compiler-sfc](https://github.com/vuejs/core/tree/main/packages/compiler-sfc) into standard JavaScript and CSS. A compiled SFC is a standard JavaScript (ES) module - which means with proper build setup you can import an SFC like a module:
5656

5757
```js
5858
import MyComponent from './MyComponent.vue'

src/guide/scaling-up/tooling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Custom blocks are compiled into imports to the same Vue file with different requ
126126

127127
### `@vue/compiler-sfc`
128128

129-
- [Docs](https://github.com/vuejs/core/tree/master/packages/compiler-sfc)
129+
- [Docs](https://github.com/vuejs/core/tree/main/packages/compiler-sfc)
130130

131131
This package is part of the Vue core monorepo and is always published with the same version as the main `vue` package. It is included as a dependency of the main `vue` package and proxied under `vue/compiler-sfc` so you don't need to install it individually.
132132

src/guide/typescript/options-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ declare module 'vue' {
224224

225225
See also:
226226

227-
- [TypeScript unit tests for component type extensions](https://github.com/vuejs/core/blob/master/test-dts/componentTypeExtensions.test-d.tsx)
227+
- [TypeScript unit tests for component type extensions](https://github.com/vuejs/core/blob/main/test-dts/componentTypeExtensions.test-d.tsx)
228228

229229
### Type Augmentation Placement
230230

@@ -264,4 +264,4 @@ The placement of this augmentation is subject the [same restrictions](#type-augm
264264

265265
See also:
266266

267-
- [TypeScript unit tests for component type extensions](https://github.com/vuejs/core/blob/master/test-dts/componentTypeExtensions.test-d.tsx)
267+
- [TypeScript unit tests for component type extensions](https://github.com/vuejs/core/blob/main/test-dts/componentTypeExtensions.test-d.tsx)

src/guide/typescript/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default defineComponent({
129129
})
130130
```
131131

132-
See also: [type tests for `defineComponent`](https://github.com/vuejs/core/blob/master/test-dts/defineComponent.test-d.tsx)
132+
See also: [type tests for `defineComponent`](https://github.com/vuejs/core/blob/main/test-dts/defineComponent.test-d.tsx)
133133

134134
:::tip
135135
`defineComponent()` also enables type inference for components defined in plain JavaScript.

0 commit comments

Comments
 (0)