Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(compiler): compiler supports search tag #9249

Open
wants to merge 82 commits into
base: minor
Choose a base branch
from

Conversation

baiwusanyu-c
Copy link
Member

close: #9247

@github-actions
Copy link

github-actions bot commented Sep 19, 2023

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 102 kB (+3.24 kB) 38.6 kB (+1.15 kB) 34.7 kB (+956 B)
vue.global.prod.js 161 kB (+4.22 kB) 58.5 kB (+1.21 kB) 52 kB (+1.04 kB)

Usages

Name Size Gzip Brotli
createApp 55.2 kB (+1.02 kB) 21.2 kB (+235 B) 19.4 kB (+240 B)
createSSRApp 59.1 kB (+1 kB) 22.9 kB (+282 B) 20.9 kB (+248 B)
defineCustomElement 59.9 kB (+1.1 kB) 22.8 kB (+302 B) 20.7 kB (+238 B)
overall 68.9 kB (+1.16 kB) 26.3 kB (+304 B) 23.9 kB (+211 B)

sxzz
sxzz previously approved these changes Sep 19, 2023
@sxzz sxzz added ready to merge The PR is ready to be merged. 🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. labels Sep 19, 2023
@haoqunjiang haoqunjiang changed the base branch from main to minor October 19, 2023 11:05
@yyx990803
Copy link
Member

The way we handle built-in HTML tags makes this technically a breaking change if someone was previously having a component named search.

Right now:

  • If a tag is listed as built-in, it can't be registered as a component because the parser directly parses the tag as native.
  • If a tag is not listed as built-in but used in template, there will be a "failed to resolve component" warning.

Considering there might be more tags being added in the future, we might need to have a separate list of "late added tags". For these tags:

  • The parser will still parse them as potential components
  • At runtime, it will use a component with matching name if it is registered (but a "Do not use built-in tag..." warning is still thrown)
  • If no matching component is found, it falls back to render as native element, without the "failed to resolve component" warning.

@lukewarlow
Copy link

To provide a concrete example of more new tag names that might get added. https://open-ui.org/components/selectlist/ OpenUI is currently working on a new stylable select element, as part of that proposal at least 3 new Html elements are currently proposed to be added. And it's likely that more such elements will be added as time goes on. So search is definitely not going to be a one of or even necessarily a rarity.

@sxzz sxzz added need discussion and removed ready to merge The PR is ready to be merged. labels Oct 28, 2023
@sxzz sxzz dismissed their stale review October 28, 2023 07:08

Needs to discuss

@sxzz sxzz mentioned this pull request Oct 29, 2023
yyx990803 and others added 24 commits September 2, 2024 17:29
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…ptyTarget

# Conflicts:
#	packages/runtime-core/__tests__/components/Teleport.spec.ts
#	packages/runtime-core/src/components/Teleport.ts
@edison1105
Copy link
Member

The commit history in this pull request is quite extensive. Could you please squash the commits to make it more concise?

@sxzz
Copy link
Member

sxzz commented Oct 10, 2024

Because the minor branch is 2 commits ahead of main. We should update the minor branch first.

@edison1105 edison1105 deleted the branch vuejs:minor October 21, 2024 07:37
@edison1105 edison1105 closed this Oct 21, 2024
@edison1105 edison1105 reopened this Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. version: minor wait changes
Projects
Status: Needs Review
Development

Successfully merging this pull request may close these issues.

Missing support for <search> element