Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.4
bun-version: 1.2.2
- name: Install dependencies, build, and test
run: bun install
- run: bunx playwright install
- run: bunx playwright install-deps
- run: bunx playwright@1.43.1 install
- run: bunx playwright@1.43.1 install-deps
- run: bun run build
- run: bun run bundlewatch
- run: bun run test
169 changes: 169 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
"example:spa-like": "bun run ./examples/spa-like/index.ts"
},
"devDependencies": {
"typescript": "5.4.5",
"@types/bun": "1.1.0",
"bundlewatch": "0.3.3",
"typescript": "5.7.3",
"@types/bun": "1.2.2",
"bundlewatch": "0.4.0",
"playwright": "1.43.1"
}
}
7 changes: 5 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,12 @@ async function htmlStreamWalker(
parent = parent.parentElement;
}

// Related issues to this ternary (hard to reproduce in a test):
// https://github.com/brisa-build/diff-dom-streaming/pull/15
// https://github.com/brisa-build/brisa/issues/739
return waitChildren
? streamInProgress
: streamInProgress && !node.hasChildNodes?.();
? streamInProgress && !node.hasChildNodes?.()
: streamInProgress
}

return {
Expand Down
Loading