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: streaming rendering with Suspense boundaries as flush trigger #296

Merged
merged 38 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5799b58
Disable eslint lines-around-comment rule
marvinhagemeister Oct 15, 2022
8b104e2
Update test scripts to allow watch usage
marvinhagemeister Oct 16, 2022
20d189b
Add streaming renderer
marvinhagemeister Oct 16, 2022
c2ae535
Switch to element nodes as markers instead
marvinhagemeister Oct 19, 2022
bee9748
Switch away from global ids
marvinhagemeister Oct 19, 2022
3e6afe2
Remove subtree option
marvinhagemeister Oct 19, 2022
a84fca4
feat: use comments instead of element as marker
jacob-ebey Oct 31, 2022
d61cda8
chore: use NodeIterator to locate comments
jacob-ebey Nov 1, 2022
bca7c53
chore: remove redundancy and minify code
jacob-ebey Nov 1, 2022
31f1839
more minification
jacob-ebey Nov 1, 2022
3ad1d62
even more minification
jacob-ebey Nov 1, 2022
95c42d3
Merge pull request #260 from jacob-ebey/comments-ce-script
marvinhagemeister Nov 8, 2022
5b06b07
Merge branch 'master' into streaming-render
marvinhagemeister Nov 8, 2022
7b4fefa
Move files to new test dir structure
marvinhagemeister Nov 8, 2022
6771eda
Fix linting error
marvinhagemeister Nov 8, 2022
14cf8ce
Merge branch 'master' into streaming-render
marvinhagemeister Nov 8, 2022
02ac131
fix ts types
developit Nov 13, 2022
1e7d3c1
fix Web Streams tests on Node <18
developit Nov 13, 2022
96f9f4b
Streaming renderer: factor chunking out of main entrypoint and rebase…
developit Feb 2, 2023
34966cd
Merge branch 'master' into streaming-render
developit Feb 3, 2023
27dbdce
fix d8 bench path
developit Feb 3, 2023
7590c6f
Merge branch 'master' into streaming-render-update
JoviDeCroock Mar 30, 2023
189cdb8
try new way of getting mask as we are not setting it anymore
JoviDeCroock Mar 30, 2023
aa93b8b
stop interfering with the real useId
JoviDeCroock Mar 30, 2023
bfa808f
show bug
JoviDeCroock Mar 30, 2023
1579648
partial fix
JoviDeCroock Mar 30, 2023
216ef73
continuously fork promises
JoviDeCroock Mar 30, 2023
cbabc9e
fix tests
JoviDeCroock Mar 30, 2023
76d0e91
Merge branch 'main' into streaming-render-update
JoviDeCroock Jul 19, 2023
1f06bbf
fixes
JoviDeCroock Jul 19, 2023
7b52e34
Merge branch 'main' into streaming-render-update
JoviDeCroock Sep 7, 2023
25ab473
update lockfiles
JoviDeCroock Sep 7, 2023
58631fb
Create twelve-candles-walk.md
JoviDeCroock Sep 7, 2023
4a95b37
add build command
JoviDeCroock Sep 8, 2023
0561720
Merge branch 'main' into streaming-render-update
JoviDeCroock May 6, 2024
577a976
fix rebase issues
JoviDeCroock May 6, 2024
b5bcd7b
address comments
JoviDeCroock May 6, 2024
cb505ac
bump deps
JoviDeCroock May 6, 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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
/npm-debug.log
.DS_Store
/src/preact-render-to-string-tests.d.ts
/benchmarks/.v8.mjs
/benchmarks/.v8.modern.js
6 changes: 1 addition & 5 deletions jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@ interface Options {
skipFalseAttributes?: boolean;
}

export default function renderToStringPretty(
export default function render(
vnode: VNode,
context?: any,
options?: Options
): string;

export function shallowRender(vnode: VNode, context?: any): string;
JoviDeCroock marked this conversation as resolved.
Show resolved Hide resolved

export default render;
Loading