Skip to content

Commit

Permalink
✨ release(patch): v4.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Aug 15, 2016
1 parent bc9dbee commit b29957d
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 19 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.2.2"></a>
## [4.2.2](https://github.com/kazupon/vue-i18n/compare/v4.2.1...v4.2.2) (2016-08-15)


### :bug: Bug Fixes

* **path:** fix array path syntax error ([bc9dbee](https://github.com/kazupon/vue-i18n/commit/bc9dbee)), closes [#42](https://github.com/kazupon/vue-i18n/issues/42) [#43](https://github.com/kazupon/vue-i18n/issues/43)



<a name="4.2.1"></a>
## [4.2.1](https://github.com/kazupon/vue-i18n/compare/v4.2.0...v4.2.1) (2016-08-13)

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

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

### NPM
Expand Down
34 changes: 27 additions & 7 deletions dist/vue-i18n.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-i18n v4.2.1
* vue-i18n v4.2.2
* (c) 2016 kazuya kawaguchi
* Released under the MIT License.
*/
Expand Down Expand Up @@ -382,6 +382,31 @@ pathStateMachine[IN_DOUBLE_QUOTE] = {
'else': [IN_DOUBLE_QUOTE, APPEND]
};

/**
* Check if an expression is a literal value.
*
* @param {String} exp
* @return {Boolean}
*/

var literalValueRE = /^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/;
function isLiteral(exp) {
return literalValueRE.test(exp);
}

/**
* Strip quotes from a string
*
* @param {String} str
* @return {String | false}
*/

function stripQuotes(str) {
var a = str.charCodeAt(0);
var b = str.charCodeAt(str.length - 1);
return a === b && (a === 0x22 || a === 0x27) ? str.slice(1, -1) : str;
}

/**
* Determine the type of a character in a keypath.
*
Expand Down Expand Up @@ -446,11 +471,6 @@ function getPathCharType(ch) {
*/

function formatSubPath(path) {
var _exports$Vue$util = exports.Vue.util;
var isLiteral = _exports$Vue$util.isLiteral;
var stripQuotes = _exports$Vue$util.stripQuotes;


var trimmed = path.trim();
// invalid leading 0
if (path.charAt(0) === '0' && isNaN(path)) {
Expand Down Expand Up @@ -841,7 +861,7 @@ function setupLangVM(Vue, lang) {
Vue.config.silent = silent;
}

plugin.version = '4.2.1';
plugin.version = '4.2.2';

if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(plugin);
Expand Down
34 changes: 27 additions & 7 deletions dist/vue-i18n.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-i18n v4.2.1
* vue-i18n v4.2.2
* (c) 2016 kazuya kawaguchi
* Released under the MIT License.
*/
Expand Down Expand Up @@ -386,6 +386,31 @@
'else': [IN_DOUBLE_QUOTE, APPEND]
};

/**
* Check if an expression is a literal value.
*
* @param {String} exp
* @return {Boolean}
*/

var literalValueRE = /^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/;
function isLiteral(exp) {
return literalValueRE.test(exp);
}

/**
* Strip quotes from a string
*
* @param {String} str
* @return {String | false}
*/

function stripQuotes(str) {
var a = str.charCodeAt(0);
var b = str.charCodeAt(str.length - 1);
return a === b && (a === 0x22 || a === 0x27) ? str.slice(1, -1) : str;
}

/**
* Determine the type of a character in a keypath.
*
Expand Down Expand Up @@ -450,11 +475,6 @@
*/

function formatSubPath(path) {
var _exports$Vue$util = exports.Vue.util;
var isLiteral = _exports$Vue$util.isLiteral;
var stripQuotes = _exports$Vue$util.stripQuotes;


var trimmed = path.trim();
// invalid leading 0
if (path.charAt(0) === '0' && isNaN(path)) {
Expand Down Expand Up @@ -845,7 +865,7 @@
Vue.config.silent = silent;
}

plugin.version = '4.2.1';
plugin.version = '4.2.2';

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.

2 changes: 1 addition & 1 deletion 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": "4.2.1",
"version": "4.2.2",
"author": {
"name": "kazuya kawaguchi",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function setupLangVM (Vue, lang) {
Vue.config.silent = silent
}

plugin.version = '4.2.1'
plugin.version = '4.2.2'

export default plugin

Expand Down

0 comments on commit b29957d

Please sign in to comment.