Skip to content

Commit 97dcf67

Browse files
Merge branch 'master' into remove-deprecated-globals
2 parents 8de35b0 + 7929b1a commit 97dcf67

31 files changed

Lines changed: 200 additions & 250 deletions

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ jobs:
3030
uses: actions/checkout@v6
3131

3232
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@v3
33+
uses: github/codeql-action/init@v4
3434
with:
3535
languages: javascript-typescript
3636

3737
- name: Perform CodeQL Analysis
38-
uses: github/codeql-action/analyze@v3
38+
uses: github/codeql-action/analyze@v4
3939
with:
4040
category: "/language:javascript-typescript"

docs/docs/guides/8-migration-v1.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,7 @@ The same applies to find options:
224224
// After
225225
{ lock: { mode: "pessimistic_write", onLocked: "nowait" } }
226226
```
227+
228+
### `WhereExpression` type alias
229+
230+
The deprecated `WhereExpression` type alias has been removed. Use `WhereExpressionBuilder` instead.

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,14 @@ export default defineConfig([
8383

8484
// exceptions for eslint/recommended
8585
"no-async-promise-executor": "warn",
86+
"no-useless-assignment": "warn",
8687
"no-control-regex": "warn",
8788
"no-empty": "warn",
8889
"no-loss-of-precision": "warn",
8990
"no-prototype-builtins": "warn",
9091
"no-regex-spaces": "warn",
9192
"no-return-assign": ["error", "always"],
93+
"preserve-caught-error": "warn",
9294
},
9395
},
9496
jsdoc({

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"yargs": "^18.0.0"
108108
},
109109
"devDependencies": {
110-
"@eslint/js": "^9.39.3",
110+
"@eslint/js": "^10.0.1",
111111
"@google-cloud/spanner": "^8.6.0",
112112
"@sap/hana-client": "^2.27.23",
113113
"@stryker-mutator/core": "^9.5.1",
@@ -130,9 +130,9 @@
130130
"chai": "^6.2.2",
131131
"chai-as-promised": "^8.0.2",
132132
"class-transformer": "^0.5.1",
133-
"eslint": "^9.39.3",
133+
"eslint": "^10.0.2",
134134
"eslint-plugin-chai-friendly": "^1.1.0",
135-
"eslint-plugin-jsdoc": "^62.7.0",
135+
"eslint-plugin-jsdoc": "^62.7.1",
136136
"globals": "^17.3.0",
137137
"gulp": "^4.0.2",
138138
"gulp-rename": "^2.1.0",
@@ -164,7 +164,7 @@
164164
"standard-changelog": "^7.0.1",
165165
"ts-node": "^10.9.2",
166166
"typescript": "^5.9.3",
167-
"typescript-eslint": "^8.56.0"
167+
"typescript-eslint": "^8.56.1"
168168
},
169169
"peerDependencies": {
170170
"@google-cloud/spanner": "^8.0.0",

pnpm-lock.yaml

Lines changed: 156 additions & 206 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/commands/CommandUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export class CommandUtils {
1919
} catch (err) {
2020
throw new Error(
2121
`Unable to open file: "${dataSourceFilePath}". ${err.message}`,
22+
{ cause: err },
2223
)
2324
}
2425

src/commands/MigrationGenerateCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class MigrationGenerateCommand implements yargs.CommandModule {
7979
: path.resolve(process.cwd(), args.path)
8080
const filename = timestamp + "-" + path.basename(fullPath) + extension
8181

82-
let dataSource: DataSource | undefined = undefined
82+
let dataSource: DataSource | undefined
8383
try {
8484
dataSource = await CommandUtils.loadDataSource(
8585
path.resolve(process.cwd(), args.dataSource as string),

src/driver/DriverUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export class DriverUtils {
239239
secondSlash !== -1 ? preBase.substr(0, secondSlash) : preBase
240240
let afterBase =
241241
secondSlash !== -1 ? preBase.substr(secondSlash + 1) : undefined
242-
let afterQuestionMark = ""
242+
let afterQuestionMark: string
243243
let host = undefined
244244
let port = undefined
245245
let hostReplicaSet = undefined

src/driver/aurora-mysql/AuroraMysqlQueryRunner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ export class AuroraMysqlQueryRunner
799799
`Column "${oldTableColumnOrName}" was not found in the "${table.name}" table.`,
800800
)
801801

802-
let newColumn: TableColumn | undefined = undefined
802+
let newColumn: TableColumn
803803
if (InstanceChecker.isTableColumn(newTableColumnOrName)) {
804804
newColumn = newTableColumnOrName
805805
} else {
@@ -2827,7 +2827,7 @@ export class AuroraMysqlQueryRunner
28272827
skipPrimary: boolean,
28282828
skipName: boolean = false,
28292829
) {
2830-
let c = ""
2830+
let c: string
28312831
if (skipName) {
28322832
c = this.connection.driver.createFullType(column)
28332833
} else {

src/driver/mysql/MysqlQueryRunner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ export class MysqlQueryRunner extends BaseQueryRunner implements QueryRunner {
10551055
`Column "${oldTableColumnOrName}" was not found in the "${table.name}" table.`,
10561056
)
10571057

1058-
let newColumn: TableColumn | undefined = undefined
1058+
let newColumn: TableColumn
10591059
if (InstanceChecker.isTableColumn(newTableColumnOrName)) {
10601060
newColumn = newTableColumnOrName
10611061
} else {
@@ -3434,7 +3434,7 @@ export class MysqlQueryRunner extends BaseQueryRunner implements QueryRunner {
34343434
skipPrimary: boolean,
34353435
skipName: boolean = false,
34363436
) {
3437-
let c = ""
3437+
let c: string
34383438
if (skipName) {
34393439
c = this.connection.driver.createFullType(column)
34403440
} else {

0 commit comments

Comments
 (0)