Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vuejs/vue
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.7.0-alpha.8
Choose a base ref
...
head repository: vuejs/vue
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Jun 14, 2022

  1. chore: changelog [ci skip]

    yyx990803 committed Jun 14, 2022
    Copy the full SHA
    903d9b2 View commit details

Commits on Jun 15, 2022

  1. Copy the full SHA
    452aa9d View commit details
  2. Copy the full SHA
    d4787e5 View commit details
  3. Copy the full SHA
    4b19339 View commit details
  4. Copy the full SHA
    aa2b1f4 View commit details
  5. Copy the full SHA
    bd8409b View commit details

Commits on Jun 16, 2022

  1. Copy the full SHA
    3c2707b View commit details
  2. Copy the full SHA
    7173ad4 View commit details
  3. release: v2.7.0-alpha.9

    yyx990803 committed Jun 16, 2022
    Copy the full SHA
    5a0cc58 View commit details
  4. Copy the full SHA
    749b96d View commit details
  5. Copy the full SHA
    cdfd9f3 View commit details
  6. chore: fix snapshot

    yyx990803 committed Jun 16, 2022
    Copy the full SHA
    b3432ff View commit details
  7. Copy the full SHA
    457fe6d View commit details
  8. release: v2.7.0-alpha.10

    yyx990803 committed Jun 16, 2022
    Copy the full SHA
    fa2115c View commit details
  9. Copy the full SHA
    2726b6d View commit details
  10. release: v2.7.0-alpha.11

    yyx990803 committed Jun 16, 2022
    Copy the full SHA
    ac88827 View commit details
  11. Copy the full SHA
    8ce585d View commit details
  12. release: v2.7.0-alpha.12

    yyx990803 committed Jun 16, 2022
    Copy the full SHA
    96cd1d0 View commit details
  13. Copy the full SHA
    8f5817a View commit details

Commits on Jun 17, 2022

  1. Copy the full SHA
    cdfc4c1 View commit details
  2. Copy the full SHA
    efa8a74 View commit details
  3. release: v2.7.0-beta.1

    yyx990803 committed Jun 17, 2022
    Copy the full SHA
    b2332fa View commit details
  4. Copy the full SHA
    328ebff View commit details
  5. release: v2.7.0-beta.2

    yyx990803 committed Jun 17, 2022
    Copy the full SHA
    9b4e179 View commit details

Commits on Jun 18, 2022

  1. feat: useCssModules

    yyx990803 committed Jun 18, 2022
    Copy the full SHA
    0fabda7 View commit details

Commits on Jun 20, 2022

  1. Copy the full SHA
    2533a36 View commit details
  2. Copy the full SHA
    52cf912 View commit details
  3. Copy the full SHA
    769c053 View commit details
  4. Copy the full SHA
    9d54f8b View commit details
  5. Copy the full SHA
    2d67641 View commit details
  6. feat(sfc): css v-bind

    yyx990803 committed Jun 20, 2022
    Copy the full SHA
    8ab0074 View commit details
  7. Copy the full SHA
    d3916b6 View commit details
  8. Copy the full SHA
    0f2cede View commit details
  9. ci: e2e test fix

    yyx990803 committed Jun 20, 2022
    Copy the full SHA
    c9d0e3a View commit details
  10. release: v2.7.0-beta.3

    yyx990803 committed Jun 20, 2022
    Copy the full SHA
    de03f69 View commit details

Commits on Jun 21, 2022

  1. Copy the full SHA
    9b9f2bf View commit details
  2. release: v2.7.0-beta.4

    yyx990803 committed Jun 21, 2022
    Copy the full SHA
    a122bd2 View commit details

Commits on Jun 22, 2022

  1. Copy the full SHA
    65531f5 View commit details
  2. chore: remove unused code

    Vue 2 has no inline mode so template ref ref_key logic is unnecessary
    yyx990803 committed Jun 22, 2022
    Copy the full SHA
    fb7f5f0 View commit details
  3. Copy the full SHA
    7a3aa3f View commit details
  4. release: v2.7.0-beta.5

    yyx990803 committed Jun 22, 2022
    Copy the full SHA
    530b56a View commit details

Commits on Jun 23, 2022

  1. Copy the full SHA
    44ab1cd View commit details

Commits on Jun 26, 2022

  1. Copy the full SHA
    089b27c View commit details
  2. release: v2.7.0-beta.6

    yyx990803 committed Jun 26, 2022
    Copy the full SHA
    20e7e7e View commit details

Commits on Jun 27, 2022

  1. Copy the full SHA
    11e4bfe View commit details
  2. 1
    Copy the full SHA
    5b94562 View commit details
  3. release: v2.7.0-beta.7

    yyx990803 committed Jun 27, 2022
    Copy the full SHA
    bf64c4d View commit details

Commits on Jun 28, 2022

  1. Copy the full SHA
    008d78b View commit details
  2. release: v2.7.0-beta.8

    yyx990803 committed Jun 28, 2022
    Copy the full SHA
    0ea6c36 View commit details

Commits on Jul 1, 2022

  1. Copy the full SHA
    326d24a View commit details
Showing with 9,569 additions and 3,874 deletions.
  1. +1 −1 .github/CODE_OF_CONDUCT.md
  2. +1 −1 .github/CONTRIBUTING.md
  3. +6 −9 .github/ISSUE_TEMPLATE/config.yml
  4. +1 −1 .github/PULL_REQUEST_TEMPLATE.md
  5. +8 −8 .github/workflows/ci.yml
  6. +537 −15 CHANGELOG.md
  7. +21 −7 README.md
  8. +1 −1 benchmarks/ssr/renderToStream.js
  9. +1 −1 benchmarks/ssr/renderToString.js
  10. +76 −0 dist/vue.runtime.mjs
  11. +1 −1 examples/classic/elastic-header/index.html
  12. +2 −2 examples/classic/todomvc/app.js
  13. +2 −2 examples/classic/todomvc/index.html
  14. +7 −7 examples/classic/todomvc/readme.md
  15. +1 −1 examples/composition/todomvc.html
  16. +17 −13 package.json
  17. +7 −5 packages/compiler-sfc/package.json
  18. +100 −132 packages/compiler-sfc/src/compileScript.ts
  19. +16 −12 packages/compiler-sfc/src/compileStyle.ts
  20. +28 −20 packages/compiler-sfc/src/compileTemplate.ts
  21. +179 −0 packages/compiler-sfc/src/cssVars.ts
  22. +21 −5 packages/compiler-sfc/src/index.ts
  23. +16 −6 packages/compiler-sfc/src/parse.ts
  24. +19 −6 packages/compiler-sfc/src/parseComponent.ts
  25. +34 −12 packages/compiler-sfc/src/{stripWith.ts → prefixIdentifiers.ts}
  26. +121 −0 packages/compiler-sfc/src/rewriteDefault.ts
  27. +27 −31 packages/compiler-sfc/src/stylePlugins/scoped.ts
  28. +4 −0 packages/compiler-sfc/src/templateCompilerModules/assetUrl.ts
  29. +1 −1 packages/compiler-sfc/src/templateCompilerModules/srcset.ts
  30. +28 −6 packages/compiler-sfc/src/templateCompilerModules/utils.ts
  31. +4 −30 packages/compiler-sfc/src/types.ts
  32. +121 −543 packages/compiler-sfc/test/__snapshots__/compileScript.spec.ts.snap
  33. +189 −0 packages/compiler-sfc/test/__snapshots__/cssVars.spec.ts.snap
  34. +73 −146 packages/compiler-sfc/test/compileScript.spec.ts
  35. +4 −4 packages/compiler-sfc/test/compileStyle.spec.ts
  36. +33 −4 packages/compiler-sfc/test/compileTemplate.spec.ts
  37. +247 −0 packages/compiler-sfc/test/cssVars.spec.ts
  38. +11 −8 packages/compiler-sfc/test/parseComponent.spec.ts
  39. +97 −0 packages/compiler-sfc/test/prefixIdentifiers.spec.ts
  40. +311 −0 packages/compiler-sfc/test/rewriteDefault.spec.ts
  41. +0 −55 packages/compiler-sfc/test/stripWith.spec.ts
  42. +35 −0 packages/compiler-sfc/test/util.ts
  43. +2 −2 packages/server-renderer/package.json
  44. +0 −4 packages/server-renderer/src/render-context.ts
  45. +9 −1 packages/server-renderer/src/render.ts
  46. +3 −2 packages/server-renderer/test/ssr-basic-renderer.spec.ts
  47. +1 −1 packages/server-renderer/test/ssr-bundle-render.spec.ts
  48. +196 −0 packages/server-renderer/test/ssr-reactivity.spec.ts
  49. +6 −4 packages/server-renderer/test/ssr-stream.spec.ts
  50. +229 −126 packages/server-renderer/test/ssr-string.spec.ts
  51. +22 −0 packages/server-renderer/test/utils.ts
  52. +1 −1 packages/template-compiler/README.md
  53. +1 −1 packages/template-compiler/package.json
  54. +2,411 −1,942 pnpm-lock.yaml
  55. +3 −0 scripts/build.js
  56. +8 −12 scripts/config.js
  57. +1 −1 scripts/release.js
  58. +44 −4 src/compiler/codegen/index.ts
  59. +1 −1 src/compiler/parser/html-parser.ts
  60. +1 −1 src/compiler/parser/index.ts
  61. +13 −6 src/core/components/keep-alive.ts
  62. +2 −2 src/core/config.ts
  63. +3 −1 src/core/global-api/extend.ts
  64. +2 −1 src/core/index.ts
  65. +5 −1 src/core/instance/init.ts
  66. +10 −5 src/core/instance/inject.ts
  67. +50 −22 src/core/instance/lifecycle.ts
  68. +2 −2 src/core/instance/proxy.ts
  69. +1 −1 src/core/instance/render-helpers/render-static.ts
  70. +13 −8 src/core/instance/render.ts
  71. +21 −15 src/core/instance/state.ts
  72. +26 −6 src/core/observer/dep.ts
  73. +64 −67 src/core/observer/index.ts
  74. +12 −2 src/core/observer/scheduler.ts
  75. +4 −0 src/core/observer/traverse.ts
  76. +14 −5 src/core/observer/watcher.ts
  77. +3 −2 src/core/util/debug.ts
  78. +2 −1 src/core/util/next-tick.ts
  79. +20 −4 src/core/util/options.ts
  80. +5 −1 src/core/vdom/create-component.ts
  81. +13 −2 src/core/vdom/modules/directives.ts
  82. +2 −4 src/core/vdom/modules/template-ref.ts
  83. +5 −2 src/core/vdom/patch.ts
  84. +1 −0 src/core/vdom/vnode.ts
  85. +2 −0 src/global.d.ts
  86. +2 −1 src/platforms/web/runtime/components/transition-group.ts
  87. +2 −4 src/platforms/web/runtime/modules/style.ts
  88. +1 −1 src/platforms/web/util/element.ts
  89. +3 −1 src/shared/constants.ts
  90. +18 −6 src/shared/util.ts
  91. +5 −0 src/types/compiler.ts
  92. +2 −0 src/types/component.ts
  93. +8 −6 src/types/options.ts
  94. +1 −1 src/types/utils.ts
  95. +117 −0 src/v3/apiAsyncComponent.ts
  96. +17 −12 src/v3/apiInject.ts
  97. +16 −1 src/v3/apiLifecycle.ts
  98. +115 −43 src/v3/apiSetup.ts
  99. +20 −22 src/v3/apiWatch.ts
  100. +13 −1 src/v3/index.ts
  101. +9 −6 src/v3/reactivity/effectScope.ts
  102. +17 −3 src/v3/reactivity/reactive.ts
  103. +7 −1 src/v3/reactivity/readonly.ts
  104. +53 −9 src/v3/reactivity/ref.ts
  105. +24 −0 src/v3/sfc-helpers/useCssModule.ts
  106. +34 −0 src/v3/sfc-helpers/useCssVars.ts
  107. +3 −3 test/transition/karma.conf.js
  108. +1 −1 test/unit/features/global-api/config.spec.ts
  109. +0 −1 test/unit/features/options/functional.spec.ts
  110. +44 −1 test/unit/features/options/inject.spec.ts
  111. +18 −0 test/unit/features/options/props.spec.ts
  112. +2 −2 test/unit/features/template-ref.spec.ts
  113. +241 −0 test/unit/features/v3/apiAsyncComponent.spec.ts
  114. +101 −1 test/unit/features/v3/apiSetup.spec.ts
  115. +159 −4 test/unit/features/v3/apiWatch.spec.ts
  116. +36 −0 test/unit/features/v3/reactivity/effectScope.spec.ts
  117. +31 −0 test/unit/features/v3/reactivity/reactive.spec.ts
  118. +41 −5 test/unit/features/v3/reactivity/readonly.spec.ts
  119. +15 −1 test/unit/features/v3/reactivity/ref.spec.ts
  120. +24 −0 test/unit/features/v3/reactivity/shallowReactive.spec.ts
  121. +23 −23 test/unit/features/v3/setupTemplateRef.spec.ts
  122. +48 −0 test/unit/features/v3/useCssVars.spec.ts
  123. +36 −6 test/unit/modules/compiler/codegen.spec.ts
  124. +1 −1 test/unit/modules/compiler/parser.spec.ts
  125. +8 −3 test/unit/modules/observer/dep.spec.ts
  126. +11 −0 test/unit/modules/util/toString.spec.ts
  127. +15 −0 test/unit/modules/vdom/modules/style.spec.ts
  128. +42 −0 test/unit/modules/vdom/patch/edge-cases.spec.ts
  129. +1 −0 tsconfig.json
  130. +63 −0 types/built-in-components.d.ts
  131. +6 −0 types/common.d.ts
  132. +19 −6 types/index.d.ts
  133. +20 −4 types/jsx.d.ts
  134. +43 −13 types/options.d.ts
  135. +1 −1 types/test/async-component-test.ts
  136. +8 −1 types/test/augmentation-test.ts
  137. +8 −1 types/test/options-test.ts
  138. +144 −0 types/test/setup-helpers-test.ts
  139. +19 −0 types/test/v3/define-async-component-test.tsx
  140. +1,227 −0 types/test/v3/define-component-test.tsx
  141. +12 −1 types/test/v3/reactivity-test.ts
  142. +11 −0 types/test/v3/setup-test.ts
  143. +17 −1 types/test/v3/tsx-test.tsx
  144. +15 −1 types/test/v3/watch-test.ts
  145. +46 −8 types/test/vue-test.ts
  146. +0 −1 types/tsconfig.json
  147. +163 −31 types/v3-component-options.d.ts
  148. +19 −20 types/v3-component-props.d.ts
  149. +0 −189 types/v3-component-proxy.d.ts
  150. +232 −0 types/v3-component-public-instance.d.ts
  151. +26 −0 types/v3-define-async-component.d.ts
  152. +103 −21 types/v3-define-component.d.ts
  153. 0 types/{v3-directive.ts → v3-directive.d.ts}
  154. +2 −2 types/v3-manual-apis.d.ts
  155. +5 −6 types/v3-setup-context.d.ts
  156. +154 −0 types/v3-setup-helpers.d.ts
  157. +30 −2 types/vnode.d.ts
  158. +144 −34 types/vue.d.ts
  159. +4 −2 vitest.config.ts
2 changes: 1 addition & 1 deletion .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -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/)
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -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 18+** and [pnpm](https://pnpm.io/) **version 8+**.

After cloning the repo, run:

15 changes: 6 additions & 9 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Create new issue
url: https://new-issue.vuejs.org/
about: Please use the following link to create a new issue.
- name: Patreon
url: https://www.patreon.com/evanyou
about: Love Vue.js? Please consider supporting us via Patreon.
- name: Open Collective
url: https://opencollective.com/vuejs/donate
about: Love Vue.js? Please consider supporting us via Open Collective.
- name: Vue 2 has reached EOL!
url: https://v2.vuejs.org/eol/
about: Vue 2 has reached EOL and is no longer actively maintained. Click the link on the right for more details.
- name: Vue 2 NES by HeroDevs
url: https://www.herodevs.com/support/nes-vue?utm_source=vuejs-github&utm_medium=issue-form
about: Learn more about Vue 2 NES if you have security or compliance requirements for continued Vue 2 usage.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ If yes, please describe the impact and migration path for existing applications:

**The PR fulfills these requirements:**

- [ ] It's submitted to the `dev` branch for v2.x (or to a previous version branch), _not_ the `master` branch
- [ ] It's submitted to the `main` branch for v2.x (or to a previous version branch)
- [ ] When resolving a specific issue, it's referenced in the PR's title (e.g. `fix #xxx[,#xxx]`, where "xxx" is the issue number)
- [ ] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
- [ ] New/updated tests are included
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -15,10 +15,10 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node version to 16
- name: Set node version to 18
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18
cache: 'pnpm'

- run: pnpm install
@@ -34,10 +34,10 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node version to 16
- name: Set node version to 18
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18
cache: 'pnpm'

- run: pnpm install
@@ -56,10 +56,10 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node version to 16
- name: Set node version to 18
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18
cache: 'pnpm'

- run: pnpm install
@@ -78,10 +78,10 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node version to 16
- name: Set node version to 18
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18
cache: 'pnpm'

- run: pnpm install
Loading