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

chore: release 0.9.0 #321

Merged
merged 2 commits into from
May 20, 2021
Merged

chore: release 0.9.0 #321

merged 2 commits into from
May 20, 2021

Conversation

bee-worker
Copy link
Collaborator

@bee-worker bee-worker commented May 20, 2021

🤖 I have created a release *beep* *boop*

0.9.0 (2021-05-20)

We would like to introduce you to this big release with many changes that follow the Bee's 0.6.0 release and is fully compatible with it. This release contains new features and breaking changes that depend on the new Bee version, so if you have not already read the Bee's release notes do so for a better understanding of changes!

💮 Postage Stamp support

One of the most significant changes in Bee is the support of Postage Stamps (read about them here). They are now required for all "write" operations like uploading files, writing to manifests, or sending PSS messages. You can now create a new postage batch with bee.createPostageBatch() method, but be aware this spends the Bee node's Ethereum and BZZ to create the batch with the on-chain transaction! Use with caution.

const bee = new Bee(...)

const batchId = await bee.createPostageBatch(10, 17) // example values
const reference = await bee.uploadData(batchId, 'Hello world')

📍 Pinning methods simplification

The new pinning API now doesn't distinguish between the underlying data structure, so you simply pin any type of content with one method bee.pin(reference) and unpin with bee.unpin(reference).

↺ Renaming and refactoring

Some endpoints were removed, and some properties renamed. We also used this opportunity to streamline our API. Please check breaking changes!


⚠️ BREAKING CHANGES

  • Removing bee.download*FromCollection method (#280)
  • Removed recursive flag from uploadFilesFromDirectory (#280)
  • Following methods are removed bee.pinFile(), bee.unpinFile(), bee.pinCollection() bee.unpinCollection(), bee.pinData(), bee.unpinData(), bee.pinChunk(), bee.unpinChunk(), bee. getChunkPinningStatus() (#293)
  • Following properties were converted from snake_case to camelCase (#301):
    • BeeDebug.getNodeAddresses(): public_key, pss_public_key
    • BeeDebug.getChequebookAddress(): chequebookaddress
    • BeeDebug.getAllSettlements(): total_received, total_sent

Features

Bug Fixes

  • if there are no postage stamps the getAllPostageBatch should return [] (#319) (82985d3)
  • last cheque peer response property case (#320) (c8f0cea)
  • shape of LastCashoutActionResponse for Bee 0.6.0 (#306) (d637379)
  • use bigint primitive (#287) (6e104dc)

Code Refactoring


This PR was generated with Release Please. See documentation.

@bee-runner
Copy link

bee-runner bot commented May 20, 2021

🚀 Release checklist

Before release

  • Ensure the release works with the intended bee version
  • Verify all the example code works with the release code
  • Verify all user documentation is up to date
  • Have two approval for this PR
  • Write small summary for the release and verify changelog

After release

  • Update API docs
  • Update example's bee-js version

@AuHau AuHau merged commit 7260ee1 into master May 20, 2021
@AuHau AuHau deleted the release-v0.9.0 branch May 20, 2021 16:27
@bee-worker
Copy link
Collaborator Author

🤖 Release is at https://github.com/ethersphere/bee-js/releases/tag/v0.9.0 🌻

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

Successfully merging this pull request may close these issues.

4 participants