Skip to content

Releases: spheronFdn/sdk

storage: v1.0.4

27 Feb 10:01
21f3528
Compare
Choose a tag to compare

Fixes

  • Fixed the Spheron logo in the README.md.

storage: v1.0.3

22 Feb 09:30
667831d
Compare
Choose a tag to compare

Improvements

  • Improved the README.md.

storage: v1.0.2

16 Feb 11:16
32b97f9
Compare
Choose a tag to compare

Improvements

  • Added optional parameters onUploadInitiated and onChunkUploaded to the upload function.

    • The onUploadInitiated is a callback function that has one parameter, uploadId and will be called after the upload has been initiated.
    • The onChunkUploaded is a callback function that has two parameters. The callback is called each time a chunk is uploaded to the service. The first parameter uploadedSize represent the uploaded size of the chunk in Bytes, and the second parameter totalSize represent the total size of the upload.
  • Added code-of-conduct.md, contribution-guidelines.md, support.md and a README.md on the monorepo level.

storage: v1.0.1

14 Feb 15:24
b0a219b
Compare
Choose a tag to compare

Improvments

  • Added a description, author and keywords to the package.json.

Fixes

  • Fixed a couple of typos in README.md.

storage: v1.0.0

12 Feb 12:41
7c9bf43
Compare
Choose a tag to compare

Feature

Created a package named @spheron/storage. This package provides support for uploading files and directories to a specified protocol.

  • The @spheron/storage package exports a class SpheronClient, which takes a configuration object in its constructor with one property token.
  • SpheronClient has one method, upload(filePath, configuration), which takes the file or directory from the filePath, chunks it into multiple payloads, and uploads them in parallel.
    • filePath - parameter is the path to the file or directory that is being uploaded.
    • configuration object has two properties:
      • protocol - the protocol on which the file or directory should be uploaded. Valid values are [ ARWEAVE, IPFS, FILECOIN].
      • name - the name of the bucket for which the data should be uploaded.
    • The response of the upload function is an object with the parameters:
      • uploadId - the id of the upload
      • bucketId - the id of the bucket
      • protocolLink - is the protocol link of the upload
      • dynamicLinks - are domains that you have set up for your bucket. When you upload new data to the same bucket, the domains will point to the new uploaded data.