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
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
a786f7c
feat: added isLateTag
baiwusanyu-c Oct 23, 2023
d4de55f
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 23, 2023
4451a17
chore: remove debugger
baiwusanyu-c Oct 23, 2023
0d86d59
chore: updated code
baiwusanyu-c Oct 23, 2023
3b41769
[autofix.ci] apply automated fixes
autofix-ci[bot] Oct 23, 2023
3013572
Merge branch 'minor' into bwsy/feat/compilerSearchElm
baiwusanyu-c Nov 20, 2023
f0dcf9e
chore: updated code
baiwusanyu-c Nov 20, 2023
97194ff
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 20, 2023
1618c0a
chore: updated warning info
baiwusanyu-c Nov 20, 2023
7ac7c0c
Merge remote-tracking branch 'origin/bwsy/feat/compilerSearchElm' int…
baiwusanyu-c Nov 20, 2023
9d1f862
chore: sync minor
baiwusanyu-c Dec 6, 2023
2975dcd
Merge branch 'minor' into bwsy/feat/compilerSearchElm
baiwusanyu-c Dec 8, 2023
f1a3c1b
Merge remote-tracking branch 'origin/main' into bwsy/feat/compilerSea…
baiwusanyu-c Jan 3, 2024
ec4ff32
[autofix.ci] apply automated fixes
autofix-ci[bot] Jan 3, 2024
7a6c665
workflow: pass along commit to ecosystem-ci pr workflow
yyx990803 Aug 16, 2024
b332f80
fix(runtime-core): pre jobs without an id should run first (#7746)
skirtles-code Aug 19, 2024
7fbf496
refactor(scheduler): remove redundant sorting (#11646)
skirtles-code Aug 19, 2024
4469972
chore(deps): update build (#11651)
renovate[bot] Aug 19, 2024
448c239
chore(deps): update dependency postcss-selector-parser to ^6.1.2 (#11…
renovate[bot] Aug 19, 2024
0e3d5cc
chore(deps): update all non-major dependencies (#11654)
renovate[bot] Aug 19, 2024
c183405
chore(deps): update lint (#11653)
renovate[bot] Aug 19, 2024
4b608a9
refactor(scheduler): remove invalidateJob (#11650)
skirtles-code Aug 19, 2024
ac2a410
fix(runtime-core): ensure suspense content inherit scopeId (#10652)
edison1105 Aug 19, 2024
98b83e8
fix(ssr): apply ssr props to the the fallback vnode-based branch in s…
edison1105 Aug 19, 2024
bb6babc
perf( runtime-core): use `apply` to avoid spreading. (#5985)
zhangenming Aug 19, 2024
44973bb
fix(types): strip non-prop default values from return type of withDef…
yangxiuxiu1115 Aug 19, 2024
205e5b5
feat(reactivity): base `watch`, `getCurrentWatcher`, and `onWatcherCl…
LittleSound Aug 20, 2024
fdcb06b
chore: log more precise digits for size script [ci skip]
yyx990803 Aug 20, 2024
8c3fdd1
release: v3.5.0-beta.3
yyx990803 Aug 20, 2024
7dbab27
chore: fix typo (#11663)[ci skip]
jh-leong Aug 20, 2024
f2ea25d
refactor(watch): reuse watch types
yyx990803 Aug 20, 2024
fbc0c42
fix(reactivity): ensure watcher with once: true are properly removed …
yangxiuxiu1115 Aug 20, 2024
342657b
chore: correct the issue number (#11715) [ci skip]
edison1105 Aug 26, 2024
42e8df6
fix(types): GlobalDirective / GlobalComponents should not be records
yyx990803 Aug 28, 2024
d875de5
fix(runtime-dom): setting innerHTML when patching props should go thr…
yyx990803 Aug 28, 2024
d6ccce9
test(types): component type check when props is an empty object (#7419)
rudyxu1102 Aug 28, 2024
334d47d
dx(compiler-sfc): improve error message for missing template and scri…
paulwer Aug 28, 2024
38fe300
workflow: update paths for private packages in `dev` script (#11668)
jh-leong Aug 28, 2024
4118040
chore(deps): update all non-major dependencies (#11708)
renovate[bot] Aug 28, 2024
434f8a9
fix(deps): update dependency monaco-editor to ^0.51.0 (#11713)
renovate[bot] Aug 28, 2024
5c3d89a
chore(deps): update build (#11709)
renovate[bot] Aug 28, 2024
873ccd3
chore(deps): update lint (#11710)
renovate[bot] Aug 28, 2024
080b604
chore(deps): update dependency jsdom to v25 (#11714)
renovate[bot] Aug 28, 2024
47d8158
chore: update coverage config to use explicit include
yyx990803 Aug 28, 2024
64e1ca2
chore(reactivity): effectScope.ts variable declarations optimized and…
heggria Aug 28, 2024
29c321b
fix(keep-alive): reset keep alive flag when the component is removed…
linzhe141 Aug 29, 2024
ac9e7e8
test: adjust coverage config, use v8 coverage
yyx990803 Aug 29, 2024
9c4c2e5
fix(compiler-sfc): skip circular tsconfig project reference (#11680)
cyrilluce Aug 29, 2024
313e4bf
fix(reactivity): avoid infinite recursion when mutating ref wrapped i…
yyx990803 Aug 29, 2024
1d988b5
test(reactivity): test case for #6358 (#6376)
lidlanca Aug 29, 2024
f1d1831
fix(custom-element): handle keys set on custom elements (#11655)
edison1105 Aug 29, 2024
d298c43
release: v3.5.0-rc.1
yyx990803 Aug 29, 2024
a3c104d
chore(scripts): fix clean script on windows (#11748)
sunil-sharma-999 Sep 2, 2024
d427bcd
chore: document parameters of onWatcherCleanup (#11768)
cexbrayat Sep 2, 2024
0387e1b
ci: prevents action from running on forks (#11766)
tolking Sep 2, 2024
3de5556
test(reactive): use vitest fn instead of counting manually (#11746)
coderwei99 Sep 2, 2024
c756da2
fix(hydration): handle text nodes with 0 during hydration (#11772)
edison1105 Sep 2, 2024
d86fe0e
feat(types): add loading prop to iframe (#11767)
chirokas Sep 2, 2024
0f7c0e5
fix(compiler-sfc): fix import usage check for kebab-case same name sh…
yyx990803 Sep 2, 2024
ab65185
chore(deps): update build (#11769)
renovate[bot] Sep 3, 2024
1fa3290
chore(deps): update all non-major dependencies (#11770)
renovate[bot] Sep 3, 2024
ec5afac
chore(deps): update lint (#11773)
renovate[bot] Sep 3, 2024
cb843e0
fix(deps): update dependency postcss to ^8.4.44 (#11774)
renovate[bot] Sep 3, 2024
ca12e77
fix(hydration): escape css var name to avoid mismatch (#11739)
edison1105 Sep 3, 2024
52cdb0f
fix(server-renderer): render `className` during SSR (#11722)
KazariEX Sep 3, 2024
9817c80
fix(reactivity): correctly handle method calls on user-extended array…
jh-leong Sep 3, 2024
7b5b6e0
fix(cssVars): correctly escape double quotes in SSR (#11784)
edison1105 Sep 3, 2024
6039e25
fix(server-renderer): Fix call to serverPrefetch in server renderer w…
deleteme Sep 3, 2024
b1be9bd
fix(runtime-dom): prevent unnecessary DOM update from v-model (#11656)
Procrustes5 Sep 3, 2024
fe07f70
fix(types/defineModel): allow getter and setter types to be unrelated…
jh-leong Sep 3, 2024
c3ce9fe
fix(runtime-dom): avoid unnecessary prop patch for checkbox (#11657)
Mini-ghost Sep 3, 2024
6402b98
release: v3.5.0
yyx990803 Sep 3, 2024
475977a
fix(reactivity): handle non-array arguments in reactive `concat` meth…
jh-leong Sep 4, 2024
4eee630
fix(build): improve built-in components treeshakability
yyx990803 Sep 4, 2024
4019369
chore(build): use /*@__PURE__*/ annotation consistently
yyx990803 Sep 4, 2024
7518bc1
fix(types): avoid using intersection type in `Readonly<...>` to fix J…
johnsoncodehk Sep 4, 2024
bc63df0
fix(useTemplateRef): fix readonly warning when useTemplateRef has sam…
yyx990803 Sep 4, 2024
51912f8
fix(Transition): avoid applying transition hooks on comment vnode (#1…
edison1105 Sep 4, 2024
540198e
chore(deps): update dependency puppeteer to ~23.3.0 (#11711)
renovate[bot] Sep 4, 2024
1b6bc23
release: v3.5.1
yyx990803 Sep 4, 2024
01880aa
Merge remote-tracking branch 'upstream/main' into bwsy/fix/teleportEm…
Sep 5, 2024
4ab9ef2
Merge branch 'minor' into bwsy/feat/compilerSearchElm
edison1105 Oct 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions packages/runtime-core/src/helpers/resolveAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from '../component'
import { currentRenderingInstance } from '../componentRenderContext'
import { Directive } from '../directives'
import { camelize, capitalize, isString } from '@vue/shared'
import { camelize, capitalize, isLateTag, isString } from '@vue/shared'
import { warn } from '../warning'
import { VNodeTypes } from '../vnode'

Expand Down Expand Up @@ -106,13 +106,16 @@ function resolveAsset(
resolve(instance[type] || (Component as ComponentOptions)[type], name) ||
// global registration
resolve(instance.appContext[type], name)

if (!res && maybeSelfReference) {
// fallback to implicit self-reference
return Component
}

if (__DEV__ && warnMissing && !res) {
if (
__DEV__ &&
warnMissing &&
((!res && !isLateTag(name)) || (res && isLateTag(name)))
baiwusanyu-c marked this conversation as resolved.
Show resolved Hide resolved
) {
const extra =
type === COMPONENTS
? `\nIf this is a native custom element, make sure to exclude it from ` +
Expand Down
4 changes: 4 additions & 0 deletions packages/shared/src/domTagConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const HTML_TAGS =
'option,output,progress,select,textarea,details,dialog,menu,' +
'summary,template,blockquote,iframe,tfoot'

const LATE_ADDED_TAGS = 'search'

// https://developer.mozilla.org/en-US/docs/Web/SVG/Element
const SVG_TAGS =
'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,' +
Expand Down Expand Up @@ -45,3 +47,5 @@ export const isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS)
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
*/
export const isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS)

export const isLateTag = /*#__PURE__*/ makeMap(LATE_ADDED_TAGS)