Skip to content

Commit

Permalink
🎊 release(major): v4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed May 10, 2016
1 parent f6517bc commit 6a20625
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 12 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="4.0.0"></a>
# [4.0.0](https://github.com/kazupon/vue-i18n/compare/v3.1.1...v4.0.0) (2016-05-10)


### :zap: Improvements

* support vue 2.0-pre-alpha ([f6517bc](https://github.com/kazupon/vue-i18n/commit/f6517bc))



<a name="3.1.1"></a>
## [3.1.1](https://github.com/kazupon/vue-i18n/compare/v3.1.0...v3.1.1) (2016-05-09)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Internationalization plugin of Vue.js
jsdelivr

```html
<script src="https://cdn.jsdelivr.net/vue.i18n/3.1.1/vue-i18n.min.js"></script>
<script src="https://cdn.jsdelivr.net/vue.i18n/4.0.0/vue-i18n.min.js"></script>
```

## NPM
Expand Down
10 changes: 7 additions & 3 deletions dist/vue-i18n.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-i18n v3.1.1
* vue-i18n v4.0.0
* (c) 2016 kazuya kawaguchi
* Released under the MIT License.
*/
Expand Down Expand Up @@ -69,11 +69,13 @@ function empty(target) {
return true;
}
} else if (exports$1.Vue.util.isPlainObject(target)) {
/* eslint-disable prefer-const */
for (var key in target) {
if (hasOwn(target, key)) {
return false;
}
}
/* eslint-enable prefer-const */
}

return true;
Expand Down Expand Up @@ -414,9 +416,9 @@ function getValue(obj, path) {
return null;
}

var length = paths.length;
var ret = null;
var last = obj;
var length = paths.length;
var i = 0;
while (i < length) {
var value = last[paths[i]];
Expand Down Expand Up @@ -459,6 +461,7 @@ function compare (v1, v2) {
var s1 = split(v1);
var s2 = split(v2);

/* eslint-disable prefer-const */
for (var i = 0; i < 3; i++) {
var n1 = parseInt(s1[i] || 0, 10);
var n2 = parseInt(s2[i] || 0, 10);
Expand All @@ -470,6 +473,7 @@ function compare (v1, v2) {
return -1;
}
}
/* eslint-enable prefer-const */

if ((s1[2] + s2[2] + '').indexOf('-') > -1) {
var p1 = (PATCH_PATTERN.exec(s1[2]) || [''])[0];
Expand Down Expand Up @@ -849,7 +853,7 @@ function setupLangVM(Vue, lang) {
Vue.config.silent = silent;
}

plugin.version = '3.1.1';
plugin.version = '4.0.0';

if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(plugin);
Expand Down
10 changes: 7 additions & 3 deletions dist/vue-i18n.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-i18n v3.1.1
* vue-i18n v4.0.0
* (c) 2016 kazuya kawaguchi
* Released under the MIT License.
*/
Expand Down Expand Up @@ -73,11 +73,13 @@
return true;
}
} else if (exports$1.Vue.util.isPlainObject(target)) {
/* eslint-disable prefer-const */
for (var key in target) {
if (hasOwn(target, key)) {
return false;
}
}
/* eslint-enable prefer-const */
}

return true;
Expand Down Expand Up @@ -418,9 +420,9 @@
return null;
}

var length = paths.length;
var ret = null;
var last = obj;
var length = paths.length;
var i = 0;
while (i < length) {
var value = last[paths[i]];
Expand Down Expand Up @@ -463,6 +465,7 @@
var s1 = split(v1);
var s2 = split(v2);

/* eslint-disable prefer-const */
for (var i = 0; i < 3; i++) {
var n1 = parseInt(s1[i] || 0, 10);
var n2 = parseInt(s2[i] || 0, 10);
Expand All @@ -474,6 +477,7 @@
return -1;
}
}
/* eslint-enable prefer-const */

if ((s1[2] + s2[2] + '').indexOf('-') > -1) {
var p1 = (PATCH_PATTERN.exec(s1[2]) || [''])[0];
Expand Down Expand Up @@ -853,7 +857,7 @@
Vue.config.silent = silent;
}

plugin.version = '3.1.1';
plugin.version = '4.0.0';

if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(plugin);
Expand Down
4 changes: 2 additions & 2 deletions dist/vue-i18n.min.js

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-i18n",
"description": "Internationalization plugin for Vue.js",
"version": "3.1.1",
"version": "4.0.0",
"author": {
"name": "kazuya kawaguchi",
"email": "[email protected]"
Expand Down Expand Up @@ -81,12 +81,12 @@
"coolkids": "VUE_I18N_TYPE=sauce SAUCE=batch1 karma start config/karma.conf.js",
"coverage": "VUE_I18N_TYPE=coverage karma start config/karma.conf.js",
"coveralls": "VUE_I18N_TYPE=coveralls karma start config/karma.conf.js",
"proto": "webpack-dev-server --quite --config config/webpack.dev.conf.js --host 0.0.0.0",
"dev": "webpack-dev-server --quiet --config config/webpack.test.conf.js",
"e2e": "webpack-dev-server --quiet --config config/webpack.e2e.conf.js & mocha --opts test/e2e/mocha.opts --harmony test/e2e/test.js && kill $! || (kill $! && exit 1)",
"ie": "VUE_I18N_TYPE=sauce SAUCE=batch2 karma start config/karma.conf.js",
"lint": "eslint src/*.js test/**/*.js config/*.js",
"mobile": "VUE_I18N_TYPE=sauce SAUCE=batch3 karma start config/karma.conf.js",
"proto": "webpack-dev-server --quite --config config/webpack.dev.conf.js --host 0.0.0.0",
"release": "conventional-github-releaser -n ./node_modules/git-commit-message-convention/convention.js",
"sauce": "npm run coolkids && npm run ie && npm run mobile",
"test": "npm run ci",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function setupLangVM (Vue, lang) {
Vue.config.silent = silent
}

plugin.version = '3.1.1'
plugin.version = '4.0.0'

export default plugin

Expand Down

0 comments on commit 6a20625

Please sign in to comment.