-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: upgrade to latest version of graphql-subscriptions #330
Conversation
Ready for code review. |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit b662cc1. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution
✅ Successfully ran 4 targetsSent with 💌 from NxCloud. |
Off-topic: BTW I was wondering if we could also upgrade our legacy |
Checking the failing pipelines |
I am lost, it is kinda bugging me why microsoft/TypeScript#35186 I ended up with this log: NX Debug Failure. No error for last overload signature
Call:this.sqlComparisonBuilder.build(colName, cmpType, cmp[cmpType] as EntityComparisonField<Entity, T>, alias)
Declarations: build<F extends keyof Entity>(
field: F,
cmp: FilterComparisonOperators<Entity[F]>,
val: EntityComparisonField<Entity, F>,
alias?: string
): WhereOptions {
const col = alias ? `$${alias}.${field as string}$` : `${field as string}`
const normalizedCmp = (cmp as string).toLowerCase()
if (this.comparisonMap[normalizedCmp]) {
// comparison operator (e.b. =, !=, >, <)
return { [col]: { [this.comparisonMap[normalizedCmp]]: val } }
}
if (normalizedCmp === 'between') {
// between comparison (field BETWEEN x AND y)
return this.betweenComparisonSQL(col, val)
}
if (normalizedCmp === 'notbetween') {
// notBetween comparison (field NOT BETWEEN x AND y)
return this.notBetweenComparisonSQL(col, val)
}
throw new Error(`unknown operator ${JSON.stringify(cmp)}`)
}
Occurred while linting /home/kasir/projects/nestjs-query/packages/query-sequelize/src/query/where.builder.ts:85
Rule: "@typescript-eslint/no-unsafe-return"
Error: Debug Failure. No error for last overload signature
Call:this.sqlComparisonBuilder.build(colName, cmpType, cmp[cmpType] as EntityComparisonField<Entity, T>, alias)
Declarations: build<F extends keyof Entity>(
field: F,
cmp: FilterComparisonOperators<Entity[F]>,
val: EntityComparisonField<Entity, F>,
alias?: string
): WhereOptions {
const col = alias ? `$${alias}.${field as string}$` : `${field as string}`
const normalizedCmp = (cmp as string).toLowerCase()
if (this.comparisonMap[normalizedCmp]) {
// comparison operator (e.b. =, !=, >, <)
return { [col]: { [this.comparisonMap[normalizedCmp]]: val } }
}
if (normalizedCmp === 'between') {
// between comparison (field BETWEEN x AND y)
return this.betweenComparisonSQL(col, val)
}
if (normalizedCmp === 'notbetween') {
// notBetween comparison (field NOT BETWEEN x AND y)
return this.notBetweenComparisonSQL(col, val)
}
throw new Error(`unknown operator ${JSON.stringify(cmp)}`)
}
Occurred while linting /home/kasir/projects/nestjs-query/packages/query-sequelize/src/query/where.builder.ts:85
Rule: "@typescript-eslint/no-unsafe-return"
at resolveCall (/home/kasir/projects/nestjs-query/node_modules/typescript/lib/typescript.js:79290:35)
at resolveCallExpression (/home/kasir/projects/nestjs-query/node_modules/typescript/lib/typescript.js:79684:12)
at resolveSignature (/home/kasir/projects/nestjs-query/node_modules/typescript/lib/typescript.js:80077:16)
at getResolvedSignature (/home/kasir/projects/nestjs-query/node_modules/typescript/lib/typescript.js:80103:18)
at checkCallExpression (/home/kasir/projects/nestjs-query/node_modules/typescript/lib/typescript.js:80214:23)
at checkExpressionWorker (/home/kasir/projects/nestjs-query/node_modules/typescript/lib/typescript.js:83473:16)
at checkExpression (/home/kasir/projects/nestjs-query/node_modules/typescript/lib/typescript.js:83383:32)
at getTypeOfExpression (/home/kasir/projects/nestjs-query/node_modules/typescript/lib/typescript.js:83324:18)
at getRegularTypeOfExpression (/home/kasir/projects/nestjs-query/node_modules/typescript/lib/typescript.js:89791:40)
at getTypeOfNode (/home/kasir/projects/nestjs-query/node_modules/typescript/lib/typescript.js:89703:14)
———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
NX Running target lint for 7 projects failed What I can do to fix this is not really clear to me. Any comment? |
I'm having the same, you can ignore it. |
BTW I also like to bump the TS version in this PR if you're OK with it since it is just a patch version update (from |
I just merged my PR that also updates a couple of deps so you are welcome to update more :) |
BTW I guess we might wanna introduce a major version for this. I mean this can introduce breaking changes for those who are still using older versions of And if you agree please lemme know if I need to do it or you'll need to do it personally. Thanks in advance. |
Yea good one, if you can add a commit that looks like:
|
BREAKING CHANGE: Updated to new major version of graphql-subscriptions
Thanks for the PR! |
Sorry for doing it haphazardly 🙇. So here I increased the missing peerDep version. Related to: #330
Closes #327