-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
♻️ refactor: refactor cookie/headers to async mode #4459
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
👍 @arvinxx Thank you for raising your pull request and contributing to our Community |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4459 +/- ##
=========================================
Coverage 92.27% 92.27%
=========================================
Files 493 493
Lines 35691 35697 +6
Branches 3417 2167 -1250
=========================================
+ Hits 32935 32941 +6
Misses 2756 2756
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
❤️ Great PR @arvinxx ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
### [Version 1.22.21](v1.22.20...v1.22.21) <sup>Released on **2024-10-23**</sup> #### ♻ Code Refactoring - **misc**: Refactor cookie/headers to async mode. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Refactor cookie/headers to async mode, closes [#4459](#4459) ([98c5d21](98c5d21)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
🎉 This PR is included in version 1.22.21 🎉 The release is available on: Your semantic-release bot 📦🚀 |
### [Version 1.65.11](v1.65.10...v1.65.11) <sup>Released on **2024-10-23**</sup> #### ♻ Code Refactoring - **misc**: Refactor cookie/headers to async mode. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Refactor cookie/headers to async mode, closes [lobehub#4459](https://github.com/bentwnghk/lobe-chat/issues/4459) ([98c5d21](98c5d21)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
由于 next 15 把 header/cookie 等都改成了 async 模式,试了下在 14 中改成 await 也能正常跑,那么在 14 中先提前改起来。降低未来的迁移成本。
同时以 Discover 下面的页面为示例,修改了一波异步 params/searchParams
📝 补充信息 | Additional Information