Skip to content

Commit

Permalink
Housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurk91 committed May 13, 2021
1 parent a882357 commit c2637ef
Show file tree
Hide file tree
Showing 6 changed files with 1,356 additions and 1,095 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- master
- dev
schedule:
- cron: '0 0 1 * *'
- cron: '0 0 11 * *'

jobs:
build:
Expand Down
153 changes: 105 additions & 48 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,104 +1,139 @@
# Changelog

## [9.0.3](https://github.com/ankurk91/vue-flatpickr-component/compare/9.0.2...9.0.3)

* Fix [#209](https://github.com/ankurk91/vue-flatpickr-component/issues/209)

## [9.0.0](https://github.com/ankurk91/vue-flatpickr-component/compare/8.1.6...9.0.0)

* Drop support for Vue v2.x and add support for Vue v3.x
* Drop IE 11 support

## [8.1.6](https://github.com/ankurk91/vue-flatpickr-component/compare/8.1.5...8.1.6)

* Fix: [#196](https://github.com/ankurk91/vue-flatpickr-component/issues/196)

## [8.1.5](https://github.com/ankurk91/vue-flatpickr-component/compare/8.1.4...8.1.5)

* Fix: [#165](https://github.com/ankurk91/vue-flatpickr-component/issues/165)

## [8.1.4](https://github.com/ankurk91/vue-flatpickr-component/compare/8.1.3...8.1.4)

* Fix: [#160](https://github.com/ankurk91/vue-flatpickr-component/issues/160)

## [8.1.3](https://github.com/ankurk91/vue-flatpickr-component/compare/8.1.2...8.1.3)

* Fix: [#132](https://github.com/ankurk91/vue-flatpickr-component/issues/132)

## [8.1.2](https://github.com/ankurk91/vue-flatpickr-component/compare/8.1.1...8.1.2)

* Fix: [#135](https://github.com/ankurk91/vue-flatpickr-component/issues/135)
- Initial `disabled` prop value was not reflecting on input element
- Initial `disabled` prop value was not reflecting on input element

## [8.1.1](https://github.com/ankurk91/vue-flatpickr-component/compare/8.1.0...8.1.1)

* Fix: [#126](https://github.com/ankurk91/vue-flatpickr-component/issues/126)
- `disabled` prop default value should be `false` to make vee-validate work
- `disabled` prop default value should be `false` to make vee-validate work

## [8.1.0](https://github.com/ankurk91/vue-flatpickr-component/compare/8.0.0...8.1.0)
* Add: optional `disabled` prop, see [#124](https://github.com/ankurk91/vue-flatpickr-component/issues/124) and [#117](https://github.com/ankurk91/vue-flatpickr-component/pull/117)

* Add: optional `disabled` prop, see [#124](https://github.com/ankurk91/vue-flatpickr-component/issues/124)
and [#117](https://github.com/ankurk91/vue-flatpickr-component/pull/117)
- Note: the `disabled` prop accepts only Boolean values
* Change: use render function instead of template to reduce build size
* Chore: Babel 7

## [8.0.0](https://github.com/ankurk91/vue-flatpickr-component/compare/7.0.6...8.0.0)

* Fix: [#107](https://github.com/ankurk91/vue-flatpickr-component/issues/107)
* Change: remove `onKeyDown` event, see [#100](https://github.com/ankurk91/vue-flatpickr-component/issues/100). This is the only breaking change.
* Change: remove `onKeyDown` event, see [#100](https://github.com/ankurk91/vue-flatpickr-component/issues/100). This is
the only breaking change.

## [7.0.6](https://github.com/ankurk91/vue-flatpickr-component/compare/7.0.5...7.0.6)

* Fix: `blur` event when `altInput` is true, [#102](https://github.com/ankurk91/vue-flatpickr-component/issues/102)

## [7.0.5](https://github.com/ankurk91/vue-flatpickr-component/compare/7.0.4...7.0.5)

* Add: `blur` event, [#102](https://github.com/ankurk91/vue-flatpickr-component/issues/102)

## [7.0.4](https://github.com/ankurk91/vue-flatpickr-component/compare/7.0.3...7.0.4)

* Fix: umd build in webpack v4, [#89](https://github.com/ankurk91/vue-flatpickr-component/issues/89)

## [7.0.3](https://github.com/ankurk91/vue-flatpickr-component/compare/7.0.2...7.0.3)
* Re-release v7.0.2, npm malfunction during publish, [#87](https://github.com/ankurk91/vue-flatpickr-component/issues/87)
## [7.0.3](https://github.com/ankurk91/vue-flatpickr-component/compare/7.0.2...7.0.3)

* Re-release v7.0.2, npm malfunction during
publish, [#87](https://github.com/ankurk91/vue-flatpickr-component/issues/87)
* Chore: update webpack to v4.x

## [7.0.2](https://github.com/ankurk91/vue-flatpickr-component/compare/7.0.1...7.0.2)
* Fix: Allow to update `locale` dynamically, fixes [#77](https://github.com/ankurk91/vue-flatpickr-component/issues/77)
## [7.0.2](https://github.com/ankurk91/vue-flatpickr-component/compare/7.0.1...7.0.2)

## [7.0.1](https://github.com/ankurk91/vue-flatpickr-component/compare/7.0.0...7.0.1)
* Fix: Don't mutate `config` object, fixes [#74](https://github.com/ankurk91/vue-flatpickr-component/issues/74)
* Fix: Allow to update `locale` dynamically, fixes [#77](https://github.com/ankurk91/vue-flatpickr-component/issues/77)

## [7.0.1](https://github.com/ankurk91/vue-flatpickr-component/compare/7.0.0...7.0.1)

* Fix: Don't mutate `config` object, fixes [#74](https://github.com/ankurk91/vue-flatpickr-component/issues/74)
* Fix: Delete all event callbacks before passing them to flatpickr in config watcher

## [7.0.0](https://github.com/ankurk91/vue-flatpickr-component/compare/6.2.0...7.0.0)
* Change: Limit the default events to be emitted, [read more](https://github.com/ankurk91/vue-flatpickr-component/issues/59), [#53](https://github.com/ankurk91/vue-flatpickr-component/issues/53)
## [7.0.0](https://github.com/ankurk91/vue-flatpickr-component/compare/6.2.0...7.0.0)

* Change: Limit the default events to be
emitted, [read more](https://github.com/ankurk91/vue-flatpickr-component/issues/59)
, [#53](https://github.com/ankurk91/vue-flatpickr-component/issues/53)
- You can restore the old behaviour by using `events` props

## [6.2.0](https://github.com/ankurk91/vue-flatpickr-component/compare/6.1.0...6.2.0)

* Change: Don't emit `on-change` on component mount
* Add: `on-pre-calendar-position` event

## [6.1.0](https://github.com/ankurk91/vue-flatpickr-component/compare/6.0.0...6.1.0)
* Add: `events` props to customise the emitted events, closes [#53](https://github.com/ankurk91/vue-flatpickr-component/issues/53)
## [6.1.0](https://github.com/ankurk91/vue-flatpickr-component/compare/6.0.0...6.1.0)

* Add: `events` props to customise the emitted events,
closes [#53](https://github.com/ankurk91/vue-flatpickr-component/issues/53)
```html
<flatpickr v-model="date" :events="['onChange']">
```
- `events` prop is optional and component emits all events when prop is not specified.

## [6.0.0](https://github.com/ankurk91/vue-flatpickr-component/compare/5.0.5...6.0.0)
## [6.0.0](https://github.com/ankurk91/vue-flatpickr-component/compare/5.0.5...6.0.0)

* Add: emit all events, fixes [#37](https://github.com/ankurk91/vue-flatpickr-component/issues/37)
* Fix: dynamically change configs, closes [#20](https://github.com/ankurk91/vue-flatpickr-component/issues/20)
* Change: export name, default export remains same

## [5.0.5](https://github.com/ankurk91/vue-flatpickr-component/compare/5.0.4...5.0.5)
## [5.0.5](https://github.com/ankurk91/vue-flatpickr-component/compare/5.0.4...5.0.5)

* Internal: Remove the need of `Object.assign`

## [5.0.4](https://github.com/ankurk91/vue-flatpickr-component/compare/5.0.3...5.0.4)
## [5.0.4](https://github.com/ankurk91/vue-flatpickr-component/compare/5.0.3...5.0.4)

* Revert the changes made in v5.0.3

## [5.0.3](https://github.com/ankurk91/vue-flatpickr-component/compare/5.0.2...5.0.3)
## [5.0.3](https://github.com/ankurk91/vue-flatpickr-component/compare/5.0.2...5.0.3)

* Fix: a bug where changes in `config` object properties were not being detected

## [5.0.2](https://github.com/ankurk91/vue-flatpickr-component/compare/5.0.1...5.0.2)
* Fix: `input` event was being emitted twice, [#44](https://github.com/ankurk91/vue-flatpickr-component/issues/44), [#29](https://github.com/ankurk91/vue-flatpickr-component/issues/29)
## [5.0.2](https://github.com/ankurk91/vue-flatpickr-component/compare/5.0.1...5.0.2)

* Fix: `input` event was being emitted twice, [#44](https://github.com/ankurk91/vue-flatpickr-component/issues/44)
, [#29](https://github.com/ankurk91/vue-flatpickr-component/issues/29)

## [5.0.1](https://github.com/ankurk91/vue-flatpickr-component/compare/5.0.0...5.0.1)

## [5.0.1](https://github.com/ankurk91/vue-flatpickr-component/compare/5.0.0...5.0.1)
* Fix: Don't update DOM when `allowInput` is set to true in config

## [5.0.0](https://github.com/ankurk91/vue-flatpickr-component/compare/4.0.0...5.0.0) (breaking)

* Change:
- `input-class` prop has been removed, you can always use Vue.js inbuilt [class](https://vuejs.org/v2/guide/class-and-style.html#With-Components) binding
- `input-class` prop has been removed, you can always use Vue.js
inbuilt [class](https://vuejs.org/v2/guide/class-and-style.html#With-Components) binding
```html
<flat-pickr v-model="date" class="form-control input"></flat-pickr>
```
- Similarly `name`, `id`, `placeholder` and `required` props has been removed, you can still specify any number of attributes on component
- Similarly `name`, `id`, `placeholder` and `required` props has been removed, you can still specify any number of
attributes on component
```html
<flat-pickr v-model="date" name="date-of-birth" id="js-date" placeholder="Select date" aria-required="true"></flat-pickr>
```
Expand All @@ -107,83 +142,105 @@
Vue.component('flat-pickr', VueFlatpickr);
```
* Add:
- Allow timestamps as value
- Allow timestamps as value

## [4.0.0](https://github.com/ankurk91/vue-flatpickr-component/compare/3.1.3...4.0.0) (breaking)
* Change:

* Change:
- Upgrade to flatpickr [v4.x](https://github.com/chmln/flatpickr/releases/tag/v4.0.0)
- Change `onChange` event name to `on-change`
* Fix:
* Fix:
- v-model validator method typo
- IE11 support
* tests: add test case with coverage
* chore: `dist` folder is no longer a part of repo, it will be published on npm only. It means bower no longer supported.
* chore: `dist` folder is no longer a part of repo, it will be published on npm only. It means bower no longer
supported.

## [3.1.3](https://github.com/ankurk91/vue-flatpickr-component/compare/3.1.2...3.1.3)

## [3.1.3](https://github.com/ankurk91/vue-flatpickr-component/compare/3.1.2...3.1.3)
* Fix: value prop validation
* Fix: value prop validation

## [3.1.2](https://github.com/ankurk91/vue-flatpickr-component/compare/3.1.1...3.1.2)
* Fix: Prevent multiple `onChange` event after component destroy, [#27](https://github.com/ankurk91/vue-flatpickr-component/issues/27)
## [3.1.2](https://github.com/ankurk91/vue-flatpickr-component/compare/3.1.1...3.1.2)

## [3.1.1](https://github.com/ankurk91/vue-flatpickr-component/compare/3.1.0...3.1.1)
* Fix: Prevent `onChange` event being emitted twice
* Fix: Prevent multiple `onChange` event after component
destroy, [#27](https://github.com/ankurk91/vue-flatpickr-component/issues/27)

## [3.1.1](https://github.com/ankurk91/vue-flatpickr-component/compare/3.1.0...3.1.1)

* Fix: Prevent `onChange` event being emitted twice

## [3.1.0](https://github.com/ankurk91/vue-flatpickr-component/compare/3.0.0...3.1.0)

## [3.1.0](https://github.com/ankurk91/vue-flatpickr-component/compare/3.0.0...3.1.0)
* Add: Emit `onChange` event, [#20](https://github.com/ankurk91/vue-flatpickr-component/issues/20)

## [3.0.0](https://github.com/ankurk91/vue-flatpickr-component/compare/2.4.1...3.0.0) (Breaking)

- Change: `flatPicker.vue` file name to `component.vue`
- This will be breaking for users who were directly importing `.vue` file
- Change: Don't force `form-control` CSS class on input field, [#18](https://github.com/ankurk91/vue-flatpickr-component/pull/18)
- If you wants to add a new class on input, you need to do like this
- `<flatpickr input-class="form-control custom-css-class">`
- `:class` prop will replace default CSS class on input field
- This will be breaking for users who were directly importing `.vue` file
- Change: Don't force `form-control` CSS class on input
field, [#18](https://github.com/ankurk91/vue-flatpickr-component/pull/18)
- If you wants to add a new class on input, you need to do like this
- `<flatpickr input-class="form-control custom-css-class">`
- `:class` prop will replace default CSS class on input field
- Add: Ability to pass component name when used as plugin
- `Vue.use(flatPickr,'date-picker')`
- You can pass name as second parameter
- `Vue.use(flatPickr,'date-picker')`
- You can pass name as second parameter
- Chore: Upgrade to webpack v3.x

## [2.4.0](https://github.com/ankurk91/vue-flatpickr-component/compare/2.3.0...2.4.0)

- Fix UglifyJS issue

## [2.3.0](https://github.com/ankurk91/vue-flatpickr-component/compare/2.2.0...2.3.0)
- New way to use as plugin, old one is deprecated, see new [example](https://github.com/ankurk91/vue-flatpickr-component#as-plugin)

- New way to use as plugin, old one is deprecated, see
new [example](https://github.com/ankurk91/vue-flatpickr-component#as-plugin)
- You should NOT import plugin like this
- `import {flatPickrPlugin} from 'vue-flatpickr-component';`
- Add `id` prop

## [2.2.0](https://github.com/ankurk91/vue-flatpickr-component/compare/2.1.0...2.2.0)
## [2.2.0](https://github.com/ankurk91/vue-flatpickr-component/compare/2.1.0...2.2.0)

- Rollback importing css, component is no longer importing any css
- This also applies when using this package as plugin `Vue.use()`

## [2.1.0](https://github.com/ankurk91/vue-flatpickr-component/compare/2.0.0...2.1.0)
- This also applies when using this package as plugin `Vue.use()`

## [2.1.0](https://github.com/ankurk91/vue-flatpickr-component/compare/2.0.0...2.1.0)

- Expose ``install`` method, so that now you can use this package as a [plugin](https://vuejs.org/v2/guide/plugins.html)

## [2.0.0](https://github.com/ankurk91/vue-flatpickr-component/compare/1.2.4...2.0.0) (breaking)

- Rename `input-name` prop to `name`
- No longer support flatpickr v2.x, always pull v3.x
- No longer importing flatpickr css, you need to import css by yourself, see examples

## 1.2.4

- Improve value prop validation

## 1.2.3

- Add value prop validation

## 1.2.0

- Allow flatPickr v3.x stable
- Rename ``instance`` to ``fp``, if you were accessing it through ``$refs`` this may be a breaking change for you

## 1.1.3

- Regenerate build files

## 1.1.2

- Allow array of objects and date object as default value

## 1.1.0

- Make ``wrap`` optional
- From now, you need to wrap by your-self and pass ``config.wrap`` as true
- No longer force bootstrap, you are free to use any of CSS framework

## 1.0.0

- Initial release
Loading

0 comments on commit c2637ef

Please sign in to comment.