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 3.3.0 #535

Merged
merged 3 commits into from
Feb 10, 2022
Merged

chore: release 3.3.0 #535

merged 3 commits into from
Feb 10, 2022

Conversation

bee-worker
Copy link
Collaborator

@bee-worker bee-worker commented Feb 7, 2022

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

3.3.0 (2022-02-09)

This is a smaller update with two main changes.

🧱 EcmaScript Modules support

We plan to migrate our bee-js package to ES Modules (see the issue for more info) when Node v12 will reach its end-of-life (on 30th of April). With this release, we are starting a transition period by supporting both ES Modules and CommonJS builds. Please start migrating your applications to the ESM stack otherwise, you won't be able to upgrade bee-js after we drop support for CommonJS.

❓ Is supported version?

Since we are in a fast-paced environment where Bee's versions can be incompatible with each other, it is important that in your application you check whether the Bee that you connect to has the correct version that you expect and support (through bee-js).

Untill now we had the isSupportedVersion() function that indicated if the Bee node version is not matching the one that bee-js was tested and built against. This implementation has its downside because it is very strict and if for example there is a small Bee's release that patches only something internal and does not touch the API, which means that the bee-js should be compatible, you will still get a false with this check.

Except for Bee's version itself, there are two other versions that version the Bee endpoint's API and the Bee Debug endpoint's API. We have decided to implement methods that do compatibility checks using these versions and hence should be more relaxed towards Bee's small patches but might pose some risk if some change will be unnoticed and API versions not bumped accordingly.

These methods are:

  • BeeDebug.isSupportedExactVersion() - renamed isSupportedVersion which is now deprecated
  • BeeDebug.isSupportedMainApiVersion() which checks compatibility only for the main Bee endpoint
  • BeeDebug.isSupportedDebugApiVersion() which checks compatibility only for the Bee Debug endpoint
  • BeeDebug.isSupportedApiVersion() which checks compatibility for both endpoints

The compatibility is checked using the major versions of the API. If you would like to make your own assertions you can get all the versions (both from Bee itself and the one that bee-js should support) using the method BeeDebug.getVersions()

Features


This PR was generated with Release Please. See documentation.

@bee-runner
Copy link

bee-runner bot commented Feb 7, 2022

🚀 Release checklist

Before release

  • Ensure the release works with the intended bee version
  • Verify all the example code works with the release code
  • Verify Bee JS Docs API update PR passes and contains all needed documentation
  • Have two approval for this PR
  • Write small summary for the release and verify changelog
  • Verify that changes to release PR comment is synchronized to CHANGELOG with manual commit

After release

  • Release new Bee JS Docs version
  • Update example's bee-js version

@bee-worker bee-worker force-pushed the release-v3.3.0 branch 2 times, most recently from f7bfa11 to 18a1b63 Compare February 9, 2022 11:31
@AuHau
Copy link
Contributor

AuHau commented Feb 9, 2022

3.3.0 (2022-02-09)

This is a smaller update with two main changes.

🧱 EcmaScript Modules support

We plan to migrate our bee-js package to ES Modules (see the issue for more info) when Node v12 will reach its end-of-life (on 30th of April). With this release, we are starting a transition period by supporting both ES Modules and CommonJS builds. Please start migrating your applications to the ESM stack otherwise, you won't be able to upgrade bee-js after we drop support for CommonJS.

###❓ Is supported version?

Since we are in a fast-paced environment where Bee's versions can be incompatible with each other, it is important that in your application you check where the Bee that you connect to has the correct version that you expect and support (through bee-js).

Till now we had the isSupportedVersion() function that indicated if the Bee node version is not matching the one that bee-js was tested and built against. This implementation has its downside because it is very strict and if for example there is a small Bee's release that patches only something internal and does not touch the API, which means that the bee-js should be compatible, you will still get a false with this check.

Except for Bee's version itself, there are two other versions that version the Bee endpoint's API and the Bee Debug endpoint's API. We have decided to implement methods that do compatibility checks using these versions and hence should be more relaxed towards Bee's small patches but might pose some risk if some change will be unnoticed and API versions not bumped accordingly.

These methods are:

  • BeeDebug.isSupportedExactVersion() - renamed isSupportedVersion which is now deprecated
  • BeeDebug.isSupportedMainApiVersion() which checks compatibility only for the main Bee endpoint
  • BeeDebug.isSupportedDebugApiVersion() which checks compatibility only for the Bee Debug endpoint
  • BeeDebug.isSupportedApiVersion() which checks compatibility for both endpoints

The compatibility is checked using the major versions of the API. If you would like to make your own assertions you can get all the versions (both from Bee itself and the one that bee-js should support) using the method BeeDebug.getVersions()

Features

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Vojtech Simetka <[email protected]>
@AuHau AuHau merged commit 173faeb into master Feb 10, 2022
@AuHau AuHau deleted the release-v3.3.0 branch February 10, 2022 06:39
@bee-worker
Copy link
Collaborator Author

🤖 Release is at https://github.com/ethersphere/bee-js/releases/tag/v3.3.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.

3 participants