Skip to content

Commit 1edab04

Browse files
authored
Add connectrpc/query-es v2.0.0 (#1598)
1 parent 3424e6d commit 1edab04

File tree

8 files changed

+596
-2
lines changed

8 files changed

+596
-2
lines changed

plugins/connectrpc/query-es/v1.4.2/buf.plugin.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: buf.build/connectrpc/query-es
33
plugin_version: v1.4.2
44
source_url: https://github.com/connectrpc/connect-query-es
55
integration_guide_url: https://connectrpc.com/docs/web/query/getting-started
6-
description: Generates client stubs for calling Connect services with TanStack Query. This plugin is for Connect-ES v1. For Connect-ES v2, you'll only need the bufbuild/es plugin.
6+
description: Generates client stubs for calling Connect services with TanStack Query.
77
deps:
88
- plugin: buf.build/bufbuild/es:v1.10.0
99
output_languages:
@@ -20,4 +20,3 @@ registry:
2020
version: ^v1.10.0
2121
spdx_license_id: Apache-2.0
2222
license_url: https://github.com/connectrpc/connect-query-es/blob/v1.4.2/LICENSE
23-
deprecated: true
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!Dockerfile
3+
!package*.json
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# syntax=docker/dockerfile:1.10
2+
FROM node:22.11.0-bookworm AS build
3+
WORKDIR /app
4+
COPY --link package*.json .
5+
RUN npm ci \
6+
&& find node_modules/typescript ! -name 'typescript.js' ! -name 'package.json' -type f -exec rm -f {} + \
7+
&& find node_modules/typescript -depth -type d -empty -delete \
8+
&& ./node_modules/.bin/esbuild ./node_modules/.bin/protoc-gen-connect-query --bundle --external:typescript --platform=node --outfile=protoc-gen-connect-query.js
9+
10+
FROM gcr.io/distroless/nodejs22-debian12:latest@sha256:c218f62198d07fc67e36fff5639985f29b1bdcf04a601c1d23c0ab1121f55f0b AS node
11+
12+
FROM gcr.io/distroless/cc-debian12:latest@sha256:2fb69596e692931f909c4c69ab09e50608959eaf8898c44fa64db741a23588b0 AS base
13+
14+
FROM scratch
15+
COPY --link --from=base / /
16+
COPY --link --from=node --chmod=0755 /nodejs/bin/node /nodejs/bin/node
17+
COPY --link --from=build --chmod=0755 /app/protoc-gen-connect-query.js /app/protoc-gen-connect-query.js
18+
COPY --link --from=build /app/node_modules/typescript /app/node_modules/typescript
19+
USER nobody
20+
ENTRYPOINT ["/nodejs/bin/node"]
21+
CMD [ "/app/protoc-gen-connect-query.js" ]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: v1
2+
name: buf.build/connectrpc/query-es
3+
plugin_version: v2.0.0
4+
source_url: https://github.com/connectrpc/connect-query-es
5+
integration_guide_url: https://connectrpc.com/docs/web/query/getting-started
6+
description: Generates stubs for calling Connect RPCs with TanStack Query.
7+
deps:
8+
- plugin: buf.build/bufbuild/es:v2.2.2
9+
output_languages:
10+
- javascript
11+
- typescript
12+
registry:
13+
npm:
14+
import_style: module
15+
rewrite_import_path_suffix: connectquery.js
16+
deps:
17+
- package: '@connectrpc/connect-query'
18+
version: ^2.0.0
19+
- package: '@bufbuild/protobuf'
20+
version: ^2.2.2
21+
spdx_license_id: Apache-2.0
22+
license_url: https://github.com/connectrpc/connect-query-es/blob/v2.0.0/LICENSE

0 commit comments

Comments
 (0)