Skip to content

Commit 2cada99

Browse files
committed
Release 1.0.0
1 parent 4b2ca98 commit 2cada99

File tree

5 files changed

+30
-2
lines changed

5 files changed

+30
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [1.0.0] - 2016-09-22
2+
3+
## Changed
4+
- `v-focus-model` and `v-focus-auto` are now deprecated
5+
16
## [0.1.2] - 2016-08-14
27

38
### Fixed
@@ -24,3 +29,4 @@ Initial release
2429

2530
[0.1.1]: https://github.com/simplesmiler/vue-focus/compare/0.1.0...0.1.1
2631
[0.1.2]: https://github.com/simplesmiler/vue-focus/compare/0.1.1...0.1.2
32+
[1.0.0]: https://github.com/simplesmiler/vue-focus/compare/0.1.2...1.0.0

dist/vue-focus.common.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ var focusModel = {
4646
priority: 1000,
4747

4848
bind: function() {
49+
Vue.util.warn(
50+
this.name + '="' +
51+
this.expression + '" is deprecated, ' +
52+
'use v-focus="' + this.expression + '" @focus="' + this.expression + ' = true" @blur="' + this.expression + ' = false" instead'
53+
);
54+
4955
var self = this;
5056
this.bound = true;
5157

@@ -99,6 +105,11 @@ var focusModel = {
99105
var focusAuto = {
100106
priority: 100,
101107
bind: function() {
108+
Vue.util.warn(
109+
this.name + ' is deprecated, ' +
110+
'use v-focus="true" instead'
111+
);
112+
102113
var self = this;
103114
this.bound = true;
104115

dist/vue-focus.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
priority: 1000,
4646

4747
bind: function() {
48+
Vue.util.warn(
49+
this.name + '="' +
50+
this.expression + '" is deprecated, ' +
51+
'use v-focus="' + this.expression + '" @focus="' + this.expression + ' = true" @blur="' + this.expression + ' = false" instead'
52+
);
53+
4854
var self = this;
4955
this.bound = true;
5056

@@ -98,6 +104,11 @@
98104
var focusAuto = {
99105
priority: 100,
100106
bind: function() {
107+
Vue.util.warn(
108+
this.name + ' is deprecated, ' +
109+
'use v-focus="true" instead'
110+
);
111+
101112
var self = this;
102113
this.bound = true;
103114

dist/vue-focus.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-focus",
33
"description": "A set of reusable focus directives for reusable Vue.js components",
4-
"version": "0.1.2",
4+
"version": "1.0.0",
55
"author": "Denis Karabaza <denis.karabaza@gmail.com>",
66
"browserify": {
77
"transform": [

0 commit comments

Comments
 (0)