-
Notifications
You must be signed in to change notification settings - Fork 0
add protobuf #167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
add protobuf #167
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,13 +3,17 @@ | |
| "version": "0.1.0", | ||
| "main": "./index.ts", | ||
| "types": "./index.ts", | ||
| "scripts": { | ||
| "test": "tsx ./src/test.ts" | ||
| }, | ||
| "dependencies": { | ||
| "@aws-sdk/client-secrets-manager": "^3.658.1", | ||
| "fp-ts": "^2.16.9", | ||
| "io-ts": "^2.2.22", | ||
| "typescript": "^5.5.3" | ||
| "@bufbuild/protobuf": "^2.6.1", | ||
| "protobufjs": "^7.4.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@faker-js/faker": "^9.0.3" | ||
| "@faker-js/faker": "^9.0.3", | ||
| "ts-proto": "^2.2.5", | ||
| "typescript": "^5.6.3" | ||
| } | ||
|
Comment on lines
9
to
18
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: Short answer: ts-proto v2.x (including v2.2.5) uses @bufbuild/protobuf as the default low‑level runtime (moving away from protobufjs). That means generated encode/decode now depend on @bufbuild/protobuf (e.g. BinaryReader/BinaryWriter from "@bufbuild/protobuf/wire"); if you relied on protobufjs internals you must update code or pin ts‑proto 1.x. [1][2][3] Useful links:
If you want, I can:
🏁 Script executed: # Search for protoTypes.ts and related generated protobuf files
find . -name "*proto*" -type f | grep -E "\.(ts|js)$" | head -20Repository: UCSolarCarTeam/Helios-Telemetry Length of output: 110 🏁 Script executed: # Check if either runtime is imported in the codebase
rg "from ['\"]@bufbuild/protobuf['\"]|from ['\"]protobufjs['\"]|import.*protobufjs|import.*@bufbuild" --type ts --type jsRepository: UCSolarCarTeam/Helios-Telemetry Length of output: 178 🏁 Script executed: # Check the actual dependencies in package.json to understand context
cat packages/shared/package.jsonRepository: UCSolarCarTeam/Helios-Telemetry Length of output: 435 Remove unused 🤖 Prompt for AI Agents |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # Instructions to test | ||
|
|
||
| Ensure you have the protobuf server running on port 8000. You can find additional instructions in the [protobuf server README](https://github.com/UCSolarCarTeam/ML-Telemetry/blob/setup_protobuf/README.md#generate-python-code-from-protobuf) | ||
|
|
||
| To run the tests for the shared package, you can use the following command in the root directory of the repository: | ||
|
|
||
| ```bash | ||
| yarn test | ||
| ``` | ||
|
Comment on lines
1
to
9
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid linking to a moving branch for setup docs; pin to a commit or mirror essentials here. 🤖 Prompt for AI Agents |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs:
types:generatesection should mention prerequisites (protoc, plugin install).Right now it reads like
yarn types:generate“just works”; in practice devs may needprotocinstalled (or a pinned toolchain). Consider adding a one-liner noting required installs / versions.Also applies to: 113-116, 120-125
🤖 Prompt for AI Agents