CodeDredd / pinia-orm

The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store.
https://pinia-orm.codedredd.de/
MIT License
444 stars 38 forks source link

fix(pinia-orm): Change plugin registration to be still compatible with pinia types #1902

Closed CodeDredd closed 2 months ago

CodeDredd commented 2 months ago

🔗 Linked issue

resolves #1901, resolves #1859, resolves #1694, resolves #1687

📚 Description

This is a breaking change which is necessary to keep aligned with pinia plugin types. Instead of using createORM().use(plugin) you must use createORM({ plugins: [plugin] })

BREAKING-CHANGE: Removed createORM().use(PUGIN). Use createORM({plugins: [PLUGIN] }) instead.

codecov-commenter commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.72%. Comparing base (be0793d) to head (547a49a). Report is 14 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1902 +/- ## ========================================== - Coverage 99.72% 99.72% -0.01% ========================================== Files 90 90 Lines 6268 6265 -3 Branches 525 528 +3 ========================================== - Hits 6251 6248 -3 Misses 14 14 Partials 3 3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.