-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Merge master into v11 #3943
base: v11
Are you sure you want to change the base?
Merge master into v11 #3943
Commits on May 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4e34efe - Browse repository at this point
Copy the full SHA 4e34efeView commit details
Commits on Jun 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8fb48b8 - Browse repository at this point
Copy the full SHA 8fb48b8View commit details
Commits on Jun 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3bd3c46 - Browse repository at this point
Copy the full SHA 3bd3c46View commit details
Commits on Jun 5, 2022
-
Update hooks/test/browser/useState.test.js
Co-authored-by: Jason Miller <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9c3d992 - Browse repository at this point
Copy the full SHA 9c3d992View commit details -
Configuration menu - View commit details
-
Copy full SHA for daa65de - Browse repository at this point
Copy the full SHA daa65deView commit details -
Merge pull request #3553 from preactjs/state-settling-x
implement state settling in X
Configuration menu - View commit details
-
Copy full SHA for 1dc4f56 - Browse repository at this point
Copy the full SHA 1dc4f56View commit details
Commits on Jun 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d59a4c6 - Browse repository at this point
Copy the full SHA d59a4c6View commit details
Commits on Jun 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2834d5a - Browse repository at this point
Copy the full SHA 2834d5aView commit details
Commits on Jun 13, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0b9a927 - Browse repository at this point
Copy the full SHA 0b9a927View commit details
Commits on Jun 14, 2022
-
Ensure both onchange and oninput callbacks are executes when typing (#…
…3562) * ensure both onchange and oninput callbacks are attached to the event listener * remove custom hook and combiner callbacks in one * update implementation and unit test * remove only on tests and improve error handling * cover scenario changing order * allow uncaught error in unit test * use event hook to trigger oncompatchange handler * use oninputCapture rather than oninput when both callbacks are defined Co-authored-by: Jovi De Croock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c746ecf - Browse repository at this point
Copy the full SHA c746ecfView commit details -
add export maps to the subpackages (#3565)
* add export maps to the subpackages * format * run pretteir on package json files
Configuration menu - View commit details
-
Copy full SHA for 68882bf - Browse repository at this point
Copy the full SHA 68882bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for c77e628 - Browse repository at this point
Copy the full SHA c77e628View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc5a5df - Browse repository at this point
Copy the full SHA fc5a5dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for aaa219f - Browse repository at this point
Copy the full SHA aaa219fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e13e9db - Browse repository at this point
Copy the full SHA e13e9dbView commit details
Commits on Jun 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b3dca40 - Browse repository at this point
Copy the full SHA b3dca40View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41e5ab8 - Browse repository at this point
Copy the full SHA 41e5ab8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b96849 - Browse repository at this point
Copy the full SHA 7b96849View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5775a8 - Browse repository at this point
Copy the full SHA b5775a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b1e91f - Browse repository at this point
Copy the full SHA 6b1e91fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b1cc827 - Browse repository at this point
Copy the full SHA b1cc827View commit details
Commits on Jun 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2a04fb7 - Browse repository at this point
Copy the full SHA 2a04fb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a64ece - Browse repository at this point
Copy the full SHA 6a64eceView commit details
Commits on Jun 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for a5b9a39 - Browse repository at this point
Copy the full SHA a5b9a39View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee69576 - Browse repository at this point
Copy the full SHA ee69576View commit details -
Merge pull request #3573 from jramanat-oracle/jramanat-custom-element…
…-input restrict "oninputCapture" conversion to just "oninput" vs "oninput*"
Configuration menu - View commit details
-
Copy full SHA for bc02039 - Browse repository at this point
Copy the full SHA bc02039View commit details
Commits on Jun 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e9c8d1c - Browse repository at this point
Copy the full SHA e9c8d1cView commit details
Commits on Jun 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 079f9a6 - Browse repository at this point
Copy the full SHA 079f9a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a9aaed - Browse repository at this point
Copy the full SHA 6a9aaedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 894f7ba - Browse repository at this point
Copy the full SHA 894f7baView commit details
Commits on Jun 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for cd6960c - Browse repository at this point
Copy the full SHA cd6960cView commit details -
commit hooks in diffed to bypass the issue of us dealing with a compo…
…nent that isn't in the commitQueue
Configuration menu - View commit details
-
Copy full SHA for 6f01754 - Browse repository at this point
Copy the full SHA 6f01754View commit details -
Configuration menu - View commit details
-
Copy full SHA for b91771d - Browse repository at this point
Copy the full SHA b91771dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 82bd5a0 - Browse repository at this point
Copy the full SHA 82bd5a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d63915c - Browse repository at this point
Copy the full SHA d63915cView commit details -
Merge pull request #3579 from preactjs/skipped-memo
Fix incorrect `useMemo` return value after skipped render
Configuration menu - View commit details
-
Copy full SHA for 641c10b - Browse repository at this point
Copy the full SHA 641c10bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d2cc99b - Browse repository at this point
Copy the full SHA d2cc99bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8fb0923 - Browse repository at this point
Copy the full SHA 8fb0923View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e010c5 - Browse repository at this point
Copy the full SHA 5e010c5View commit details
Commits on Jun 22, 2022
-
Configuration menu - View commit details
-
Copy full SHA for a0f7742 - Browse repository at this point
Copy the full SHA a0f7742View commit details
Commits on Jun 24, 2022
-
prevent _suspended and _force from colliding (#3585)
* prevent _suspended and _force from colliding * Update mangle.json
Configuration menu - View commit details
-
Copy full SHA for 8a1cbd4 - Browse repository at this point
Copy the full SHA 8a1cbd4View commit details
Commits on Jun 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 557a8e4 - Browse repository at this point
Copy the full SHA 557a8e4View commit details -
Merge pull request #3568 from preactjs/redo-hooks
React 18 hooks
Configuration menu - View commit details
-
Copy full SHA for 9e51ee1 - Browse repository at this point
Copy the full SHA 9e51ee1View commit details
Commits on Jun 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7649231 - Browse repository at this point
Copy the full SHA 7649231View commit details
Commits on Jul 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 80600ea - Browse repository at this point
Copy the full SHA 80600eaView commit details
Commits on Jul 7, 2022
-
mirror change for
setTimeout
debounceThis fixes a lot of issues with events as outlined in #3607
Configuration menu - View commit details
-
Copy full SHA for 4758ef1 - Browse repository at this point
Copy the full SHA 4758ef1View commit details -
Merge pull request #3608 from preactjs/JoviDeCroock-patch-1
mirror change for `setTimeout` debounce
Configuration menu - View commit details
-
Copy full SHA for eeb3c5d - Browse repository at this point
Copy the full SHA eeb3c5dView commit details
Commits on Jul 13, 2022
-
Configuration menu - View commit details
-
Copy full SHA for dbe0fa8 - Browse repository at this point
Copy the full SHA dbe0fa8View commit details
Commits on Jul 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e960162 - Browse repository at this point
Copy the full SHA e960162View commit details -
fix: make demo compatible with node 16 and 18 (#3617)
Co-authored-by: Jovi De Croock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cef315a - Browse repository at this point
Copy the full SHA cef315aView commit details
Commits on Jul 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9744bbd - Browse repository at this point
Copy the full SHA 9744bbdView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4af4a5 - Browse repository at this point
Copy the full SHA b4af4a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 020b578 - Browse repository at this point
Copy the full SHA 020b578View commit details
Commits on Jul 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b24a4f9 - Browse repository at this point
Copy the full SHA b24a4f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1fc94f - Browse repository at this point
Copy the full SHA a1fc94fView commit details -
Merge pull request #3621 from preactjs/defer-state-equality
defer bailing out of updates to the render phase
Configuration menu - View commit details
-
Copy full SHA for 3d0cdf7 - Browse repository at this point
Copy the full SHA 3d0cdf7View commit details
Commits on Jul 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 67edfcb - Browse repository at this point
Copy the full SHA 67edfcbView commit details -
Merge pull request #3623 from preactjs/JoviDeCroock-patch-1
fix nextValue setting
Configuration menu - View commit details
-
Copy full SHA for 0406941 - Browse repository at this point
Copy the full SHA 0406941View commit details
Commits on Jul 26, 2022
-
* Update esbuild to 0.14.50 * Remove newline from mangle.json (terser does this)
Configuration menu - View commit details
-
Copy full SHA for 1a134b3 - Browse repository at this point
Copy the full SHA 1a134b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e201caf - Browse repository at this point
Copy the full SHA e201cafView commit details
Commits on Aug 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1658d43 - Browse repository at this point
Copy the full SHA 1658d43View commit details
Commits on Aug 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f4bd535 - Browse repository at this point
Copy the full SHA f4bd535View commit details
Commits on Aug 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6ef6440 - Browse repository at this point
Copy the full SHA 6ef6440View commit details -
Configuration menu - View commit details
-
Copy full SHA for c87daab - Browse repository at this point
Copy the full SHA c87daabView commit details -
Configuration menu - View commit details
-
Copy full SHA for a356999 - Browse repository at this point
Copy the full SHA a356999View commit details
Commits on Aug 5, 2022
-
Merge pull request #3645 from preactjs/multiple-state-hooks
Multiple state hooks in a component
Configuration menu - View commit details
-
Copy full SHA for 16367b4 - Browse repository at this point
Copy the full SHA 16367b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e3564a - Browse repository at this point
Copy the full SHA 4e3564aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 191d5cb - Browse repository at this point
Copy the full SHA 191d5cbView commit details
Commits on Aug 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1a874a7 - Browse repository at this point
Copy the full SHA 1a874a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0dfff5c - Browse repository at this point
Copy the full SHA 0dfff5cView commit details -
Merge pull request #3651 from preactjs/avoid-suspense-hooks-reset-crash
avoid crashing due to __hooks being null
Configuration menu - View commit details
-
Copy full SHA for d483611 - Browse repository at this point
Copy the full SHA d483611View commit details
Commits on Aug 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 88bf973 - Browse repository at this point
Copy the full SHA 88bf973View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb50040 - Browse repository at this point
Copy the full SHA cb50040View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1d3ac3 - Browse repository at this point
Copy the full SHA b1d3ac3View commit details
Commits on Aug 9, 2022
-
Merge pull request #3655 from preactjs/fix-use-sync-external-store
fix `useSyncExternalStore` relying on changed render values
Configuration menu - View commit details
-
Copy full SHA for 1032d2b - Browse repository at this point
Copy the full SHA 1032d2bView commit details
Commits on Aug 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6b92b1f - Browse repository at this point
Copy the full SHA 6b92b1fView commit details
Commits on Aug 12, 2022
-
fix sync-external-store with zustand (#3663)
* fix sync-external-store * golf * golf
Configuration menu - View commit details
-
Copy full SHA for b9f6446 - Browse repository at this point
Copy the full SHA b9f6446View commit details
Commits on Aug 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c9ad4f3 - Browse repository at this point
Copy the full SHA c9ad4f3View commit details
Commits on Aug 16, 2022
-
Fix hooks calling shouldComponentUpdate without context (#3671)
* Fix hooks calling shouldComponentUpdate without context This was breaking code that relies on `this` within shouldComponentUpdate. * Fix `this` usage
Configuration menu - View commit details
-
Copy full SHA for 4441dc7 - Browse repository at this point
Copy the full SHA 4441dc7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4c3e7b - Browse repository at this point
Copy the full SHA a4c3e7bView commit details
Commits on Aug 17, 2022
-
ensure we iterate over all hooks (#3675)
* ensure we iterate over all hooks * golf * add comment
Configuration menu - View commit details
-
Copy full SHA for 1cb4b38 - Browse repository at this point
Copy the full SHA 1cb4b38View commit details
Commits on Aug 18, 2022
-
allow function component with children (#3676)
* allow function component with children * test for 3611 * better element type * remove namespace
Configuration menu - View commit details
-
Copy full SHA for 7d54883 - Browse repository at this point
Copy the full SHA 7d54883View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7072ad - Browse repository at this point
Copy the full SHA b7072adView commit details
Commits on Aug 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0fd11bc - Browse repository at this point
Copy the full SHA 0fd11bcView commit details -
Merge pull request #3680 from preactjs/fix-jsx-element
undo jsx-element removal
Configuration menu - View commit details
-
Copy full SHA for 5362360 - Browse repository at this point
Copy the full SHA 5362360View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b1930c - Browse repository at this point
Copy the full SHA 2b1930cView commit details -
allow for null return from fc (#3683)
* allow for null * add test
Configuration menu - View commit details
-
Copy full SHA for 36525c1 - Browse repository at this point
Copy the full SHA 36525c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9457b22 - Browse repository at this point
Copy the full SHA 9457b22View commit details
Commits on Aug 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 61c7eb1 - Browse repository at this point
Copy the full SHA 61c7eb1View commit details -
Merge pull request #3689 from preactjs/use-error-boundary-errorinfo
Pass `errorInfo` to `useErrorBoundary` calbback
Configuration menu - View commit details
-
Copy full SHA for 14977dd - Browse repository at this point
Copy the full SHA 14977ddView commit details
Commits on Aug 24, 2022
-
improve types for bare createElement and h calls (#3690)
* improve types for bare createElement and h calls * component test * fix onInput events * accept refless classattributes * correct generics
Configuration menu - View commit details
-
Copy full SHA for 1633907 - Browse repository at this point
Copy the full SHA 1633907View commit details
Commits on Aug 28, 2022
-
fix case where we would omit the ref from reused vnodes (#3696)
* fix case where we would omit the ref from reused vnodes * add test for call ordering * correct tests * skip test for now
Configuration menu - View commit details
-
Copy full SHA for 4672611 - Browse repository at this point
Copy the full SHA 4672611View commit details
Commits on Aug 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c78428a - Browse repository at this point
Copy the full SHA c78428aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 03a66bc - Browse repository at this point
Copy the full SHA 03a66bcView commit details -
Merge pull request #3697 from gengjiawen/fix/mac_arm
fix: mac arm build
Configuration menu - View commit details
-
Copy full SHA for 89fe31e - Browse repository at this point
Copy the full SHA 89fe31eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ec99de1 - Browse repository at this point
Copy the full SHA ec99de1View commit details -
Configuration menu - View commit details
-
Copy full SHA for cfd586a - Browse repository at this point
Copy the full SHA cfd586aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 35e7d8e - Browse repository at this point
Copy the full SHA 35e7d8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c0e8689 - Browse repository at this point
Copy the full SHA c0e8689View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fc8b5e - Browse repository at this point
Copy the full SHA 3fc8b5eView commit details
Commits on Aug 31, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e70238f - Browse repository at this point
Copy the full SHA e70238fView commit details
Commits on Sep 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 008b5ec - Browse repository at this point
Copy the full SHA 008b5ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1afc99b - Browse repository at this point
Copy the full SHA 1afc99bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 966d6e8 - Browse repository at this point
Copy the full SHA 966d6e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94eed5c - Browse repository at this point
Copy the full SHA 94eed5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 87013a6 - Browse repository at this point
Copy the full SHA 87013a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for b749474 - Browse repository at this point
Copy the full SHA b749474View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1427d58 - Browse repository at this point
Copy the full SHA 1427d58View commit details
Commits on Sep 3, 2022
-
* alternative use id * reliable tagging * skip fragments * remove mask var * reduce diff * types * use hash func" * less bytes * fix inheritance bug * optimize * tweak logic * fix copy pate * less bytes * add compat * types * add consideration * add useId test highlighting subsequent render dangers * fix client side renders * revert to prior implementation * optim
Configuration menu - View commit details
-
Copy full SHA for 803dbb5 - Browse repository at this point
Copy the full SHA 803dbb5View commit details
Commits on Sep 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for a5258a9 - Browse repository at this point
Copy the full SHA a5258a9View commit details
Commits on Sep 11, 2022
-
Cleanup _parent, _dom and __hooks after unmount (#3709)
* cleanup _parent, __hooks and _dom when unmounting * set listeners * try out perf impact * Update index.js * fix test * add _component removal * Update index.js * Update suspense.js
Configuration menu - View commit details
-
Copy full SHA for 7469051 - Browse repository at this point
Copy the full SHA 7469051View commit details -
* assert rts and csr output match * add hydrate test
Configuration menu - View commit details
-
Copy full SHA for 41574c8 - Browse repository at this point
Copy the full SHA 41574c8View commit details
Commits on Sep 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 77b79c0 - Browse repository at this point
Copy the full SHA 77b79c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c6b89a - Browse repository at this point
Copy the full SHA 5c6b89aView commit details -
Configuration menu - View commit details
-
Copy full SHA for da36142 - Browse repository at this point
Copy the full SHA da36142View commit details -
Merge pull request #3721 from preactjs/stable-mask-prop
add mangle value for stable mask on v node
Configuration menu - View commit details
-
Copy full SHA for a8e4c99 - Browse repository at this point
Copy the full SHA a8e4c99View commit details
Commits on Sep 13, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e159f84 - Browse repository at this point
Copy the full SHA e159f84View commit details -
Merge pull request #3720 from preactjs/support-falsy-data
support falsy data attributes
Configuration menu - View commit details
-
Copy full SHA for d7a433e - Browse repository at this point
Copy the full SHA d7a433eView commit details
Commits on Sep 17, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9dea4ea - Browse repository at this point
Copy the full SHA 9dea4eaView commit details -
Merge pull request #3732 from preactjs/debug-types
Add missing "types" field for preact/debug
Configuration menu - View commit details
-
Copy full SHA for 63f285b - Browse repository at this point
Copy the full SHA 63f285bView commit details
Commits on Sep 22, 2022
-
align ts definitions from react to refs and forward refs (#3713)
* align ts definitions from react to refs and forward refs * type ref to also allow null as per react type definition * add PropsWithChildren also to preact/compat Co-authored-by: Jovi De Croock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2cafede - Browse repository at this point
Copy the full SHA 2cafedeView commit details
Commits on Sep 23, 2022
-
Configuration menu - View commit details
-
Copy full SHA for a868b02 - Browse repository at this point
Copy the full SHA a868b02View commit details
Commits on Sep 27, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d4be39b - Browse repository at this point
Copy the full SHA d4be39bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fc32565 - Browse repository at this point
Copy the full SHA fc32565View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b70436 - Browse repository at this point
Copy the full SHA 6b70436View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32163d0 - Browse repository at this point
Copy the full SHA 32163d0View commit details -
Support signal values for html + svg attributes
The behavior to resolve these types seems different from the standard behavior from TypeScript. The more elegant way of using generics or clever intersection types doesn't work. The only thing TS seems to pick up is enhancing every property by hand.
Configuration menu - View commit details
-
Copy full SHA for eeb5d6c - Browse repository at this point
Copy the full SHA eeb5d6cView commit details -
Merge pull request #3747 from preactjs/signals-type
Support signal values for html + svg attributes
Configuration menu - View commit details
-
Copy full SHA for dfd45aa - Browse repository at this point
Copy the full SHA dfd45aaView commit details
Commits on Sep 29, 2022
-
Avoid synchronously adding setState callbacks (#3743)
* create test case for #3742 * solve issue * types * golf * add mangle
Configuration menu - View commit details
-
Copy full SHA for d30a0ed - Browse repository at this point
Copy the full SHA d30a0edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 284a8b0 - Browse repository at this point
Copy the full SHA 284a8b0View commit details
Commits on Oct 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b5d589c - Browse repository at this point
Copy the full SHA b5d589cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4362700 - Browse repository at this point
Copy the full SHA 4362700View commit details
Commits on Oct 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 820bff3 - Browse repository at this point
Copy the full SHA 820bff3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19374b3 - Browse repository at this point
Copy the full SHA 19374b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for b25fd03 - Browse repository at this point
Copy the full SHA b25fd03View commit details
Commits on Oct 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8ed068a - Browse repository at this point
Copy the full SHA 8ed068aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e31c9a - Browse repository at this point
Copy the full SHA 5e31c9aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a08f182 - Browse repository at this point
Copy the full SHA a08f182View commit details -
Configuration menu - View commit details
-
Copy full SHA for e968a5a - Browse repository at this point
Copy the full SHA e968a5aView commit details
Commits on Oct 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 43204de - Browse repository at this point
Copy the full SHA 43204deView commit details
Commits on Oct 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6cc4b4e - Browse repository at this point
Copy the full SHA 6cc4b4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b99d217 - Browse repository at this point
Copy the full SHA b99d217View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b7ac5f - Browse repository at this point
Copy the full SHA 7b7ac5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8beb883 - Browse repository at this point
Copy the full SHA 8beb883View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d4b2dc - Browse repository at this point
Copy the full SHA 9d4b2dcView commit details
Commits on Oct 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 528a776 - Browse repository at this point
Copy the full SHA 528a776View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f7a922 - Browse repository at this point
Copy the full SHA 9f7a922View commit details
Commits on Oct 25, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c629fc2 - Browse repository at this point
Copy the full SHA c629fc2View commit details
Commits on Oct 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 16d570f - Browse repository at this point
Copy the full SHA 16d570fView commit details
Commits on Oct 27, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 596b81b - Browse repository at this point
Copy the full SHA 596b81bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8579923 - Browse repository at this point
Copy the full SHA 8579923View commit details -
Configuration menu - View commit details
-
Copy full SHA for e094e27 - Browse repository at this point
Copy the full SHA e094e27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46ddfeb - Browse repository at this point
Copy the full SHA 46ddfebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 062d62a - Browse repository at this point
Copy the full SHA 062d62aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a15edaf - Browse repository at this point
Copy the full SHA a15edafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 253c39f - Browse repository at this point
Copy the full SHA 253c39fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 979c4e6 - Browse repository at this point
Copy the full SHA 979c4e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1549ee - Browse repository at this point
Copy the full SHA b1549eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b6c6c2 - Browse repository at this point
Copy the full SHA 3b6c6c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40c48b4 - Browse repository at this point
Copy the full SHA 40c48b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for cfc7dc1 - Browse repository at this point
Copy the full SHA cfc7dc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 494c428 - Browse repository at this point
Copy the full SHA 494c428View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0ff453 - Browse repository at this point
Copy the full SHA b0ff453View commit details -
Merge pull request #3777 from preactjs/upgrade-workflows
Upgrade workflow actions
Configuration menu - View commit details
-
Copy full SHA for 34a8c16 - Browse repository at this point
Copy the full SHA 34a8c16View commit details -
Configuration menu - View commit details
-
Copy full SHA for fbabbbb - Browse repository at this point
Copy the full SHA fbabbbbView commit details -
Merge pull request #3778 from preactjs/upgrade-bench-deps
Upgrade bench dependencies
Configuration menu - View commit details
-
Copy full SHA for 05d91ad - Browse repository at this point
Copy the full SHA 05d91adView commit details
Commits on Oct 28, 2022
-
Consolidate benchmark workflow definitions into a single reusable def…
…inition (#3782) - Simplify the definition of benchmarks by creating a new workflow, `run-bench.yml`, that can be reused for all benchmarks - Reuse the `ci.yml` workflow to build the repo - Add `trace` option to `run-bench` workflow
Configuration menu - View commit details
-
Copy full SHA for 2a3b1aa - Browse repository at this point
Copy the full SHA 2a3b1aaView commit details
Commits on Oct 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 80dd66c - Browse repository at this point
Copy the full SHA 80dd66cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 50d3837 - Browse repository at this point
Copy the full SHA 50d3837View commit details
Commits on Oct 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for a31e564 - Browse repository at this point
Copy the full SHA a31e564View commit details
Commits on Nov 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f9c9cf6 - Browse repository at this point
Copy the full SHA f9c9cf6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a37c99 - Browse repository at this point
Copy the full SHA 4a37c99View commit details
Commits on Nov 15, 2022
-
Debug: limit "object as children" error to elements
This should fix preactjs/preact-render-to-string#254 without incurring the performance overhead of converting primitives in JSX text positions to VNodes.
Configuration menu - View commit details
-
Copy full SHA for 7e3c068 - Browse repository at this point
Copy the full SHA 7e3c068View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6724d43 - Browse repository at this point
Copy the full SHA 6724d43View commit details
Commits on Nov 22, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d4089df - Browse repository at this point
Copy the full SHA d4089dfView commit details
Commits on Nov 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f930e1b - Browse repository at this point
Copy the full SHA f930e1bView commit details
Commits on Dec 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3c7cc27 - Browse repository at this point
Copy the full SHA 3c7cc27View commit details -
Merge pull request #3801 from preactjs/debug-limit-object-children
Debug: limit "object as children" error to elements
Configuration menu - View commit details
-
Copy full SHA for 915fd30 - Browse repository at this point
Copy the full SHA 915fd30View commit details
Commits on Dec 4, 2022
-
Preserve event handler return values (#3812)
I'm not aware of any bugs caused by this, but currently we drop the return value of event handlers rather than returning it to the DOM. This corrects that. Co-authored-by: Andre Wiggins <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 226d77d - Browse repository at this point
Copy the full SHA 226d77dView commit details
Commits on Dec 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b689f1f - Browse repository at this point
Copy the full SHA b689f1fView commit details -
Merge pull request #3816 from preactjs/docs/remove-cli-recommendation
docs: Removes recommendation for `preact-cli`
Configuration menu - View commit details
-
Copy full SHA for 8a6d301 - Browse repository at this point
Copy the full SHA 8a6d301View commit details
Commits on Dec 30, 2022
-
There are small typos in: - compat/src/index.js - debug/src/debug.js - test/polyfills.js Fixes: - Should read `representation` rather than `represantation`. - Should read `nonetheless` rather than `nontheless`. - Should read `argument` rather than `arugment`. Signed-off-by: Tim Gates <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0c076bf - Browse repository at this point
Copy the full SHA 0c076bfView commit details -
Merge pull request #3844 from timgates42/bugfix_typos
docs: Fix a few typos
Configuration menu - View commit details
-
Copy full SHA for d527b4b - Browse repository at this point
Copy the full SHA d527b4bView commit details
Commits on Jan 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2ce7b0a - Browse repository at this point
Copy the full SHA 2ce7b0aView commit details
Commits on Jan 19, 2023
-
Clear css properties when passed undefined (#3862)
* Clear css properties when passed undefined
Configuration menu - View commit details
-
Copy full SHA for c483d96 - Browse repository at this point
Copy the full SHA c483d96View commit details
Commits on Jan 27, 2023
-
Narrows type of
parent
in render functions. (#3863)* Narrows type of `parent` in render functions. https://gist.github.com/developit/f4c67a2ede71dc2fab7f357f39cff28c is the recommended way to partial root rendering in Preact 10+, but it isn't API compliant code given the current API definition as expressed by the TS types. This PR changes the type of `parent` to align with what is *actually* required by the preact render functions according to @developit. Assuming the linked code actually works, then it means preact doesn't actually need a NodeList, but rather just needs an `ArrayLike<Node>`. Along with limiting the property set of `Parent`, I have also narrowed `Parent['childNodes']` to be an `ArrayLike<Node>` so someone can assign a `Node[]` to it. I suspect my stylistic choice of a single long line is not acceptable for this repository, but I'm not clear what the proper way to break this into multiple lines is for this repository. If someone can provide me with feedback on how to correctly split the lines, please let me know! Note: I recognize that this is a pretty substantial type change, but without it the official recommendation (and only option in Preact 11) for doing partial root rendering is incorrect. Either the recommendation for how to do partial root rendering should be corrected to not lead people to an incorrect solution, or this PR (or one like it) should be merged to correctly express the type that preact expects for its `render` functions. * Update index.d.ts * Update src/index.d.ts Co-authored-by: Andre Wiggins <[email protected]> * Update preact.tsx --------- Co-authored-by: Andre Wiggins <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 15913ad - Browse repository at this point
Copy the full SHA 15913adView commit details
Commits on Feb 1, 2023
-
Changes
EventHandler<...>
to have athis
of typevoid
. (#3867)* Changes `EventHandler<...>` to have a `this` of type `void`. Originally, `this` was set to `E['currentTarget']` which, based on the MDN doc linked in #2166, certainly sounds like the correct thing to do. A couple years later it was changed to `never` in #3147 with no commentary on the PR or commit indicating why. My guess is that this was changed so arrow functions would work, which I believe are permanently bound and cannot be rebound by the caller. I believe that `never` is wrong because this code doesn't compile: ```ts type TargetedEvent<Target extends EventTarget = EventTarget, TypedEvent extends Event = Event> = Omit<TypedEvent, 'currentTarget'> & { readonly currentTarget: Target } interface EventHandler<E extends TargetedEvent> { (this: never, event: E): void } declare const apple: EventHandler<TargetedEvent<HTMLElement, Event>> declare const event: TargetedEvent<HTMLElement, Event> apple(event) // error TS2684: The 'this' context of type 'void' is not assignable to method's 'this' of type 'never'. ``` Changing to `void` resolves this error and should work everywhere I believe. I removed the comment since it no longer applies with this being `never` or `void`. It appears that it was just forgotten when the switch from `E['currentTarget']` to `never` was made. * Removes incorrectly passing test. The type signature's intent is to make it clear to users that they cannot rely on `this` being the element in callbacks, and they should use `event.currentTarget` instead. This test was testing that the user could unwisely ignore that. --------- Co-authored-by: Jovi De Croock <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e703a62 - Browse repository at this point
Copy the full SHA e703a62View commit details
Commits on Feb 2, 2023
-
Improve Fragment unmounting while correctly swapping nested fragments (…
…#3875) ## Why does #3814 fail on master? When transitioning from the tree ```jsx <div> <Fragment> <span>0</span> <span>1</span> </Fragment> <input /> </div> ``` to the tree (note `<span>1</span>` was unmounted) ```jsx <div> <Fragment> <span>0</span> </Fragment> <input /> </div> ``` the `master` branch has a bug where it will re-append all the children after the `Fragment`. This re-appending of the `<input>` causes it to lose focus. The reason for this re-appending is that when exiting `diffChildren` for the Fragment, it's `_nextDom` pointer is set to `<span>1</span>`. Since `<span>1</span>` is unmounted it's `parentNode` is `null`. When diffing the `input` element, we hit the `oldDom.parentNode !== parentDom` condition in `placeChild` which re-appends the `<input>` tag and sets oldDom to `null` causing all siblings of `<input>` to re-append. When diffing components/Fragments, the `_nextDom` pointer should point to where in the DOM tree the diff should continue. So when unmounting `<span>1</span>`, the Fragment's `_nextDom` should point to the `<input>` tag. The previous code in `diffChildren` removed in #3738 was intended to fix this by detecting when `_nextDom` pointed to a node that we were unmounting and reset it to it's sibling. However, that code (copied below) had a correctness bug prompting its removal (#3737). Let's look at this bug. ```js // Remove remaining oldChildren if there are any. for (i = oldChildrenLength; i--; ) { if (oldChildren[i] != null) { if ( typeof newParentVNode.type == 'function' && oldChildren[i]._dom != null && oldChildren[i]._dom == newParentVNode._nextDom ) { // If the newParentVNode.__nextDom points to a dom node that is about to // be unmounted, then get the next sibling of that vnode and set // _nextDom to it newParentVNode._nextDom = getDomSibling(oldParentVNode, i + 1); } unmount(oldChildren[i], oldChildren[i]); } } ``` ## What caused #3737? Here is a simplified repro of the issue from #3737: ```jsx function App() { const [condition] = useState(true); return this.state.condition ? ( // Initial render <> <div>1</div> <Fragment> <div>A</div> <div>B</div> </Fragment> <div>2</div> </> ) : ( // Second render: unmount <div>B and move Fragment up <> <Fragment> <div>A</div> </Fragment> <div>1</div> <div>2</div> </> ); } ``` The first render creates the DOM `1 A B 2` (each wrapped in divs) and when changing the `condition` state, it should rerender to produce `A 1 2` but instead we get `1 A 2`. Why? When rerendering `App` we unmount `<div>B</div>`, which is a child of a Fragment. This unmounting triggers the call to `getDomSibling` in the code above. `getDomSibling` has a line of code in it that looks like `vnode._parent._children.indexOf(vnode)`. This line of code doesn't work in this situation because when rerendering a component, we only make a shallow copy of the old VNode tree. So when a child of `oldParentVNode` (the `App` component in this case) tries to access it's parent through the `_parent` pointer (e.g. the `Fragment` parent of `<div>A</div>`), it's `_parent` pointer points to the new VNode tree which we are in progress of diffing and modifying. Ultimately, this tree mismatch (trying to access the old VNode tree but getting the in-progress new tree) causes us to get the wrong DOM pointer and leads to incorrect DOM ordering. In summary, when unmounting `<div>B</div>`, we need `getDomSibling` to return `<div>2</div>` since that is the next DOM sibling in the old VNode tree. Instead, because our VNode pointers are mixed at this stage of diffing, `getDomSibling` doesn't work correctly and we get back the wrong DOM element. ## Why didn't other tests catch this? Other tests only do top-level render calls (e.g. `render(<App condition={true} />)` then `render(<App condition={false} />)`) which generate brand-new VNode trees with no shared pointers. They did not test renders originating from `setState` calls which go through a different code path and reuse VNode trees which share pointers across the old and new trees. ## The fix The initial fix for this is to replace `getDomSibling` with a call to `dom.nextSibling` to get the actual next DOM sibling. (I found a situation in which this doesn't work optimally. I'll open a separate PR for that.) ## Final thoughts One additional thought I have here is that walking through this has given me more confidence in our approach for v11. First, we do unmounts before insertions so we don't have to do this additional DOM pointer checking. Also, by diffing backwards, we ensure that our `_next` pointers are correct when we go to search what DOM element to insert an element before. Fixes #3814, #3737
Configuration menu - View commit details
-
Copy full SHA for fc5758b - Browse repository at this point
Copy the full SHA fc5758bView commit details
Commits on Feb 3, 2023
-
Fix parameters or JSX dev runtime (#3880)
* There was a parameter missing (`isStaticChildren: boolean`), which is not useful\*, but is still being passed * Fix order of `source` and `self` again (incorrectly introduced in GH-3459) * Fix some (internal JSDoc) types for these parameters My guess is that the previous PR “fixed” the earlier problem because `self` isn’t used, so by calling `isStaticChildren` “`self`”, a bug went away. The source for where this `jsxDEV` call is generated in Babel is here: <https://github.com/babel/babel/blob/3952486/packages/babel-plugin-transform-react-jsx/src/create-plugin.ts#L506-L508>. The React RFC for the transform that mentions the dev runtime is here: <https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md#dev-only-transforms> \* `isStaticChildren` is the same as whether `jsxs` would be used, instead of `jsx`. Which is also whether there are 2 or more children passed: * `<a />` -> `jsx('a', {})` * `<a>b</a>` -> `jsx('a', {children: 'b'})` * `<a>{1}{2}</a>` -> `jsxs('a', {children: [1, 2]})` Related-to: GH-3459.
Configuration menu - View commit details
-
Copy full SHA for 5eecaf1 - Browse repository at this point
Copy the full SHA 5eecaf1View commit details -
Add test for context propagation compat bug
Found a difference between how React and Preact propagate context. It shows up when using react-router and a component triggers a location update (e.g. `history.push`) and at the same time triggers a local state update. ## The setup First, how React Router works. The `Router` component watches the pages current location and provides it on a context. Let's call this context `RouterContext`. The `Route` component consumes this `RouterContext`, but also modifies it and re-provides the new value on a new instance of `RouterContext.Provider`. So if we have a `Page` component that lives under a `Router` and `Route` components, the virtual DOM tree looks something the following. Let's say the initial value of the provided location in `RouterContext` is `/page/1` ```jsx <App> <Router> <RouterContext.Provider> {/* location: /page/1 */} <Route> <RouterContext.Consumer> <RouterContext.Provider> {/* location: /page/1 */} <Page> <button> ``` Let's say the `button` under `Page` has a click handler that triggers a location update on `Router` as well as updates some local state: ```jsx function Page() { const history = useHistory(); // Magical hook that triggers a state update in the Router with a new location entry const [value, setValue] = useState(1); // let's pretend to read the current location and value for some purpose const { location } = useContext(RouterContext); console.log({ location, value }); return ( <button onClick={() => { history.push('/page/2'); // Triggers an state update in the Router component setValue(2); // Triggers a state update in Page }} > Update </button> ); } ``` Some things to note about this virtual tree: 1. The `RouteContext.Consumer` under `Route` is subscribed to its parent `RouteContext.Provider` (the one owned by `Router`) 2. The `Page` component is subscribed to it's nearest parent `RouteContext.Provider`, which in this case is the one owned by `Route`, not `Router`. On initial render, `Page` would log `{ location: /page/1, value: 1 }`. ## The bug So what happens in Preact when we click this button? Two state updates are triggered: one on `Router` and one `Page`. So our rerender queue looks like [`Router`, `Page`]. Upon rerendering Router, we update the location value we pass to the first `RouterContext.Provider` to `/page/2` and trigger updates to all of the `RouterContext` consumers. Let's re-examine our render queue and virtual DOM tree: ```jsx // renderQueue: [Page, RouterContext.Consumer] <App> <Router> <RouterContext.Provider> {/* location: /page/2 */} <Route> <RouterContext.Consumer> <RouterContext.Provider> {/* location: /page/1 */} <Page> <button> ``` A couple things to note. Our rerendering stops after the first `RouterContext.Provider` runs. Context providers just return `props.children` so our `vnodeID` optimization will kick in, see the children of the `Provider` didn't get no VNodes and stop rerendering there. Because of this, the `RouterContext.Consumer` under `Route` has NOT rerendered yet, so the `RouterContext.Provider` that it owns has not received the updated context. And since the `Page` component is subscribed to the `RouterContext.Provider` that `Route` owns, it still would see the old context. So, since rerendering stopped after the first `RouterContext.Provider`, the next component that rerenders is `Page` (remember, it triggered it's own local state update). At this point `Page` will log `{ location: /page/1, value: 2 }`. This log represents the developer-observable bug. The `onClick` handler of the button contains both the `history.push()` and `setValue()` calls and so the developer expects that the next time `Page` renders will be both a new location and a new state value. And logic that assumes this will fail. ## Completing the flow If we continue with Preact's rendering (for completeness), once the `RouterContext.Consumer` rerenders, it'll rerender the second `RouterContext.Provider` which trigger rerenders to its subscribers, namely `Page`. A this point `Page` will rerender again but with the both the updated location context and the new state and so will log `{ location: /page/2, value: 2 }`. ## React's behavior In this case, React handles the state propagation and local state update in one pass down the render tree. Presumably, changes to context synchronously mark consumers as needing updates (I haven't personally validated this yet). So as React walks down the tree, it rerenders the `Router`, the first `RouterContext.Provider`, sees the `RouterContext.Consumer` as needing a rerender, which causes a render of the second `RouterContext.Provider`, and ultimately rerenders the `Page` component with both it's local state update and the location update from its parent `RouterContext.Provider`. In this case, `Page` only rerenders once with both updates.
Configuration menu - View commit details
-
Copy full SHA for ef025df - Browse repository at this point
Copy the full SHA ef025dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e93eb7 - Browse repository at this point
Copy the full SHA 8e93eb7View commit details -
Remove unnecessary top loop since the inner loop will always run unti…
…l the rerenderQueue is empty and length == 0
Configuration menu - View commit details
-
Copy full SHA for fc935fb - Browse repository at this point
Copy the full SHA fc935fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e55f55 - Browse repository at this point
Copy the full SHA 4e55f55View commit details -
Merge pull request #3871 from preactjs/context-fix
Re-sort rerender queue if modified while we are processing rerenders
Configuration menu - View commit details
-
Copy full SHA for 1de5866 - Browse repository at this point
Copy the full SHA 1de5866View commit details -
Use lastDOM's nextSibling (#3878)
This PR is a follow up to #3875. I realized that we can't do oldChildren[i]._dom.nextSibling cuz oldChildren[i] itself could be Fragment representing a bunch of DOM nodes. We want the last dom node of oldChildren[i] and to get it's last sibling.
Configuration menu - View commit details
-
Copy full SHA for ef708b9 - Browse repository at this point
Copy the full SHA ef708b9View commit details -
use microtick outside of events (#3879)
Fixes #3775 Fixes #3724 When we are in events we need setTimeout to deal with how events bubble, we want the events to complete before we start our rendering process. This however isn't needed when we are dealing with internal updates coming from effects/... Co-authored-by: andrewiggins <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6e2e952 - Browse repository at this point
Copy the full SHA 6e2e952View commit details
Commits on Feb 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8a30bcc - Browse repository at this point
Copy the full SHA 8a30bccView commit details
Commits on Feb 6, 2023
-
add exactOptionalPropertyTypes support to html attributes (#3868)
* add exactOptionalPropertyTypes support to attributes * add exactOptionalPropertyTypes support to jsx and key attributes
Configuration menu - View commit details
-
Copy full SHA for b7d9e61 - Browse repository at this point
Copy the full SHA b7d9e61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 233eaef - Browse repository at this point
Copy the full SHA 233eaefView commit details
Commits on Feb 9, 2023
-
set dimensional attributes through
setAttribute
(#3888)* set dimensional attributes through `setAttribute` * add tests * try regex * Update props.js * undo
Configuration menu - View commit details
-
Copy full SHA for 9b83481 - Browse repository at this point
Copy the full SHA 9b83481View commit details -
Configuration menu - View commit details
-
Copy full SHA for cea22e0 - Browse repository at this point
Copy the full SHA cea22e0View commit details -
Merge pull request #3889 from preactjs/context-scu
Fix createContext update being blocked by sCU
Configuration menu - View commit details
-
Copy full SHA for 1de8059 - Browse repository at this point
Copy the full SHA 1de8059View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c521d3 - Browse repository at this point
Copy the full SHA 0c521d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for dec4d42 - Browse repository at this point
Copy the full SHA dec4d42View commit details
Commits on Feb 14, 2023
-
Fix hydrating textarea with value prop (#3891)
* Fix hydrating textarea with value prop * Golf setting value
Configuration menu - View commit details
-
Copy full SHA for b99c91c - Browse repository at this point
Copy the full SHA b99c91cView commit details
Commits on Feb 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ac25a51 - Browse repository at this point
Copy the full SHA ac25a51View commit details
Commits on Feb 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a8f6366 - Browse repository at this point
Copy the full SHA a8f6366View commit details -
Merge pull request #3837 from preactjs/types/indeterminate
types: Add `indeterminate` property
Configuration menu - View commit details
-
Copy full SHA for c272b4e - Browse repository at this point
Copy the full SHA c272b4eView commit details
Commits on Feb 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5187c74 - Browse repository at this point
Copy the full SHA 5187c74View commit details
Commits on Feb 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 17ce063 - Browse repository at this point
Copy the full SHA 17ce063View commit details
Commits on Feb 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for cc88ae6 - Browse repository at this point
Copy the full SHA cc88ae6View commit details -
Configuration menu - View commit details
-
Copy full SHA for f409692 - Browse repository at this point
Copy the full SHA f409692View commit details -
fix case where strict equality leads to a deadlock with c._force (#3906)
* fix case where strict equality leads to a deadlock with c._force * add failing test
Configuration menu - View commit details
-
Copy full SHA for 3bfce88 - Browse repository at this point
Copy the full SHA 3bfce88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d2b724 - Browse repository at this point
Copy the full SHA 4d2b724View commit details -
Merge pull request #3905 from shoonia/add-svg-elements-to-types
Add missing SVG Elements to types
Configuration menu - View commit details
-
Copy full SHA for 5624b3c - Browse repository at this point
Copy the full SHA 5624b3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c68a6b2 - Browse repository at this point
Copy the full SHA c68a6b2View commit details -
Merge pull request #3898 from preactjs/types/compat-memo-exotic-compo…
…nent fix: Add `MemoExoticComponent` type to compat
Configuration menu - View commit details
-
Copy full SHA for a96e644 - Browse repository at this point
Copy the full SHA a96e644View commit details
Commits on Feb 23, 2023
-
Add typings for ARIA attributes (#3910)
* Add React-like aria typings * Add signal type support to aria attributes * Put JSDoc tags on their own lines * Consistently use Booleanish * Make role typing more strict and add 'none presentation'
Configuration menu - View commit details
-
Copy full SHA for 833d7de - Browse repository at this point
Copy the full SHA 833d7deView commit details
Commits on Feb 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 54ecaa1 - Browse repository at this point
Copy the full SHA 54ecaa1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ff0e53 - Browse repository at this point
Copy the full SHA 8ff0e53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3674c42 - Browse repository at this point
Copy the full SHA 3674c42View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca31f13 - Browse repository at this point
Copy the full SHA ca31f13View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e425df - Browse repository at this point
Copy the full SHA 5e425dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for de08e91 - Browse repository at this point
Copy the full SHA de08e91View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb276c3 - Browse repository at this point
Copy the full SHA bb276c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for bdf100d - Browse repository at this point
Copy the full SHA bdf100dView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf39376 - Browse repository at this point
Copy the full SHA bf39376View commit details
Commits on Feb 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b060516 - Browse repository at this point
Copy the full SHA b060516View commit details -
Configuration menu - View commit details
-
Copy full SHA for 950b239 - Browse repository at this point
Copy the full SHA 950b239View commit details
Commits on Mar 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5b7fb23 - Browse repository at this point
Copy the full SHA 5b7fb23View commit details -
Skip over function children when rendering (#3919)
Function children that are passed as props to a component are still allowed but if that Component doesn't invoke the function and passes it a child, we'll skip over it.
Configuration menu - View commit details
-
Copy full SHA for 15f0c96 - Browse repository at this point
Copy the full SHA 15f0c96View commit details
Commits on Mar 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 74dff66 - Browse repository at this point
Copy the full SHA 74dff66View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4e8ed3 - Browse repository at this point
Copy the full SHA d4e8ed3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d12284 - Browse repository at this point
Copy the full SHA 2d12284View commit details
Commits on Mar 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 455f1c8 - Browse repository at this point
Copy the full SHA 455f1c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 35219aa - Browse repository at this point
Copy the full SHA 35219aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ce99dc - Browse repository at this point
Copy the full SHA 5ce99dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1736cac - Browse repository at this point
Copy the full SHA 1736cacView commit details
Commits on Mar 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fa93a56 - Browse repository at this point
Copy the full SHA fa93a56View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ed4f68 - Browse repository at this point
Copy the full SHA 2ed4f68View commit details -
Configuration menu - View commit details
-
Copy full SHA for cacf6e1 - Browse repository at this point
Copy the full SHA cacf6e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44483e5 - Browse repository at this point
Copy the full SHA 44483e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c771fa - Browse repository at this point
Copy the full SHA 0c771faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 69ca049 - Browse repository at this point
Copy the full SHA 69ca049View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3726e37 - Browse repository at this point
Copy the full SHA 3726e37View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0c08b4 - Browse repository at this point
Copy the full SHA c0c08b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 417289a - Browse repository at this point
Copy the full SHA 417289aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0737e26 - Browse repository at this point
Copy the full SHA 0737e26View commit details
Commits on Mar 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9ee38ad - Browse repository at this point
Copy the full SHA 9ee38adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ff2944 - Browse repository at this point
Copy the full SHA 3ff2944View commit details