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

Release 2.0.0 #117

Merged
merged 27 commits into from
Jan 19, 2024
Merged

Release 2.0.0 #117

merged 27 commits into from
Jan 19, 2024

Conversation

bytemain
Copy link
Member

@bytemain bytemain commented Dec 3, 2023

Breaking Changes:

  • We remove the direct import of reflect-metadata
  • Remove __id and __injectorId from the created instance

Feat:

  • Support hook priority option
  • Ship with both esm and commonjs dist
  • Support factory/multiple instance check

fix: #111
fix: #102


Behind scene(May the users who do not care):

  • The InstanceCreator method sign is changed:
interface InstanceCreator {
- instance: any;
+ instances: Set<any>;
}

Copy link

codecov bot commented Dec 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e300355) 100.00% compared to head (48ea622) 100.00%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #117   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        20    +2     
  Lines          914       905    -9     
  Branches       184       183    -1     
=========================================
- Hits           914       905    -9     

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

src/injector.ts Outdated Show resolved Hide resolved
@bytemain
Copy link
Member Author

待补充文档:集成方需要自行引用 reflect metadata

@bytemain bytemain changed the title WIP: Release 2.0.0 Release 2.0.0 Jan 16, 2024
Copy link
Member

@erha19 erha19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bytemain bytemain merged commit 72fc9df into main Jan 19, 2024
3 checks passed
@bytemain bytemain deleted the next branch January 19, 2024 06:33
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.

使用disposeOne后,useFactory 结果未重置 useFactory 的结果不支持 hasInstance 检测
3 participants