vform
Version:
Handle Laravel-Vue forms and validation with ease.
137 lines (84 loc) • 4.16 kB
Markdown
# Changelog
## 2.1.2 - 2021-10-28
- Fixed `transformRequest` when provided.
## 2.1.1 - 2021-07-20
- Added support for AxiosResponse type.
## 2.1.0 - 2021-06-14
- Added `recentlySuccessful` property to `Form` [#130](https://github.com/cretueusebiu/vform/pull/130).
## 2.0.4 - 2021-05-05
- Fixed package.json exports.
## 2.0.3 - 2021-04-30
- Handle files with `FormData` by default.
- Added upload `progress` property to `Form`.
## 2.0.2 - 2021-04-29
- Fixed missing `Method` type for old axios versions.
## 2.0.1 - 2021-04-29
- Fixed package.json exports.
## 2.0.0 - 2021-04-29
- New site [vform.vercel.app](https://vform.vercel.app)!
- Added support for Vue 3.
- Added support for TypeScript.
- Added new `Button` component.
- Added Boostrap 5 and Tailwind CSS components.
- Added `Form.prototype.update`.
- Fixed params for GET requests.
- Dropped support for Boostrap 3 components.
- The components are no longer bundled. Replace `import { HasError } from 'vform'` with `import { HasError } from 'vform/src/components/bootstrap5'`.
## 1.0.1 - 2019-06-01
- Added `Form.axios` to allow using a custom axios instance (`Form.axios = customAxiosInstance`).
## 1.0.0 - 2018-02-19
- Removed file detection, instead use axios's `transformRequest` option and [object-to-formdata](https://github.com/therealparmesh/object-to-formdata). See [example/upload.html](example/upload.html).
- `Errors.set` now accepts a specified error message: `Errors.set(field, message)`.
- Added default slot to the `alert-error` component.
- Update vue-cli, eslint, tests and examples.
## 0.8.2 - 2018-01-31
- Added default slot to the `alert-success` component.
## 0.8.1 - 2017-08-18
- Added `Form.prototype.onKeydown`.
## 0.8.0 - 2017-08-15
- Merged Bootstrap component `HasError4` into `HasError`.
- Added `Errors.prototype.getAll(field)` to get all the errors for a field.
## 0.7.8 - 2017-08-09
- Fixed error message when response is not JSON.
## 0.7.7 - 2017-08-04
- Added `Form.prototype.delete()`
## 0.7.6 - 2017-07-26
- Added `Form.prototype.keys()` to get the form data keys.
## 0.7.5 - 2017-05-19
- Check for a response before extracting errors.
## 0.7.4 - 2017-04-06
- Require `axios` as peer dependency.
## 0.7.3 - 2017-03-08
- Add `name` to components.
- Rename lib window name from `vForm` to `vform`.
## 0.7.1 - 2017-02-14
- Switch to [AVA](https://github.com/avajs/ava) tests.
- Export in UMD format.
- Use [vue-cli](https://github.com/vuejs/vue-cli) for the build process.
## 0.7.0 - 2017-01-07
- Removed support as a Vue plugin;`vform` now exports the `Form` class as default.
- Dropped support for [vue-resoure](https://github.com/pagekit/vue-resource), [axios](https://github.com/mzabriskie/axios) is now used by default.
- Renamed `Form.prototype.send()` to `Form.prototype.submit()`.
- Renamed `Form.prototype.getData()` to `Form.prototype.data()`.
- Renamed class `FormErrors` to `Errors`.
- Renamed `Errors.prototype.hasErrors()` to `Errors.prototype.any()`
- Removed `Errors.prototype.remove(field)` in favor of `Errors.prototype.clear(field)`.
- Added tests.
## 0.6.0 - 2016-12-08
- Changed how `Form.prototype.reset()` works. The form keeps now a copy of the original data.
- Removed `mergeData` arg (`new Form(data = {}, mergeData = {})`).
## 0.5.0 - 2016-12-05
- Added support for [axios](https://github.com/mzabriskie/axios).
- An http client must now be set via the `http` option. Supported: [axios](https://github.com/mzabriskie/axios) or [vue-resoure](https://github.com/pagekit/vue-resource).
- The `components` option is set to `true` by default.
- Added `FormErrors.prototype.remove(String field)` to remove the errors for the given field.
- Removed `Form.routes()` method.
## 0.4.5 - 2016-10-04
- Added `Form.prototype.set(Object data)` to set mutiple form fields
## 0.4.4 - 2016-10-03
- Fixed `FormErrors.flatten` when there are no errors
- `FormErrors.hasAny` can be called without any args to check if any errors exist
## 0.4.0 - 2016-09-17
- Removed `Form.baseUrl`
- Removed call to `Form.clear()` in `Form.reset()`
- To register the alert components use `Use Vue.use(vForm, {components: true})`.