From ca11dc6a86f26accc893c1ce5b611dc84a2e7c2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E9=9B=A8=E8=88=AA?= Date: Tue, 6 Dec 2022 22:35:28 +0800 Subject: [PATCH 01/53] chore: fix typo (#12894) --- src/core/observer/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/observer/index.ts b/src/core/observer/index.ts index ef7296567c7..9988fb8687f 100644 --- a/src/core/observer/index.ts +++ b/src/core/observer/index.ts @@ -19,7 +19,7 @@ import { isReadonly, isRef, TrackOpTypes, TriggerOpTypes } from '../../v3' const arrayKeys = Object.getOwnPropertyNames(arrayMethods) -const NO_INIITIAL_VALUE = {} +const NO_INITIAL_VALUE = {} /** * In some cases we may want to disable observation inside a component's @@ -79,7 +79,7 @@ export class Observer { const keys = Object.keys(value) for (let i = 0; i < keys.length; i++) { const key = keys[i] - defineReactive(value, key, NO_INIITIAL_VALUE, undefined, shallow, mock) + defineReactive(value, key, NO_INITIAL_VALUE, undefined, shallow, mock) } } } @@ -145,7 +145,7 @@ export function defineReactive( const setter = property && property.set if ( (!getter || setter) && - (val === NO_INIITIAL_VALUE || arguments.length === 2) + (val === NO_INITIAL_VALUE || arguments.length === 2) ) { val = obj[key] } From 2e570617666983ababcfd167dfa50208f5dfd45a Mon Sep 17 00:00:00 2001 From: Caichong <951412526@qq.com> Date: Wed, 14 Dec 2022 16:43:02 +0800 Subject: [PATCH 02/53] chore: comment typos (#12878) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 方恒 --- types/common.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/common.d.ts b/types/common.d.ts index 3165711c702..01d1efbfc7a 100644 --- a/types/common.d.ts +++ b/types/common.d.ts @@ -14,7 +14,7 @@ type Equal = export type HasDefined = Equal extends true ? false : true -// If the the type T accepts type "any", output type Y, otherwise output type N. +// If the type T accepts type "any", output type Y, otherwise output type N. // https://stackoverflow.com/questions/49927523/disallow-call-with-any/49928360#49928360 export type IfAny = 0 extends 1 & T ? Y : N From 34c6192f4a5d0471da5655ebcf111653fd920172 Mon Sep 17 00:00:00 2001 From: Ihor Sychevskyi Date: Tue, 27 Dec 2022 11:19:37 +0200 Subject: [PATCH 03/53] chore: update links (http=https) (#12911) --- .github/CODE_OF_CONDUCT.md | 2 +- .github/CONTRIBUTING.md | 2 +- examples/classic/todomvc/index.html | 4 ++-- examples/classic/todomvc/readme.md | 4 ++-- src/compiler/parser/html-parser.ts | 2 +- src/platforms/web/util/element.ts | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index b39f08e2d28..82effcdc869 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -10,4 +10,4 @@ Project maintainers have the right and responsibility to remove, edit, or reject Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers. -This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/) +This Code of Conduct is adapted from the [Contributor Covenant](https://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 3f3302a572e..e4ecadaea68 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -36,7 +36,7 @@ Hi! I'm really excited that you are interested in contributing to Vue.js. Before ## Development Setup -You will need [Node.js](http://nodejs.org) **version 12+** and [pnpm](https://pnpm.io/). +You will need [Node.js](https://nodejs.org) **version 12+** and [pnpm](https://pnpm.io/). After cloning the repo, run: diff --git a/examples/classic/todomvc/index.html b/examples/classic/todomvc/index.html index 504d93597d7..3d9557edf99 100644 --- a/examples/classic/todomvc/index.html +++ b/examples/classic/todomvc/index.html @@ -54,8 +54,8 @@

todos