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

(major) - Tracking PR for v11 #4549

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open

(major) - Tracking PR for v11 #4549

wants to merge 38 commits into from

Conversation

JoviDeCroock
Copy link
Member

@JoviDeCroock JoviDeCroock commented Nov 10, 2024

We will do this as a means to remove IE11, cleanup our imports exports and drive support for #4613 in 11 rather than X.

Closes #4613
Closes #4406
Closes #3084
Closes #4442
Closes #4461
Closes #3335 as won't do
Closes #2004 as won't do
Closes #2331 as won't do

Breaking changes

Features

Fixes

Questions

  • Check the impact of moving _dirty and others to _component flags

Can be done outside of a major version

Rejected

Copy link

github-actions bot commented Nov 10, 2024

📊 Tachometer Benchmark Results

Summary

duration

  • create10k: unsure 🔍 -1% - +1% (-7.89ms - +5.27ms)
    preact-local vs preact-main
  • filter-list: unsure 🔍 -0% - +1% (-0.06ms - +0.23ms)
    preact-local vs preact-main
  • hydrate1k: unsure 🔍 -0% - +1% (-0.23ms - +1.05ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -1% - +1% (-0.09ms - +0.12ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -2% - +0% (-1.59ms - +0.31ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -1% - +7% (-0.02ms - +0.14ms)
    preact-local vs preact-main
  • todo: faster ✔ 2% - 4% (0.56ms - 1.24ms)
    preact-local vs preact-main
  • update10th1k: unsure 🔍 -5% - +1% (-1.61ms - +0.37ms)
    preact-local vs preact-main

usedJSHeapSize

  • create10k: unsure 🔍 +0% - +0% (+0.02ms - +0.03ms)
    preact-local vs preact-main
  • filter-list: unsure 🔍 -4% - +0% (-0.06ms - +0.01ms)
    preact-local vs preact-main
  • hydrate1k: unsure 🔍 -7% - +3% (-0.60ms - +0.25ms)
    preact-local vs preact-main
  • many-updates: unsure 🔍 -1% - +1% (-0.02ms - +0.04ms)
    preact-local vs preact-main
  • replace1k: unsure 🔍 -1% - +0% (-0.03ms - +0.01ms)
    preact-local vs preact-main
  • text-update: unsure 🔍 -5% - +0% (-0.06ms - +0.00ms)
    preact-local vs preact-main
  • todo: unsure 🔍 -3% - +1% (-0.03ms - +0.02ms)
    preact-local vs preact-main
  • update10th1k: unsure 🔍 -2% - +0% (-0.05ms - +0.00ms)
    preact-local vs preact-main

Results

create10k

duration

VersionAvg timevs preact-localvs preact-main
preact-local927.01ms - 937.66ms-unsure 🔍
-1% - +1%
-7.89ms - +5.27ms
preact-main929.77ms - 937.51msunsure 🔍
-1% - +1%
-5.27ms - +7.89ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local19.20ms - 19.21ms-unsure 🔍
+0% - +0%
+0.02ms - +0.03ms
preact-main19.18ms - 19.19msunsure 🔍
-0% - -0%
-0.03ms - -0.02ms
-
filter-list

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.51ms - 16.81ms-unsure 🔍
-0% - +1%
-0.06ms - +0.23ms
preact-main16.56ms - 16.60msunsure 🔍
-1% - +0%
-0.23ms - +0.06ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.55ms - 1.60ms-unsure 🔍
-4% - +0%
-0.06ms - +0.01ms
preact-main1.58ms - 1.63msunsure 🔍
-0% - +4%
-0.01ms - +0.06ms
-
hydrate1k

duration

VersionAvg timevs preact-localvs preact-main
preact-local74.87ms - 75.80ms-unsure 🔍
-0% - +1%
-0.23ms - +1.05ms
preact-main74.49ms - 75.36msunsure 🔍
-1% - +0%
-1.05ms - +0.23ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local8.61ms - 9.20ms-unsure 🔍
-7% - +3%
-0.60ms - +0.25ms
preact-main8.78ms - 9.39msunsure 🔍
-3% - +7%
-0.25ms - +0.60ms
-
many-updates

duration

VersionAvg timevs preact-localvs preact-main
preact-local16.46ms - 16.66ms-unsure 🔍
-1% - +1%
-0.09ms - +0.12ms
preact-main16.51ms - 16.58msunsure 🔍
-1% - +1%
-0.12ms - +0.09ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local3.80ms - 3.85ms-unsure 🔍
-1% - +1%
-0.02ms - +0.04ms
preact-main3.79ms - 3.83msunsure 🔍
-1% - +1%
-0.04ms - +0.02ms
-
replace1k
  • Browser: chrome-headless
  • Sample size: 100
  • Built by: CI #4641
  • Commit: 65e5f4b

duration

VersionAvg timevs preact-localvs preact-main
preact-local63.35ms - 63.84ms-unsure 🔍
-2% - +0%
-1.59ms - +0.31ms
preact-main63.32ms - 65.15msunsure 🔍
-0% - +2%
-0.31ms - +1.59ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local2.98ms - 3.00ms-unsure 🔍
-1% - +0%
-0.03ms - +0.01ms
preact-main2.98ms - 3.01msunsure 🔍
-0% - +1%
-0.01ms - +0.03ms
-

run-warmup-0

VersionAvg timevs preact-localvs preact-main
preact-local29.35ms - 29.91ms-unsure 🔍
-1% - +2%
-0.43ms - +0.52ms
preact-main29.20ms - 29.97msunsure 🔍
-2% - +1%
-0.52ms - +0.43ms
-

run-warmup-1

VersionAvg timevs preact-localvs preact-main
preact-local33.77ms - 35.04ms-unsure 🔍
-2% - +3%
-0.74ms - +1.00ms
preact-main33.69ms - 34.87msunsure 🔍
-3% - +2%
-1.00ms - +0.74ms
-

run-warmup-2

VersionAvg timevs preact-localvs preact-main
preact-local24.61ms - 24.96ms-faster ✔
0% - 2%
0.07ms - 0.58ms
preact-main24.93ms - 25.29msslower ❌
0% - 2%
0.07ms - 0.58ms
-

run-warmup-3

VersionAvg timevs preact-localvs preact-main
preact-local25.08ms - 26.01ms-faster ✔
3% - 7%
0.87ms - 2.02ms
preact-main26.66ms - 27.32msslower ❌
3% - 8%
0.87ms - 2.02ms
-

run-warmup-4

VersionAvg timevs preact-localvs preact-main
preact-local24.49ms - 25.54ms-faster ✔
6% - 11%
1.68ms - 3.00ms
preact-main26.96ms - 27.75msslower ❌
7% - 12%
1.68ms - 3.00ms
-

run-final

VersionAvg timevs preact-localvs preact-main
preact-local19.37ms - 19.79ms-unsure 🔍
-3% - +1%
-0.66ms - +0.13ms
preact-main19.52ms - 20.18msunsure 🔍
-1% - +3%
-0.13ms - +0.66ms
-
text-update
  • Browser: chrome-headless
  • Sample size: 240
  • Built by: CI #4641
  • Commit: 65e5f4b

duration

VersionAvg timevs preact-localvs preact-main
preact-local2.09ms - 2.22ms-unsure 🔍
-1% - +7%
-0.02ms - +0.14ms
preact-main2.05ms - 2.14msunsure 🔍
-6% - +1%
-0.14ms - +0.02ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.14ms - 1.18ms-unsure 🔍
-5% - +0%
-0.06ms - +0.00ms
preact-main1.17ms - 1.22msunsure 🔍
-0% - +5%
-0.00ms - +0.06ms
-
todo

duration

VersionAvg timevs preact-localvs preact-main
preact-local33.01ms - 33.26ms-faster ✔
2% - 4%
0.56ms - 1.24ms
preact-main33.72ms - 34.35msslower ❌
2% - 4%
0.56ms - 1.24ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local1.23ms - 1.27ms-unsure 🔍
-3% - +1%
-0.03ms - +0.02ms
preact-main1.24ms - 1.28msunsure 🔍
-1% - +3%
-0.02ms - +0.03ms
-
update10th1k

duration

VersionAvg timevs preact-localvs preact-main
preact-local33.31ms - 34.54ms-unsure 🔍
-5% - +1%
-1.61ms - +0.37ms
preact-main33.76ms - 35.32msunsure 🔍
-1% - +5%
-0.37ms - +1.61ms
-

usedJSHeapSize

VersionAvg timevs preact-localvs preact-main
preact-local2.93ms - 2.97ms-unsure 🔍
-2% - +0%
-0.05ms - +0.00ms
preact-main2.96ms - 2.99msunsure 🔍
-0% - +2%
-0.00ms - +0.05ms
-

tachometer-reporter-action v2 for CI

Copy link

github-actions bot commented Nov 10, 2024

Size Change: -32.2 kB (-40.94%) 🎉

Total Size: 46.4 kB

Filename Size Change
compat/dist/compat.js 3.69 kB -427 B (-10.36%) 👏
compat/dist/compat.mjs 3.61 kB -438 B (-10.82%) 👏
compat/dist/compat.module.js 0 B -4.05 kB (removed) 🏆
compat/dist/compat.umd.js 3.75 kB -436 B (-10.41%) 👏
debug/dist/debug.js 3.85 kB +35 B (+0.92%)
debug/dist/debug.mjs 3.85 kB +35 B (+0.92%)
debug/dist/debug.module.js 0 B -3.82 kB (removed) 🏆
debug/dist/debug.umd.js 3.94 kB +40 B (+1.03%)
devtools/dist/devtools.mjs 271 B -3 B (-1.09%)
devtools/dist/devtools.module.js 0 B -274 B (removed) 🏆
dist/preact.js 4.62 kB -134 B (-2.82%)
dist/preact.min.js 0 B -4.77 kB (removed) 🏆
dist/preact.min.module.js 0 B -4.77 kB (removed) 🏆
dist/preact.min.umd.js 0 B -4.8 kB (removed) 🏆
dist/preact.mjs 4.63 kB -133 B (-2.79%)
dist/preact.module.js 0 B -4.76 kB (removed) 🏆
dist/preact.umd.js 4.69 kB -116 B (-2.42%)
hooks/dist/hooks.js 1.55 kB +13 B (+0.85%)
hooks/dist/hooks.mjs 1.58 kB +8 B (+0.51%)
hooks/dist/hooks.module.js 0 B -1.57 kB (removed) 🏆
hooks/dist/hooks.umd.js 1.62 kB +11 B (+0.68%)
jsx-runtime/dist/jsxRuntime.js 861 B -117 B (-11.96%) 👏
jsx-runtime/dist/jsxRuntime.mjs 830 B -122 B (-12.82%) 👏
jsx-runtime/dist/jsxRuntime.module.js 0 B -952 B (removed) 🏆
jsx-runtime/dist/jsxRuntime.umd.js 934 B -118 B (-11.22%) 👏
test-utils/dist/testUtils.mjs 473 B -4 B (-0.84%)
test-utils/dist/testUtils.module.js 0 B -477 B (removed) 🏆
ℹ️ View Unchanged
Filename Size
devtools/dist/devtools.js 260 B
devtools/dist/devtools.umd.js 346 B
test-utils/dist/testUtils.js 473 B
test-utils/dist/testUtils.umd.js 555 B

compressed-size-action

@coveralls
Copy link

coveralls commented Nov 10, 2024

Coverage Status

coverage: 99.456% (-0.2%) from 99.61%
when pulling 65e5f4b on v11-2
into 80ca668 on main.

@JoviDeCroock JoviDeCroock force-pushed the v11-2 branch 4 times, most recently from af99557 to 067be2b Compare November 10, 2024 13:13
@rschristian
Copy link
Member

#4406 would be another easy thing to fit in, swapping out our (pretty much unused & problematic) package.json##browser condition for package.json##module

@JoviDeCroock JoviDeCroock force-pushed the v11-2 branch 2 times, most recently from a12176d to 14ea8f6 Compare November 23, 2024 08:23
@JoviDeCroock JoviDeCroock force-pushed the v11-2 branch 2 times, most recently from 5caed5c to 39339b2 Compare December 22, 2024 09:19
@JoviDeCroock JoviDeCroock force-pushed the v11-2 branch 2 times, most recently from d328910 to 41622b2 Compare February 11, 2025 08:40
@JoviDeCroock JoviDeCroock marked this pull request as ready for review February 11, 2025 09:45
@JoviDeCroock JoviDeCroock changed the title V11 2 (major) - Tracking PR for v11 Feb 11, 2025
rschristian and others added 28 commits March 22, 2025 18:05
* Revert assign and avoid repeating indexed access

* Check parentNode instead

* Use flag

* Remove type

* Remove todo file
* Forward ref by default

* Optimizations
* Move `defaultProps` into `preact/compat`

This will be handled in `options.vnode` for function/class components.
This hook gets called for every invocation of `jsx`/`createElement` and
`cloneElement`.

* Try it

* refactor: This is horrific but seems to work? (#4662)

---------

Co-authored-by: Ryan Christian <[email protected]>
* Remove unused imports

* Comment denoted hydration

* Make it work

* Golfies
* Remove unused imports

* refactor: Switch to Object.is for hook args

* refactor: Copy to `useReducer` & store `Object` accessor

* test: Add tests for `useEffect` & `useState` w/ `NaN`

Co-authored-by: jayrobin <[email protected]>

---------

Co-authored-by: jdecroock <[email protected]>
Co-authored-by: jayrobin <[email protected]>
This reverts commit 6b8bfa2.
* refactor: Switch to `package.json#exports.module`, drop `.min` builds, &  use `.mjs` exclusively

* chore: Remove leftover CJS shell

* test: Fix export for karma

* fix: coverage not generated in minify tests

---------

Co-authored-by: Marvin Hagemeister <[email protected]>
* Remove automatic px suffix

* Remove from jsx-runtime
* refactor: Restrict aria roles by element type

* test: Add simple test for button roles

* refactor: Make roles signalish

* test: Add tests for `never` roles

* refactor: Remove half-implemented select roles

* fix: Ensure attributes w/ `never` roles can be constructed

* refactor: Restrict more complex aria roles

* refactor: Remove unused input type interface, fix select multiple type

* fix: Ensure partials extend EventTarget

* revert: Bring back input type attribute

* test: Fix test typo

* refactor: Remove 'generic' aria role from allowed values

* refactor: Revise select multiple/size roles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants