Release 3.9.0 (#5100)

This commit is contained in:
fengmk2 2022-12-16 21:35:54 +08:00 committed by GitHub
parent af12069041
commit 53ada860e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 3 deletions

View File

@ -1,5 +1,25 @@
# History
## 2022-12-16, Version 3.9.0 @fengmk2
### Notable Changes
* **features**
* 📦 NEW: Run async function in the anonymous context scope
```js
await app.runInAnonymousContextScope(async ctx => {
// run with anonymous ctx here
});
```
### Commits
* [[`af1206904`](http://github.com/eggjs/egg/commit/af12069041c1ea11217688c9c17d3712a44d3422)] - chore: update workflow for gh-pages (#5098) (Suyi <<thonatos.yang@gmail.com>>)
* [[`344139e47`](http://github.com/eggjs/egg/commit/344139e4759f56ab2beca2e2a5c2783160396ba9)] - 🐛 FIX: Typo on HttpClient request (#5097) (fengmk2 <<fengmk2@gmail.com>>)
* [[`1021faf78`](http://github.com/eggjs/egg/commit/1021faf78e5f23fa366c0034a38f81b0f361e9ec)] - 👌 IMPROVE: Keep more compatible d.ts on httpclient request (#5092) (fengmk2 <<fengmk2@gmail.com>>)
* [[`9d6acfd7c`](http://github.com/eggjs/egg/commit/9d6acfd7c3266ae6a56e45cb7a72473d628f6e16)] - 📦 NEW: Run async function in the anonymous context scope (#5094) (fengmk2 <<fengmk2@gmail.com>>)
## 2022-12-12, Version 3.8.0 @fengmk2
### Notable Changes

View File

@ -1,6 +1,6 @@
{
"name": "egg",
"version": "3.8.0",
"version": "3.9.0",
"publishConfig": {
"tag": "next"
},
@ -54,7 +54,7 @@
"on-finished": "^2.4.1",
"sendmessage": "^1.1.0",
"urllib": "^2.33.0",
"urllib-next": "^3.8.0",
"urllib-next": "^3.8.1",
"utility": "^1.17.0",
"ylru": "^1.3.2"
},

View File

@ -61,7 +61,10 @@ async function main() {
await app.httpclient.request('url', {});
await app.httpclient.request('url');
await app.httpclient.curl('url', {});
await app.httpclient.curl('url');
const { res } = await app.httpclient.curl('url', { streaming: true });
for await (const chunk of res) {
console.log(chunk.toString());
}
});
}
main();