-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore(deps): bump protobufjs
& tape
patch versions. Fix load of .proto
files
#66
chore(deps): bump protobufjs
& tape
patch versions. Fix load of .proto
files
#66
Conversation
eb57d82
to
03b2282
Compare
Bumps the patch-level group with 2 updates: [protobufjs](https://github.com/protobufjs/protobuf.js) and [tape](https://github.com/ljharb/tape). Updates `protobufjs` from 7.2.5 to 7.2.6 - [Release notes](https://github.com/protobufjs/protobuf.js/releases) - [Changelog](https://github.com/protobufjs/protobuf.js/blob/master/CHANGELOG.md) - [Commits](protobufjs/protobuf.js@protobufjs-v7.2.5...protobufjs-v7.2.6) Updates `tape` from 5.7.2 to 5.7.4 - [Changelog](https://github.com/ljharb/tape/blob/master/CHANGELOG.md) - [Commits](tape-testing/tape@v5.7.2...v5.7.4) --- updated-dependencies: - dependency-name: protobufjs dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-level - dependency-name: tape dependency-type: direct:development update-type: version-update:semver-patch dependency-group: patch-level ... Signed-off-by: dependabot[bot] <[email protected]>
03b2282
to
4c2563a
Compare
The error was there from the beginning but it wasn't reported. The latest release surfaced it with the following PR As a summary, when calling
This error was not reported in |
I've added an issue to protobufjs repo protobufjs/protobuf.js#1971 |
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.
Please update the PR/commit title and content to mention the loading change.
|
||
// TODO: for now `proto` files are copied from | ||
// https://github.com/open-telemetry/opentelemetry-proto | ||
// https://github.com/open-telemetry/opentelemetry-proto/releases/tag/v1.0.0 |
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.
Are we really using v1.0.0?
I thought it looked like opentelemetry-js.git was using a pre-1.0.0 tag version of the protos. I've no idea if it matters, however.
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.
It should be compatible but I'll sync up in a follow up PR
path = prefix + path.replace(folder, ''); | ||
} | ||
return path; | ||
}; |
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.
Nice. Was the intent to move away from this hack eventually once we have a process to build/commit a proto.json and load that instead?
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.
yes! I think as part of the process of updating the proto
files we could change the imports to use relative paths until protobufjs/protobuf.js#1971 is fixed
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.
Would it possibly work to add a mostly-empty root.proto file at the top-level dir, load that first, then use its returned root
for loading all the other .proto files?
packages/mockotlpserver/lib/proto.js
Outdated
root.resolvePath = function patchResolvePath(filename) { | ||
let path = Root.prototype.resolvePath.apply(root, arguments); | ||
if (filename) { | ||
const folder = filename.split('/').slice(0, -1).join('/'); |
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.
nit: Woe be the first Windows user. ;)
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.
thanks for the heads up :)
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.
now using path.resolve()
instead of working with strings
protobufjs
& tape
patch versions. Fix load of .proto
files
Bumps the patch-level group with 2 updates: protobufjs and tape.
Updates
protobufjs
from 7.2.5 to 7.2.6Release notes
Sourced from protobufjs's releases.
Changelog
Sourced from protobufjs's changelog.
Commits
2f846fe
chore: release master (#1962)af3ff83
fix: report missing import properly in loadSync (#1960)NOTE: this release includes https://github.com/protobufjs/protobuf.js/pull/1960. The fix surfaced another issue https://github.com/protobufjs/protobuf.js/issues/1971. To be able to load the files there is a change in `proto.js` file that workarounds the issue. The code will be reverted once https://github.com/protobufjs/protobuf.js/issues/1971 is adressed.
Updates
tape
from 5.7.2 to 5.7.4Changelog
Sourced from tape's changelog.
Commits
22befd6
v5.7.46a5df50
[Fix] handle native ESM URLs inat:
1e50cb3
[Deps] updatehas-dynamic-import
56569c3
v5.7.385f593b
[meta] addsideEffects
flag5f831b4
[Refactor]Results
: usethis
instead ofself
f6d30cf
[Refactor]Test
: a more precise checkdc64c08
[Refactor]_assert
: avoid reassigning arguments878a500
[Refactor]Results
createStream
: clean up_push
handler19cfc8f
[Refactor]getHarness
: avoid mutatingopts
, account for only one internal...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major version
will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor version
will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>
will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>
will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>
will remove the ignore condition of the specified dependency and ignore conditions