Skip to content

Commit

Permalink
Switch to v2 (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
srikrsna-buf authored Sep 20, 2024
1 parent 8b4cbea commit 68fc42a
Show file tree
Hide file tree
Showing 17 changed files with 702 additions and 1,123 deletions.
1,250 changes: 453 additions & 797 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"devDependencies": {
"@bufbuild/license-header": "^0.0.4",
"@bufbuild/protobuf": "^1.10.0",
"@bufbuild/protobuf": "^2.1.0",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"eslint": "^8.57.0",
Expand Down
10 changes: 4 additions & 6 deletions packages/connect-playwright-example/buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# This template is to generate connect-web artifacts for the Eliza demo.
version: v1
version: v2
plugins:
- name: es
out: src/gen
opt: target=ts
- name: connect-es
- local: protoc-gen-es
out: src/gen
opt: target=ts
inputs:
- module: buf.build/connectrpc/eliza
13 changes: 6 additions & 7 deletions packages/connect-playwright-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@
"scripts": {
"start": "npm run generate && esbuild src/index.tsx --serve=localhost:3000 --servedir=www --outdir=www --bundle",
"lint": "npx tsc --noEmit && eslint --max-warnings 0 .",
"generate": "buf generate buf.build/connectrpc/eliza",
"generate": "buf generate",
"test": "playwright install chromium && playwright test",
"format": "prettier --write --ignore-unknown '.' '!src/gen' '!playwright-report'",
"license-header": "license-header"
},
"license": "ISC",
"devDependencies": {
"@bufbuild/buf": "^1.39.0",
"@bufbuild/protobuf": "^1.10.0",
"@bufbuild/protoc-gen-es": "^1.10.0",
"@connectrpc/connect": "^1.4.0",
"@connectrpc/connect-web": "^1.4.0",
"@connectrpc/protoc-gen-connect-es": "^1.4.0",
"@bufbuild/buf": "^1.42.0",
"@bufbuild/protobuf": "^2.1.0",
"@bufbuild/protoc-gen-es": "^2.1.0",
"@connectrpc/connect": "^2.0.0-alpha.1",
"@connectrpc/connect-web": "^2.0.0-alpha.1",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"esbuild": "^0.23.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/connect-playwright-example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
createGrpcWebTransport,
createConnectTransport,
} from "@connectrpc/connect-web";
import { ElizaService } from "./gen/connectrpc/eliza/v1/eliza_connect.js";
import { ElizaService } from "./gen/connectrpc/eliza/v1/eliza_pb.js";

interface ChatMessage {
text: string;
Expand Down

This file was deleted.

Loading

0 comments on commit 68fc42a

Please sign in to comment.