Skip to content

Commit cc12fca

Browse files
Update all non-major dependencies (#48)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ivan Demchuk <ivan.demchuk@gmail.com>
1 parent 10bc3cf commit cc12fca

File tree

9 files changed

+640
-938
lines changed

9 files changed

+640
-938
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
node: [18]
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v3.4.0
22+
uses: actions/checkout@v3.5.3
2323
- name: Setup Node.js ${{ matrix.node }}
24-
uses: actions/setup-node@v3.6.0
24+
uses: actions/setup-node@v3.7.0
2525
with:
2626
node-version: ${{ matrix.node }}
27-
- uses: pnpm/action-setup@v2.2.4
27+
- uses: pnpm/action-setup@v2.4.0
2828
with:
2929
version: 8.x.x
3030
run_install: true
@@ -40,10 +40,10 @@ jobs:
4040
name: Lint source code
4141
steps:
4242
- name: Checkout
43-
uses: actions/checkout@v3.4.0
43+
uses: actions/checkout@v3.5.3
4444
- name: Setup Node.js
45-
uses: actions/setup-node@v3.6.0
46-
- uses: pnpm/action-setup@v2.2.4
45+
uses: actions/setup-node@v3.7.0
46+
- uses: pnpm/action-setup@v2.4.0
4747
with:
4848
version: 8.x.x
4949
run_install: true
@@ -56,15 +56,15 @@ jobs:
5656
name: Test build of example projects
5757
steps:
5858
- name: Checkout unplugin-fluent-vue
59-
uses: actions/checkout@v3.4.0
59+
uses: actions/checkout@v3.5.3
6060
- name: Checkout examples
61-
uses: actions/checkout@v3.4.0
61+
uses: actions/checkout@v3.5.3
6262
with:
6363
repository: fluent-vue/examples
6464
path: examples
6565
- name: Setup Node.js
66-
uses: actions/setup-node@v3.6.0
67-
- uses: pnpm/action-setup@v2.2.4
66+
uses: actions/setup-node@v3.7.0
67+
- uses: pnpm/action-setup@v2.4.0
6868
with:
6969
version: 8.x.x
7070
run_install: true
45 Bytes
Binary file not shown.
16 Bytes
Binary file not shown.

__tests__/frameworks/vite/errors.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
import { resolve } from 'node:path'
22
import { describe, expect, it } from 'vitest'
33

4-
import vue3base from '@vitejs/plugin-vue'
4+
import vue3 from '@vitejs/plugin-vue'
55
import compiler from '@vue/compiler-sfc'
66

77
import { ExternalFluentPlugin, SFCFluentPlugin } from '../../../src/vite'
88
import { compile } from './util'
99

10-
const vue3 = () => vue3base({
11-
compiler,
12-
})
13-
1410
const baseDir = resolve(__dirname, '../..')
1511

1612
describe('Error checking', () => {
@@ -19,7 +15,9 @@ describe('Error checking', () => {
1915
// Act
2016
const code = compile({
2117
plugins: [
22-
vue3(),
18+
vue3({
19+
compiler,
20+
}),
2321
ExternalFluentPlugin({
2422
baseDir: resolve(baseDir, 'fixtures'),
2523
ftlDir: resolve(baseDir, 'fixtures/ftl'),
@@ -53,7 +51,9 @@ describe('Error checking', () => {
5351
// Act
5452
const code = compile({
5553
plugins: [
56-
vue3(),
54+
vue3({
55+
compiler,
56+
}),
5757
SFCFluentPlugin({
5858
checkSyntax: true,
5959
}),

__tests__/frameworks/vite/external.spec.ts

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
import { relative, resolve } from 'node:path'
22
import { describe, expect, it } from 'vitest'
33

4-
import vue3base from '@vitejs/plugin-vue'
4+
import vue3 from '@vitejs/plugin-vue'
55
import compiler from '@vue/compiler-sfc'
66

77
import { ExternalFluentPlugin } from '../../../src/vite'
88
import { compile } from './util'
99

10-
const vue3 = () => vue3base({
11-
compiler,
12-
})
13-
1410
const baseDir = resolve(__dirname, '../..')
1511

1612
describe('Vite external', () => {
@@ -19,7 +15,9 @@ describe('Vite external', () => {
1915
// Act
2016
const code = await compile({
2117
plugins: [
22-
vue3(),
18+
vue3({
19+
compiler,
20+
}),
2321
ExternalFluentPlugin({
2422
baseDir: resolve(baseDir, 'fixtures'),
2523
ftlDir: resolve(baseDir, 'fixtures/ftl'),
@@ -38,7 +36,9 @@ describe('Vite external', () => {
3836
// Act
3937
const code = await compile({
4038
plugins: [
41-
vue3(),
39+
vue3({
40+
compiler,
41+
}),
4242
ExternalFluentPlugin({
4343
getFtlPath: (locale, vuePath) => {
4444
return `${baseDir}/fixtures/ftl/${locale}/${relative(resolve(baseDir, 'fixtures'), vuePath)}.ftl`
@@ -58,7 +58,9 @@ describe('Vite external', () => {
5858
// Act
5959
const code = await compile({
6060
plugins: [
61-
vue3(),
61+
vue3({
62+
compiler,
63+
}),
6264
ExternalFluentPlugin({
6365
baseDir: resolve(baseDir, 'fixtures'),
6466
ftlDir: resolve(baseDir, 'fixtures/ftl'),
@@ -77,7 +79,9 @@ describe('Vite external', () => {
7779
// Act
7880
const code = await compile({
7981
plugins: [
80-
vue3(),
82+
vue3({
83+
compiler,
84+
}),
8185
ExternalFluentPlugin({
8286
baseDir: resolve(baseDir, 'fixtures'),
8387
ftlDir: resolve(baseDir, 'fixtures/ftl'),
@@ -89,15 +93,15 @@ describe('Vite external', () => {
8993
// Assert
9094
expect(code).toMatchInlineSnapshot(`
9195
"=== /fixtures/importer.js ===
92-
import translations from '/@id/virtual:ftl-for-file?importer=/fixtures/importer.js'
96+
import translations from \\"/@id/virtual:ftl-for-file?importer=/fixtures/importer.js\\"
9397
9498
// eslint-disable-next-line no-console -- this is a test file
9599
console.log(translations)
96100
97101
98102
=== virtual:ftl-for-file?importer=/fixtures/importer.js ===
99-
import en_ftl from '/fixtures/ftl/en/importer.js.ftl?import';
100-
import da_ftl from '/fixtures/ftl/da/importer.js.ftl?import';
103+
import en_ftl from \\"/fixtures/ftl/en/importer.js.ftl?import\\";
104+
import da_ftl from \\"/fixtures/ftl/da/importer.js.ftl?import\\";
101105
export default { 'en': en_ftl, 'da': da_ftl }
102106
"
103107
`)

__tests__/frameworks/vite/sfc.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
import { describe, expect, it } from 'vitest'
22

3-
import vue3base from '@vitejs/plugin-vue'
3+
import vue3 from '@vitejs/plugin-vue'
44

55
import compiler from '@vue/compiler-sfc'
66
import { SFCFluentPlugin } from '../../../src/vite'
77
import { compile } from './util'
88

9-
const vue3 = () => vue3base({
10-
compiler,
11-
})
12-
139
describe('Vite SFC', () => {
1410
it('generates custom block code', async () => {
1511
// Arrange
1612
// Act
1713
const code = await compile({
1814
plugins: [
19-
vue3(),
15+
vue3({
16+
compiler,
17+
}),
2018
SFCFluentPlugin(),
2119
],
2220
}, '/fixtures/test.vue')
@@ -30,7 +28,9 @@ describe('Vite SFC', () => {
3028
// Act
3129
const code = await compile({
3230
plugins: [
33-
vue3(),
31+
vue3({
32+
compiler,
33+
}),
3434
SFCFluentPlugin({
3535
blockType: 'i18n',
3636
}),

__tests__/frameworks/webpack/sfc.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, it } from 'vitest'
22

3-
import type { Stats } from 'webpack'
3+
import type { Stats } from 'webpack/types'
44

55
import { compile } from './util'
66

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,24 @@
2727
"exports": {
2828
".": {
2929
"types": "./dist/index.d.ts",
30-
"require": "./dist/index.js",
31-
"import": "./dist/index.mjs"
30+
"import": "./dist/index.mjs",
31+
"require": "./dist/index.js"
3232
},
3333
"./*": "./*",
3434
"./rollup": {
3535
"types": "./dist/rollup.d.ts",
36-
"require": "./dist/rollup.js",
37-
"import": "./dist/rollup.mjs"
36+
"import": "./dist/rollup.mjs",
37+
"require": "./dist/rollup.js"
3838
},
3939
"./vite": {
4040
"types": "./dist/vite.d.ts",
41-
"require": "./dist/vite.js",
42-
"import": "./dist/vite.mjs"
41+
"import": "./dist/vite.mjs",
42+
"require": "./dist/vite.js"
4343
},
4444
"./webpack": {
4545
"types": "./dist/webpack.d.ts",
46-
"require": "./dist/webpack.js",
47-
"import": "./dist/webpack.mjs"
46+
"import": "./dist/webpack.mjs",
47+
"require": "./dist/webpack.js"
4848
}
4949
},
5050
"main": "dist/index.js",
@@ -68,26 +68,26 @@
6868
"unplugin": "^1.0.0"
6969
},
7070
"devDependencies": {
71-
"@antfu/eslint-config-ts": "0.37.0",
71+
"@antfu/eslint-config-ts": "0.40.0",
7272
"@release-it-plugins/lerna-changelog": "6.0.0",
73-
"@types/node": "18.15.5",
74-
"@vitejs/plugin-vue": "4.1.0",
73+
"@types/node": "18.17.2",
74+
"@vitejs/plugin-vue": "4.2.3",
7575
"@vitest/coverage-istanbul": "^0.34.1",
76-
"@vue/compiler-sfc": "3.2.47",
77-
"dotenv-cli": "7.1.0",
78-
"eslint": "8.36.0",
79-
"execa": "7.1.1",
76+
"@vue/compiler-sfc": "3.3.4",
77+
"dotenv-cli": "7.2.1",
78+
"eslint": "8.46.0",
79+
"execa": "7.2.0",
8080
"husky": "8.0.3",
81-
"lint-staged": "13.2.0",
81+
"lint-staged": "13.2.3",
8282
"memfs": "4.2.0",
8383
"release-it": "16.1.3",
8484
"tsup": "7.2.0",
85-
"typescript": "5.0.2",
86-
"vite": "4.2.1",
85+
"typescript": "5.1.6",
86+
"vite": "4.4.8",
8787
"vitest": "0.34.1",
88-
"vue": "3.2.47",
89-
"vue-loader": "17.0.1",
90-
"webpack": "5.76.2"
88+
"vue": "3.3.4",
89+
"vue-loader": "17.2.2",
90+
"webpack": "5.88.2"
9191
},
9292
"lint-staged": {
9393
"*.js": "eslint --fix",

0 commit comments

Comments
 (0)