Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Commit 6a20625

Browse files
committed
🎊 release(major): v4.0.0
1 parent f6517bc commit 6a20625

File tree

7 files changed

+30
-12
lines changed

7 files changed

+30
-12
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="4.0.0"></a>
2+
# [4.0.0](https://github.com/kazupon/vue-i18n/compare/v3.1.1...v4.0.0) (2016-05-10)
3+
4+
5+
### :zap: Improvements
6+
7+
* support vue 2.0-pre-alpha ([f6517bc](https://github.com/kazupon/vue-i18n/commit/f6517bc))
8+
9+
10+
111
<a name="3.1.1"></a>
212
## [3.1.1](https://github.com/kazupon/vue-i18n/compare/v3.1.0...v3.1.1) (2016-05-09)
313

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Internationalization plugin of Vue.js
1919
jsdelivr
2020

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

2525
## NPM

dist/vue-i18n.common.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-i18n v3.1.1
2+
* vue-i18n v4.0.0
33
* (c) 2016 kazuya kawaguchi
44
* Released under the MIT License.
55
*/
@@ -69,11 +69,13 @@ function empty(target) {
6969
return true;
7070
}
7171
} else if (exports$1.Vue.util.isPlainObject(target)) {
72+
/* eslint-disable prefer-const */
7273
for (var key in target) {
7374
if (hasOwn(target, key)) {
7475
return false;
7576
}
7677
}
78+
/* eslint-enable prefer-const */
7779
}
7880

7981
return true;
@@ -414,9 +416,9 @@ function getValue(obj, path) {
414416
return null;
415417
}
416418

419+
var length = paths.length;
417420
var ret = null;
418421
var last = obj;
419-
var length = paths.length;
420422
var i = 0;
421423
while (i < length) {
422424
var value = last[paths[i]];
@@ -459,6 +461,7 @@ function compare (v1, v2) {
459461
var s1 = split(v1);
460462
var s2 = split(v2);
461463

464+
/* eslint-disable prefer-const */
462465
for (var i = 0; i < 3; i++) {
463466
var n1 = parseInt(s1[i] || 0, 10);
464467
var n2 = parseInt(s2[i] || 0, 10);
@@ -470,6 +473,7 @@ function compare (v1, v2) {
470473
return -1;
471474
}
472475
}
476+
/* eslint-enable prefer-const */
473477

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

852-
plugin.version = '3.1.1';
856+
plugin.version = '4.0.0';
853857

854858
if (typeof window !== 'undefined' && window.Vue) {
855859
window.Vue.use(plugin);

dist/vue-i18n.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-i18n v3.1.1
2+
* vue-i18n v4.0.0
33
* (c) 2016 kazuya kawaguchi
44
* Released under the MIT License.
55
*/
@@ -73,11 +73,13 @@
7373
return true;
7474
}
7575
} else if (exports$1.Vue.util.isPlainObject(target)) {
76+
/* eslint-disable prefer-const */
7677
for (var key in target) {
7778
if (hasOwn(target, key)) {
7879
return false;
7980
}
8081
}
82+
/* eslint-enable prefer-const */
8183
}
8284

8385
return true;
@@ -418,9 +420,9 @@
418420
return null;
419421
}
420422

423+
var length = paths.length;
421424
var ret = null;
422425
var last = obj;
423-
var length = paths.length;
424426
var i = 0;
425427
while (i < length) {
426428
var value = last[paths[i]];
@@ -463,6 +465,7 @@
463465
var s1 = split(v1);
464466
var s2 = split(v2);
465467

468+
/* eslint-disable prefer-const */
466469
for (var i = 0; i < 3; i++) {
467470
var n1 = parseInt(s1[i] || 0, 10);
468471
var n2 = parseInt(s2[i] || 0, 10);
@@ -474,6 +477,7 @@
474477
return -1;
475478
}
476479
}
480+
/* eslint-enable prefer-const */
477481

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

856-
plugin.version = '3.1.1';
860+
plugin.version = '4.0.0';
857861

858862
if (typeof window !== 'undefined' && window.Vue) {
859863
window.Vue.use(plugin);

dist/vue-i18n.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-i18n",
33
"description": "Internationalization plugin for Vue.js",
4-
"version": "3.1.1",
4+
"version": "4.0.0",
55
"author": {
66
"name": "kazuya kawaguchi",
77
"email": "kawakazu80@gmail.com"
@@ -81,12 +81,12 @@
8181
"coolkids": "VUE_I18N_TYPE=sauce SAUCE=batch1 karma start config/karma.conf.js",
8282
"coverage": "VUE_I18N_TYPE=coverage karma start config/karma.conf.js",
8383
"coveralls": "VUE_I18N_TYPE=coveralls karma start config/karma.conf.js",
84-
"proto": "webpack-dev-server --quite --config config/webpack.dev.conf.js --host 0.0.0.0",
8584
"dev": "webpack-dev-server --quiet --config config/webpack.test.conf.js",
8685
"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)",
8786
"ie": "VUE_I18N_TYPE=sauce SAUCE=batch2 karma start config/karma.conf.js",
8887
"lint": "eslint src/*.js test/**/*.js config/*.js",
8988
"mobile": "VUE_I18N_TYPE=sauce SAUCE=batch3 karma start config/karma.conf.js",
89+
"proto": "webpack-dev-server --quite --config config/webpack.dev.conf.js --host 0.0.0.0",
9090
"release": "conventional-github-releaser -n ./node_modules/git-commit-message-convention/convention.js",
9191
"sauce": "npm run coolkids && npm run ie && npm run mobile",
9292
"test": "npm run ci",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function setupLangVM (Vue, lang) {
5151
Vue.config.silent = silent
5252
}
5353

54-
plugin.version = '3.1.1'
54+
plugin.version = '4.0.0'
5555

5656
export default plugin
5757

0 commit comments

Comments
 (0)