Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1559d2a
use index.module.js when benchmarking, since its the output of `npm r…
developit Aug 22, 2022
c646fa1
fix bench:v8 output path
developit Aug 22, 2022
7f6ffc3
update microbundle and turn off function inlining
developit Aug 22, 2022
6f4a54d
fix JSX entrypoint and tests
developit Aug 22, 2022
e0cde8a
fix type defintion to reflect removed exports and options
developit Aug 22, 2022
692b92b
fix root copy of jsx types
developit Aug 22, 2022
9bf4cd6
optimize renderToString performance using switch and short-circuiting
developit Aug 22, 2022
e8cbf66
Create bright-ligers-jam.md
developit Aug 22, 2022
9fea4f6
Update bright-ligers-jam.md
developit Aug 22, 2022
39f7c68
Update bright-ligers-jam.md
developit Aug 22, 2022
a47080d
Backport changes from #237 (child/parent properties, simplified Fragm…
developit Sep 10, 2022
5a36848
ci: update github actions (#266)
armujahid Nov 10, 2022
5925622
merge master
developit Nov 13, 2022
6a0bec2
lockfile version
developit Nov 13, 2022
10331d9
update benchmarking reference implmementation to 5.2.6 (6a0bec2)
developit Nov 13, 2022
375c441
Merge branch 'master' into perf-improvements-3
developit Nov 13, 2022
6461999
fix tests
developit Nov 13, 2022
80283ea
fix before diff hook being called on invalid vnodes
developit Nov 13, 2022
2a542c5
Merge branch 'perf-improvements-3' into streaming-renderer-perf
developit Nov 13, 2022
03910aa
move non-exported files into a lib directory
developit Nov 13, 2022
36e0707
update pretty implementation and move typedefs into a d.ts
developit Nov 13, 2022
9981dd5
Move chunked implementation out of the default entrypoint
developit Nov 13, 2022
36bee53
update tests to reflect chunking being moved out of default entrypoint
developit Nov 13, 2022
7cdcb90
fix d8 bench script
developit Nov 13, 2022
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
5 changes: 5 additions & 0 deletions .changeset/bright-ligers-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"preact-render-to-string": major
---

Improve performance by another 5-10% using `switch` and short-circuiting, and move pretty-printing from into `preact-render-to-string/jsx`.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache node modules
uses: actions/cache@v1
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
Expand All @@ -22,7 +22,7 @@ jobs:
node-version: 18

- name: Cache node modules
uses: actions/cache@v1
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
Expand Down
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.modern.js
/benchmarks/.v8.modern.js
2 changes: 1 addition & 1 deletion benchmarks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { h } from 'preact';
import Suite from 'benchmarkjs-pretty';
import renderToStringBaseline from './lib/render-to-string';
// import renderToString from '../src/index';
import renderToString from '../dist/index.mjs';
import renderToString from '../dist/index.module.js';
import TextApp from './text';
// import StackApp from './stack';
import { App as IsomorphicSearchResults } from './isomorphic-ui/search-results/index';
Expand Down
Loading