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: add uploadCAR function #329

Merged
merged 3 commits into from
Jan 11, 2023
Merged

feat: add uploadCAR function #329

merged 3 commits into from
Jan 11, 2023

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Jan 6, 2023

The PR adds an uploadCAR function to the client.

It differs from Store.add because it automatically shards the CAR file, calls Store.add for each shard and finally registers an upload (using Upload.add). This is very similar to uploadFile or uploadDirectory except it skips the UnixFS encoding step.

Once merged, I'll propogate this to the https://github.com/web3-storage/w3cli so that @lanzafame can upload BIG CARs and have them automatically sharded.

@alanshaw alanshaw requested a review from vasco-santos January 10, 2023 09:47
Copy link
Contributor

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM

packages/upload-client/README.md Show resolved Hide resolved
Copy link
Contributor

@olizilla olizilla left a comment

Choose a reason for hiding this comment

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

Nice!

@alanshaw alanshaw merged commit 6e40e47 into main Jan 11, 2023
@alanshaw alanshaw deleted the feat/add-upload-car-function branch January 11, 2023 09:35
alanshaw pushed a commit that referenced this pull request Jan 11, 2023
🤖 I have created a release *beep* *boop*
---


##
[5.3.0](upload-client-v5.2.0...upload-client-v5.3.0)
(2023-01-11)


### Features

* add uploadCAR function
([#329](#329))
([6e40e47](6e40e47))
* embedded key resolution
([#312](#312))
([4da91d5](4da91d5))


### Bug Fixes

* better upload-api service types
([#323](#323))
([4cfe312](4cfe312))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
gobengo pushed a commit that referenced this pull request Apr 11, 2023
The PR adds an `uploadCAR` function to the client.

It differs from `Store.add` because it automatically shards the CAR
file, calls `Store.add` for each shard and finally registers an upload
(using `Upload.add`). This is very similar to `uploadFile` or
`uploadDirectory` except it skips the UnixFS encoding step.

Once merged, I'll propogate this to the
https://github.com/web3-storage/w3cli so that @lanzafame can upload BIG
CARs and have them automatically sharded.
gobengo pushed a commit that referenced this pull request Apr 11, 2023
🤖 I have created a release *beep* *boop*
---


##
[5.3.0](upload-client-v5.2.0...upload-client-v5.3.0)
(2023-01-11)


### Features

* add uploadCAR function
([#329](#329))
([23eeed2](23eeed2))
* embedded key resolution
([#312](#312))
([45f367d](45f367d))


### Bug Fixes

* better upload-api service types
([#323](#323))
([640c1ba](640c1ba))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

4 participants