Skip to content

Commit 3078872

Browse files
authored
chore!: upgrade dependencies (#2059)
BREAKING CHANGE: This drops support for node v12.
1 parent 39e63c5 commit 3078872

File tree

4 files changed

+987
-1014
lines changed

4 files changed

+987
-1014
lines changed

.github/workflows/nodejs.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,24 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
87
runs-on: ${{ matrix.os }}
98

109
strategy:
1110
matrix:
1211
os: [ubuntu-latest, macos-latest]
13-
node-version: [12.x, 14.x, 16.x, 17.x]
12+
node-version: [14.x, 16.x, 18.x]
1413

1514
steps:
16-
- uses: actions/checkout@v1
17-
- name: Use Node.js ${{ matrix.node-version }}
18-
uses: actions/setup-node@v1
19-
with:
20-
node-version: ${{ matrix.node-version }}
21-
- name: yarn install, build, and test
22-
run: |
23-
yarn
24-
yarn test
25-
yarn codecov
26-
env:
27-
CI: true
28-
AST_COMPARE: 1
15+
- uses: actions/checkout@v1
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- name: yarn install, build, and test
21+
run: |
22+
yarn
23+
yarn test
24+
yarn codecov
25+
env:
26+
CI: true
27+
AST_COMPARE: 1

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@
1313
"dependencies": {
1414
"linguist-languages": "^7.21.0",
1515
"mem": "^8.0.0",
16-
"php-parser": "3.1.0-beta.11"
16+
"php-parser": "3.1.0"
1717
},
1818
"devDependencies": {
1919
"@babel/preset-env": "^7.18.6",
2020
"codecov": "3.8.3",
2121
"cross-env": "^7.0.2",
22-
"eslint": "8.19.0",
22+
"eslint": "8.23.0",
2323
"eslint-config-prettier": "8.5.0",
2424
"eslint-plugin-import": "2.26.0",
25-
"eslint-plugin-jest": "26.5.3",
25+
"eslint-plugin-jest": "27.0.1",
2626
"eslint-plugin-prettier": "4.2.1",
27-
"jest": "28.1.2",
28-
"jest-environment-jsdom": "28.1.2",
29-
"jest-runner-eslint": "1.0.1",
27+
"jest": "29.0.2",
28+
"jest-environment-jsdom": "29.0.2",
29+
"jest-runner-eslint": "1.1.0",
3030
"jest-snapshot-serializer-raw": "^1.1.0",
3131
"prettier": "2.1.2",
3232
"rollup": "^2.75.7",

tests/syntax-error/__snapshots__/jsfmt.spec.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`Syntax errors have the expected structure 1`] = `
4-
Object {
4+
{
55
"codeFrame": "> 1 | <?php _
66
| ^",
77
"fileName": "eval",
8-
"loc": Object {
9-
"start": Object {
8+
"loc": {
9+
"start": {
1010
"column": 7,
1111
"line": 1,
1212
},

0 commit comments

Comments
 (0)