Skip to content

Commit

Permalink
Feature / Web bindings update (#443)
Browse files Browse the repository at this point in the history
* Update to the latest version of protobuf.js

* Use protobuf null semantics to build the web API bindings
  • Loading branch information
Martin Traverse authored Aug 21, 2024
1 parent b5eb86a commit 4da51d2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion tracdap-api/packages/web/api_builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const pbjsArgs = [
"--wrap", "./wrapper.js",
"--root", "tracdap",
"--force-number", // Use native JavaScript numbers for numeric types
"--null-defaults", // Set optional fields to null if they are not present
"--null-semantics", // Make nullability in TS / JSDoc respect optional semantics
"--path", './build',
"--out", jsOutFile
];
Expand Down
29 changes: 14 additions & 15 deletions tracdap-api/packages/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tracdap-api/packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"main": "tracdap.js",
"dependencies": {
"grpc-web": "~1.5.0",
"protobufjs": "~7.3.2"
"protobufjs": "~7.3.3"
},
"devDependencies": {
"protobufjs-cli": "~1.1.2",
"protobufjs-cli": "~1.1.3",
"license-checker-rseidelsohn": "~4.1.1",
"owasp-dependency-check": "~0.0.23",
"node-fetch": "^3.3.2"
Expand Down

0 comments on commit 4da51d2

Please sign in to comment.