]> git.ipfire.org Git - thirdparty/vuejs/core.git/log
thirdparty/vuejs/core.git
2 years agochore: update snapshots
Evan You [Tue, 28 Mar 2023 09:35:42 +0000 (17:35 +0800)] 
chore: update snapshots

2 years agofix(compiler-sfc): avoid codegen conflict with user variable named `expose` (#7949)
三咲智子 Kevin Deng [Tue, 28 Mar 2023 09:34:23 +0000 (17:34 +0800)] 
fix(compiler-sfc): avoid codegen conflict with user variable named `expose` (#7949)

rename `expose` to `__expose` to avoid duplicate identifier

relate #7890

2 years agofix(compiler-sfc): disallow `expose` property in `defineOptions` (#7967)
三咲智子 Kevin Deng [Tue, 28 Mar 2023 09:32:37 +0000 (17:32 +0800)] 
fix(compiler-sfc): disallow `expose` property in `defineOptions` (#7967)

2 years agofeat(compiler-core): support parsing `const` modifier in type parameters (#7912)
三咲智子 Kevin Deng [Tue, 28 Mar 2023 09:31:23 +0000 (17:31 +0800)] 
feat(compiler-core): support parsing `const` modifier in type parameters (#7912)

2 years agofeat(compiler-sfc): improve runtime props inference for enum
Evan You [Tue, 28 Mar 2023 09:29:31 +0000 (17:29 +0800)] 
feat(compiler-sfc): improve runtime props inference for enum

2 years agofix(compiler-sfc): properly handle unknown types in runtime prop inference
Evan You [Tue, 28 Mar 2023 09:15:25 +0000 (17:15 +0800)] 
fix(compiler-sfc): properly handle unknown types in runtime prop inference

fix #7511

2 years agoRevert "fix(compiler-sfc): infer correct type for enums"
Evan You [Tue, 28 Mar 2023 08:55:19 +0000 (16:55 +0800)] 
Revert "fix(compiler-sfc): infer correct type for enums"

This reverts commit 2e074a70091e76359e930e733785100cd7dc66ed.

2 years agofix(compiler-sfc): infer correct type for enums
Evan You [Tue, 28 Mar 2023 08:39:13 +0000 (16:39 +0800)] 
fix(compiler-sfc): infer correct type for enums

fix #7511

2 years agofeat(compiler-sfc): support module string names syntax (#7428)
三咲智子 Kevin Deng [Tue, 28 Mar 2023 08:28:06 +0000 (16:28 +0800)] 
feat(compiler-sfc): support module string names syntax (#7428)

https://github.com/tc39/ecma262/pull/2154

2 years agofix(compiler-sfc): fix edge case of default export call with no args (#7536)
三咲智子 Kevin Deng [Tue, 28 Mar 2023 08:27:34 +0000 (16:27 +0800)] 
fix(compiler-sfc): fix edge case of default export call with no args (#7536)

closes #7534

2 years agofix(compiler-sfc): properly remove comma of multiple macros in the same declaration...
三咲智子 Kevin Deng [Tue, 28 Mar 2023 08:23:39 +0000 (16:23 +0800)] 
fix(compiler-sfc): properly remove comma of multiple macros in the same declaration (#7423)

closes #7422
reverts #6778

2 years agofix(compiler-sfc): allow `<script>` with lang='js' (#7398)
三咲智子 Kevin Deng [Tue, 28 Mar 2023 07:48:41 +0000 (15:48 +0800)] 
fix(compiler-sfc): allow `<script>` with lang='js' (#7398)

2 years agofix(compiler-sfc): handle more TS built-in utilities in defineProps inference
Evan You [Tue, 28 Mar 2023 07:40:25 +0000 (15:40 +0800)] 
fix(compiler-sfc): handle more TS built-in utilities in defineProps inference

2 years agofix(compiler-sfc): infer TSIntersectionType in defineProps (#7394)
三咲智子 Kevin Deng [Tue, 28 Mar 2023 07:40:03 +0000 (15:40 +0800)] 
fix(compiler-sfc): infer TSIntersectionType in defineProps (#7394)

2 years agofix(compiler-sfc): unwrap TS node for defineProps (#7340)
三咲智子 Kevin Deng [Tue, 28 Mar 2023 07:22:01 +0000 (15:22 +0800)] 
fix(compiler-sfc): unwrap TS node for defineProps (#7340)

2 years agofix(compiler-sfc): infer TS Extract&Exclude runtime type (#7339)
三咲智子 Kevin Deng [Tue, 28 Mar 2023 07:19:14 +0000 (15:19 +0800)] 
fix(compiler-sfc): infer TS Extract&Exclude runtime type (#7339)

closes #7337
closes #6252

2 years agofix(compiler-sfc): infer function prop type from type literal w/ callable signature...
三咲智子 Kevin Deng [Tue, 28 Mar 2023 03:59:21 +0000 (11:59 +0800)] 
fix(compiler-sfc): infer function prop type from type literal w/ callable signature (#7119)

2 years agofix(compiler-sfc): rewrite default export with AST analysis instead of regex (#7068)
三咲智子 Kevin Deng [Tue, 28 Mar 2023 03:54:22 +0000 (11:54 +0800)] 
fix(compiler-sfc): rewrite default export with AST analysis instead of regex (#7068)

closes #7038
closes #7041
closes #7078

2 years agofeat(complier-sfc): hoist literal constants for script (#5752)
三咲智子 Kevin Deng [Tue, 28 Mar 2023 03:34:29 +0000 (11:34 +0800)] 
feat(complier-sfc): hoist literal constants for script (#5752)

- Support using literal constants in macros
- fix useCssVars insert position edge case
- fix non-literal-const enum hoisting

close #5750

2 years agofix(types): revert jsx global removal (to be removed in 3.4)
Evan You [Tue, 28 Mar 2023 03:17:38 +0000 (11:17 +0800)] 
fix(types): revert jsx global removal (to be removed in 3.4)

2 years agofix(jsx-runtime): fix automatic runtime implementation (#7959)
Remco Haszing [Tue, 28 Mar 2023 03:06:49 +0000 (05:06 +0200)] 
fix(jsx-runtime): fix automatic runtime implementation (#7959)

2 years agofeat(compiler-sfc): add defineOptions macro (#5738)
三咲智子 Kevin Deng [Tue, 28 Mar 2023 02:43:51 +0000 (10:43 +0800)] 
feat(compiler-sfc): add defineOptions macro (#5738)

2 years agochore: eslint node env should apply to root ts config files (#7687)
三咲智子 Kevin Deng [Tue, 28 Mar 2023 01:56:21 +0000 (09:56 +0800)] 
chore: eslint node env should apply to root ts config files (#7687)

2 years agochore: remove unused deps
Evan You [Tue, 28 Mar 2023 01:53:33 +0000 (09:53 +0800)] 
chore: remove unused deps

close #7365

2 years agochore(deps): upgrade rollup & magic-string (#7326)
三咲智子 Kevin Deng [Tue, 28 Mar 2023 01:52:06 +0000 (09:52 +0800)] 
chore(deps): upgrade rollup & magic-string (#7326)

2 years agobuild: exit with code 1 on release failure (#7962)
Haoqun Jiang [Tue, 28 Mar 2023 01:43:09 +0000 (09:43 +0800)] 
build: exit with code 1 on release failure (#7962)

See https://github.com/vuejs/core/actions/runs/4527710331/jobs/7973811532#step:6:279

The canary release action should fail if the release script fails.

2 years agobuild: don't wait for changelog edits when `--skip-prompts` or `--canary` is specifie...
Haoqun Jiang [Tue, 28 Mar 2023 01:42:45 +0000 (09:42 +0800)] 
build: don't wait for changelog edits when `--skip-prompts` or `--canary` is specified (#7965)

2 years agotest: add test for defineComponent function syntax with object emits
Evan You [Tue, 28 Mar 2023 00:57:56 +0000 (08:57 +0800)] 
test: add test for defineComponent function syntax with object emits

2 years agofeat(sfc): deprecate reactivity transform
Evan You [Mon, 27 Mar 2023 12:56:07 +0000 (20:56 +0800)] 
feat(sfc): deprecate reactivity transform

2 years agoci: avoid duplicated ci runs on self-repo pull requests
Evan You [Mon, 27 Mar 2023 10:32:45 +0000 (18:32 +0800)] 
ci: avoid duplicated ci runs on self-repo pull requests

2 years agofeat(types): `defineComponent()` with generics support (#7963)
Evan You [Mon, 27 Mar 2023 10:28:43 +0000 (18:28 +0800)] 
feat(types): `defineComponent()` with generics support (#7963)

BREAKING CHANGE: The type of `defineComponent()` when passing in a function has changed. This overload signature is rarely used in practice and the breakage will be minimal, so repurposing it to something more useful should be worth it.

close #3102

2 years agochore: fix type
Evan You [Mon, 27 Mar 2023 10:03:02 +0000 (18:03 +0800)] 
chore: fix type

2 years agofix(types/jsx): remove $slots children override
Evan You [Sun, 26 Mar 2023 09:44:01 +0000 (17:44 +0800)] 
fix(types/jsx): remove $slots children override

2 years agorelease: v3.3.0-alpha.5 v3.3.0-alpha.5
Evan You [Sun, 26 Mar 2023 08:52:46 +0000 (16:52 +0800)] 
release: v3.3.0-alpha.5

2 years agofeat(types/jsx): support jsxImportSource, avoid global JSX conflict (#7958)
Evan You [Sun, 26 Mar 2023 08:40:53 +0000 (16:40 +0800)] 
feat(types/jsx): support jsxImportSource, avoid global JSX conflict (#7958)

- No longer implicitly register global JSX types by default
  - This avoid conflict when using Vue in the same project with React
  - Global registration must now be done by explicitly importing /
    referencing `vue/jsx`, or listing it in `compilerOptions.types`.
- Add `vue/jsx-runtime` to support `jsxImportSource` usage
  - Can enable globally by setting `compilerOptions.jsxImportSource` to `'vue'`
  - Can also opt-in per-file with `/** @jsxImportSource vue */`

2 years agochore: allow editing changelog before committing release
Evan You [Sun, 26 Mar 2023 08:38:42 +0000 (16:38 +0800)] 
chore: allow editing changelog before committing release

2 years agofix(types): ensure defineProps with generics return correct types
Evan You [Sun, 26 Mar 2023 07:58:04 +0000 (15:58 +0800)] 
fix(types): ensure defineProps with generics return correct types

2 years agochore: add redirect for template explorer
Evan You [Sun, 26 Mar 2023 01:37:35 +0000 (09:37 +0800)] 
chore: add redirect for template explorer

2 years agotest: improve test case on `$el` (#7922)
Himself65 [Sat, 25 Mar 2023 01:01:10 +0000 (20:01 -0500)] 
test: improve test case on `$el` (#7922)

2 years agofeat(dx): improve readability of displayed types for props
Evan You [Fri, 24 Mar 2023 07:06:43 +0000 (15:06 +0800)] 
feat(dx): improve readability of displayed types for props

2 years agobuild: upgrade to TypeScript 5.x
Evan You [Thu, 23 Mar 2023 09:11:35 +0000 (17:11 +0800)] 
build: upgrade to TypeScript 5.x

2 years agochore: bump vite & vitest
Evan You [Thu, 23 Mar 2023 08:36:33 +0000 (16:36 +0800)] 
chore: bump vite & vitest

2 years agobuild: bump rollup, remove cjs re-exports hack
Evan You [Thu, 23 Mar 2023 08:33:10 +0000 (16:33 +0800)] 
build: bump rollup, remove cjs re-exports hack

2 years agorefactor: remove circular dependencies in compiler
Evan You [Thu, 23 Mar 2023 08:30:42 +0000 (16:30 +0800)] 
refactor: remove circular dependencies in compiler

2 years agobuild: fix canary bundling issues (#7907)
Haoqun Jiang [Fri, 17 Mar 2023 08:47:48 +0000 (16:47 +0800)] 
build: fix canary bundling issues (#7907)

1. correct the rollup config after the package name changed
2. fix the same-day patch version bump of canary releases

2 years agoci: release canary versions every week (#7860)
Haoqun Jiang [Fri, 17 Mar 2023 07:37:29 +0000 (15:37 +0800)] 
ci: release canary versions every week (#7860)

* build: support `--canary` flag for canary releases

Also adds `--skip-git` and `--skip-prompts` flags as they would be
useful in ecosystem-ci

* ci: add a workflow to do canary releases every Monday

* build: allow manually releasing patch canary versions

* chore: don't bother updating the README

As far as I know, only Knighly modifies the README for nightly builds:
<https://www.npmjs.com/package/@knightly/vue>

Nuxt, React, and TypeScript all keep the README as-is for edge releases.

So I think we can avoid the complexity here.

* refactor: checkCIStatus -> getCIResult

* chore: keep the canary major in sync with the repo major

* fix: fix version rewriting

* fix: `@vue/compat` is also a core package

The directory name format of `@vue/compat` is different from other core packages, so it needs to be handled separately.

Missing it didn't cause any problems because the `isCorePackage`
function is only used to test dependency names, and `@vue/compat` isn't
used as a dependency anywhere.

But it's good to fix it anyway.

2 years agoci: only disable threads for gh
Evan You [Tue, 21 Feb 2023 14:46:43 +0000 (22:46 +0800)] 
ci: only disable threads for gh

2 years agochore: remove warnings due to potential false-positives
Evan You [Tue, 21 Feb 2023 14:43:45 +0000 (22:43 +0800)] 
chore: remove warnings due to potential false-positives

2 years agofix(runtime-core): support `getCurrentInstance` across mutiple builds of Vue
Evan You [Tue, 21 Feb 2023 13:59:41 +0000 (21:59 +0800)] 
fix(runtime-core): support `getCurrentInstance` across mutiple builds of Vue

2 years agochore: bump vitest + use threads
Evan You [Tue, 21 Feb 2023 12:44:00 +0000 (20:44 +0800)] 
chore: bump vitest + use threads

2 years agorefactor(runtime-core): use Symbol.for for runtime Symbols
Evan You [Tue, 21 Feb 2023 09:42:06 +0000 (17:42 +0800)] 
refactor(runtime-core): use Symbol.for for runtime Symbols

2 years agochore: fix typo (#7680) 6919/head 7626/head
丶远方 [Sat, 11 Feb 2023 16:55:21 +0000 (00:55 +0800)] 
chore: fix typo (#7680)

2 years agoci: add a ecosystem-ci-trigger workflow (#7618)
Haoqun Jiang [Fri, 10 Feb 2023 11:02:41 +0000 (19:02 +0800)] 
ci: add a ecosystem-ci-trigger workflow (#7618)

2 years agorelease: v3.3.0-alpha.4 v3.3.0-alpha.4
Evan You [Mon, 6 Feb 2023 06:10:56 +0000 (14:10 +0800)] 
release: v3.3.0-alpha.4

2 years agofix(build): fix const enum w/ number values
Evan You [Mon, 6 Feb 2023 06:03:15 +0000 (14:03 +0800)] 
fix(build): fix const enum w/ number values

2 years agorelease: v3.3.0-alpha.3 v3.3.0-alpha.3
Evan You [Mon, 6 Feb 2023 02:27:25 +0000 (10:27 +0800)] 
release: v3.3.0-alpha.3

2 years agobuild: fix const enum when cache dir does not exist
Evan You [Mon, 6 Feb 2023 01:47:46 +0000 (09:47 +0800)] 
build: fix const enum when cache dir does not exist

2 years agofix(build): avoid const enum conflicts
Evan You [Mon, 6 Feb 2023 01:44:12 +0000 (09:44 +0800)] 
fix(build): avoid const enum conflicts

2 years agobuild: reuse const enum data between concurrent rollup builds
Evan You [Mon, 6 Feb 2023 01:35:08 +0000 (09:35 +0800)] 
build: reuse const enum data between concurrent rollup builds

2 years agochore: catch unhandled export as just in case
Evan You [Mon, 6 Feb 2023 01:02:41 +0000 (09:02 +0800)] 
chore: catch unhandled export as just in case

2 years agorelease: v3.3.0-alpha.2 v3.3.0-alpha.2
Evan You [Sun, 5 Feb 2023 08:23:54 +0000 (16:23 +0800)] 
release: v3.3.0-alpha.2

2 years agochore: avoid double-building types on release
Evan You [Sun, 5 Feb 2023 08:05:33 +0000 (16:05 +0800)] 
chore: avoid double-building types on release

2 years agofix(build): fix dev flag replacement in esm-bundler builds
Evan You [Sun, 5 Feb 2023 05:26:01 +0000 (13:26 +0800)] 
fix(build): fix dev flag replacement in esm-bundler builds

2 years agorelease: v3.3.0-alpha.1 v3.3.0-alpha.1
Evan You [Sun, 5 Feb 2023 03:20:39 +0000 (11:20 +0800)] 
release: v3.3.0-alpha.1

2 years agobuild: improve dts rollup output
Evan You [Sat, 4 Feb 2023 03:59:42 +0000 (11:59 +0800)] 
build: improve dts rollup output

2 years agochore: use workspace vue dep for sfc-playground
Evan You [Fri, 3 Feb 2023 13:49:18 +0000 (21:49 +0800)] 
chore: use workspace vue dep for sfc-playground

2 years agotest: more strict linking in dts tests
Evan You [Fri, 3 Feb 2023 13:41:33 +0000 (21:41 +0800)] 
test: more strict linking in dts tests

2 years agobuild: stricter conditions for UnaryExpression in const enum plugin
Evan You [Fri, 3 Feb 2023 10:29:17 +0000 (18:29 +0800)] 
build: stricter conditions for UnaryExpression in const enum plugin

2 years agochore: use consistent ts-check comments in scripts
Evan You [Fri, 3 Feb 2023 10:24:03 +0000 (18:24 +0800)] 
chore: use consistent ts-check comments in scripts

2 years agochore: update packageManager field
Evan You [Fri, 3 Feb 2023 10:18:20 +0000 (18:18 +0800)] 
chore: update packageManager field

2 years agochore: use type: "module"
Evan You [Fri, 3 Feb 2023 10:12:56 +0000 (18:12 +0800)] 
chore: use type: "module"

2 years agodocs: document git hooks [ci skip]
Evan You [Fri, 3 Feb 2023 10:03:33 +0000 (18:03 +0800)] 
docs: document git hooks [ci skip]

2 years agoci: avoid netlify oom
Evan You [Fri, 3 Feb 2023 09:50:20 +0000 (17:50 +0800)] 
ci: avoid netlify oom

2 years agodocs: update contributing guide
Evan You [Fri, 3 Feb 2023 09:47:34 +0000 (17:47 +0800)] 
docs: update contributing guide

2 years agobuild: fix size check
Evan You [Fri, 3 Feb 2023 09:22:01 +0000 (17:22 +0800)] 
build: fix size check

2 years agobuild: adjust dts test setup
Evan You [Fri, 3 Feb 2023 09:10:31 +0000 (17:10 +0800)] 
build: adjust dts test setup

2 years agoci: try puppeteer fix
Evan You [Fri, 3 Feb 2023 08:46:57 +0000 (16:46 +0800)] 
ci: try puppeteer fix

2 years agobuild: fix handling of const enum that rely on previous values
Evan You [Fri, 3 Feb 2023 08:26:56 +0000 (16:26 +0800)] 
build: fix handling of const enum that rely on previous values

2 years agobuild: remove api-extractor
Evan You [Fri, 3 Feb 2023 07:57:00 +0000 (15:57 +0800)] 
build: remove api-extractor

2 years agobuild: use rollup-plugin-dts for dts build
Evan You [Fri, 3 Feb 2023 07:48:12 +0000 (15:48 +0800)] 
build: use rollup-plugin-dts for dts build

2 years agobuild: custom const enum processing
Evan You [Fri, 3 Feb 2023 01:54:15 +0000 (09:54 +0800)] 
build: custom const enum processing

2 years agochore: bump deps
Evan You [Thu, 2 Feb 2023 21:47:40 +0000 (05:47 +0800)] 
chore: bump deps

2 years agobuild: refactor rollup config
Evan You [Thu, 2 Feb 2023 21:00:06 +0000 (05:00 +0800)] 
build: refactor rollup config

2 years agochore: remove hanging slash from import
Evan You [Thu, 2 Feb 2023 14:13:53 +0000 (22:13 +0800)] 
chore: remove hanging slash from import

2 years agoworkflow: type check on commit
Evan You [Thu, 2 Feb 2023 08:36:07 +0000 (16:36 +0800)] 
workflow: type check on commit

2 years agochore: remove rpts2
Evan You [Thu, 2 Feb 2023 08:26:12 +0000 (16:26 +0800)] 
chore: remove rpts2

2 years agowip: isolatedModules + use rollup-plugin-esbuild
Evan You [Thu, 2 Feb 2023 08:20:32 +0000 (16:20 +0800)] 
wip: isolatedModules + use rollup-plugin-esbuild

2 years agobuild: only enable esModule compat for cjs builds
Evan You [Thu, 2 Feb 2023 14:32:21 +0000 (22:32 +0800)] 
build: only enable esModule compat for cjs builds

2 years agoworkflow: disable threads during tests
Evan You [Thu, 2 Feb 2023 14:08:37 +0000 (22:08 +0800)] 
workflow: disable threads during tests

2 years agochore: define compile time flags during size check
Evan You [Thu, 2 Feb 2023 13:37:10 +0000 (21:37 +0800)] 
chore: define compile time flags during size check

2 years agofix(build): ensure BaseTransition functions can be tree-shaken
Evan You [Thu, 2 Feb 2023 13:36:36 +0000 (21:36 +0800)] 
fix(build): ensure BaseTransition functions can be tree-shaken

2 years agochore: fix size reporting for brotli
Evan You [Thu, 2 Feb 2023 12:54:39 +0000 (20:54 +0800)] 
chore: fix size reporting for brotli

2 years agochore: fix types
Evan You [Thu, 2 Feb 2023 07:27:29 +0000 (15:27 +0800)] 
chore: fix types

2 years agorelease: v3.2.47 v3.2.47
Evan You [Thu, 2 Feb 2023 05:48:18 +0000 (13:48 +0800)] 
release: v3.2.47

2 years agofix(build): enforce __esModule interop for cjs builds
Evan You [Thu, 2 Feb 2023 05:41:25 +0000 (13:41 +0800)] 
fix(build): enforce __esModule interop for cjs builds

2 years agorelease: v3.2.46 v3.2.46
Evan You [Thu, 2 Feb 2023 03:32:04 +0000 (11:32 +0800)] 
release: v3.2.46

2 years agoworkflow: check ci status during release
Evan You [Thu, 2 Feb 2023 03:24:26 +0000 (11:24 +0800)] 
workflow: check ci status during release

2 years agofix(types): optional boolean props should have boolean type in return type of defineP...
三咲智子 Kevin Deng [Thu, 2 Feb 2023 02:57:28 +0000 (10:57 +0800)] 
fix(types): optional boolean props should have boolean type in return type of defineProps (#7619)

close #7116
fix #5847
fix #7487

2 years agofix(compiler-sfc): support resolving type declaration from normal script (#5831)
edison [Wed, 1 Feb 2023 09:24:50 +0000 (17:24 +0800)] 
fix(compiler-sfc): support resolving type declaration from normal script (#5831)

fix #5830

2 years agofix(runtime-core): fix keep-alive cache prune logic on vnodes with same type but...
李想 [Wed, 1 Feb 2023 09:02:03 +0000 (17:02 +0800)] 
fix(runtime-core): fix keep-alive cache prune logic on vnodes with same type but different keys (#7510)

fix #7355