Skip to content

Commit b6c8667

Browse files
authored
breaking: drop node v10 (#116)
* breaking: drop node v10 * fixes
1 parent eee82c4 commit b6c8667

File tree

6 files changed

+1491
-1589
lines changed

6 files changed

+1491
-1589
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,36 @@ on:
33
push:
44
branches-ignore:
55
- gh-pages
6+
- releases/**
67
pull_request:
8+
branches-ignore:
9+
- gh-pages
10+
- releases/**
11+
types:
12+
- opened
13+
- synchronize
14+
- reopened
15+
permissions:
16+
contents: read
717
env:
818
CI: true
919

1020
jobs:
1121
test:
12-
name: "Test on Node.js ${{ matrix.node }} OS: ${{matrix.os}}"
22+
name: 'Test on Node.js ${{ matrix.node }} OS: ${{matrix.os}}'
1323
runs-on: ${{ matrix.os }}
1424
strategy:
1525
matrix:
16-
os: [ubuntu-latest]
17-
node: [10, 12, 14]
26+
os: [ubuntu-latest, windows-latest, macos-latest]
27+
node: [12, 14, 16]
1828
steps:
1929
- name: Checkout
2030
uses: actions/checkout@v2
2131
- name: Setup Node.js ${{ matrix.node }}
22-
uses: actions/setup-node@v1
32+
uses: actions/setup-node@v2
2333
with:
2434
node-version: ${{ matrix.node }}
35+
cache: 'yarn'
2536
- name: Install
2637
run: yarn install
2738
- name: Build

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
"@microsoft/api-extractor": "^7.13.1",
3434
"@types/jest": "^26.0.22",
3535
"@types/node": "^14.14.25",
36-
"@types/webpack": "^4.41.26",
37-
"@types/webpack-merge": "^4.1.5",
3836
"@typescript-eslint/eslint-plugin": "^4.19.0",
3937
"@typescript-eslint/parser": "^4.19.0",
4038
"@vue/compiler-sfc": "^3.0.9",
@@ -66,7 +64,7 @@
6664
"webpack-merge": "^4.2.2"
6765
},
6866
"engines": {
69-
"node": ">= 10.0"
67+
"node": ">= 12.0"
7068
},
7169
"files": [
7270
"lib/*.js",

test/__snapshots__/pre-translation.test.ts.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ Object {
136136
},
137137
"components": Array [],
138138
"directives": Array [],
139+
"filters": Array [],
139140
"helpers": Array [
140141
Symbol(openBlock),
141142
Symbol(createBlock),
@@ -296,6 +297,7 @@ Object {
296297
},
297298
"components": Array [],
298299
"directives": Array [],
300+
"filters": Array [],
299301
"helpers": Array [
300302
Symbol(openBlock),
301303
Symbol(createBlock),
@@ -456,6 +458,7 @@ Object {
456458
},
457459
"components": Array [],
458460
"directives": Array [],
461+
"filters": Array [],
459462
"helpers": Array [
460463
Symbol(openBlock),
461464
Symbol(createBlock),
@@ -616,6 +619,7 @@ Object {
616619
},
617620
"components": Array [],
618621
"directives": Array [],
622+
"filters": Array [],
619623
"helpers": Array [
620624
Symbol(openBlock),
621625
Symbol(createBlock),

test/__snapshots__/transform.test.ts.snap

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ Object {
324324
},
325325
"components": Array [],
326326
"directives": Array [],
327+
"filters": Array [],
327328
"helpers": Array [
328329
Symbol(toDisplayString),
329330
Symbol(openBlock),
@@ -592,6 +593,7 @@ Object {
592593
},
593594
"components": Array [],
594595
"directives": Array [],
596+
"filters": Array [],
595597
"helpers": Array [
596598
Symbol(toDisplayString),
597599
Symbol(openBlock),
@@ -861,6 +863,7 @@ Object {
861863
},
862864
"components": Array [],
863865
"directives": Array [],
866+
"filters": Array [],
864867
"helpers": Array [
865868
Symbol(toDisplayString),
866869
Symbol(openBlock),
@@ -1130,6 +1133,7 @@ Object {
11301133
},
11311134
"components": Array [],
11321135
"directives": Array [],
1136+
"filters": Array [],
11331137
"helpers": Array [
11341138
Symbol(toDisplayString),
11351139
Symbol(openBlock),
@@ -1399,6 +1403,7 @@ Object {
13991403
},
14001404
"components": Array [],
14011405
"directives": Array [],
1406+
"filters": Array [],
14021407
"helpers": Array [
14031408
Symbol(toDisplayString),
14041409
Symbol(openBlock),
@@ -1668,6 +1673,7 @@ Object {
16681673
},
16691674
"components": Array [],
16701675
"directives": Array [],
1676+
"filters": Array [],
16711677
"helpers": Array [
16721678
Symbol(toDisplayString),
16731679
Symbol(openBlock),
@@ -1937,6 +1943,7 @@ Object {
19371943
},
19381944
"components": Array [],
19391945
"directives": Array [],
1946+
"filters": Array [],
19401947
"helpers": Array [
19411948
Symbol(toDisplayString),
19421949
Symbol(openBlock),
@@ -2206,6 +2213,7 @@ Object {
22062213
},
22072214
"components": Array [],
22082215
"directives": Array [],
2216+
"filters": Array [],
22092217
"helpers": Array [
22102218
Symbol(toDisplayString),
22112219
Symbol(openBlock),
@@ -2475,6 +2483,7 @@ Object {
24752483
},
24762484
"components": Array [],
24772485
"directives": Array [],
2486+
"filters": Array [],
24782487
"helpers": Array [
24792488
Symbol(toDisplayString),
24802489
Symbol(openBlock),
@@ -2744,6 +2753,7 @@ Object {
27442753
},
27452754
"components": Array [],
27462755
"directives": Array [],
2756+
"filters": Array [],
27472757
"helpers": Array [
27482758
Symbol(toDisplayString),
27492759
Symbol(openBlock),
@@ -3013,6 +3023,7 @@ Object {
30133023
},
30143024
"components": Array [],
30153025
"directives": Array [],
3026+
"filters": Array [],
30163027
"helpers": Array [
30173028
Symbol(toDisplayString),
30183029
Symbol(openBlock),
@@ -3281,6 +3292,7 @@ Object {
32813292
},
32823293
"components": Array [],
32833294
"directives": Array [],
3295+
"filters": Array [],
32843296
"helpers": Array [
32853297
Symbol(toDisplayString),
32863298
Symbol(openBlock),
@@ -3553,6 +3565,7 @@ Object {
35533565
},
35543566
"components": Array [],
35553567
"directives": Array [],
3568+
"filters": Array [],
35563569
"helpers": Array [
35573570
Symbol(toDisplayString),
35583571
Symbol(openBlock),
@@ -3824,6 +3837,7 @@ Object {
38243837
},
38253838
"components": Array [],
38263839
"directives": Array [],
3840+
"filters": Array [],
38273841
"helpers": Array [
38283842
Symbol(toDisplayString),
38293843
Symbol(openBlock),

tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
4545
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
4646
// "typeRoots": [], /* List of folders to include type definitions from. */
47-
"typeRoots": [
48-
"./@types",
49-
"./node_modules/@types"
50-
],
47+
// "typeRoots": [
48+
// "./@types",
49+
// "./node_modules/@types"
50+
// ],
5151
// "types": [], /* Type declaration files to be included in compilation. */
5252
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
5353
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */

0 commit comments

Comments
 (0)