Skip to content

Commit 75d94f6

Browse files
committed
Merge branch 'main' of https://github.com/vuejs/core into comments
2 parents 4cda6a9 + 60cd23c commit 75d94f6

File tree

19 files changed

+33
-26
lines changed

19 files changed

+33
-26
lines changed

.github/contributing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ import { h } from '@vue/runtime-core'
261261
This is made possible via several configurations:
262262

263263
- For TypeScript, `compilerOptions.paths` in `tsconfig.json`
264-
- Vitest and Rollup share the sae set of aliases from `scripts/aliases.js`
264+
- Vitest and Rollup share the same set of aliases from `scripts/aliases.js`
265265
- For plain Node.js, they are linked using [PNPM Workspaces](https://pnpm.io/workspaces).
266266

267267
### Package Dependencies
@@ -330,4 +330,4 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
330330

331331
Thank you to all the people who have already contributed to Vue.js!
332332

333-
<a href="https://github.com/vuejs/vue/graphs/contributors"><img src="https://opencollective.com/vuejs/contributors.svg?width=890" /></a>
333+
<a href="https://github.com/vuejs/core/graphs/contributors"><img src="https://opencollective.com/vuejs/contributors.svg?width=890" /></a>

packages/compiler-sfc/src/compileScript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export function compileScript(
274274
const scriptAst = ctx.scriptAst
275275
const scriptSetupAst = ctx.scriptSetupAst!
276276

277-
// 1.1 walk import delcarations of <script>
277+
// 1.1 walk import declarations of <script>
278278
if (scriptAst) {
279279
for (const node of scriptAst.body) {
280280
if (node.type === 'ImportDeclaration') {

packages/compiler-sfc/src/script/defineModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function processDefineModel(
3030

3131
warnOnce(
3232
`This project is using defineModel(), which is an experimental ` +
33-
` feature. It may receive breaking changes or be removed in the future, so ` +
33+
`feature. It may receive breaking changes or be removed in the future, so ` +
3434
`use at your own risk.\n` +
3535
`To stay updated, follow the RFC at https://github.com/vuejs/rfcs/discussions/503.`
3636
)

packages/compiler-sfc/src/script/definePropsDestructure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function processPropsDestructure(
3434

3535
warnOnce(
3636
`This project is using reactive props destructure, which is an experimental ` +
37-
` feature. It may receive breaking changes or be removed in the future, so ` +
37+
`feature. It may receive breaking changes or be removed in the future, so ` +
3838
`use at your own risk.\n` +
3939
`To stay updated, follow the RFC at https://github.com/vuejs/rfcs/discussions/502.`
4040
)

packages/dts-test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Tests Typescript types to ensure the types remain as expected.
44

55
- This directory is included in the root `tsconfig.json`, where package imports are aliased to `src` directories, so in IDEs and the `pnpm check` script the types are validated against source code.
66

7-
- When running `tsc` with `packages/dts-test/tsconfig.test.json`, packages are resolved using using normal `node` resolution, so the types are validated against actual **built** types. This requires the types to be built first via `pnpm build-types`.
7+
- When running `tsc` with `packages/dts-test/tsconfig.test.json`, packages are resolved using normal `node` resolution, so the types are validated against actual **built** types. This requires the types to be built first via `pnpm build-types`.

packages/runtime-core/__tests__/apiWatch.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ describe('api: watch', () => {
10001000
},
10011001
mounted() {
10021002
// this call runs while Comp is currentInstance, but
1003-
// the effect for this `$watch` should nontheless be registered with Child
1003+
// the effect for this `$watch` should nonetheless be registered with Child
10041004
this.comp!.$watch(
10051005
() => this.show,
10061006
() => void 0
@@ -1171,7 +1171,7 @@ describe('api: watch', () => {
11711171
expect(instance!.scope.effects.length).toBe(1)
11721172
})
11731173

1174-
test('watchEffect should keep running if created in a detatched scope', async () => {
1174+
test('watchEffect should keep running if created in a detached scope', async () => {
11751175
const trigger = ref(0)
11761176
let countWE = 0
11771177
let countW = 0

packages/runtime-core/src/apiCreateApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export function createAppAPI<HostElement>(
221221
set() {
222222
warn(
223223
`app.config.unwrapInjectedRef has been deprecated. ` +
224-
`3.3 now alawys unwraps injected refs in Options API.`
224+
`3.3 now always unwraps injected refs in Options API.`
225225
)
226226
}
227227
})

packages/runtime-core/src/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export interface ComponentInternalInstance {
256256
*/
257257
ssrRender?: Function | null
258258
/**
259-
* Object containing values this component provides for its descendents
259+
* Object containing values this component provides for its descendants
260260
* @internal
261261
*/
262262
provides: Data

packages/runtime-dom/__tests__/customElement.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ describe('defineCustomElement', () => {
322322
emit('my-click', 1)
323323
},
324324
onMousedown: () => {
325-
emit('myEvent', 1) // validate hypenization
325+
emit('myEvent', 1) // validate hyphenation
326326
}
327327
})
328328
}

packages/runtime-dom/src/components/Transition.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ function getTimeout(delays: string[], durations: string[]): number {
445445
// If comma is not replaced with a dot, the input will be rounded down
446446
// (i.e. acting as a floor function) causing unexpected behaviors
447447
function toMs(s: string): number {
448+
// #8409 default value for CSS durations can be 'auto'
449+
if (s === 'auto') return 0
448450
return Number(s.slice(0, -1).replace(',', '.')) * 1000
449451
}
450452

packages/server-renderer/__tests__/ssrScopeId.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ describe('ssr: scopedId runtime behavior', () => {
156156
})
157157

158158
// #3513
159-
test('scopeId inheritance across ssr-compiled andn on-ssr compiled parent chain', async () => {
159+
test('scopeId inheritance across ssr-compiled and on-ssr compiled parent chain', async () => {
160160
const Child = {
161161
ssrRender: (ctx: any, push: any, parent: any, attrs: any) => {
162162
push(`<div${ssrRenderAttrs(attrs)}></div>`)

packages/sfc-playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"vite": "^4.3.0"
1313
},
1414
"dependencies": {
15-
"@vue/repl": "^1.4.1",
15+
"@vue/repl": "^1.5.0",
1616
"file-saver": "^2.0.5",
1717
"jszip": "^3.6.0",
1818
"vue": "workspace:*"

packages/shared/src/general.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export const looseToNumber = (val: any): any => {
149149
}
150150

151151
/**
152-
* Only conerces number-like strings
152+
* Only concerns number-like strings
153153
* "123-foo" will be returned as-is
154154
*/
155155
export const toNumber = (val: any): any => {

packages/shared/src/globalsAllowList.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ const GLOBALS_ALLOWED =
66
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console'
77

88
export const isGloballyAllowed = /*#__PURE__*/ makeMap(GLOBALS_ALLOWED)
9+
10+
/** @deprecated use `isGloballyAllowed` instead */
11+
export const isGloballyWhitelisted = isGloballyAllowed

packages/shared/src/normalizeProp.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ export function normalizeStyle(
1919
}
2020
}
2121
return res
22-
} else if (isString(value)) {
23-
return value
24-
} else if (isObject(value)) {
22+
} else if (isString(value) || isObject(value)) {
2523
return value
2624
}
2725
}

pnpm-lock.yaml

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rollup.dts.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default targetPackages.map(pkg => {
4646
* and remove them from the big export {} declaration
4747
* otherwise it gets weird in vitepress `defineComponent` call with
4848
* "the inferred type cannot be named without a reference"
49-
* 3. Append custom agumentations (jsx, macros)
49+
* 3. Append custom augmentations (jsx, macros)
5050
* @returns {import('rollup').Plugin}
5151
*/
5252
function patchTypes(pkg) {

scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ nr build core --formats cjs
1717
*/
1818

1919
import fs from 'node:fs/promises'
20-
import { existsSync, readFileSync, rmSync } from 'node:fs'
20+
import { existsSync, readFileSync } from 'node:fs'
2121
import path from 'node:path'
2222
import minimist from 'minimist'
2323
import { gzipSync, brotliCompressSync } from 'node:zlib'

scripts/const-enum.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
22

33
/**
4-
* We use rollup-plugin-esbuild for faster builds, but esbuild in insolation
4+
* We use rollup-plugin-esbuild for faster builds, but esbuild in isolation
55
* mode compiles const enums into runtime enums, bloating bundle size.
66
*
77
* Here we pre-process all the const enums in the project and turn them into
@@ -189,7 +189,7 @@ export function constEnum() {
189189
)
190190

191191
// 3. during transform:
192-
// 3.1 files w/ const enum declaration: remove delcaration
192+
// 3.1 files w/ const enum declaration: remove declaration
193193
// 3.2 files using const enum: inject into esbuild define
194194
/**
195195
* @type {import('rollup').Plugin}

0 commit comments

Comments
 (0)