This repository has been archived by the owner on Feb 27, 2022. It is now read-only.
Releases: kendallroth/vue-simple-forms
Releases · kendallroth/vue-simple-forms
v0.3.2
v0.3.1
[0.3.1] - 2020-10-02
Added
- Improved type exports (
/types
) - Added TSDoc comment
v0.3.0
[0.3.0] - 2020-10-01
Removed
- Removed the
FormCreateMixin
(replaced with typedcreateForm
function)- The
FormCreaetMixin
(not truly a mixin...) did not work with TypeScript - The old mixin simply called this function anyway...
- The
- Removed the
FormLeaveGuardMixin
(replaced with typedFormGuardMixin
)- The
FormLeaveGuardMixin
(not truly a mixin...) did not work with TypeScript - There was no need for customizing the leave guard to the extend provided
- The
- Removed the form key/name from the
createForm
function API- This was an unnecessary step that caused more internal work for no gain (simply assign to data)
Changed
- Changed the default behaviour of the
setValues
form function (now will not set initial values by default)- This change was made to align with developer expectations (behaviour moved to
setInitial
)
- This change was made to align with developer expectations (behaviour moved to
Added
- Overhauled package to use TypeScript!
- Fully typed
FormGuardMixin
to replaceFormLeaveGuardMixin
(can be customized withformGuards
data key) - New
setInitial
form function to set a form's initial (and current) values (similar to old behaviour ofsetValues
)
NOTE: Some tests were disabled (
FormGuardMixin
) to get a passing build, and test coverage is broken!
v0.2.3
[0.2.3] - 2020-09-30
Added
- Development instructions and guide
Removed
- Removed duplicated npm-test step from publish Action
v0.2.2
v0.2.1
[0.2.1] - 2020-06-30
Fixed
- Reset form data when leaving route in
FormLeaveGuardMixin
v0.2.0
[0.2.0] - 2020-06-29
Added
- New
FormLeaveGuardMixin
to prevent users from leaving routes with unsaved changes- Does require additional handling (via dialog, etc)
- New
FormCreateMixin
based on the existingcreateForm
function - Customization options to the form creation function/mixin
- Can specify custom
flags
and whether thechanged
flag should be calculated (performance)
- Can specify custom
Changed
- Changed
createForm
to a secondary export (instead preferFormCreateMixin
)
Initial Release
[0.1.0] - 2020-06-29
Added
- Core
createForm
function to create reactive Vue form data/flags - Basic project (dummy) tests
- Initial project documentation/setup