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

feat: export asyncLocalStorage instance to global #267

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Dec 19, 2023

closes eggjs/egg#5271

pick from #266

Copy link

codecov bot commented Dec 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (24a0d64) 99.76% compared to head (740436e) 99.76%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #267   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files          19       19           
  Lines        2969     2975    +6     
  Branches      556      558    +2     
=======================================
+ Hits         2962     2968    +6     
  Misses          7        7           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fengmk2 fengmk2 merged commit 910fe85 into master Dec 19, 2023
21 checks passed
@fengmk2 fengmk2 deleted the export-als-to-global-for-master branch December 19, 2023 14:28
fengmk2 pushed a commit that referenced this pull request Jun 17, 2024
[skip ci]

## [6.0.0](v5.3.1...v6.0.0) (2024-06-17)

### ⚠ BREAKING CHANGES

* Drop Node.js < 18.19.0 support

#264

the core part of eggjs/egg#3644

Breaking changes:
- Drop Node.js < 18.19.0 support
- Drop generator function support
- loader functions change to async function

### Features

* export asyncLocalStorage instance to global ([#267](#267)) ([910fe85](910fe85))
* support cjs and esm both ([#265](#265)) ([fed5f35](fed5f35))

### Bug Fixes

* use gals lib ([#268](#268)) ([72fafc8](72fafc8))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

如果使用AsyncLocalStorage,如何能够在不被Egg管理的类中,也能正确地拿到上下文对象
1 participant