Skip to content

Commit

Permalink
feat(common): bump yarn, trigger release
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelfimov committed Jan 5, 2025
1 parent 5aceabc commit 3b82d5f
Show file tree
Hide file tree
Showing 44 changed files with 4,663 additions and 4,841 deletions.
1 change: 0 additions & 1 deletion .config/husky/.gitignore

This file was deleted.

3,700 changes: 1,557 additions & 2,143 deletions .pnp.cjs

Large diffs are not rendered by default.

2,485 changes: 1,509 additions & 976 deletions .yarn/releases/yarn.cjs → .yarn/releases/yarn-remote.mjs

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
defaultSemverRangePrefix: ''

enableGlobalCache: true

globalFolder: ../.yarn/berry
Expand All @@ -9,8 +11,6 @@ packageExtensions:

pnpEnableEsmLoader: true

yarnPath: .yarn/releases/yarn.cjs

preferReuse: true

defaultSemverRangePrefix: ''
yarnPath: .yarn/releases/yarn-remote.mjs
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"examples/**/*"
],
"devDependencies": {
"@atls/code-runtime": "1.1.0",
"@atls/code-runtime": "2.1.2",
"@types/node": "22.5.5",
"typescript": "5.4.2"
},
"packageManager": "yarn@4.4.1",
"packageManager": "yarn@4.6.0",
"typecheckSkipLibCheck": true
}
4 changes: 2 additions & 2 deletions packages/nestjs-batch-queue/src/batch-queue/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './batch-queue.interface.js'
export type * from './batch-queue.interface.js'
export * from './batch-queue.js'
export * from './batch-queue.types.js'
export type * from './batch-queue.types.js'
2 changes: 1 addition & 1 deletion packages/nestjs-batch-queue/src/check-manager/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './check-manager.js'
export * from './check-manager.types.js'
export type * from './check-manager.types.js'
2 changes: 1 addition & 1 deletion packages/nestjs-batch-queue/src/module/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './batch-queue-module-options.interface.js'
export type * from './batch-queue-module-options.interface.js'
export * from '../constants/index.js'
export * from './batch-queue.module.js'
export * from './batch-queue.providers.js'
Expand Down
22 changes: 15 additions & 7 deletions packages/nestjs-connectrpc/src/connectrpc.interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type * as http from 'http'
import type * as http2 from 'http2'
import type * as https from 'https'
import type * as http from 'http'
import type * as http2 from 'http2'
import type * as https from 'https'
import type { ConnectRouterOptions } from '@connectrpc/connect'
import type { Observable } from 'rxjs'
import type { Observable } from 'rxjs'

export interface ConnectRpcPattern {
service: string
Expand All @@ -18,8 +18,8 @@ export enum MethodType {
export enum ServerProtocol {
HTTP = 'http',
HTTPS = 'https',
HTTP2 = 'http2',
HTTP2_INSECURE = 'http2_insecure',
HTTP2 = 'http2',
}

export interface BaseServerOptions {
Expand Down Expand Up @@ -48,9 +48,17 @@ export interface Http2InsecureOptions extends BaseServerOptions {
serverOptions?: http2.ServerOptions
}

export type ServerTypeOptions = Http2InsecureOptions | Http2Options | HttpOptions | HttpsOptions
export type ServerTypeOptions =
| Http2InsecureOptions
| Http2Options
| HttpOptions
| HttpsOptions

export type ServerInstance = http.Server | http2.Http2Server | https.Server | null
export type ServerInstance =
| http.Server
| http2.Http2Server
| https.Server
| null

export interface ConstructorWithPrototype {
prototype: Record<string, PropertyDescriptor>
Expand Down
2 changes: 1 addition & 1 deletion packages/nestjs-connectrpc/src/utils/async.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const transformToObservable = <T>(resultOrDeferred: ResultOrDeferred<T>):
}
if (hasSubscribe(resultOrDeferred)) {
return new Observable<T>((subscriber) => {
// @ts-expect-error
// @ts-expect-error undefined method
resultOrDeferred.subscribe({
next: (value: any) => {
subscriber.next(value as T)

Check failure on line 117 in packages/nestjs-connectrpc/src/utils/async.utils.ts

View workflow job for this annotation

GitHub Actions / Lint

(@typescript-eslint/no-explicit-any): Unexpected any. Specify a different type.

Unexpected any. Specify a different type.
Raw output
  114 |       // @ts-expect-error undefined method
  115 |       resultOrDeferred.subscribe({
> 116 |         next: (value: any) => {
      |                       ^
  117 |           subscriber.next(value as T)
  118 |         },
  119 |         error: (error: any) => {
Expand Down
1 change: 1 addition & 0 deletions packages/nestjs-connectrpc/src/utils/router.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const createServiceHandlersMap = (
context: unknown
): Promise<unknown> => {
const resultOrDeferred = await handlerMetadata(request, context)
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return lastValueFrom(transformToObservable(resultOrDeferred))
}
break
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export const OrderResultByKey = (key = 'id', defaultValue = undefined) =>
(target: any, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor => {
const original = descriptor.value

Check failure on line 6 in packages/nestjs-dataloader/src/decorators/order-result-by-key.decorator.ts

View workflow job for this annotation

GitHub Actions / Lint

(@typescript-eslint/no-explicit-any): Unexpected any. Specify a different type.

Unexpected any. Specify a different type.
Raw output
  3 | export const OrderResultByKey = (key = 'id', defaultValue = undefined) =>
  4 |   // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
> 5 |   (target: any, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor => {
    |            ^
  6 |     const original = descriptor.value
  7 |
  8 |     // @ts-expect-error unsafe assign

// @ts-expect-error
// eslint-disable-next-line func-names
// @ts-expect-error unsafe assign
// eslint-disable-next-line func-names, @typescript-eslint/no-explicit-any
descriptor.value = async function (keys, ...args): Promise<any> {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
const method = original.bind(this)
Expand All @@ -15,7 +15,7 @@ export const OrderResultByKey = (key = 'id', defaultValue = undefined) =>

// eslint-disable-next-line @typescript-eslint/no-unsafe-call
const resultByKey = result.reduce(
// @ts-expect-error
// @ts-expect-error unsafe method
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
(res, item) => ({
...res,
Expand All @@ -24,7 +24,7 @@ export const OrderResultByKey = (key = 'id', defaultValue = undefined) =>
{}
)

// @ts-expect-error
// @ts-expect-error unsafe method
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-call
return keys.map((itemKey) => resultByKey[itemKey] || defaultValue)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/nestjs-dataloader/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './decorators/index.js'
export * from './interceptors/index.js'
export * from './interfaces/index.js'
export type * from './interfaces/index.js'
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class DataLoaderInterceptor implements NestInterceptor {
ctx[type] = this.moduleRef
.get<NestDataLoader>(type, { strict: false })
.generateDataLoader()
} catch (e) {
} catch {
throw new InternalServerErrorException(`The loader ${type} is not provided`)
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/nestjs-dataloader/src/interfaces/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './nest-dataloader.interfaces.js'
export type * from './nest-dataloader.interfaces.js'
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class ExecController {
}

@Get('/res-render-params')
// @ts-expect-error
// @ts-expect-error unsafe method
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
resRenderParams(@Res() res): void {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class RenderController {
}

@Post('params')
// @ts-expect-error
// @ts-expect-error unsafe method
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type
params(@Body() body) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export class ExternalRendererModule {
return [
this.createAsyncOptionsProvider(options),
{
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
provide: options.useClass!,
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
useClass: options.useClass!,
},
]
Expand All @@ -67,6 +69,7 @@ export class ExternalRendererModule {
provide: EXTERNAL_RENDERER_MODULE_OPTIONS,
useFactory: async (optionsFactory: ExternalRendererOptionsFactory) =>
optionsFactory.createExternalRendererOptions(),
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
inject: [options.useExisting! || options.useClass!],
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/nestjs-external-renderer/src/module/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './external-renderer-module-options.interface.js'
export type * from './external-renderer-module-options.interface.js'
export * from './external-renderer.constants.js'
export * from './external-renderer.module.js'
2 changes: 1 addition & 1 deletion packages/nestjs-gateway/src/mesh/graphql.mesh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class GraphQLMesh {
this.mesh = await getMesh(await this.config.create())
}

// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return this.mesh
}
}
2 changes: 1 addition & 1 deletion packages/nestjs-gateway/src/module/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './gateway-module-options.interface.js'
export type * from './gateway-module-options.interface.js'
export * from './gateway.constants.js'
export * from './gateway.module.js'
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './graphql-redis-subscriptions.module.interfaces.js'
export type * from './graphql-redis-subscriptions.module.interfaces.js'
export * from './graphql-redis-subscriptions.module.js'
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './authenticator.interface.js'
export type * from './authenticator.interface.js'
export * from './authentication.service.js'
export * from './private-key.authenticator.js'
export * from './header.authenticator.js'
2 changes: 1 addition & 1 deletion packages/nestjs-grpc-http-proxy/src/module/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './grpc-http-proxy-module-options.interface.js'
export type * from './grpc-http-proxy-module-options.interface.js'
export * from './grpc-http-proxy.constants.js'
export * from './grpc-http-proxy.module.js'
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import { beforeAll } from '@jest/globals'
import { it } from '@jest/globals'
import { expect } from '@jest/globals'
import { afterAll } from '@jest/globals'
import { readFileSync } from 'fs'
import { readFileSync } from 'node:fs'
import { sign } from 'jsonwebtoken'
import { join } from 'path'
import { join } from 'node:path'
import getPort from 'get-port'

import { GrpcIdentityIntegrationModule } from './src/index.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/nestjs-grpc-identity/src/module/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './grpc-identity-module.interface.js'
export type * from './grpc-identity-module.interface.js'
export * from './grpc-identity.constants.js'
export * from './grpc-identity.module.js'
2 changes: 1 addition & 1 deletion packages/nestjs-grpc-keto/src/module/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './keto.module.js'
export * from './keto.constants.js'
export * from './keto-module.interfaces.js'
export type * from './keto-module.interfaces.js'
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class KetoWriteClientService {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
delta.setAction(action).setRelationTuple(tuple)

// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return delta
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class RelationTupleConverter {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
subjectSet.setRelation(relation)

// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return subjectSet
}

Expand Down
2 changes: 1 addition & 1 deletion packages/nestjs-grpc-playground/src/module/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './grpc-playground-module-options.interface.js'
export type * from './grpc-playground-module-options.interface.js'
export * from './grpc-playground.constants.js'
export * from './grpc-playground.module.js'
2 changes: 1 addition & 1 deletion packages/nestjs-grpc-reflection/src/module/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './grpc-reflection-module-options.interface.js'
export type * from './grpc-reflection-module-options.interface.js'
export * from './grpc-reflection.constants.js'
export * from './grpc-reflection.module.js'
2 changes: 1 addition & 1 deletion packages/nestjs-hydra/src/module/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './hydra-module-options.interface.js'
export type * from './hydra-module-options.interface.js'
export * from './hydra.constants.js'
export * from './hydra.module.js'
export * from './hydra.utils.js'
2 changes: 1 addition & 1 deletion packages/nestjs-keto/src/module/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './keto.module.js'
export * from './keto.constants.js'
export * from './keto-module.interfaces.js'
export type * from './keto-module.interfaces.js'
2 changes: 1 addition & 1 deletion packages/nestjs-kratos/src/module/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './kratos-module-options.interface.js'
export type * from './kratos-module-options.interface.js'
export * from './kratos.constants.js'
export * from './kratos.module.js'
export * from './kratos.utils.js'
1 change: 0 additions & 1 deletion packages/nestjs-proto-types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@
* @typedef {string} ProtoFile - Represents the imported `.proto` file as a string
*/
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
// @ts-ignore
declare module '*.proto'

Check warning on line 14 in packages/nestjs-proto-types/src/index.ts

View workflow job for this annotation

GitHub Actions / Lint

(unknown): Unused eslint-disable directive (no problems were reported from '@typescript-eslint/prefer-ts-expect-error').

Unused eslint-disable directive (no problems were reported from '@typescript-eslint/prefer-ts-expect-error').
Raw output
  11 |  * @typedef {string} ProtoFile - Represents the imported `.proto` file as a string
  12 |  */
> 13 | // eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
     | ^
  14 | declare module '*.proto'
  15 |
2 changes: 1 addition & 1 deletion packages/nestjs-s3-client/src/module/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './s3-client.module.interfaces.js'
export type * from './s3-client.module.interfaces.js'
export * from './s3-client.module.constants.js'
export * from './s3-client.config-factory.js'
export * from './s3-client.factory.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { S3ClientConfig } from '@aws-sdk/client-s3'

// eslint-disable-next-line @typescript-eslint/consistent-type-imports
import type { S3ClientModuleOptions } from './s3-client.module.interfaces.js'

import { Inject } from '@nestjs/common'
Expand Down
2 changes: 1 addition & 1 deletion packages/nestjs-signed-url/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class SignedUrlModule {
static gcs(): DynamicModule {
const storageProvider = {
provide: STORAGE,
useFactory: () => new GcsStorage(),
useFactory: (): GcsStorage => new GcsStorage(),
}

return {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { SignUrlOptions } from '../storage/index.js'
import type { SignedUrl } from '../storage/index.js'
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
import type { AbstractStorage } from '../storage/index.js'

import { Inject } from '@nestjs/common'
Expand Down
2 changes: 1 addition & 1 deletion packages/nestjs-signed-url/src/storage/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './storage.interfaces.js'
export type * from './storage.interfaces.js'
export * from './abstract.storage.js'
export * from './gcs.storage.js'
export * from './constants.js'
2 changes: 1 addition & 1 deletion packages/nestjs-typesense-typeorm/src/module/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './typesense-typeorm-module.interface.js'
export type * from './typesense-typeorm-module.interface.js'
export * from './typesense-typeorm.constants.js'
export * from './typesense-typeorm.module.js'
2 changes: 1 addition & 1 deletion packages/nestjs-typesense/src/module/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './typesense-module.interface.js'
export type * from './typesense-module.interface.js'
export * from './typesense.constants.js'
export * from './typesense.module.js'
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"jsx": "react",
"outDir": "./dist",
"noImplicitOverride": true,
"skipLibCheck": true
"skipLibCheck": true,
"allowJs": true
},
"include": ["project.types.d.ts", "packages/**/*", "examples/**/*"]
}
Loading

0 comments on commit 3b82d5f

Please sign in to comment.