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

[pull] main from preactjs:main #230

Open
wants to merge 890 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
890 commits
Select commit Hold shift + click to select a range
037a23c
Add HTMLMSubElement interface
fekete965 Nov 16, 2023
001d5be
Add HTMLMSubsupElement interface
fekete965 Nov 16, 2023
5b0d2fc
Add HTMLMSupElement interface
fekete965 Nov 16, 2023
93648b2
Add HTMLMTableElement interface
fekete965 Nov 16, 2023
d13125e
Add HTMLMTdElement interface
fekete965 Nov 16, 2023
89db29d
Add HTMLMTextElement interface
fekete965 Nov 16, 2023
e877e11
Add HTMLMTrElement interface
fekete965 Nov 16, 2023
14c7ef2
Add HTMLMUnderElement interface
fekete965 Nov 16, 2023
a2093d7
Add HTMLMUnderoverElement interface
fekete965 Nov 16, 2023
ae8d7ef
Add HTMLSemanticsElement interface
fekete965 Nov 16, 2023
6eb5309
Add HTMLMFencedElement interface
fekete965 Dec 8, 2023
901e794
Merge pull request #4214 from fekete965/feature/add-mathml-definitions
marvinhagemeister Dec 8, 2023
9cd9fc2
Release 10.19.3
marvinhagemeister Dec 8, 2023
aa53ecb
Merge pull request #4227 from preactjs/release-10.19.3
marvinhagemeister Dec 8, 2023
4f2a04f
Improve types of hook source (#4229)
andrewiggins Dec 14, 2023
ef57c62
WIP: batch commit callbacks from all components in the render queue
developit Dec 18, 2023
926b8c8
run commit callbacks within the render queue to ensure render->effect…
developit Dec 18, 2023
5eab018
Merge branch 'main' into multi-root-shared-commit
developit Dec 18, 2023
b39e0bc
size optimization
developit Dec 18, 2023
ed78832
Add ComponentType to preact/compat
ianobermiller Dec 21, 2023
c6d1062
Export existing type instad
ianobermiller Dec 22, 2023
be2ca05
Update index.d.ts
rschristian Dec 22, 2023
f963509
Merge pull request #4239 from ianobermiller/patch-1
rschristian Dec 22, 2023
bbe6757
TS: Add missing contenteditable "inherit" value
marvinhagemeister Dec 27, 2023
da9d488
Merge pull request #4242 from preactjs/missing-inherit
marvinhagemeister Dec 27, 2023
e20029d
Merge branch 'main' into multi-root-shared-commit
JoviDeCroock Dec 29, 2023
899e9d9
skip comment nodes for placeChild (#4128)
JoviDeCroock Dec 29, 2023
13b0afb
ensure we are able to support capture events from compat (#4243)
JoviDeCroock Jan 2, 2024
e1f0d3e
retain masks across useId invocations (#4245)
JoviDeCroock Jan 2, 2024
5f6d63e
Update src/component.js
developit Jan 2, 2024
fe0df55
Merge branch 'main' into multi-root-shared-commit
developit Jan 2, 2024
b09f4c1
remove commented-out code
developit Jan 3, 2024
f7ccb90
Merge pull request #4234 from preactjs/multi-root-shared-commit
developit Jan 5, 2024
b3480e8
safari 12.3 fix (#4253)
JoviDeCroock Jan 16, 2024
79be156
Add some sensible timeouts to actions that call out to external servi…
andrewiggins Jan 22, 2024
49433b3
support passing context into pure component (#4269)
JoviDeCroock Jan 29, 2024
a3f7c33
ts: improve preact compat types adding a few missing @types/react use…
jduthon Feb 2, 2024
6992228
10.19.4 (#4273)
JoviDeCroock Feb 8, 2024
72cbd2d
Setting translate through direct access does not work (#3800)
JoviDeCroock Feb 8, 2024
24e47b4
Add DPub Aria Role type definitions
novari Feb 9, 2024
238d580
Merge pull request #4276 from novari/patch-1
rschristian Feb 9, 2024
65310c6
protect against nullish render (#4278)
JoviDeCroock Feb 14, 2024
f808dcb
fix: correctly restore _original (#4280)
JoviDeCroock Feb 15, 2024
2f44635
fix: address scenario where we would crash when replacing a matched v…
JoviDeCroock Feb 16, 2024
a003d42
10.19.5 (#4282)
JoviDeCroock Feb 16, 2024
00b71c4
fix and add test for 4283
JoviDeCroock Feb 17, 2024
94b0563
less agressive fix
JoviDeCroock Feb 17, 2024
3e85030
chore: add reconcile bug test
marvinhagemeister Feb 21, 2024
72235da
chore: remove test focus
marvinhagemeister Feb 21, 2024
fc95ec8
add fix
JoviDeCroock Feb 21, 2024
6b1ae4a
chore: fix typo in test name
marvinhagemeister Feb 21, 2024
a8c1ee6
chore: add another test case
marvinhagemeister Feb 21, 2024
474d00e
chore: add another testcase
marvinhagemeister Feb 21, 2024
8cc2d87
push fix
JoviDeCroock Feb 21, 2024
cf7a22f
chore: update test assertion
marvinhagemeister Feb 21, 2024
a600efa
fix: invalid vnode id for text nodes
marvinhagemeister Feb 21, 2024
b7b8d16
chore: add another test case
marvinhagemeister Feb 21, 2024
b558242
Match null placeholders using skewed index (#4290)
andrewiggins Feb 22, 2024
53060fb
Merge pull request #4284 from preactjs/fix-and-add-test-for-4283
marvinhagemeister Feb 22, 2024
84ac10e
Merge branch 'main' into reconcile-test
marvinhagemeister Feb 22, 2024
6bbbf3b
fix: invalid vnode id for text nodes
marvinhagemeister Feb 21, 2024
5b6a62e
Merge pull request #4291 from preactjs/fix-invalid-vnode-id
marvinhagemeister Feb 22, 2024
aca34a0
fix it
JoviDeCroock Feb 22, 2024
92380e4
Merge branch 'main' into reconcile-test
JoviDeCroock Feb 22, 2024
0435d0c
see if adding this branch back affects perf
JoviDeCroock Feb 22, 2024
ea75640
Merge pull request #4287 from preactjs/reconcile-test
marvinhagemeister Feb 22, 2024
d06291b
Release 10.19.6
marvinhagemeister Feb 22, 2024
c3160cc
Merge pull request #4292 from preactjs/release-10.19.6
marvinhagemeister Feb 22, 2024
c5f0483
update some actions to remove node 20 warnings (#4298)
JoviDeCroock Mar 2, 2024
1584d4c
feat: added isMemo to compact to allow compatibility with react-is de…
ziongh Mar 13, 2024
dc55841
Revert "Merge pull request #4234 from preactjs/multi-root-shared-comm…
JoviDeCroock Mar 17, 2024
f8a0801
align state updater type (#4306)
JoviDeCroock Mar 17, 2024
cfba5ee
add onscrollend listener type (#4305)
JoviDeCroock Mar 17, 2024
a2c12f5
bring consistency to our focus events (#4307)
JoviDeCroock Mar 17, 2024
b2ff056
try to fix benchmarks (#4304)
JoviDeCroock Mar 18, 2024
e174713
10.19.7 (#4308)
JoviDeCroock Mar 18, 2024
94bfe9d
Merge branch 'main' into main
marvinhagemeister Mar 19, 2024
a784a62
Merge pull request #4302 from ziongh/main
marvinhagemeister Mar 19, 2024
342b50e
fix: case where shrinking a list would cause an exception (#4312)
JoviDeCroock Mar 19, 2024
b820d8b
10.20.0 (#4313)
JoviDeCroock Mar 20, 2024
a59a78c
fix focus in and out (#4316)
JoviDeCroock Mar 21, 2024
bc7c551
10.20.1 (#4319)
JoviDeCroock Mar 23, 2024
b1d1b87
fix: use a virtual clock instead of Date.now() for event dispatch tim…
jviide Mar 23, 2024
8759dad
refactor: simplify the logic introduced in #4322 (#4324)
jviide Mar 24, 2024
d3d57db
Some byte improvements (#4321)
JoviDeCroock Mar 25, 2024
757746a
Integrate the new benchmarks repo and update (#4310)
andrewiggins Mar 29, 2024
45860dc
fix(types): add template tag JSX type
marvinhagemeister Apr 4, 2024
3a1b19a
Merge pull request #4334 from preactjs/jsx-template
marvinhagemeister Apr 4, 2024
7fbf03f
fix: check whether `oldDom` is present in the DOM (#4318)
JoviDeCroock Apr 5, 2024
8c88f52
10.20.2 (#4336)
JoviDeCroock Apr 9, 2024
f3edc90
feat: optimise jsx runtime (#4337)
JoviDeCroock Apr 17, 2024
962594b
respect default value (#4341)
JoviDeCroock Apr 18, 2024
3123e7f
fix: Expose hooks through compat's `ReactCurrentDispatcher` (#4342)
rschristian Apr 19, 2024
ecd61b8
Add zustand and redux-toolkit to the demo.
rschristian Apr 22, 2024
e2c8a45
Merge pull request #3523 from MortezaMirjavadi/demo
rschristian Apr 22, 2024
accb4c7
feat: Add compat/client types
rschristian Apr 22, 2024
cab57f2
Merge branch 'main' into hqd-compat-types
rschristian Apr 23, 2024
f0c3e1d
Merge pull request #3228 from henryqdineen/hqd-compat-types
rschristian Apr 23, 2024
bb064a3
Merge branch 'main' into types/compat-client
JoviDeCroock Apr 23, 2024
c1addc2
Merge pull request #4345 from preactjs/types/compat-client
rschristian Apr 23, 2024
1fc799d
refactor: Support ComponentChild(ren) in compat render/hydrate/create…
rschristian Apr 23, 2024
aa95aa9
Merge pull request #4346 from preactjs/types/fix-hydrate-render-creat…
rschristian Apr 23, 2024
784af46
fix: Incorrect "missing `transform-jsx-source`" warning
rschristian Apr 26, 2024
61ce7a4
refactor: Slight rename
rschristian Apr 26, 2024
d4ff12e
test: Add test for fixed jsx-source warning
rschristian Apr 26, 2024
2e2f5ab
fix: Appease ESLint
rschristian Apr 26, 2024
613cacc
feat: debug throw on too many rerenders (#4349)
rschristian Apr 26, 2024
50c3f3e
Merge branch 'main' into fix/jsx-source-debug-warning
rschristian Apr 27, 2024
dbc4d61
Merge pull request #4350 from preactjs/fix/jsx-source-debug-warning
rschristian Apr 30, 2024
1eb9106
feat: Support creating MathML elements
rschristian Apr 30, 2024
a832512
10.21.0 (#4360)
JoviDeCroock Apr 30, 2024
f413961
test: Add svg & mathml child namespace tests
rschristian Apr 30, 2024
ded6e00
refactor: Switch `isSvg` to a `namespace` var to support mathml
rschristian Apr 30, 2024
d899c8a
test: Copy over more SVG tests
rschristian Apr 30, 2024
fae2f58
refactor: golf & fix comment
rschristian Apr 30, 2024
90edbab
refactor: Fix namespace inheritance from parent
rschristian Apr 30, 2024
5a62c05
test: Determine SVG & MathML determine namespace from parent correctly
rschristian Apr 30, 2024
58a043a
chore: Appease linters
rschristian Apr 30, 2024
7f3d7cb
refactor: golf -- better gzip, worse brotli
rschristian Apr 30, 2024
9c4c61b
test: Remove perhaps superfluous mathml tests for the moment
rschristian Apr 30, 2024
19f7d5b
test: Add tests for namespace after rerender
rschristian May 1, 2024
b506194
ci: Bump compressed-size
rschristian May 1, 2024
f7e9bcb
Merge pull request #4368 from preactjs/ci/bump-compressed-size
rschristian May 1, 2024
2d07ca8
refactor: golf
rschristian May 1, 2024
12b71cf
Merge branch 'main' into feat/mathml
rschristian May 2, 2024
4ab4b99
Merge pull request #4364 from preactjs/feat/mathml
rschristian May 2, 2024
58cf15c
chore: Silence esbuild warning during tests
rschristian May 2, 2024
c38e437
chore: Add sinon types, fix some chai assertions
rschristian May 2, 2024
d18ac9f
Merge pull request #4369 from preactjs/chore/test-types-and-warnings
rschristian May 2, 2024
1ea44c5
fix: Method syntax for IE11 support
rschristian May 5, 2024
185d0ef
fix: Method syntax for IE11 support
rschristian May 5, 2024
41ce33b
chore: Silence ESLint
rschristian May 5, 2024
414c870
Merge pull request #4372 from preactjs/rschristian-patch-1
rschristian May 6, 2024
cfc80bf
fix: Disallow <tr> as a child of <table>
rschristian May 8, 2024
32a60db
feat: Provide error log for nesting of <button> and <a>
rschristian May 9, 2024
8a45c30
chore: Better formatting
rschristian May 9, 2024
a51c8e2
refactor: Swap `.find()` for `.indexOf()`
rschristian May 9, 2024
4523933
ci: Skip running compressed-size builds twice
rschristian May 9, 2024
c29caa3
Merge pull request #4375 from preactjs/debug/tr-warning
rschristian May 9, 2024
06a2df1
Merge branch 'main' into debug/button-anchor-nesting
rschristian May 9, 2024
bfdd189
Merge pull request #4376 from preactjs/debug/button-anchor-nesting
rschristian May 9, 2024
d12d306
Merge branch 'main' into ci/compressed-size
rschristian May 9, 2024
1b4e683
Merge pull request #4377 from preactjs/ci/compressed-size
rschristian May 9, 2024
598765e
feat: Add popover types
rschristian May 10, 2024
6449692
Merge pull request #4378 from preactjs/types/popover
rschristian May 11, 2024
cece8c3
fix isolated rerenders (#4382)
JoviDeCroock May 11, 2024
494f084
10.22.0 (#4385)
JoviDeCroock May 15, 2024
d60c5cb
chore: migrate to biome (#4386)
JoviDeCroock May 15, 2024
a1e7ffd
migrate to oxlint (#4387)
JoviDeCroock May 15, 2024
6796844
chore: migrate husky v9
sebastiandotdev May 19, 2024
11cf676
chore: update command prepare
sebastiandotdev May 20, 2024
85bed33
Merge pull request #4390 from castrogarciajs/migrate-to-husky-v9
rschristian May 20, 2024
b7c43d9
fix(core): support popover boolean attribute (#4393)
JoviDeCroock May 22, 2024
8a55752
chore(compat): Expose stream render from `preact-render-to-string`
Austaras May 22, 2024
8315512
Update server.js
Austaras May 22, 2024
77d941c
Merge pull request #4395 from Austaras/main
rschristian May 22, 2024
8d228d2
create hot path for unmounting a tree of context (#4396)
JoviDeCroock May 22, 2024
4ddd8fc
test perf of skipping some lifecycle hooks for perf (#4366)
JoviDeCroock May 23, 2024
a263130
chore: Bump lockfile version to v3 (#4398)
rschristian May 24, 2024
eb3fb62
devtools: prefer `globalThis` over `window` if available
marvinhagemeister May 29, 2024
d19017e
Merge pull request #4401 from preactjs/devtools-global-check
marvinhagemeister May 29, 2024
11c9534
compat: Improve React compatibility for `Ref` type.
maxbrieiev May 31, 2024
92fd386
compat: Use `Ref` and `RefObject` types from core in hooks.
maxbrieiev Jun 1, 2024
4c20c23
Merge pull request #4403 from maxbrieiev/main
rschristian Jun 2, 2024
92e86e9
graciously handle array shuffling (#4413)
JoviDeCroock Jun 25, 2024
eb37677
replace isConnected with parentDom.contains (#4421)
JoviDeCroock Jun 25, 2024
76f5d66
fix(hooks): memo being too lazy with repeated renders (#4426)
JoviDeCroock Jun 28, 2024
16aeb9f
only check is connected for dom nodes (#4409)
JoviDeCroock Jun 28, 2024
7eef3e0
10.22.1 (#4428)
JoviDeCroock Jul 1, 2024
532cc96
Merge branch 'main' into compat-add-html-attributes-types
rschristian Jul 1, 2024
146de2d
chore: Wrap attributes in `Signalish<>`
rschristian Jul 1, 2024
6cbb77e
Merge pull request #4100 from samsam-ahmadi/compat-add-html-attribute…
rschristian Jul 1, 2024
ef29b20
Try fix coveralls (#4430)
JoviDeCroock Jul 4, 2024
82ab555
Dependency maintenance (#4431)
JoviDeCroock Jul 4, 2024
3cf39b0
Add missing types ElementType and ComponentPropsWithoutRef
hamza0867 Jul 6, 2024
212b17a
chore: Fix formatting
rschristian Jul 6, 2024
db0f4f2
Merge pull request #4433 from hamza0867/main
rschristian Jul 6, 2024
4e53438
feat: support ref cleanup functions
marvinhagemeister Jul 6, 2024
7bb245a
chore: work around TS complaining
marvinhagemeister Jul 6, 2024
212b1f6
Merge pull request #4436 from preactjs/ref-cleanup
marvinhagemeister Jul 7, 2024
b75edab
fix: import renderToPipeableStream in server.mjs for re-exporting
3846masa Jul 9, 2024
f7f9d9b
Merge pull request #4440 from 3846masa-tmp/fix/export-render-to-pipea…
rschristian Jul 9, 2024
a75b217
Publish fixes for streaming renders (#4446)
JoviDeCroock Jul 18, 2024
16c7fb7
Fix debug check not firing when it has a parent (#4449)
JoviDeCroock Jul 19, 2024
f573891
fix(child-diffing): Should shift keyed fragmented lists (#4448)
JoviDeCroock Jul 19, 2024
2f1712a
10.23.0 (#4450)
JoviDeCroock Jul 23, 2024
f0e4917
Fix issue in testing libraries where there might not be a DOM node (#…
JoviDeCroock Jul 24, 2024
9351588
10.23.1 (#4455)
JoviDeCroock Jul 25, 2024
3b26fc8
fix: prepare for no-unused-vars
DonIsaac Jul 30, 2024
7dc5703
Merge pull request #4462 from DonIsaac/don/fix/no-unused-vars-prepara…
marvinhagemeister Jul 31, 2024
fe0f9e6
Added the AriaRole type export
kuronijin Jul 31, 2024
6ee78d2
General performance improvements for folks using compat (#4459)
JoviDeCroock Jul 31, 2024
eeb9bdd
Merge branch 'main' into main
kuronijin Jul 31, 2024
8d86fe1
Merge pull request #4466 from kuronijin/main
rschristian Jul 31, 2024
ab743a9
chore: oxlint v0.7.0 (#4469)
Boshen Aug 5, 2024
91679e5
Add TypeScript support for Container.contains (#4471)
sjoerdmulder Aug 6, 2024
7b5b240
Add stress test and another fix (#4472)
JoviDeCroock Aug 9, 2024
2c6df95
10.23.2 (#4473)
JoviDeCroock Aug 12, 2024
84f1083
fix: `AnyComponent` type to support classes
rschristian Aug 22, 2024
8e8dd92
Merge pull request #4479 from preactjs/fix/any-component-type
rschristian Aug 23, 2024
2aa25df
alter skew based diffing for better heuristics (#4483)
JoviDeCroock Aug 28, 2024
1a6bd4d
Get rid of eager unmounting (#4484)
JoviDeCroock Aug 28, 2024
4e7e29b
Golf down children (#4485)
JoviDeCroock Aug 30, 2024
b976caa
chore: Update fake compat version (#4488)
rschristian Sep 6, 2024
022dbb1
Warn our user for hydration mismatches (#4490)
JoviDeCroock Sep 12, 2024
0943ac7
Remove impossible branch (#4491)
JoviDeCroock Sep 13, 2024
df67ca0
Avoid setting value for progress with nullish value (#4492)
JoviDeCroock Sep 13, 2024
ab2ff9b
fix: props with children didn't allow for multiple children
hesxenon Sep 13, 2024
8b33709
refactor: fix typo in comment (#4494)
rburgst Sep 13, 2024
8d0ee49
10.24.0 (#4495)
JoviDeCroock Sep 14, 2024
bac87fa
Merge branch 'main' into patch-1
rschristian Sep 14, 2024
75fa1f3
Merge pull request #4493 from hesxenon/patch-1
rschristian Sep 14, 2024
2647dae
fix: Remove incorrect `spellCheck` type
rschristian Sep 14, 2024
1807173
Merge pull request #4497 from preactjs/fix/remove-spellCheck-type
rschristian Sep 14, 2024
516b761
chore: oxlint v0.9.6 (#4503)
Boshen Sep 19, 2024
d69b22d
fix: Correct some missing & incorrect SVG types
rschristian Sep 22, 2024
24d06dc
Merge pull request #4505 from preactjs/fix/svg-types
rschristian Sep 22, 2024
abca0dc
Fix debug crash (#4507)
JoviDeCroock Sep 24, 2024
3fe5d6b
10.24.1 (#4508)
JoviDeCroock Sep 24, 2024
9452a9b
ci: Bump upload/download-artifact action versions
rschristian Sep 26, 2024
63aded7
Re-export types for events and event handlers
Sep 27, 2024
d898b43
Merge pull request #4512 from jose-torres-marin/compat-reexport-event…
rschristian Sep 27, 2024
461a6ec
Merge branch 'main' into ci/artifact-versions
rschristian Sep 27, 2024
5f8a884
Merge pull request #4511 from preactjs/ci/artifact-versions
rschristian Sep 27, 2024
3f4feae
ci: Switch to regexp for download-artifact action
rschristian Sep 28, 2024
01adebf
Merge pull request #4516 from preactjs/ci/update-download-artifact-co…
rschristian Sep 29, 2024
8bb67a9
ci: Fix download artifact regexp
rschristian Sep 30, 2024
703af77
Merge pull request #4517 from preactjs/rschristian-patch-1
rschristian Sep 30, 2024
f8b9860
ci: Update Tachometer reporter glob to support subdirs
rschristian Oct 1, 2024
9d3a4f5
Merge pull request #4519 from preactjs/ci/fix-tachometer-report-glob
rschristian Oct 1, 2024
6a66daa
ci: Merge upload actions to fix usage in v4 (#4515)
rschristian Oct 1, 2024
58ea2b5
Improve performance and reduce memory allocation (#4521)
JoviDeCroock Oct 3, 2024
87f7efa
10.24.2 (#4524)
JoviDeCroock Oct 4, 2024
ad3bc3b
Context consumer unmounting perf (#4526)
JoviDeCroock Oct 6, 2024
b5bdcef
ci: Unify workflows into singular pipeline (#4520)
rschristian Oct 7, 2024
d54bd31
ci: Ensure paths-filter action works on push events (#4528)
rschristian Oct 12, 2024
675bcad
refactor: Warn on NaN in dep arrays instead of throwing (#4527)
rschristian Oct 12, 2024
c9846f1
We should not always set to hydration (#4529)
JoviDeCroock Oct 12, 2024
162d71f
ci: Remove saucelabs (#4530)
rschristian Oct 12, 2024
8deab11
ci: Fix PR reporter (#4531)
rschristian Oct 13, 2024
64e4a63
10.24.3 (#4532)
JoviDeCroock Oct 14, 2024
f6416e8
fix: oxlint violation of `react/iframe-missing-sandbox` (#4533)
DonIsaac Oct 14, 2024
efe9fb1
Fix error message typo (#4534)
jubalm Oct 17, 2024
c11e2d3
chore: upgrade biome to 1.9.4 (#4535)
unvalley Oct 18, 2024
4181cba
ci: Skip PR reporter action on non-pull request triggers (#4536)
rschristian Oct 18, 2024
5b99b99
Update props.js
lilnasy Oct 28, 2024
f7a89c8
prevent extracting hadleEvent method as an intermediate value
lilnasy Oct 28, 2024
4f39d2d
add tests
lilnasy Oct 28, 2024
9c267a1
Add object interface to JSX types
lilnasy Oct 28, 2024
8447cf7
Merge pull request #4538 from lilnasy/event-listener-object
marvinhagemeister Oct 28, 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
4 changes: 0 additions & 4 deletions .codesandbox/ci.json

This file was deleted.

2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
benchmarks
20 changes: 10 additions & 10 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

- [ ] Check if updating to the latest Preact version resolves the issue
Expand All @@ -14,9 +13,10 @@ A clear and concise description of what the bug is.

**To Reproduce**

If possible, please provide a CodeSandbox/Codepen that demonstrates the issue. You can use the following template: https://codesandbox.io/s/preact-x-preact-cli-3-starter-vj285y2rn3
If possible, please provide a link to a StackBlitz/CodeSandbox/Codepen project or a GitHub repository that demonstrates the issue. You can use the following template on StackBlitz to get started: https://stackblitz.com/edit/create-preact-starter

Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. See error
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Suggest an idea for this project
title: ''
labels: feature request
assignees: ''

---

**Describe the feature you'd love to see**
Expand Down
281 changes: 58 additions & 223 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,255 +2,90 @@ name: Benchmarks

on:
workflow_dispatch:
pull_request:
branches:
- '**'
paths:
- 'src/**.js'
push:
branches:
- master
- restructure
paths:
- 'src/**.js'
workflow_call:

jobs:
prepare:
name: Prepare benchmarks
name: Prepare environment
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Download locally built preact package
uses: actions/download-artifact@v4
with:
node-version: '14.x'
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.npm
# This uses the same name as the build-action so we can share the caches.
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm ci
- name: Package
# Use --ignore-scripts here to avoid re-building again before pack
run: |
npm pack --ignore-scripts
mv preact-*.tgz preact.tgz
tar -xzf preact.tgz
rm preact.tgz
- name: Upload build output
uses: actions/upload-artifact@v2
with:
name: build-output
path: package/
- uses: andrewiggins/download-base-artifact@v1
name: npm-package
- run: mv preact.tgz preact-local.tgz
- name: Download base package
uses: andrewiggins/download-base-artifact@v3
with:
artifact: npm-package
workflow: ci.yml
required: false
- name: Upload base preact package
uses: actions/upload-artifact@v2
with:
name: build-output
path: preact.tgz
required: true
- run: mv preact.tgz preact-main.tgz
- name: Upload locally build & base preact package
uses: actions/upload-artifact@v4
with:
name: bench-environment
path: |
preact-local.tgz
preact-main.tgz

bench_todo:
name: Bench todo
uses: ./.github/workflows/run-bench.yml
needs: prepare
with:
benchmark: todo/todo
timeout: 10

bench_text_update:
name: Bench text_update
runs-on: ubuntu-latest
name: Bench text-update
uses: ./.github/workflows/run-bench.yml
needs: prepare
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/download-artifact@v2
with:
name: build-output
- name: install & build
run: |
cd benches
npm ci
- name: bench
run: |
export CHROMEDRIVER_FILEPATH=$(which chromedriver)
cd benches
npm run bench text_update.html
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: benches/results/text_update.json
with:
benchmark: text-update/text-update
timeout: 10

bench_many_updates:
name: Bench many_updates
runs-on: ubuntu-latest
name: Bench many-updates
uses: ./.github/workflows/run-bench.yml
needs: prepare
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/download-artifact@v2
with:
name: build-output
- name: install & build
run: |
cd benches
npm ci
- name: bench
run: |
export CHROMEDRIVER_FILEPATH=$(which chromedriver)
cd benches
npm run bench many_updates.html
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: benches/results/many_updates.json
with:
benchmark: many-updates/many-updates
timeout: 10

bench_02_replace1k:
name: Bench 02_replace1k
runs-on: ubuntu-latest
bench_replace1k:
name: Bench replace1k
uses: ./.github/workflows/run-bench.yml
needs: prepare
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/download-artifact@v2
with:
name: build-output
- name: install & build
run: |
cd benches
npm ci
- name: bench
run: |
export CHROMEDRIVER_FILEPATH=$(which chromedriver)
cd benches
npm run bench 02_replace1k.html
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: benches/results/02_replace1k.json
with:
benchmark: table-app/replace1k

bench_03_update10th1k_x16:
bench_update10th1k:
name: Bench 03_update10th1k_x16
runs-on: ubuntu-latest
uses: ./.github/workflows/run-bench.yml
needs: prepare
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/download-artifact@v2
with:
name: build-output
- name: install & build
run: |
cd benches
npm ci
- name: bench
run: |
export CHROMEDRIVER_FILEPATH=$(which chromedriver)
cd benches
npm run bench 03_update10th1k_x16.html
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: benches/results/03_update10th1k_x16.json
with:
benchmark: table-app/update10th1k

bench_07_create10k:
name: Bench 07_create10k
runs-on: ubuntu-latest
bench_create10k:
name: Bench create10k
uses: ./.github/workflows/run-bench.yml
needs: prepare
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/download-artifact@v2
with:
name: build-output
- name: install & build
run: |
cd benches
npm ci
- name: bench
run: |
export CHROMEDRIVER_FILEPATH=$(which chromedriver)
cd benches
npm run bench 07_create10k.html
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: benches/results/07_create10k.json
with:
benchmark: table-app/create10k

bench_hydrate1k:
name: Bench hydrate1k
runs-on: ubuntu-latest
uses: ./.github/workflows/run-bench.yml
needs: prepare
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/download-artifact@v2
with:
name: build-output
- name: install & build
run: |
cd benches
npm ci
- name: bench
run: |
export CHROMEDRIVER_FILEPATH=$(which chromedriver)
cd benches
npm run bench hydrate1k.html
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: benches/results/hydrate1k.json
with:
benchmark: table-app/hydrate1k

bench_filter_list:
name: Bench filter_list
runs-on: ubuntu-latest
name: Bench filter-list
uses: ./.github/workflows/run-bench.yml
needs: prepare
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/download-artifact@v2
with:
name: build-output
- name: install & build
run: |
cd benches
npm ci
- name: bench
run: |
export CHROMEDRIVER_FILEPATH=$(which chromedriver)
cd benches
npm run bench filter_list.html
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: benches/results/filter_list.json
with:
benchmark: filter-list/filter-list
timeout: 10
Loading