-
Notifications
You must be signed in to change notification settings - Fork 116
Revert "chore: upgrade preact" #1373
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
Conversation
This reverts commit 9bb1dda.
|
📝 WalkthroughWalkthroughThis change updates the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: .coderabbit.yaml ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
🧰 Additional context used🧠 Learnings (5)📓 Common learningspackages/react/package.json (1)Learnt from: colinaaa packages/react/runtime/src/debug/component-stack.ts (1)Learnt from: colinaaa packages/react/runtime/types/internal-preact.d.ts (1)Learnt from: colinaaa packages/react/runtime/src/debug/profile.ts (1)Learnt from: colinaaa 🧬 Code Graph Analysis (4)packages/react/runtime/src/lynx/performance.ts (1)
packages/react/runtime/src/debug/component-stack.ts (1)
packages/react/runtime/src/lynx/runWithForce.ts (2)
packages/react/runtime/src/debug/profile.ts (2)
🔇 Additional comments (8)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR reverts a previous upgrade to the preact library by downgrading from version 10.24.0-3d3cc198 to 10.24.0-319c684e and updating all corresponding function signatures to match the older API.
- Reverts preact package version in package.json
- Updates all DIFF hook function signatures to remove the
oldVNodeparameter - Maintains consistent API usage across all files that utilize the preact DIFF option
Reviewed Changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/react/package.json | Downgrades preact dependency version |
| packages/react/runtime/src/lynx/runWithForce.ts | Removes oldVNode parameter from DIFF hook signature |
| packages/react/runtime/src/lynx/performance.ts | Updates DIFF hook to single parameter signature |
| packages/react/runtime/src/debug/profile.ts | Removes oldVNode parameter from DIFF hook function |
| packages/react/runtime/src/debug/component-stack.ts | Updates DIFF hook to match older API signature |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
CodSpeed Performance ReportMerging #1373 will not alter performanceComparing Summary
|
Web Explorer#3430 Bundle Size — 352.53KiB (0%).506f3ce(current) vs 92445ad main#3426(baseline) Bundle metrics
|
| Current #3430 |
Baseline #3426 |
|
|---|---|---|
142.12KiB |
142.12KiB |
|
31.83KiB |
31.83KiB |
|
0% |
0% |
|
7 |
7 |
|
7 |
7 |
|
214 |
214 |
|
17 |
17 |
|
3.94% |
3.94% |
|
4 |
4 |
|
0 |
0 |
Bundle size by type no changes
| Current #3430 |
Baseline #3426 |
|
|---|---|---|
226.4KiB |
226.4KiB |
|
94.29KiB |
94.29KiB |
|
31.83KiB |
31.83KiB |
Bundle analysis report Branch revert-1349-p/hzy/pick_preact_48... Project dashboard
Generated by RelativeCI Documentation Report issue
React Example#3440 Bundle Size — 235.13KiB (-0.02%).506f3ce(current) vs 92445ad main#3436(baseline) Bundle metrics
Bundle size by type
Bundle analysis report Branch revert-1349-p/hzy/pick_preact_48... Project dashboard Generated by RelativeCI Documentation Report issue |
Reverts #1349
Summary by CodeRabbit