Skip to content

Commit

Permalink
protobufjs that doesn't generate Long import in .t.ds
Browse files Browse the repository at this point in the history
See apollographql/protobuf.js#7

A future version could fully remove Long support from our fork but we
aren't quite there yet.
  • Loading branch information
glasser committed Apr 29, 2021
1 parent 3415b07 commit 6d3be40
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 30 deletions.
56 changes: 28 additions & 28 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion packages/apollo-reporting-protobuf/package.json
Expand Up @@ -29,6 +29,6 @@
},
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"@apollo/protobufjs": "1.2.0"
"@apollo/protobufjs": "1.2.1"
}
}
3 changes: 2 additions & 1 deletion packages/apollo-reporting-protobuf/src/index.js
Expand Up @@ -3,7 +3,8 @@ const protobufJS = require('@apollo/protobufjs/minimal');

// Remove Long support. Our uint64s tend to be small (less
// than 104 days).
// XXX Just remove this in our fork?
// XXX Just remove this in our fork? We already deleted
// the generation of Long in protobuf.d.ts in the fork.
// https://github.com/protobufjs/protobuf.js/issues/1253
protobufJS.util.Long = undefined;
protobufJS.configure();
Expand Down

0 comments on commit 6d3be40

Please sign in to comment.