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): Avoid attr default value modification by reference #1869

Closed Graphmaxer closed 3 months ago

Graphmaxer commented 3 months ago

🔗 Linked issue

https://github.com/CodeDredd/pinia-orm/issues/1868

📚 Description

Added a test to see the issue of modifying default value by reference and proposed a fix

codecov-commenter commented 3 months ago

Codecov Report

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

Project coverage is 99.76%. Comparing base (ed747cb) to head (334f935). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1869 +/- ## ======================================= Coverage 99.76% 99.76% ======================================= Files 88 88 Lines 6032 6039 +7 Branches 512 512 ======================================= + Hits 6018 6025 +7 Misses 12 12 Partials 2 2 ```

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