Skip to content

Commit df3ce58

Browse files
committed
Merge branch 'compact-summary' of https://github.com/shrirajpawar4/filecoin-pin into compact-summary
2 parents 83c3397 + 92c9bf3 commit df3ce58

18 files changed

Lines changed: 382 additions & 240 deletions

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@
127127
"@chainsafe/libp2p-noise": "^17.0.0",
128128
"@chainsafe/libp2p-yamux": "^8.0.1",
129129
"@clack/prompts": "^1.0.1",
130-
"@filoz/synapse-core": "^0.5.2",
131-
"@filoz/synapse-sdk": "^0.41.0",
130+
"@filoz/synapse-core": "^0.7.0",
131+
"@filoz/synapse-sdk": "^1.0.1",
132132
"@helia/block-brokers": "^5.1.3",
133133
"@helia/interface": "^6.2.1",
134134
"@helia/routers": "^5.1.1",

pnpm-lock.yaml

Lines changed: 66 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release-please-config.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
".": {
44
"release-type": "node",
55
"changelog-path": "CHANGELOG.md",
6-
"bump-minor-pre-major": true,
7-
"bump-patch-for-minor-pre-major": true,
6+
"bump-minor-pre-major": false,
7+
"bump-patch-for-minor-pre-major": false,
88
"draft": false,
99
"prerelease": false,
1010
"include-v-in-tag": true,
1111
"include-component-in-tag": false,
12-
"always-bump-patch": true,
1312
"pull-request-header": "📦 Release Preparation",
1413
"pull-request-footer": "\n\n## 🚀 How to Release\n\n1. **Review** the changelog and version bump in this PR\n2. **Merge this PR** to trigger the release\n3. After merging, the workflow will:\n - Create a GitHub release with tag `{{version}}`\n - Publish to npm automatically\n\n⚠️ **Note**: The release has NOT been created yet. It will only be created after you merge this PR.",
1514
"bootstrap-sha": "70e3c175e69c54fe5a503bfbb34f4a68f6d646fe",

src/core/data-set/get-data-set-pieces.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
import { getActivePieces, getScheduledRemovals } from '@filoz/synapse-core/pdp-verifier'
10-
import { getSizeFromPieceCID } from '@filoz/synapse-core/piece'
10+
import { from as pieceFromCID } from '@filoz/synapse-core/piece'
1111
import { getDataSet as getProviderDataSet } from '@filoz/synapse-core/sp'
1212
import { getAllPieceMetadata } from '@filoz/synapse-core/warm-storage'
1313
import { type DataSetPieceData, METADATA_KEYS, type Synapse } from '@filoz/synapse-sdk'
@@ -100,7 +100,7 @@ export async function getDataSetPieces(
100100
}
101101

102102
try {
103-
pieceInfo.size = getSizeFromPieceCID(piece.cid)
103+
pieceInfo.size = pieceFromCID(piece.cid).size
104104
} catch (error) {
105105
logger?.warn(
106106
{ pieceId: piece.id.toString(), pieceCid: piece.cid.toString(), error },
@@ -124,7 +124,7 @@ export async function getDataSetPieces(
124124
status: PieceStatus.OFFCHAIN_ORPHANED,
125125
}
126126
try {
127-
pieceInfo.size = getSizeFromPieceCID(providerPiece.pieceCid)
127+
pieceInfo.size = pieceFromCID(providerPiece.pieceCid).size
128128
} catch {
129129
// size calculation is best-effort
130130
}

0 commit comments

Comments
 (0)