-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat!: A few things to make egress work #7
Conversation
We don't need to know the DID's key, just the DID itself. Therefore, we should take only the DID. Otherwise, code which wants to pass in a Space but only has the (string) DID must parse it into a full `Principal` first.
Can you elaborate on the fetch related change? I don't follow. What is the issue and why does changing it to this help? |
@alanshaw Honestly, I don't totally understand the mechanics, but the upshot is that you end up with a |
It sounds like a problem specific to cloudflare workers and I'd be inclined to move the solution over there, as in leave the option the same here but in cloudflare workers pass |
Yeah, I buy that. |
🤖 I have created a release *beep* *boop* --- ## [2.0.0](v1.1.3...v2.0.0) (2024-11-29) ### ⚠ BREAKING CHANGES * A few things to make egress work ([#7](#7)) * Match with `DID`s, not `Principal`s ### Features * A few things to make egress work ([#7](#7)) ([aabacb9](aabacb9)) * Match with `DID`s, not `Principal`s ([674d22f](674d22f)) ### Bug Fixes * Make completely sure `fetch` works ([6bf83ac](6bf83ac)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Part of storacha/project-tracking#140
DID
s, notPrincipal
s: We don't need to know the DID's key, just the DID itself. Therefore, we should take only the DID. Otherwise, code which wants to pass in a Space but only has the (string) DID must parse it into a fullPrincipal
first.fetch
works: Wrangler does weird things with proxies that make.bind()
not sufficient.CAR.code
rather than magic number: Only because I read this line and wasn't sure which code it was without looking it up.