Skip to content

Commit

Permalink
update dependencies (#400)
Browse files Browse the repository at this point in the history
* update dependencies

* fix for node 12, add node 16

* fix ci
  • Loading branch information
janpaepke authored Jun 14, 2022
1 parent b192f97 commit d74cbe9
Show file tree
Hide file tree
Showing 9 changed files with 1,718 additions and 1,892 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 12.x]
node-version: [12.x, 14.x, 16.x]

steps:
- name: check psql
Expand Down
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,28 @@
"minimist": "^1.2.5"
},
"devDependencies": {
"@types/jest": "26.0.24",
"@types/js-yaml": "4.0.2",
"@types/node": "12.20.50",
"@types/pg": "8.6.1",
"@typescript-eslint/eslint-plugin": "4.28.4",
"@typescript-eslint/parser": "4.28.4",
"@types/jest": "28.1.1",
"@types/js-yaml": "4.0.5",
"@types/node": "17.0.41",
"@types/pg": "8.6.5",
"@typescript-eslint/eslint-plugin": "5.27.1",
"@typescript-eslint/parser": "5.27.1",
"check-clean": "0.3.1",
"coveralls": "3.1.1",
"eslint": "7.31.0",
"eslint-plugin-codegen": "0.16.0",
"eslint-plugin-import": "2.23.4",
"eslint-plugin-prettier": "3.4.0",
"expect-type": "0.12.0",
"fs-syncer": "0.3.0",
"jest": "27.0.6",
"eslint": "8.17.0",
"eslint-plugin-codegen": "0.16.1",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-prettier": "4.0.0",
"expect-type": "0.13.0",
"fs-syncer": "0.4.0",
"jest": "28.1.1",
"js-yaml": "4.1.0",
"lerna": "4.0.0",
"npm-run-all": "4.1.5",
"prettier": "2.3.2",
"slonik": "28.1.0",
"ts-jest": "27.0.4",
"ts-node": "10.1.0",
"typescript": "4.3.5"
"prettier": "2.6.2",
"slonik": "28.1.1",
"ts-jest": "28.0.4",
"ts-node": "10.8.1",
"typescript": "4.7.3"
}
}
}
8 changes: 4 additions & 4 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
},
"homepage": "https://github.com/mmkal/slonik-tools/tree/master/packages/demo#readme",
"dependencies": {
"dotenv-extended": "^2.4.0",
"express": "^4.17.1"
"dotenv-extended": "^2.9.0",
"express": "^4.18.1"
},
"peerDependencies": {
"slonik": "*"
Expand All @@ -36,7 +36,7 @@
"@slonik/migrator": "^0.11.2",
"@slonik/typegen": "^0.14.1",
"@types/express": "4.17.8",
"@types/supertest": "2.0.11",
"supertest": "6.1.4"
"@types/supertest": "2.0.12",
"supertest": "6.2.3"
}
}
8 changes: 4 additions & 4 deletions packages/migrator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
},
"homepage": "https://github.com/mmkal/slonik-tools/tree/master/packages/migrator#readme",
"dependencies": {
"@rushstack/ts-command-line": "^4.7.7",
"umzug": "^3.0.0"
"@rushstack/ts-command-line": "^4.11.0",
"umzug": "^3.1.1"
},
"peerDependencies": {
"slonik": ">= 27.0.0 < 29"
},
"devDependencies": {
"@types/dedent": "0.7.0",
"@types/lodash": "4.14.171",
"@types/lodash": "4.14.182",
"dedent": "0.7.0",
"lodash": "4.17.21",
"strip-ansi": "6.0.1"
"strip-ansi": "7.0.1"
}
}
6 changes: 3 additions & 3 deletions packages/typegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
"typescript": "*"
},
"dependencies": {
"@rushstack/ts-command-line": "^4.10.8",
"@rushstack/ts-command-line": "^4.11.0",
"chokidar": "^3.5.3",
"execa": "^5.0.0",
"find-up": "^5.0.0",
"glob": "^7.2.0",
"glob": "^8.0.3",
"io-ts-extra": "^0.11.6",
"lodash": "^4.17.21",
"memoizee": "^0.4.15",
"pgsql-ast-parser": "^10.0.2",
"pgsql-ast-parser": "^10.3.1",
"pluralize": "^8.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/typegen/src/pg/psql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const psqlClient = (psqlCommand: string, pool: DatabasePool) => {
const result = await execa('sh', ['-c', command], {env: {SLONIK_TYPEGEN_QUERY: query}})
try {
return psqlRows(result.stdout)
} catch (e) {
} catch (e: any) {
const stdout = result.stdout || result.stderr
e.message =
`Error running psql query.\n` +
Expand Down
2 changes: 1 addition & 1 deletion packages/typegen/src/write/prettify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function prettifyOne({filepath, content}: {filepath: string; content: str
const rcFile = findUp.sync('.prettierrc.js')
const rc = rcFile && require(rcFile)
return prettier.format(content, {filepath, ...rc})
} catch (e) {
} catch (e: any) {
const help =
e.code === 'MODULE_NOT_FOUND' ? `Install prettier to fix this. ${e.message}` : `Error below:\n${e.message}`
console.warn(`prettier failed to run; Your output might be ugly! ${help}`)
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"noUnusedLocals": false,
"noUnusedParameters": false,
"lib": [
"esnext",
"ES2018",
"dom"
]
},
Expand Down
Loading

0 comments on commit d74cbe9

Please sign in to comment.