Skip to content

Commit

Permalink
Pin versions
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Ayers <[email protected]>
  • Loading branch information
smaye81 committed Aug 6, 2024
1 parent 27451b5 commit dc5cea9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docs/node/server-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ with your Connect RPCs. Use the plugin from [@connectrpc/connect-fastify](https:
with Fastify:

```bash
$ npm install fastify @connectrpc/connect @connectrpc/connect-node @connectrpc/connect-fastify
$ npm install fastify @connectrpc/connect@"^1.0.0" @connectrpc/connect-node@"^1.0.0" @connectrpc/connect-fastify@"^1.0.0"
```

```ts
Expand Down Expand Up @@ -101,7 +101,7 @@ using the latest React features. With [@connectrpc/connect-next](https://www.npm
you can serve your Connect RPCs via Next.js API Routes.

```bash
$ npm install next @connectrpc/connect @connectrpc/connect-node @connectrpc/connect-next
$ npm install next @connectrpc/connect@"^1.0.0" @connectrpc/connect-node@"^1.0.0" @connectrpc/connect-next@"^1.0.0"
```

To enable the server plugin, create the file `pages/api/[[...connect]].ts` in your project:
Expand Down Expand Up @@ -143,7 +143,7 @@ popular because of its simplicity. Use the middleware provided by [@connectrpc/c
to add your Connect RPCs to Express:

```bash
$ npm install express @connectrpc/connect @connectrpc/connect-node @connectrpc/connect-express
$ npm install express @connectrpc/connect@"^1.0.0" @connectrpc/connect-node@"^1.0.0" @connectrpc/connect-express@"^1.0.0"
```

```ts
Expand Down
4 changes: 2 additions & 2 deletions docs/web/generating-code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ The code we will generate has three runtime dependencies:
First, let's install `buf`, the plugins and runtime dependencies:

```bash
$ npm install --save-dev @bufbuild/buf @connectrpc/protoc-gen-connect-es @bufbuild/protoc-gen-es@"^1.10.0"
$ npm install @connectrpc/connect @connectrpc/connect-web @bufbuild/protobuf@"^1.10.0"
$ npm install --save-dev @bufbuild/buf @connectrpc/protoc-gen-connect-es@"^1.0.0" @bufbuild/protoc-gen-es@"^1.0.0"
$ npm install @connectrpc/connect@"^1.0.0" @connectrpc/connect-web@"^1.0.0" @bufbuild/protobuf@"^1.0.0"
```

Next, tell Buf to use the two plugins with a new configuration file:
Expand Down
4 changes: 2 additions & 2 deletions docs/web/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ the types we need on the fly:

```bash
$ npm config set @buf:registry https://buf.build/gen/npm/v1
$ npm install @buf/connectrpc_eliza.connectrpc_es @connectrpc/connect @connectrpc/connect-web
$ npm install @buf/connectrpc_eliza.[email protected] @connectrpc/connect@"^v1.0.0" @connectrpc/connect-web@"^v1.0.0"
```

(You can generate code locally if you prefer. We'll explain remote and local
Expand Down Expand Up @@ -241,7 +241,7 @@ We ran the following commands to build the app:
$ npm create vite@latest -- connect-example --template react-ts
$ cd connect-example
$ npm config set @buf:registry https://buf.build/gen/npm/v1
$ npm install @buf/connectrpc_eliza.connectrpc_es @connectrpc/connect @connectrpc/connect-web
$ npm install @buf/connectrpc_eliza.connectrpc_es@1.4.0-20230913231627-233fca715f49.3 @connectrpc/connect@"^1.0.0" @connectrpc/connect-web@"^1.0.0"
$ npm run dev
```

Expand Down
2 changes: 1 addition & 1 deletion docs/web/query.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Connect-Query is a wrapper around [TanStack Query](https://tanstack.com/query) (
### Install

```sh
npm install @connectrpc/connect-query @connectrpc/connect-web
npm install @connectrpc/connect-query@"^1.0.0" @connectrpc/connect-web@"^1.0.0"
```

### Usage
Expand Down

0 comments on commit dc5cea9

Please sign in to comment.