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

Commit 2a3979f

Browse files
authored
improvement: bump versions (#225)
1 parent bd611c5 commit 2a3979f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

generator/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ module.exports = (api, options, rootOptions) => {
5353

5454
if (isVue3) {
5555
pkg.dependencies['vue-i18n'] = '^9.1.0'
56-
pkg.devDependencies['@intlify/vue-i18n-loader'] = '^2.1.0'
56+
pkg.devDependencies['@intlify/vue-i18n-loader'] = '^3.0.0'
5757
pkg.vue.pluginOptions.i18n['enableLegacy'] = enableLegacy
5858
pkg.vue.pluginOptions.i18n['runtimeOnly'] = false
5959
pkg.vue.pluginOptions.i18n['compositionOnly'] = !!enableLegacy
6060
pkg.vue.pluginOptions.i18n['fullInstall'] = true
6161
} else {
62-
pkg.dependencies['vue-i18n'] = '^8.22.3'
62+
pkg.dependencies['vue-i18n'] = '^8.25.0'
6363
if (enableInSFC) {
64-
pkg.devDependencies['@intlify/vue-i18n-loader'] = '^1.0.0'
64+
pkg.devDependencies['@intlify/vue-i18n-loader'] = '^1.1.0'
6565
}
6666
pkg.vue.pluginOptions.i18n['enableInSFC'] = enableInSFC
6767
}

tests/unit/generator-vue3.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ test('javascript: legacy', async () => {
2929
expect(sfc).toMatch(`export default defineComponent({`)
3030
const pack = files['package.json']
3131
expect(pack).toMatch(`"vue-i18n": "^9.1.0"`)
32-
expect(pack).toMatch(`"@intlify/vue-i18n-loader": "^2.1.0"`)
32+
expect(pack).toMatch(`"@intlify/vue-i18n-loader": "^3.0.0"`)
3333
})
3434

3535
test('javascript: composition', async () => {
@@ -63,7 +63,7 @@ test('javascript: composition', async () => {
6363
expect(sfc).toMatch(`const { t } = useI18n({`)
6464
const pack = files['package.json']
6565
expect(pack).toMatch(`"vue-i18n": "^9.1.0"`)
66-
expect(pack).toMatch(`"@intlify/vue-i18n-loader": "^2.1.0"`)
66+
expect(pack).toMatch(`"@intlify/vue-i18n-loader": "^3.0.0"`)
6767
})
6868

6969
test('typescript: composition', async () => {
@@ -108,5 +108,5 @@ test('typescript: composition', async () => {
108108
expect(sfc).toMatch(`const { t } = useI18n({`)
109109
const pack = files['package.json']
110110
expect(pack).toMatch(`"vue-i18n": "^9.1.0"`)
111-
expect(pack).toMatch(`"@intlify/vue-i18n-loader": "^2.1.0"`)
111+
expect(pack).toMatch(`"@intlify/vue-i18n-loader": "^3.0.0"`)
112112
})

tests/unit/generator.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ test('javascript', async () => {
2323
const locale = files['src/locales/en.json']
2424
expect(locale).toMatch(`{\n "message": "hello i18n !!"\n}`)
2525
const pack = files['package.json']
26-
expect(pack).toMatch(`"vue-i18n": "^8.22.3"`)
27-
expect(pack).not.toMatch(`"@intlify/vue-i18n-loader": "^1.0.0"`)
26+
expect(pack).toMatch(`"vue-i18n": "^8.25.0"`)
27+
expect(pack).not.toMatch(`"@intlify/vue-i18n-loader": "^1.1.0"`)
2828
})
2929

3030
test('typescript', async () => {
@@ -57,6 +57,6 @@ test('typescript', async () => {
5757
const sfc = files['src/components/HelloI18n.vue']
5858
expect(sfc).toMatch(`export default Vue.extend({`)
5959
const pack = files['package.json']
60-
expect(pack).toMatch(`"vue-i18n": "^8.22.3"`)
61-
expect(pack).toMatch(`"@intlify/vue-i18n-loader": "^1.0.0"`)
60+
expect(pack).toMatch(`"vue-i18n": "^8.25.0"`)
61+
expect(pack).toMatch(`"@intlify/vue-i18n-loader": "^1.1.0"`)
6262
})

0 commit comments

Comments
 (0)