Skip to content

Commit

Permalink
Release 2.0.0-rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
simplesmiler committed Sep 28, 2016
1 parent 2c13a93 commit 7eb31a7
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ $ npm install vue-focus --save
From CDN:

``` html
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-focus/2.0.0-rc1/vue-focus.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-focus/2.0.0-rc2/vue-focus.js"></script>
<!-- OR -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-focus/2.0.0-rc1/vue-focus.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-focus/2.0.0-rc2/vue-focus.min.js"></script>
```

## API
Expand Down
11 changes: 11 additions & 0 deletions dist/vue-focus.common.js
Original file line number Diff line number Diff line change
@@ -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();
Expand All @@ -18,5 +28,6 @@ var mixin = {
},
};

exports.version = version;
exports.focus = focus;
exports.mixin = mixin;
14 changes: 12 additions & 2 deletions dist/vue-focus.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand All @@ -18,7 +27,8 @@
},
};

exports.version = version;
exports.focus = focus;
exports.mixin = mixin;

})((this.VueFocus = {}));
})((this.VueFocus = {}),Vue);
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": "2.0.0-rc1",
"version": "2.0.0-rc2",
"author": "Denis Karabaza <denis.karabaza@gmail.com>",
"browserify": {
"transform": [
Expand Down

0 comments on commit 7eb31a7

Please sign in to comment.