diff --git a/CHANGELOG.md b/CHANGELOG.md
index e9ce836..211deb3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+## [2.0.0-rc2] - 2016-09-28
+
+## Fixed
+- Incorrect dependency on Vue
+
## [2.0.0-rc1] - 2016-09-22
## Breaking changes
@@ -37,3 +42,4 @@ Initial release
[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
[2.0.0-rc1]: https://github.com/simplesmiler/vue-focus/compare/1.0.0...2.0.0-rc1
+[2.0.0-rc2]: https://github.com/simplesmiler/vue-focus/compare/2.0.0-rc1...2.0.0-rc2
diff --git a/README.md b/README.md
index 1ef17cd..0ac172e 100644
--- a/README.md
+++ b/README.md
@@ -34,9 +34,9 @@ $ npm install vue-focus --save
From CDN:
``` html
-
+
-
+
```
## API
diff --git a/dist/vue-focus.common.js b/dist/vue-focus.common.js
index bb8040c..5b59bab 100644
--- a/dist/vue-focus.common.js
+++ b/dist/vue-focus.common.js
@@ -1,5 +1,15 @@
'use strict';
+var Vue = require('vue');
+Vue = 'default' in Vue ? Vue['default'] : Vue;
+
+var version = '2.0.0-rc1';
+
+var compatible = (/^2\./).test(Vue.version);
+if (!compatible) {
+ Vue.util.warn('VueFocus ' + version + ' only supports Vue 2.x, and does not support Vue ' + Vue.version);
+}
+
var focus = {
inserted: function(el, binding) {
if (binding.value) el.focus();
@@ -18,5 +28,6 @@ var mixin = {
},
};
+exports.version = version;
exports.focus = focus;
exports.mixin = mixin;
\ No newline at end of file
diff --git a/dist/vue-focus.js b/dist/vue-focus.js
index 9c129ab..b2b65c4 100644
--- a/dist/vue-focus.js
+++ b/dist/vue-focus.js
@@ -1,4 +1,13 @@
-(function (exports) { 'use strict';
+(function (exports,Vue) { 'use strict';
+
+ Vue = 'default' in Vue ? Vue['default'] : Vue;
+
+ var version = '2.0.0-rc1';
+
+ var compatible = (/^2\./).test(Vue.version);
+ if (!compatible) {
+ Vue.util.warn('VueFocus ' + version + ' only supports Vue 2.x, and does not support Vue ' + Vue.version);
+ }
var focus = {
inserted: function(el, binding) {
@@ -18,7 +27,8 @@
},
};
+ exports.version = version;
exports.focus = focus;
exports.mixin = mixin;
-})((this.VueFocus = {}));
\ No newline at end of file
+})((this.VueFocus = {}),Vue);
\ No newline at end of file
diff --git a/dist/vue-focus.min.js b/dist/vue-focus.min.js
index 37e2168..278be0c 100644
--- a/dist/vue-focus.min.js
+++ b/dist/vue-focus.min.js
@@ -1 +1 @@
-!function(u){"use strict";var c={inserted:function(u,c){c.value?u.focus():u.blur()},componentUpdated:function(u,c){c.value?u.focus():u.blur()}},e={directives:{focus:c}};u.focus=c,u.mixin=e}(this.VueFocus={});
\ No newline at end of file
+!function(u,e){"use strict";e="default"in e?e.default:e;var o="2.0.0-rc1",s=/^2\./.test(e.version);s||e.util.warn("VueFocus "+o+" only supports Vue 2.x, and does not support Vue "+e.version);var n={inserted:function(u,e){e.value?u.focus():u.blur()},componentUpdated:function(u,e){e.value?u.focus():u.blur()}},t={directives:{focus:n}};u.version=o,u.focus=n,u.mixin=t}(this.VueFocus={},Vue);
\ No newline at end of file
diff --git a/package.json b/package.json
index a3fc946..e38b4a8 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": "2.0.0-rc1",
+ "version": "2.0.0-rc2",
"author": "Denis Karabaza ",
"browserify": {
"transform": [