From 2cada99d3247e6682208685809e1fa263f7f8131 Mon Sep 17 00:00:00 2001 From: Denis Karabaza Date: Thu, 22 Sep 2016 21:37:35 +0300 Subject: [PATCH] Release 1.0.0 --- CHANGELOG.md | 6 ++++++ dist/vue-focus.common.js | 11 +++++++++++ dist/vue-focus.js | 11 +++++++++++ dist/vue-focus.min.js | 2 +- package.json | 2 +- 5 files changed, 30 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea86b03..757eaed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/dist/vue-focus.common.js b/dist/vue-focus.common.js index fb14fbe..cd1217e 100644 --- a/dist/vue-focus.common.js +++ b/dist/vue-focus.common.js @@ -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; @@ -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; diff --git a/dist/vue-focus.js b/dist/vue-focus.js index 3130192..e6c5c34 100644 --- a/dist/vue-focus.js +++ b/dist/vue-focus.js @@ -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; @@ -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; diff --git a/dist/vue-focus.min.js b/dist/vue-focus.min.js index bd2eba9..d1d92cf 100644 --- a/dist/vue-focus.min.js +++ b/dist/vue-focus.min.js @@ -1 +1 @@ -!function(u,i){"use strict";var t="default"in i?i.default:i,n={priority:1e3,bind:function(){var u=this;this.bound=!0,this.focus=function(){u.bound===!0&&u.el.focus()},this.blur=function(){u.bound===!0&&u.el.blur()}},update:function(u){u?t.nextTick(this.focus):t.nextTick(this.blur)},unbind:function(){this.bound=!1}},o={twoWay:!0,priority:1e3,bind:function(){var u=this;this.bound=!0,this.focus=function(){u.bound===!0&&u.el.focus()},this.blur=function(){u.bound===!0&&u.el.blur()},this.focusHandler=function(){u.set(!0)},this.blurHandler=function(){u.set(!1)},i.util.on(this.el,"focus",this.focusHandler),i.util.on(this.el,"blur",this.blurHandler)},update:function(u){u===!0?t.nextTick(this.focus):u===!1&&t.nextTick(this.blur)},unbind:function(){i.util.off(this.el,"focus",this.focusHandler),i.util.off(this.el,"blur",this.blurHandler),this.bound=!1}},s={priority:100,bind:function(){var u=this;this.bound=!0,t.nextTick(function(){u.bound===!0&&u.el.focus()})},unbind:function(){this.bound=!1}},c={directives:{focus:n,focusModel:o,focusAuto:s}};u.focus=n,u.focusModel=o,u.focusAuto=s,u.mixin=c}(this.VueFocus={},Vue); \ No newline at end of file +!function(i,u){"use strict";var t="default"in u?u.default:u,n={priority:1e3,bind:function(){var i=this;this.bound=!0,this.focus=function(){i.bound===!0&&i.el.focus()},this.blur=function(){i.bound===!0&&i.el.blur()}},update:function(i){i?t.nextTick(this.focus):t.nextTick(this.blur)},unbind:function(){this.bound=!1}},s={twoWay:!0,priority:1e3,bind:function(){u.util.warn(this.name+'="'+this.expression+'" is deprecated, use v-focus="'+this.expression+'" @focus="'+this.expression+' = true" @blur="'+this.expression+' = false" instead');var i=this;this.bound=!0,this.focus=function(){i.bound===!0&&i.el.focus()},this.blur=function(){i.bound===!0&&i.el.blur()},this.focusHandler=function(){i.set(!0)},this.blurHandler=function(){i.set(!1)},u.util.on(this.el,"focus",this.focusHandler),u.util.on(this.el,"blur",this.blurHandler)},update:function(i){i===!0?t.nextTick(this.focus):i===!1&&t.nextTick(this.blur)},unbind:function(){u.util.off(this.el,"focus",this.focusHandler),u.util.off(this.el,"blur",this.blurHandler),this.bound=!1}},o={priority:100,bind:function(){u.util.warn(this.name+' is deprecated, use v-focus="true" instead');var i=this;this.bound=!0,t.nextTick(function(){i.bound===!0&&i.el.focus()})},unbind:function(){this.bound=!1}},e={directives:{focus:n,focusModel:s,focusAuto:o}};i.focus=n,i.focusModel=s,i.focusAuto=o,i.mixin=e}(this.VueFocus={},Vue); \ No newline at end of file diff --git a/package.json b/package.json index 749ed07..078c3c3 100644 --- a/package.json +++ b/package.json @@ -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 ", "browserify": { "transform": [