chore(backend): update dependencies (#5085)

This commit is contained in:
Mir Arif Hasan 2025-05-22 17:02:58 +06:00 committed by GitHub
parent 9371457d0d
commit e7aba8a914
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 5829 additions and 2373 deletions

View file

@ -1,27 +0,0 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": "error"
},
};

View file

@ -0,0 +1,50 @@
const { defineConfig, globalIgnores } = require('eslint/config');
const tsParser = require('@typescript-eslint/parser');
const typescriptEslintEslintPlugin = require('@typescript-eslint/eslint-plugin');
const globals = require('globals');
const js = require('@eslint/js');
const { FlatCompat } = require('@eslint/eslintrc');
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});
module.exports = defineConfig([
{
languageOptions: {
parser: tsParser,
sourceType: 'module',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
},
globals: {
...globals.node,
...globals.jest,
},
},
plugins: {
'@typescript-eslint': typescriptEslintEslintPlugin,
},
extends: compat.extends(
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
),
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': 'error',
},
},
globalIgnores(['**/.eslintrc.js']),
]);

View file

@ -30,86 +30,87 @@
"do-test": "pnpm run test" "do-test": "pnpm run test"
}, },
"dependencies": { "dependencies": {
"@apollo/server": "4.11.0", "@apollo/server": "4.12.1",
"@nestjs-modules/mailer": "2.0.2", "@nestjs-modules/mailer": "2.0.2",
"@nestjs/apollo": "12.2.0", "@nestjs/apollo": "13.1.0",
"@nestjs/common": "10.4.16", "@nestjs/common": "11.1.1",
"@nestjs/config": "3.2.3", "@nestjs/config": "4.0.2",
"@nestjs/core": "10.4.4", "@nestjs/core": "11.1.1",
"@nestjs/graphql": "12.2.0", "@nestjs/graphql": "13.1.0",
"@nestjs/jwt": "10.2.0", "@nestjs/jwt": "11.0.0",
"@nestjs/passport": "10.0.3", "@nestjs/passport": "11.0.0",
"@nestjs/platform-express": "10.4.4", "@nestjs/platform-express": "11.1.1",
"@nestjs/schedule": "4.1.1", "@nestjs/schedule": "6.0.0",
"@nestjs/swagger": "7.4.2", "@nestjs/swagger": "11.2.0",
"@nestjs/terminus": "10.2.3", "@nestjs/terminus": "11.0.0",
"@nestjs/throttler": "6.2.1", "@nestjs/throttler": "6.4.0",
"@prisma/client": "5.20.0", "@prisma/client": "6.8.2",
"argon2": "0.41.1", "argon2": "0.43.0",
"bcrypt": "5.1.1", "bcrypt": "6.0.0",
"class-transformer": "0.5.1", "class-transformer": "0.5.1",
"class-validator": "0.14.1", "class-validator": "0.14.2",
"cookie": "1.0.0", "cookie": "1.0.2",
"cookie-parser": "1.4.7", "cookie-parser": "1.4.7",
"cron": "3.1.7", "cron": "4.3.0",
"express": "4.21.1", "express": "5.1.0",
"express-session": "1.18.1", "express-session": "1.18.1",
"fp-ts": "2.16.9", "fp-ts": "2.16.10",
"graphql": "16.9.0", "graphql": "16.11.0",
"graphql-query-complexity": "1.0.0", "graphql-query-complexity": "1.1.0",
"graphql-redis-subscriptions": "2.6.1", "graphql-redis-subscriptions": "2.7.0",
"graphql-subscriptions": "2.0.0", "graphql-subscriptions": "3.0.0",
"handlebars": "4.7.8", "handlebars": "4.7.8",
"io-ts": "2.2.21", "io-ts": "2.2.22",
"luxon": "3.5.0", "luxon": "3.6.1",
"nodemailer": "6.9.15", "nodemailer": "7.0.3",
"passport": "0.7.0", "passport": "0.7.0",
"passport-github2": "0.1.12", "passport-github2": "0.1.12",
"passport-google-oauth20": "2.0.0", "passport-google-oauth20": "2.0.0",
"passport-jwt": "4.0.1", "passport-jwt": "4.0.1",
"passport-local": "1.0.0", "passport-local": "1.0.0",
"passport-microsoft": "2.1.0", "passport-microsoft": "2.1.0",
"posthog-node": "4.2.0", "posthog-node": "4.17.1",
"prisma": "5.20.0", "prisma": "6.8.2",
"reflect-metadata": "0.2.2", "reflect-metadata": "0.2.2",
"rimraf": "6.0.1", "rimraf": "6.0.1",
"rxjs": "7.8.1" "rxjs": "7.8.2"
}, },
"devDependencies": { "devDependencies": {
"@nestjs/cli": "10.4.5", "@eslint/eslintrc": "3.3.1",
"@nestjs/schematics": "10.1.4", "@eslint/js": "9.27.0",
"@nestjs/testing": "10.4.4", "@nestjs/cli": "11.0.7",
"@nestjs/schematics": "11.0.5",
"@nestjs/testing": "11.1.1",
"@relmify/jest-fp-ts": "2.1.1", "@relmify/jest-fp-ts": "2.1.1",
"@types/bcrypt": "5.0.2", "@types/bcrypt": "5.0.2",
"@types/cookie": "0.6.0", "@types/cookie-parser": "1.4.8",
"@types/cookie-parser": "1.4.7", "@types/express": "5.0.2",
"@types/express": "5.0.0", "@types/jest": "29.5.14",
"@types/jest": "29.5.13", "@types/luxon": "3.6.2",
"@types/luxon": "3.4.2", "@types/node": "22.15.19",
"@types/node": "22.7.5", "@types/nodemailer": "6.4.17",
"@types/nodemailer": "6.4.16",
"@types/passport-github2": "1.2.9", "@types/passport-github2": "1.2.9",
"@types/passport-google-oauth20": "2.0.16", "@types/passport-google-oauth20": "2.0.16",
"@types/passport-jwt": "4.0.1", "@types/passport-jwt": "4.0.1",
"@types/passport-microsoft": "1.0.3", "@types/passport-microsoft": "1.0.3",
"@types/supertest": "6.0.2", "@types/supertest": "6.0.3",
"@typescript-eslint/eslint-plugin": "8.8.1", "@typescript-eslint/eslint-plugin": "8.32.1",
"@typescript-eslint/parser": "8.8.1", "@typescript-eslint/parser": "8.32.1",
"cross-env": "7.0.3", "cross-env": "7.0.3",
"eslint": "8.57.0", "eslint": "9.27.0",
"eslint-config-prettier": "9.1.0", "eslint-config-prettier": "10.1.5",
"eslint-plugin-prettier": "5.2.1", "eslint-plugin-prettier": "5.4.0",
"globals": "16.1.0",
"jest": "29.7.0", "jest": "29.7.0",
"jest-mock-extended": "4.0.0-beta1", "jest-mock-extended": "4.0.0-beta1",
"jwt": "link:@types/nestjs/jwt", "prettier": "3.5.3",
"prettier": "3.3.3",
"source-map-support": "0.5.21", "source-map-support": "0.5.21",
"supertest": "7.0.0", "supertest": "7.1.1",
"ts-jest": "29.2.5", "ts-jest": "29.3.4",
"ts-loader": "9.5.1", "ts-loader": "9.5.2",
"ts-node": "10.9.2", "ts-node": "10.9.2",
"tsconfig-paths": "4.2.0", "tsconfig-paths": "4.2.0",
"typescript": "5.5.4" "typescript": "5.8.3"
}, },
"jest": { "jest": {
"moduleFileExtensions": [ "moduleFileExtensions": [

View file

@ -19,7 +19,7 @@ export class PubSubService implements OnModuleInit {
} }
asyncIterator<T>(topic: string | string[]): AsyncIterator<T> { asyncIterator<T>(topic: string | string[]): AsyncIterator<T> {
return this.pubsub.asyncIterator(topic); return this.pubsub.asyncIterableIterator(topic);
} }
async publish<T extends keyof TopicDef>(topic: T, payload: TopicDef[T]) { async publish<T extends keyof TopicDef>(topic: T, payload: TopicDef[T]) {

View file

@ -1,4 +1,4 @@
import { ObjectType, Field, ID, registerEnumType } from '@nestjs/graphql'; import { ObjectType, Field, ID } from '@nestjs/graphql';
import { ReqType } from 'src/types/RequestTypes'; import { ReqType } from 'src/types/RequestTypes';
import { UserRequest } from 'src/user-request/user-request.model'; import { UserRequest } from 'src/user-request/user-request.model';

File diff suppressed because it is too large Load diff