Skip to content

Commit

Permalink
Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
simplesmiler committed Sep 22, 2016
1 parent 4b2ca98 commit 2cada99
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [1.0.0] - 2016-09-22

## Changed
- `v-focus-model` and `v-focus-auto` are now deprecated

## [0.1.2] - 2016-08-14

### Fixed
Expand All @@ -24,3 +29,4 @@ Initial release

[0.1.1]: https://github.com/simplesmiler/vue-focus/compare/0.1.0...0.1.1
[0.1.2]: https://github.com/simplesmiler/vue-focus/compare/0.1.1...0.1.2
[1.0.0]: https://github.com/simplesmiler/vue-focus/compare/0.1.2...1.0.0
11 changes: 11 additions & 0 deletions dist/vue-focus.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ var focusModel = {
priority: 1000,

bind: function() {
Vue.util.warn(
this.name + '="' +
this.expression + '" is deprecated, ' +
'use v-focus="' + this.expression + '" @focus="' + this.expression + ' = true" @blur="' + this.expression + ' = false" instead'
);

var self = this;
this.bound = true;

Expand Down Expand Up @@ -99,6 +105,11 @@ var focusModel = {
var focusAuto = {
priority: 100,
bind: function() {
Vue.util.warn(
this.name + ' is deprecated, ' +
'use v-focus="true" instead'
);

var self = this;
this.bound = true;

Expand Down
11 changes: 11 additions & 0 deletions dist/vue-focus.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
priority: 1000,

bind: function() {
Vue.util.warn(
this.name + '="' +
this.expression + '" is deprecated, ' +
'use v-focus="' + this.expression + '" @focus="' + this.expression + ' = true" @blur="' + this.expression + ' = false" instead'
);

var self = this;
this.bound = true;

Expand Down Expand Up @@ -98,6 +104,11 @@
var focusAuto = {
priority: 100,
bind: function() {
Vue.util.warn(
this.name + ' is deprecated, ' +
'use v-focus="true" instead'
);

var self = this;
this.bound = true;

Expand Down
2 changes: 1 addition & 1 deletion dist/vue-focus.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-focus",
"description": "A set of reusable focus directives for reusable Vue.js components",
"version": "0.1.2",
"version": "1.0.0",
"author": "Denis Karabaza <denis.karabaza@gmail.com>",
"browserify": {
"transform": [
Expand Down

0 comments on commit 2cada99

Please sign in to comment.