Skip to content

Commit

Permalink
refactor!: filecoin capabilities
Browse files Browse the repository at this point in the history
refactor: switch to rust piece CID calculator (#930)

Currently blocked on top level await issue.

---------

Co-authored-by: Irakli Gozalishvili <contact@gozala.io>

feat: add piece CID to car metadata

chore(main): release upload-client 9.4.0 (#935)

:robot: I have created a release *beep* *boop*
---

[9.4.0](upload-client-v9.3.0...upload-client-v9.4.0)
(2023-09-20)

* add piece CID to car metadata
([1e52687](1e52687))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

fix: only aggregate CID in aggregate offer success response

Update packages/capabilities/src/filecoin/aggregator.js

Co-authored-by: Vasco Santos <santos.vasco10@gmail.com>

Update packages/capabilities/src/filecoin/aggregator.js

Co-authored-by: Vasco Santos <santos.vasco10@gmail.com>

Update packages/capabilities/src/filecoin/dealer.js

Co-authored-by: Vasco Santos <santos.vasco10@gmail.com>

Update packages/capabilities/src/types.ts

Co-authored-by: Vasco Santos <santos.vasco10@gmail.com>

Update packages/capabilities/src/types.ts

Co-authored-by: Vasco Santos <santos.vasco10@gmail.com>

fix: add missing ContentNotFound definition for filecoin offer failure

refactor: storefront caps

fix: type errors

fix: add missing filecoin submit success and failure types
  • Loading branch information
Alan Shaw authored and vasco-santos committed Oct 23, 2023
1 parent 329354d commit ae33e09
Show file tree
Hide file tree
Showing 21 changed files with 1,350 additions and 789 deletions.
2 changes: 1 addition & 1 deletion .github/release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"packages/filecoin-client": "1.3.0",
"packages/capabilities": "9.3.0",
"packages/upload-api": "5.6.0",
"packages/upload-client": "9.3.0",
"packages/upload-client": "9.4.0",
"packages/w3up-client": "8.0.3",
"packages/did-mailto": "2.0.1"
}
2 changes: 1 addition & 1 deletion packages/access-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"assert": "^2.0.0",
"hd-scripts": "^4.0.0",
"mocha": "^10.2.0",
"playwright-test": "^8.1.2",
"playwright-test": "^12.3.4",
"sade": "^1.8.1",
"sinon": "^15.0.3",
"typescript": "4.9.5",
Expand Down
22 changes: 21 additions & 1 deletion packages/capabilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,26 @@
"types": "./dist/src/*.d.ts",
"import": "./src/*.js"
},
"./filecoin": {
"types": "./dist/src/filecoin/index.d.ts",
"import": "./src/filecoin/index.js"
},
"./filecoin/storefront": {
"types": "./dist/src/filecoin/storefront.d.ts",
"import": "./src/filecoin/storefront.js"
},
"./filecoin/aggregator": {
"types": "./dist/src/filecoin/aggregator.d.ts",
"import": "./src/filecoin/aggregator.js"
},
"./filecoin/deal-tracker": {
"types": "./dist/src/filecoin/deal-tracker.d.ts",
"import": "./src/filecoin/deal-tracker.js"
},
"./filecoin/dealer": {
"types": "./dist/src/filecoin/dealer.d.ts",
"import": "./src/filecoin/dealer.js"
},
"./types": "./dist/src/types.d.ts"
},
"typesVersions": {
Expand Down Expand Up @@ -69,7 +89,7 @@
"assert": "^2.0.0",
"hd-scripts": "^4.0.0",
"mocha": "^10.2.0",
"playwright-test": "^8.1.2",
"playwright-test": "^12.3.4",
"type-fest": "^3.3.0",
"typescript": "4.9.5",
"watch": "^1.0.2"
Expand Down
4 changes: 4 additions & 0 deletions packages/capabilities/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ import * as Types from '@web3-storage/capabilities/types'
import * as Upload from '@web3-storage/capabilities/upload'
import * as Utils from '@web3-storage/capabilities/utils'
import * as Voucher from '@web3-storage/capabilities/voucher'
import * as Filecoin from '@web3-storage/capabilities/filecoin'
import * as Aggregator from '@web3-storage/capabilities/filecoin/aggregator'
import * as DealTracker from '@web3-storage/capabilities/filecoin/deal-tracker'
import * as Dealer from '@web3-storage/capabilities/filecoin/dealer'

// This package has a "main" entrypoint but we recommend the usage of the specific imports above
```
Expand Down
271 changes: 0 additions & 271 deletions packages/capabilities/src/filecoin.js

This file was deleted.

Loading

0 comments on commit ae33e09

Please sign in to comment.