This repository was archived by the owner on Mar 29, 2023. It is now read-only.
feat!: consume upload and access client#58
Merged
Conversation
chore: update readme & add typedoc for reference API docs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates
w3up-clientto consume the access-client and upload-client modules. It brings:It exports the following API:
resolves #56
BREAKING CHANGE: The client has been re-written as a wrapper around access-client and upload-client and the API has changed. Migration notes:
client.account()has been removed, useclient.currentSpace()client.exportDelegation()has been removed, useclient.createDelegation()and then callexport()on the returned value and encode the returned blocks as a CAR file using the@ipld/carlibrary.client.identity()has been removed, useclient.agent()+client.currentSpace()+client.delegations()client.importDelegation()has been removed, useclient.addProof()(for general delegations to your agent) orclient.addSpace()(to add a proof and also add the space to your list of spaces).client.insights()has been removed - this was never workingclient.invoke()has been removedclient.list()has been removed, useclient.capability.upload.list()client.makeDelegation()has been renamed and signature has changed, useclient.createDelegation()client.register()has been removed, useclient.registerSpace()client.remove()has been removed, useclient.capability.store.remove()client.removeUpload()has been removed, useclient.capability.upload.remove()client.stat()has been removed, useclient.capability.store.list()client.upload()has been removed, useclient.capability.store.add()client.uploadAdd()has been removed, useclient.capability.upload.add()client.whoami()has been removed, useclient.capability.space.info()