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: add flags key to driver interface #552

Merged
merged 2 commits into from
Dec 30, 2024
Merged

feat: add flags key to driver interface #552

merged 2 commits into from
Dec 30, 2024

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Dec 29, 2024

resolves #549

Adds flags to the Driver type which can be used in future to determine if a driver supports a particular feature or requires some behaviour.

maybe something like this @pi0 ? and in a separate PR, add the flags to the fs drivers

Adds `flags` to the `Driver` type which can be used in future to
determine if a driver supports a particular feature or requires
some behaviour.
Copy link

codecov bot commented Dec 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.91%. Comparing base (4d61c78) to head (cd78b37).
Report is 157 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #552      +/-   ##
==========================================
- Coverage   65.05%   58.91%   -6.15%     
==========================================
  Files          39       43       +4     
  Lines        4055     3680     -375     
  Branches      487      588     +101     
==========================================
- Hits         2638     2168     -470     
- Misses       1408     1508     +100     
+ Partials        9        4       -5     

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

src/types.ts Outdated Show resolved Hide resolved
@pi0 pi0 changed the title feat: add driver flags feat: add flags key to driver interface Dec 30, 2024
@pi0 pi0 merged commit 9e15ab9 into unjs:main Dec 30, 2024
3 of 4 checks passed
@43081j 43081j deleted the driver-flags branch December 30, 2024 13:01
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.

capabilities in drivers
2 participants