diff --git a/History.md b/History.md index cc15ac0cb..40f1b5cde 100644 --- a/History.md +++ b/History.md @@ -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 <>) + * [[`344139e47`](http://github.com/eggjs/egg/commit/344139e4759f56ab2beca2e2a5c2783160396ba9)] - 🐛 FIX: Typo on HttpClient request (#5097) (fengmk2 <>) + * [[`1021faf78`](http://github.com/eggjs/egg/commit/1021faf78e5f23fa366c0034a38f81b0f361e9ec)] - 👌 IMPROVE: Keep more compatible d.ts on httpclient request (#5092) (fengmk2 <>) + * [[`9d6acfd7c`](http://github.com/eggjs/egg/commit/9d6acfd7c3266ae6a56e45cb7a72473d628f6e16)] - 📦 NEW: Run async function in the anonymous context scope (#5094) (fengmk2 <>) + ## 2022-12-12, Version 3.8.0 @fengmk2 ### Notable Changes diff --git a/package.json b/package.json index a3328eceb..1741c9771 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/test/fixtures/apps/app-ts-type-check/normal.ts b/test/fixtures/apps/app-ts-type-check/normal.ts index d0ccbb9c0..b72f6de70 100644 --- a/test/fixtures/apps/app-ts-type-check/normal.ts +++ b/test/fixtures/apps/app-ts-type-check/normal.ts @@ -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();