Skip to content

Commit d4e2b65

Browse files
PFacheriswolfie82
andauthored
build(deps): update connect library and peer deps (#29)
* build(deps): update connect library and peer deps --------- Co-authored-by: Patrick Wolf <patricksbaker@gmail.com>
1 parent 8e4847a commit d4e2b65

File tree

10 files changed

+82
-66
lines changed

10 files changed

+82
-66
lines changed

.github/workflows/workflow-cicd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
branches:
66
- main
77
- beta
8-
pull_request:
8+
pull_request_target:
9+
types: [assigned, opened, synchronize, reopened]
910

1011
concurrency:
1112
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}

packages/nestjs-bufconnect/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
"url": "https://github.com/wisewolf-oss/nestjs-bufconnect.git"
2323
},
2424
"dependencies": {
25-
"@bufbuild/connect": "^0.8.4",
26-
"@bufbuild/connect-node": "^0.8.4",
27-
"@bufbuild/protobuf": "^1.2.0"
25+
"@connectrpc/connect": "^1.4.0",
26+
"@connectrpc/connect-node": "^1.4.0",
27+
"@bufbuild/protobuf": "^1.7.2"
2828
},
2929
"peerDependencies": {
30-
"@nestjs/common": "^9.0.0",
31-
"@nestjs/core": "^9.0.0",
32-
"@nestjs/platform-express": "^9.0.0",
33-
"@nestjs/microservices": "^9.0.0",
30+
"@nestjs/common": "^9.0.0 || ^10.0.0",
31+
"@nestjs/core": "^9.0.0 || ^10.0.0",
32+
"@nestjs/platform-express": "^9.0.0 || ^10.0.0",
33+
"@nestjs/microservices": "^9.0.0 || ^10.0.0",
3434
"reflect-metadata": "^0.1.13",
3535
"rxjs": "^7.2.0"
3636
}

packages/nestjs-bufconnect/src/lib/nestjs-bufconnect.decorator.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {
22
connectNodeAdapter,
33
createGrpcTransport,
4-
} from '@bufbuild/connect-node';
5-
import { ConnectRouter, createPromiseClient } from '@bufbuild/connect';
4+
} from '@connectrpc/connect-node';
5+
import { ConnectRouter, createPromiseClient } from '@connectrpc/connect';
66
import * as http2 from 'http2';
77
import { GrpcMethodStreamingType, MessageHandler } from '@nestjs/microservices';
88
import { MethodType } from './nestjs-bufconnect.interface';

packages/nestjs-bufconnect/src/lib/nestjs-bufconnect.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* (HTTP, HTTPS, HTTP2, HTTP2_INSECURE) and their options. It also provides types for handling
44
* server instances and other utility types.
55
*/
6-
import { ConnectRouterOptions } from '@bufbuild/connect';
6+
import { ConnectRouterOptions } from '@connectrpc/connect';
77
import * as http from 'http';
88
import * as https from 'https';
99
import * as http2 from 'http2';

packages/nestjs-bufconnect/src/lib/nestjs-bufconnect.strategy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ConnectRouter } from '@bufbuild/connect';
1+
import { ConnectRouter } from '@connectrpc/connect';
22
import { isString } from '@nestjs/common/utils/shared.utils';
33
import {
44
CustomTransportStrategy,
@@ -12,7 +12,7 @@ import { ServerTypeOptions } from './nestjs-bufconnect.interface';
1212
import { addServicesToRouter, createServiceHandlersMap } from './util';
1313

1414
/**
15-
* A custom transport strategy for NestJS microservices that integrates with the '@bufbuild/connect-es' package.
15+
* A custom transport strategy for NestJS microservices that integrates with the '@connectrpc/connect-es' package.
1616
*
1717
* @remarks
1818
* This class extends the `Server` class provided by NestJS and implements the `CustomTransportStrategy` interface.

packages/nestjs-bufconnect/src/lib/server/server.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ConnectRouter } from '@bufbuild/connect';
1+
import { ConnectRouter } from '@connectrpc/connect';
22
import * as selfsigned from 'selfsigned';
33

44
import * as https from 'https';

packages/nestjs-bufconnect/src/lib/server/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as http from 'http';
22
import * as https from 'https';
33
import * as http2 from 'http2';
4-
import { ConnectRouter } from '@bufbuild/connect';
5-
import { connectNodeAdapter } from '@bufbuild/connect-node';
4+
import { ConnectRouter } from '@connectrpc/connect';
5+
import { connectNodeAdapter } from '@connectrpc/connect-node';
66
import {
77
Http2InsecureOptions,
88
Http2Options,

packages/nestjs-bufconnect/src/lib/util/router.util.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ConnectRouter, createConnectRouter } from '@bufbuild/connect';
1+
import { ConnectRouter, createConnectRouter } from '@connectrpc/connect';
22
import { MessageHandler } from '@nestjs/microservices';
33
import { MethodType } from '../nestjs-bufconnect.interface';
44
import { CustomMetadataStore } from '../nestjs-bufconnect.provider';

packages/nestjs-bufconnect/src/lib/util/router.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ConnectRouter, ServiceImpl } from '@bufbuild/connect';
1+
import { ConnectRouter, ServiceImpl } from '@connectrpc/connect';
22
import { ServiceType } from '@bufbuild/protobuf';
33
import { MessageHandler } from '@nestjs/microservices';
44
import { lastValueFrom, Observable } from 'rxjs';

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)