Releases: preactjs/preact
10.5.12
This release includes an enhancement to our devtools integration. Via a babel plugin you can get more readable hook names to show up in devtools instead of dozens of useState
hooks in devtools. Check out https://github.com/preactjs/babel-plugin-transform-hook-names for more information.
Before:
After:
Bug Fixes
- Compat: Fix
defaultValue
not applied when value==null/undefined
(#2957, thanks @marvinhagemeister) - Fix HTML comments breaking hydration (#2956, #2960 thanks @marvinhagemeister and @developit)
Maintenance
- Tests: Improve
console.logs
(#2959, thanks @marvinhagemeister) - Remove redundant benchmark initialization (#2966, thanks @andrewiggins)
- Fix pr-reporter condition (#2964, thanks @andrewiggins)
- Report benchmarks on PRs from forks (#2961, thanks @andrewiggins)
- Update size action to only run when src files change (#2962, thanks @andrewiggins)
- Use artifact flow to report benchmarks results (#2953, thanks @andrewiggins)
10.5.11
📈 Bug Fixes
- Fix unable to set
contentEditable
tofalse
(#2938, #2939 thanks @marvinhagemeister + @developit) - Fix
compat/jsx-dev-runtime
missing in package (#2931, thanks @marvinhagemeister)
⛳ Code golfing
- Golf element diffing [-17b] (#2942, thanks @developit)
- Pass all props to
createElement
instead of justis
[-5b] (#2943, thanks @developit) - Use try/catch for properties instead of an allow list, remove
xlink:
(#2939, thanks @developit) - Simplify diffChildren's handling of excessDomChildren and oldDom (#2941, thanks @andrewiggins)
🛠️ Maintenance
- Tests: Alias
react
topreact/compat
(#2946, thanks @marvinhagemeister) - Separate benchmarks into their own workflow (#2944, thanks @andrewiggins)
- Simplify top-level render and remove dead code (#2940, thanks @andrewiggins)
- Tests: Fix stack traces not sourcemapped (#2935, thanks @marvinhagemeister)
- Fail build on missing compat entries in files entry (#2934, thanks @marvinhagemeister)
- Add
workflow_dispatch
and restructure branch trigger (#2933, thanks @andrewiggins) - Tests: Fix vscode breakpoints not being hit (#2932, thanks @marvinhagemeister)
- Fix incorrect sourcemap line mapping in tests (#2929, thanks @marvinhagemeister)
10.5.10
Bug Fixes
- Fix
contentEditable
throwing when set to undefined/null (#2927, thanks @marvinhagemeister) - Compat: Add basic shims for some scheduler functions (#2912, thanks @marvinhagemeister)
- Add
jsx-dev-runtime
package entry (#2920, thanks @sventschui) - Avoid overriding render method in
Suspense
(#2917, thanks @andrewiggins) - Fix updating suspended component (#2910, thanks @tanhauhau)
Maintenance
- Fix
Portal
test not cleaning up container (#2925, thanks @marvinhagemeister) - Fix tests in IE11 (#2924, thanks @marvinhagemeister)
- Fix karma IE11 target containing ES2015 syntax (#2923, thanks @marvinhagemeister)
- Upgrade
sinon
dependencies to fix IE11 Promise error (#2922, thanks @marvinhagemeister) - Fix SauceLabs runner (#2918, thanks @andrewiggins)
- Fix
karma
benchmarks not compiling (#2914, thanks @marvinhagemeister) - Remove
babel-loader
(#2911, thanks @andrewiggins) - Remove unused comment (#2909, thanks @marvinhagemeister)
10.5.9
Happy New Year to everyone 🎉 Let's kick of the year with a few welcome bug fixes regarding preact/compat
👍
Bug Fixes
- Fix bug when re-rendering a suspended hydration node (#2903, thanks @andrewiggins)
- Fix devtools error with portals (#2904, thanks @JoviDeCroock)
- Fix child reordering with
memo
(#2896, thanks @andrewiggins)
Maintenance
- Replace webpack with esbuild + babel in karma test runner(#2907, thanks @marvinhagemeister)
- Rename "coverage" env to "COVERAGE" (#2906, thanks @marvinhagemeister)
- Ensure expression is not marked for removal (#2905, thanks @marvinhagemeister)
- Prepare test code to be run in ES2015+ environments (#2901, thanks @marvinhagemeister)
- Fix invalid jsx comment (#2902, thanks @marvinhagemeister)
- Fix console.log not showing up in browser (#2900, thanks @marvinhagemeister)
- Improve hydration tests (#2899, thanks @andrewiggins)
- Add support for pretty printing karma console logs (#2893, thanks @marvinhagemeister)
10.5.8
This is probably the last release for 2020. Thank you everyone for the amazing contributions over the year and we can't wait to see where Preact is going in 2021! Lot's of interesting ideas are being worked on 🎉
Bug Fixes
- Correct
_nextDom
pointer if it is being unmounted (#2889, thanks @andrewiggins) - Updating
/compat/server
exports to work with import/export syntax and webpack 5 (#2873, thanks @SomethingSexy) - Remove arguments warning for
useMemo
/useCallback
hooks (#2870, thanks @afzalsayed96) - Use strict equality checks when comparing
VNode
type (#2855, thanks @andrewiggins) - Fix
ref
not being removed fromprops
withjsx-runtime
(#2840, thanks @marvinhagemeister) - Compat: Don't convert
onchange
tooninput
forinput[type=range]
in IE11 (#2817, thanks @gcraftyg)
Types
- Improve
JSDoc
comments (#2883, thanks @andrewiggins) - Use
CSSStyleDeclaration
for CSS property list (#2869, thanks @developit) - Add
readonly
attribute (#2868, thanks @rschristian) - Add
defaultValue
for select tag (#2848, thanks @Rafi993) - Update
_original
typings (#2830, thanks @marvinhagemeister) - Update
csstype
from version 2 to version 3 (#2829, thanks @bz2)
Other
- SimplifyPortal implementation (#2890, thanks @marvinhagemeister, @developit)
- Simplify
vnode
re-use detection (-2 B) (#2863, thanks @marvinhagemeister) - Save 6 Bytes (#2844, thanks @marvinhagemeister)
- Move child reodering to
diffChildren
(#2813, thanks @JoviDeCroock)
Maintenance
- Add discussions and a csb template (#2875, thanks @JoviDeCroock)
- In benches, abstract framework differences with
createRoot
API (#2866, thanks @andrewiggins) - Add filter benchmark (#2851, thanks @marvinhagemeister)
- Update benchmarks (#2865, thanks @andrewiggins)
- Add preactjs-gh-sponsor account to
FUNDING.yml
(#2861, thanks @JoviDeCroock) - Upgrade
devDependencies
(#2856, thanks @andrewiggins) - Add package tags (#2841, thanks @developit)
- Trial codesandbox-ci (#2819, thanks @JoviDeCroock)
10.5.7
- Fix
compat/jsx-runtime
missing in npm package (#2827, thanks @marvinhagemeister)
10.5.6
Bug Fixes
- Throw when hook is invoked outside of render (#2816, thanks @marvinhagemeister)
- Make
jsx-runtime
work when using an alias (#2805, thanks @JoviDeCroock) - Allow rendering from an effect (#2804, thanks @JoviDeCroock)
Types
- Add
animateTransform
tag type (#2822, thanks @HuHguZ) - Add
displayName
to context (#2820, thanks @max-voronov) - Improve
style
attribute types (#1797, thanks @mnkhouri) - General JSX types export for
jsx-runtime
, fixes TS4.1 compatibility (#2811, thanks @ddprrt) - Make
ref
types' current property non-optional (#2803, thanks @ivantm)
Maintenance
- Remove circular
vnode
reference and golf implementation (#2517, thanks @JoviDeCroock) - Add hydration suspend tests (#2755, thanks @andrewiggins)
- Fix prototype spies not being reset in tests (#2823, thanks @marvinhagemeister)
10.5.5
Bug Fixes
- Reset hooks state when
Suspense
triggers (#2796, thanks @JoviDeCroock) - Run parent effects when child throws (#2794, thanks @sventschui)
Typings
- Fix memo function types definition (#2793, thanks @dzhykaiev)
10.5.4
tl;dr: Bug-Fix only release that should get rid of the last className edge cases. We encourage everyone to upgrade.
Despite our effort to account for all edge cases regarding className
handling in preact/compat
, we got some reports of some missed ones. This release corrects those 🎉
This release contains a fix to increase compatibility with next.js that ensures that the error overlay will show up.
Bug Fixes
- Emit error event for errors handled by an error boundary (#2784, thanks @sventschui)
- Fix
className
descriptors on Elementvnodes
(#2786, thanks @developit) - Give precedence to
className
overclass
(#2782, thanks @JoviDeCroock)
10.5.3
This release fixes a regression in regards to class/className
handling in preact/compat
. We encourage everyone to upgrade.
Bug Fixes
- Fix
className
normalization (#2774, thanks @JoviDeCroock) - Fix edge cases for thrown
Promises
in Suspense (#2776, thanks @kitten)
Maintenance
- Replace custom script with
check-export-map
(#2777, thanks @marvinhagemeister) - Upgrade bench infra and add tachometer PR reporter (#2775, thanks @andrewiggins)
- Optimizations for preact/jsx-runtime (#2771, thanks @developit)