Skip to content
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: re-export Store implementations from w3up-client #1266

Merged
merged 2 commits into from
Jan 17, 2024
Merged

Conversation

travis
Copy link
Contributor

@travis travis commented Jan 17, 2024

It's useful to be able to use these in code that doesn't want a dependency on access-client.

It's useful to be able to use these in code that doesn't want a dependency on `access-client`.
travis added a commit to storacha/www that referenced this pull request Jan 17, 2024
1) Add missing `importDAG` and `CarReader` imports
2) Use `StoreMemory` in example to avoid annoying `Error: store cannot be used with did:key:z6xyz, stored principal and passed principal must match` error.

I started out trying to do (1) but bumped into the error in (2) after running the test code once. Customers have run into this before and we usually tell them to use `StoreMemory` - I think that's the right thing in this case anyway so this feels like a win!

I'd like to update this one more time once storacha/w3up#1266 is released so we can get rid of the dependency on `@web3-storage/access`.

Fixes #63
Copy link
Member

@alanshaw alanshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add an export to package.json right?

@travis
Copy link
Contributor Author

travis commented Jan 17, 2024

I definitely do 😅 thx!

@travis travis merged commit b3c6b46 into main Jan 17, 2024
3 checks passed
@travis travis deleted the feat/export-store branch January 17, 2024 17:37
travis pushed a commit that referenced this pull request Jan 17, 2024
🤖 I have created a release *beep* *boop*
---


##
[12.1.0](w3up-client-v12.0.0...w3up-client-v12.1.0)
(2024-01-17)


### Features

* add a function to verify and return Abilities.
([#1252](#1252))
([2f026a2](2f026a2))
* re-export Store implementations from w3up-client
([#1266](#1266))
([b3c6b46](b3c6b46))
* strictly require nodejs version
([#1264](#1264))
([bc9f427](bc9f427))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
travis added a commit to storacha/www that referenced this pull request Jan 17, 2024
1) Add missing `importDAG` and `CarReader` imports 
2) Use `StoreMemory` in example to avoid annoying `Error: store cannot
be used with did:key:z6xyz, stored principal and passed principal must
match` error.

I started out trying to do (1) but bumped into the error in (2) after
running the test code once. Customers have run into this before and we
usually tell them to use `StoreMemory` - I think that's the right thing
in this case anyway so this feels like a win!

I'd like to update this one more time once
storacha/w3up#1266 is released so we can get
rid of the dependency on `@web3-storage/access`.

Fixes #63
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants