Skip to content

Commit

Permalink
Use @bufbuild (status-im#337)
Browse files Browse the repository at this point in the history
* remove old `communities.proto`

* fix `protos` npm script

* apply `protos` changes overwriting `Record<>` patches

* update proto files

* regenerate files

* update `protons*` packages

* regen files

* use `protons` generate communities

* add `@bufbuild*` packages

* update `buf` yaml files

* generate `@bufbuild` files

* use `@bufbuild` files

* format

* remove `protobufjs`

* remove `protons`

* resolve build errors

* fix image content type
  • Loading branch information
felicio authored Feb 21, 2023
1 parent 587a078 commit 942146d
Show file tree
Hide file tree
Showing 52 changed files with 3,533 additions and 8,816 deletions.
10 changes: 5 additions & 5 deletions packages/status-js/buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: v1beta1

version: v1
plugins:
- name: ts_proto
out: ./src/proto
opt: grpc_js,esModuleInterop=true
- name: es
path: ./node_modules/.bin/protoc-gen-es
opt: target=ts
out: ./src/protos
11 changes: 6 additions & 5 deletions packages/status-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,19 @@
"typegen": "tsc --noEmit false --emitDeclarationOnly || true",
"lint": "eslint src",
"format": "prettier --write src",
"protos": "protons protos/*.proto",
"protos:list": "buf ls-files src/protos",
"protos:lint": "buf lint src/protos",
"protos": "buf generate src/protos",
"clean": "rm -rf dist node_modules .turbo"
},
"dependencies": {
"@bufbuild/protobuf": "^1.0.0",
"ethereum-cryptography": "^1.0.3",
"js-waku": "^0.30.0",
"long": "^5.2.0",
"protobufjs": "^6.11.3",
"protons-runtime": "^1.0.4"
"long": "^5.2.0"
},
"devDependencies": {
"protons": "^3.0.4"
"@bufbuild/protoc-gen-es": "^1.0.0"
},
"files": [
"dist/",
Expand Down
80 changes: 0 additions & 80 deletions packages/status-js/proto/status/v1/communities.proto

This file was deleted.

88 changes: 0 additions & 88 deletions packages/status-js/proto/status/v1/protocol_message.proto

This file was deleted.

Loading

0 comments on commit 942146d

Please sign in to comment.