Commit 0faec39
feat: streaming rendering with Suspense boundaries as flush trigger (#296)
* Disable eslint lines-around-comment rule
* Update test scripts to allow watch usage
* Add streaming renderer
* Switch to element nodes as markers instead
* Switch away from global ids
* Remove subtree option
* feat: use comments instead of element as marker
feat: use custom element for hydration
feat: add onError to renderToChunks
feat: add renderToPipeableStream
* chore: use NodeIterator to locate comments
This reduces code and *should* also be more performant than recursive JS iteration.
See: https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator
* chore: remove redundancy and minify code
* more minification
* even more minification
* Move files to new test dir structure
* Fix linting error
* fix ts types
* fix Web Streams tests on Node <18
* Streaming renderer: factor chunking out of main entrypoint and rebase on #241 (#267)
* use index.module.js when benchmarking, since its the output of `npm run transpile`
* fix bench:v8 output path
* update microbundle and turn off function inlining
* fix JSX entrypoint and tests
* fix type defintion to reflect removed exports and options
* fix root copy of jsx types
* optimize renderToString performance using switch and short-circuiting
* Create bright-ligers-jam.md
* Update bright-ligers-jam.md
* Update bright-ligers-jam.md
* Backport changes from #237 (child/parent properties, simplified Fragment handling)
* ci: update github actions (#266)
* ci: update actions/checkout to v3
* ci: update actions/cache to v3
* merge master
* lockfile version
* update benchmarking reference implmementation to 5.2.6 (6a0bec2)
* fix tests
* fix before diff hook being called on invalid vnodes
* move non-exported files into a lib directory
* update pretty implementation and move typedefs into a d.ts
* Move chunked implementation out of the default entrypoint
* update tests to reflect chunking being moved out of default entrypoint
* fix d8 bench script
---------
Co-authored-by: Abdul Rauf <[email protected]>
* fix d8 bench path
* try new way of getting mask as we are not setting it anymore
* stop interfering with the real useId
* show bug
* partial fix
* continuously fork promises
* fix tests
* fixes
* update lockfiles
* Create twelve-candles-walk.md
* add build command
* fix rebase issues
* address comments
* bump deps
---------
Co-authored-by: Marvin Hagemeister <[email protected]>
Co-authored-by: Jacob Ebey <[email protected]>
Co-authored-by: Jason Miller <[email protected]>
Co-authored-by: Jason Miller <[email protected]>
Co-authored-by: Abdul Rauf <[email protected]>1 parent f510fa5 commit 0faec39
File tree
30 files changed
+27971
-25847
lines changed- .changeset
- demo
- src
- src
- lib
- test
- compat
30 files changed
+27971
-25847
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments