Skip to content

test vapor(DO NOT MERGE) #13383

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

Draft
wants to merge 271 commits into
base: minor
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
271 commits
Select commit Hold shift + click to select a range
3cb3e1a
wip: revert some changes
edison1105 Mar 6, 2025
41c2589
wip: add tests
edison1105 Mar 6, 2025
b65db59
wip: add vapor transition e2e tests
edison1105 Mar 6, 2025
0f3dffc
[autofix.ci] apply automated fixes
autofix-ci[bot] Mar 6, 2025
205858e
wip: test
edison1105 Mar 6, 2025
0d950d4
wip: save
edison1105 Mar 6, 2025
299624d
wip: fix tests
edison1105 Mar 6, 2025
8879875
wip: fix tests
edison1105 Mar 6, 2025
6e7c5e3
wip: fix tests
edison1105 Mar 7, 2025
26d1d21
wip: add tests
edison1105 Mar 7, 2025
d5d8ada
[autofix.ci] apply automated fixes
autofix-ci[bot] Mar 7, 2025
d184928
wip: add interop tests
edison1105 Mar 7, 2025
915e205
wip: refactor
edison1105 Mar 7, 2025
9ffa5ac
wip: fix build-dts error
edison1105 Mar 7, 2025
05d9f53
wip: rename key to $key
edison1105 Mar 7, 2025
1511d6c
wip: add TransformTransition
edison1105 Mar 7, 2025
d9d0112
fix: vapor transition multiple chilren check
edison1105 Mar 8, 2025
7c9bd7c
Merge branch 'vapor' into edison/feat/vaporTransition
edison1105 Mar 8, 2025
5392c7a
chore: improve
edison1105 Mar 9, 2025
2e71c9e
feat(vapor): vapor TransitionGroup (#13019)
edison1105 Mar 11, 2025
dbecdf9
wip: save
edison1105 Mar 12, 2025
957aa09
chore: update
edison1105 Mar 12, 2025
4ad3ee9
chore: rename
edison1105 Mar 12, 2025
e7300a0
chore: update
edison1105 Mar 12, 2025
af2eb2d
wip: port tests and fix bugs
edison1105 Mar 12, 2025
1540002
wip: handle props update
edison1105 Mar 13, 2025
055ca98
test: add more tests
edison1105 Mar 13, 2025
b1b11c7
wip: port tests and fix bugs
edison1105 Mar 13, 2025
d147b1c
test: add more tests
edison1105 Mar 13, 2025
d5bd63a
test: add more tests
edison1105 Mar 13, 2025
c9ee8d1
wip: handle fallthrough attrs
edison1105 Mar 13, 2025
ecef92b
wip: handle fallthrough attrs
edison1105 Mar 13, 2025
bbe4452
wip: add more tests
edison1105 Mar 14, 2025
9ee219a
test: add more tests
edison1105 Mar 14, 2025
2caeecd
wip: work with v-show appear
edison1105 Mar 14, 2025
acd2af2
wip: refactor
edison1105 Mar 16, 2025
f0ebb0b
chore: update export
edison1105 Mar 17, 2025
c7bd982
refactor: add createElement helper
edison1105 Mar 17, 2025
7a4a4c0
wip: update
edison1105 Mar 17, 2025
e42ff1b
chore: update
edison1105 Mar 17, 2025
8d77c1f
wip: save
edison1105 Mar 18, 2025
58cfb66
test: port tests
edison1105 Mar 18, 2025
367924c
wip: handle template ref forwarding
edison1105 Mar 18, 2025
cbdfdab
wip: update
edison1105 Mar 18, 2025
7867324
wip: add more tests
edison1105 Mar 18, 2025
9c6e49f
chore: update
edison1105 Mar 19, 2025
d8ccabe
chore: update
edison1105 Mar 19, 2025
8b73edf
test: add e2e tests
edison1105 Mar 19, 2025
ed9b36a
[autofix.ci] apply automated fixes
autofix-ci[bot] Mar 19, 2025
307f757
test: update
edison1105 Mar 19, 2025
9be697b
wip: save
edison1105 Mar 20, 2025
2571388
wip: save
edison1105 Mar 21, 2025
c0cd7fc
wip: add tests
edison1105 Mar 21, 2025
b945079
wip: update tests
edison1105 Mar 21, 2025
dd18528
wip: save
edison1105 Mar 21, 2025
5c8f7ed
wip: save
edison1105 Mar 21, 2025
17317c5
wip: port tests
edison1105 Mar 24, 2025
b232e45
wip: remove unnecessary tests
edison1105 Mar 24, 2025
97e6174
wip: handle vapor teleport
edison1105 Mar 24, 2025
33830a0
wip: save
edison1105 Mar 24, 2025
098f50d
wip: handing teleport hmr updating
edison1105 Mar 24, 2025
51ca617
test: add e2e tests for vdom interop
edison1105 Mar 24, 2025
90c2e20
wip: hmr updating
edison1105 Mar 25, 2025
ec76aec
wip: test hmr updating
edison1105 Mar 25, 2025
f315423
test: remove vapor mark
edison1105 Mar 25, 2025
16b30d8
test: port more tests
edison1105 Mar 26, 2025
b646856
wip: save
edison1105 Mar 26, 2025
b474ce0
wip: fix teleport root component hmr reload
edison1105 Mar 26, 2025
c1547b5
wip: save
edison1105 Mar 26, 2025
5b933f5
wip: extract VaporFragment into a separate file
edison1105 Mar 26, 2025
ba6577f
wip: add more hmr tests + refactor
edison1105 Mar 27, 2025
7ab1a30
wip: refactor
edison1105 Mar 27, 2025
fd6f163
wip: save
edison1105 Mar 27, 2025
4de819c
wip: refactor
edison1105 Mar 27, 2025
177c6a6
wip: save
edison1105 Mar 27, 2025
5574fbf
wip: refactor
edison1105 Mar 27, 2025
ba9db34
test: add e2e tests for vdom teleport vapor interop
edison1105 Mar 27, 2025
43d2799
[autofix.ci] apply automated fixes
autofix-ci[bot] Mar 27, 2025
9ab8e4c
chore: update lockfile
edison1105 Apr 1, 2025
53564e0
fix(runtime-vapor): use slot fallback on initial render
edison1105 Apr 2, 2025
1033d2b
Merge branch 'vapor' into edison/feat/vaporTeleport
edison1105 Apr 2, 2025
016596c
chore: update
edison1105 Apr 7, 2025
d9772db
chore: update
edison1105 Apr 10, 2025
cb8830f
chore: reset prevChildren after updated
edison1105 Apr 10, 2025
684e47c
fix(runtime-vapor): reset insertion state to avoid duplicate block in…
edison1105 Apr 18, 2025
619420c
chore: update
edison1105 Apr 21, 2025
e5dd701
feat(vapor/hydration): handle component with anchor insertion
edison1105 Apr 21, 2025
9c30fd4
wip: save
edison1105 Apr 22, 2025
d8443d3
wip: refactor
edison1105 Apr 22, 2025
3108d91
refactor: skip dynamic anchors and empty text nodes
edison1105 Apr 23, 2025
1248172
wip: save
edison1105 Apr 23, 2025
25b8fbe
refactor: add enableHydrationNodeLookup and disableHydrationNodeLooku…
edison1105 Apr 23, 2025
3e7f093
chore: dont process text/comment node as dynamic
edison1105 Apr 23, 2025
04eadd8
wip: refactor
edison1105 Apr 23, 2025
b5762b5
wip: add tests + skip fragment end anchor
edison1105 Apr 24, 2025
38d4889
wip: hydrate v-if
edison1105 Apr 24, 2025
e9c9e49
wip: refactor hydration for v-if
edison1105 Apr 24, 2025
612cde7
wip: test hydrate v-if in PROD
edison1105 Apr 25, 2025
4d8284b
test: update
edison1105 Apr 25, 2025
34b9a4b
wip: hydation for dynamic component
edison1105 Apr 25, 2025
aad75fd
wip: refactor
edison1105 Apr 25, 2025
e6e0160
wip: v-for hydration
edison1105 Apr 25, 2025
7a842ab
wip: refactor
edison1105 Apr 26, 2025
ca34d4a
wip: add more tests
edison1105 Apr 26, 2025
42a421a
wip: hydration for slots
edison1105 Apr 26, 2025
2f00264
fix(compiler-vapor): move `next`, `child` and `nthChild` before setI…
zhiyuanzmj Apr 27, 2025
700f49e
wip: hydration for slots
edison1105 Apr 27, 2025
e5399c3
wip: vdom interop
edison1105 Apr 28, 2025
4253b0c
wip: update
edison1105 Apr 28, 2025
d281d62
wip: vdom hydration interop
edison1105 Apr 29, 2025
ea34f2f
wip: vdom interop
edison1105 Apr 29, 2025
3e69504
fix(compiler-vapor): properly handle static ref in inline mode
edison1105 Apr 29, 2025
a9496de
test: more tests
edison1105 Apr 29, 2025
d776a26
chore: tweaks
edison1105 Apr 30, 2025
9477b91
fix(vapor): special handling vapor props in vdom interop
edison1105 May 26, 2025
ebd32e6
chore: Merge branch 'edison/fix/vdomInteropWithProps' into edison/tes…
edison1105 May 26, 2025
86a6604
wip: handling vapor props
edison1105 May 26, 2025
bd701f2
fix(vapor): ensure props are shallow reactive to prevent DEV warnings
edison1105 May 26, 2025
29b3133
Merge branch 'edison/vapor/vdomInteropProps' into edison/testVapor
edison1105 May 26, 2025
594ffae
wip: handling vapor props
edison1105 May 26, 2025
b0df00a
fix(runtime-vapor): should not warn invalid watch source when directl…
edison1105 May 26, 2025
d751b6c
Merge branch 'edison/vapor/vdomInteropProps' into edison/testVapor
edison1105 May 27, 2025
8a6382c
fix(compiler-vapor): properly locate last if node
edison1105 May 28, 2025
cbfc289
Merge branch 'edison/fix/slotAndIfError' into edison/testVapor
edison1105 May 28, 2025
584c04f
feat(compiler-vapor): resolve implicitly self-referencing component
edison1105 May 28, 2025
bc9ff3f
Merge branch 'edison/fix/resolveComponent' into edison/testVapor
edison1105 May 29, 2025
3a39bc8
chore: update
edison1105 May 29, 2025
dde7076
feat(compiler-vapor): add support for forwarded slots
edison1105 May 29, 2025
a952b03
test: add tests
edison1105 May 29, 2025
c23d635
chore: update
edison1105 May 30, 2025
3a3fcda
Merge branch 'edison/feat/fowardedSlots' into edison/testVapor
edison1105 May 30, 2025
187396d
Merge branch 'edison/fix/vaporRenderSlotfallback' into edison/testVapor
edison1105 May 30, 2025
3896780
fix(vdomInterop): handle forwarded vapor slots during render VDOM slot
edison1105 May 30, 2025
023b005
chore: update
edison1105 May 30, 2025
dcf927f
fix(vdomInterop): handle forwarded vapor slots during render VDOM slot
edison1105 May 30, 2025
8f29088
wip: refactor
edison1105 Jun 6, 2025
d0d5c3e
chore: Merge branch 'edison/feat/setScopeId' into edison/testVapor
edison1105 Jun 6, 2025
b5f6f01
wip: refactor
edison1105 Jun 6, 2025
4aaa69a
wip: save
edison1105 Jun 8, 2025
1169db8
Merge branch 'edison/feat/fowardedSlots' into edison/feat/setScopeId
edison1105 Jun 8, 2025
9772a4c
wip: slotScopeIds
edison1105 Jun 8, 2025
7cfec7f
wip: vdom slot interop
edison1105 Jun 11, 2025
f4f0388
wip: refactor tests
edison1105 Jun 12, 2025
6180b8a
chore: Merge branch 'edison/feat/fowardedSlots' into edison/testVapor
edison1105 Jun 12, 2025
954748b
chore: update
edison1105 Jun 12, 2025
8bd6fc4
test(compiler-vapor): add test for v-if + v-if / v-else[-if] scenario
edison1105 Jun 12, 2025
a4f716f
Merge branch 'edison/fix/slotAndIfError' into edison/testVapor
edison1105 Jun 12, 2025
a93b49c
fix(runtime-vapor): dynamic component attrs fallthrough
edison1105 Jun 12, 2025
e033870
chore: Merge branch 'edison/fix/dynamicComponentAttrsFallthrough' int…
edison1105 Jun 12, 2025
2f89d6e
chore: avoid empty class
edison1105 Jun 12, 2025
4435a2e
chore: use fragment's anchor as insertion point
edison1105 Jun 13, 2025
ba08c54
chore: Merge branch 'edison/feat/vaporTransition' into edison/testVapor
edison1105 Jun 16, 2025
829c816
chore: Merge branch 'edison/fix/resetInsertion' into edison/testVapor
edison1105 Jun 16, 2025
d6d3dd2
fix(runtime-vapor): dynamic component fallback rendering with inserti…
edison1105 Jun 18, 2025
8bf75a7
chore: Merge branch 'edison/fix/dynamicComponentWithVHtml' into ediso…
edison1105 Jun 18, 2025
a64867a
feat(runtime-vapor): dynamic components work with v-html and v-text
edison1105 Jun 19, 2025
5da8dfe
chore: Merge branch 'edison/fix/vhtmlAndvTextWithDynamicComponent' in…
edison1105 Jun 19, 2025
41aba70
fix: mark single root for transition block
edison1105 Jun 19, 2025
e31d433
Merge branch 'edison/feat/vaporTransition' into edison/testVapor
edison1105 Jun 19, 2025
542e401
fix: mark single root for transition block
edison1105 Jun 19, 2025
a48e32f
Merge branch 'edison/feat/vaporTransition' into edison/testVapor
edison1105 Jun 19, 2025
dc3f912
chore: update
edison1105 Jun 19, 2025
26dbd3c
fix(vapor): component emits vdom interop
edison1105 Jun 19, 2025
afd82f3
Merge branch 'edison/fix/emitVdomInterop' into edison/testVapor
edison1105 Jun 20, 2025
a253aa6
chore: Merge branch 'vapor' into edison/testVapor
edison1105 Jun 20, 2025
1bb0fa1
Merge branch 'edison/feat/fowardedSlots' into edison/testVapor
edison1105 Jun 20, 2025
fc2f9f8
wip: fix e2e test
edison1105 Jun 20, 2025
fed71cb
chore: Merge branch 'vapor' into edison/feat/vaporTeleport
edison1105 Jun 20, 2025
7dd7d82
chore: Merge branch 'vapor' into edison/feat/vaporHydration
edison1105 Jun 20, 2025
637b3cb
chore: Merge branch 'vapor' into edison/feat/vaporAsyncComponent
edison1105 Jun 20, 2025
748686a
chore: Merge branch 'vapor' into edison/feat/fowardedSlots
edison1105 Jun 20, 2025
fa752c4
chore: Merge branch 'edison/feat/fowardedSlots' into edison/feat/setS…
edison1105 Jun 20, 2025
6795f5a
chore: Merge branch 'edison/feat/setScopeId' into edison/testVapor
edison1105 Jun 20, 2025
fd2e46b
chore: Merge branch 'edison/feat/vaporTeleport' into edison/testVapor
edison1105 Jun 23, 2025
d922a9a
chore: Merge branch 'edison/feat/vaporAsyncComponent' into edison/tes…
edison1105 Jun 23, 2025
ead1600
fix(compiler-vapor): properly cache variable with optional chaining
edison1105 Jun 23, 2025
061a4b3
Merge branch 'edison/fix/cacheOptionalMemberExpr' into edison/testVapor
edison1105 Jun 23, 2025
f77fd2f
fix(compiler-vapor): handle variable name substring edge cases
edison1105 Jun 24, 2025
8c3c9ff
chore: Merge branch 'edison/fix/cacheSameExpr' into edison/testVapor
edison1105 Jun 24, 2025
6c5ebf4
chore: update
edison1105 Jun 24, 2025
5e1295d
Merge branch 'edison/feat/setScopeId' into edison/testVapor
edison1105 Jun 24, 2025
5a487cf
fix(compiler-sfc): always use defineComponent in SSR mode
edison1105 Jun 25, 2025
88a5b49
Merge branch 'edison/fix/ssrScriptCodegen' into edison/testVapor
edison1105 Jun 25, 2025
552ac6d
chore: update
edison1105 Jun 25, 2025
bba71be
chore: Merge branch 'edison/feat/vaporHydration' into edison/testVapor
edison1105 Jun 25, 2025
63ec52a
wip: hydration
edison1105 Jun 25, 2025
d85ff5e
Merge branch 'minor' into edison/feat/fowardedSlots
edison1105 Jul 16, 2025
2ba4dc0
fix(runtime-vapor): render slot fallback if slot content is not a val…
edison1105 Jul 21, 2025
f5a8fc5
Merge branch 'minor' into edison/feat/fowardedSlots
edison1105 Jul 21, 2025
e92244e
chore: tweaks
edison1105 Jul 22, 2025
e28b96b
chore: tweaks
edison1105 Jul 22, 2025
a65da3a
wip: render fallback nodes for vfor
edison1105 Jul 23, 2025
e3ad645
chore: Merge branch 'edison/fix/vaporSlotFallback' into edison/feat/f…
edison1105 Jul 23, 2025
1ab9cc1
chore: tweaks
edison1105 Jul 25, 2025
e370ed8
Merge branch 'edison/fix/vaporSlotFallback' into edison/feat/fowarded…
edison1105 Jul 25, 2025
30af803
chore: tweaks
edison1105 Jul 25, 2025
e0f544a
chore: Merge branch 'edison/fix/vaporSlotFallback' into edison/feat/f…
edison1105 Jul 25, 2025
b8ceb89
chore: tweaks
edison1105 Jul 25, 2025
5c6e533
fix(runtime-vapor): improve fallback handling for nested fragments
edison1105 Jul 25, 2025
92399d9
chore: Merge branch 'edison/fix/vaporSlotFallback' into edison/feat/f…
edison1105 Jul 25, 2025
5b4673f
chore: tweaks
edison1105 Jul 25, 2025
32b0bcb
chore: Merge branch 'minor' into edison/testVapor
edison1105 Jul 29, 2025
6505a8f
chore: Merge branch 'edison/feat/fowardedSlots' into edison/testVapor
edison1105 Jul 29, 2025
9d3ee8e
fix(hydration): handle v-if on insertion parent
edison1105 Jul 29, 2025
f28cb2f
feat(hydration): handle consecutive if node
edison1105 Jul 30, 2025
0b4cf0c
Merge branch 'minor' into edison/testVapor
edison1105 Jul 30, 2025
4ebdbf5
wip: fix type
edison1105 Jul 30, 2025
111f87c
fix: don't create comment anchor for forwarded slot
edison1105 Jul 30, 2025
27b4319
fix: don't create comment anchor for v-else-if
edison1105 Jul 30, 2025
9e16723
fix: use empty comment as if fragment anchor
edison1105 Jul 30, 2025
bcdcc67
fix: properly handle advance hydration node
edison1105 Jul 30, 2025
a6e0398
fix: preserve current hydration node during slot insertion
edison1105 Jul 30, 2025
e903dec
fix: tests
edison1105 Jul 30, 2025
3f3480c
fix(hydration): skip dynamic children in __child
edison1105 Jul 4, 2025
80e6ea8
wip: save
edison1105 Jul 31, 2025
6606cbd
feat(hydration): handle consecutive prepend
edison1105 Jul 31, 2025
a9b911e
wip: handle mixed prepend and insertionAnchor
edison1105 Jul 31, 2025
761b161
wip: save
edison1105 Jul 31, 2025
1b0818b
fix(hydration): improve parent sibling lookup
edison1105 Jul 31, 2025
8d4f178
wip: skip hydration for empty forwarded slots
edison1105 Jul 31, 2025
3999618
test: add tests for forwarded slots
edison1105 Aug 1, 2025
a33a563
fix(compiler-vapor): adjust children generation order for hydration
edison1105 Aug 1, 2025
6b360d3
chore: Merge branch 'edison/fix/codegenOrder' into edison/testVapor
edison1105 Aug 1, 2025
df28fa5
fix(compiler-vapor): adjust children generation order for hydration
edison1105 Aug 1, 2025
f2cdbe0
chore: Merge branch 'edison/fix/codegenOrder' into edison/testVapor
edison1105 Aug 1, 2025
268383f
fix: advance hydration node in vdom interop
edison1105 Aug 1, 2025
7126238
wip: save
edison1105 Aug 1, 2025
31cc225
wip: create anchor for DynamicFragment in ssr slot vnode fallback
edison1105 Aug 2, 2025
a0eb717
chore: cache parent sibling
edison1105 Aug 4, 2025
3fca1f5
fix: fix child index
edison1105 Aug 4, 2025
8ab7ecf
fix: use fragment end anchor as vfor anchor
edison1105 Aug 4, 2025
660986d
test: update snap
edison1105 Aug 4, 2025
67995a1
refactor: gen set $dp
edison1105 Aug 4, 2025
5f8c1f6
chore: update
edison1105 Aug 4, 2025
3fc906c
refactor: move $dp into setInsertionState
edison1105 Aug 4, 2025
a832310
fix: treat v-if/v-else/v-else-if as a single node
edison1105 Aug 4, 2025
bd5d341
wip: process component as a single element during hydration
edison1105 Aug 5, 2025
6454a29
wip: special handing anchors in ssr slot vnode fallback
edison1105 Aug 5, 2025
167df1e
fix(hydration): handling empty text nodes
edison1105 Aug 5, 2025
d8134a7
fix(hydration): handling empty text node in slot
edison1105 Aug 5, 2025
8eedd1e
refactor: hydration vdom interop
edison1105 Aug 6, 2025
0650640
wip: create anchor for DynamicFragment when necessary
edison1105 Aug 7, 2025
b09c8ee
fix: avoid insert serfAnchor during hydrate
edison1105 Aug 7, 2025
8145fd3
fix: ensure component mount during hydration
edison1105 Aug 7, 2025
107350a
fix: avoid duplicate rendering of children
edison1105 Aug 8, 2025
6233125
test: update snap
edison1105 Aug 8, 2025
f4f8411
chore: update
edison1105 Aug 8, 2025
61eaf4e
chore: rename
edison1105 Aug 9, 2025
c511b9a
refactor: vapor hydration
edison1105 Aug 11, 2025
e6d037d
fix: special handing inject insertion anchors of if node in ssr vnode…
edison1105 Aug 12, 2025
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
Prev Previous commit
Next Next commit
fix: use fragment end anchor as vfor anchor
  • Loading branch information
edison1105 committed Aug 4, 2025
commit 8ab7ecf77ed6153efd1d0013de0f7ad812b443d8
8 changes: 4 additions & 4 deletions packages/runtime-vapor/src/apiCreateFor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ export const createFor = (
let currentKey: any
let parentAnchor: Node
if (isHydrating) {
parentAnchor = locateVaporFragmentAnchor(
currentHydrationNode!,
FOR_ANCHOR_LABEL,
)!
parentAnchor =
locateVaporFragmentAnchor(currentHydrationNode!, FOR_ANCHOR_LABEL) ||
// fallback to the fragment end anchor if in ssr slots vnode fallback
locateVaporFragmentAnchor(currentHydrationNode!, ']')!
if (__DEV__ && !parentAnchor) {
// this should not happen
throw new Error(`v-for fragment anchor node was not found.`)
Expand Down