Skip to content

Commit a55d201

Browse files
authored
chore: upgrade dependencies (#892)
* chore: upgrade dependencies * upgrade gh action * make cypress happy
1 parent 95b5921 commit a55d201

9 files changed

Lines changed: 89 additions & 490 deletions

File tree

.github/renovate.json5

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
{
22
extends: ['@whtsky'],
3+
packageRules: [
4+
{
5+
extends: ['monorepo:jest'],
6+
matchPackageNames: ['ts-jest'],
7+
matchPackagePrefixes: ['@types/jest'],
8+
groupName: 'jest',
9+
},
10+
{
11+
matchPackagePrefixes: ['@rollup', 'rollup-'],
12+
matchPackageNames: ['rollup'],
13+
groupName: 'rollup',
14+
},
15+
],
316
}

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@master
10-
- name: Use Node.js 14
10+
- name: Use Node.js 18
1111
uses: actions/setup-node@v3
1212
with:
13-
node-version: 14
13+
node-version: 18
1414
- run: yarn
1515
- run: yarn test
1616
- uses: codecov/codecov-action@v3.1.1
1717
lighthouse:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v3
21-
- name: Use Node.js 14
21+
- name: Use Node.js 18
2222
uses: actions/setup-node@v3
2323
with:
24-
node-version: 14
24+
node-version: 18
2525
- run: yarn
2626
- run: yarn build
2727
- name: Run Lighthouse
@@ -33,11 +33,11 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- uses: actions/checkout@v3
36-
- name: Use Node.js 14
36+
- name: Use Node.js 18
3737
uses: actions/setup-node@v3
3838
with:
39-
node-version: 14
40-
- uses: cypress-io/github-action@v2
39+
node-version: 18
40+
- uses: cypress-io/github-action@v5
4141
with:
4242
build: yarn build
4343
start: yarn start

cypress.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineConfig } from 'cypress'
2+
3+
export default defineConfig({
4+
e2e: {
5+
setupNodeEvents(on, config) {},
6+
supportFile: false,
7+
},
8+
})

cypress.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"devDependencies": {
99
"@rollup/plugin-commonjs": "^21.1.0",
1010
"@rollup/plugin-node-resolve": "^13.3.0",
11+
"@rollup/plugin-terser": "^0.3.0",
1112
"@rollup/plugin-typescript": "^8.5.0",
1213
"@tailwindcss/forms": "0.5.3",
1314
"@types/crypto-js": "^4.1.1",
@@ -19,22 +20,21 @@
1920
"@whtsky/prettier-config": "^1.0.1",
2021
"autoprefixer": "10.4.13",
2122
"concurrently": "6.5.1",
22-
"cypress": "^9.7.0",
23+
"cypress": "^12.3.0",
2324
"jest": "^28.1.3",
2425
"postcss": "8.4.21",
2526
"prettier": "^2.8.2",
2627
"rollup": "^2.79.1",
2728
"rollup-plugin-generate-html-template": "1.7.0",
2829
"rollup-plugin-postcss": "^4.0.2",
29-
"rollup-plugin-terser": "^7.0.2",
3030
"start-server-and-test": "^1.15.2",
3131
"tailwindcss": "3.2.4",
3232
"ts-jest": "^28.0.8",
3333
"ts-node": "^10.9.1",
3434
"typescript": "^4.9.4"
3535
},
3636
"dependencies": {
37-
"@postlight/mercury-parser": "^2.2.1",
37+
"@postlight/parser": "^2.2.3",
3838
"@sentry/integrations": "^7.10.0",
3939
"@sentry/node": "^7.10.0",
4040
"crypto-js": "^4.1.1",

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import typescript from '@rollup/plugin-typescript'
22
import commonjs from '@rollup/plugin-commonjs'
33
import resolve from '@rollup/plugin-node-resolve'
4-
import { terser } from 'rollup-plugin-terser'
4+
import terser from '@rollup/plugin-terser'
55
import htmlTemplate from 'rollup-plugin-generate-html-template';
66
// @ts-ignore
77
import postcss from 'rollup-plugin-postcss'

src/parser/mercury.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ParsedPage } from './types'
22

3-
import Mercury from '@postlight/mercury-parser'
3+
import Mercury from '@postlight/parser'
44

55
export function parsePageUsingMercury(url: string): Promise<ParsedPage> {
66
return Mercury.parse(url).then((result: { [x: string]: any }) => {

0 commit comments

Comments
 (0)