Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Latest commit

 

History

History
127 lines (93 loc) · 7.36 KB

RELEASE.md

File metadata and controls

127 lines (93 loc) · 7.36 KB

web3.js Release Guidelines

Version Number Definition

The web3.js project follows the semver 2.0.0 specification.

Major

The major version has to be increased as soon as a breaking change is introduced. The definition of a breaking change is anything that requires a depending project to update their code base, build pipeline or tests.

Minor

The minor is increased as soon as new smaller features do get introduced. A minor release will not affect any depending project. Such a release only introduces smaller enhancements and features a project could use.

Patch

A patch release only contains required bug fixes with a low risk to impact depending project.

Further details about versioning can be found in the semver 2.0.0 specification we follow.

Release Process Rules

Major

  1. The release should get released as an RC version on the specified track below.
  2. The minor RC version stays released for a month for testing purposes.
  3. During release review, the code is frozen unless new changes are proposed, approved and merged.
    1. Changes should trigger a new RC release and set the release clock back a week so reviewers have the time they need to test new changes.
  4. The project lead should manually test the RC against a Node project and the published minified bundle in a browser context. An external reviewer should verify they have done the same.

Minor

The minor release inherits the rules from the major release but has a smaller testing phase of one week and the release clock will be set back 2 days on a change of the published code.

Patch

Since November 2019, Web3 has been following the minor rules for patch as well, to help establish a series of non-breaking releases.

Prereleases

Release Candidate

A release candidate gets published on the rc track and is no longer under active development. A release candidate gets released with the version number defined in the semver 2.0.0 specification specification.

Beta Release

A beta release gets published on the beta track and is under active developemnt. The version number of the beta release gets defined as specified in the semver 2.0.0 document.

Long Term Support (LTS)

Note: This section has not yet been decided and so for now is purely informative.

To provide safety over longer periods, it is important to have versions tagged as LTS.

Release Status Initial Release LTS Start End-of-Life
1.x LTS 24. Jul. 2017 23. Jul. 2019 TBD
2.x Alpha Preview 13. Jul. 2019 TBD TBD

Deprecation Rules

Because breaking changes are always happening during the development of a project it is required to define rules on how we inform depending projects about coming changes with enough time to react. This doesn't mean that we plan to introduce breaking changes but sometimes they are required.

  1. Deprecations will be announced in our CHANGELOG and in the description of a release.
  2. Deprecated functionalities should be marked in the developer documentation, function documentation, and the related types as deprecated.
  3. A deprecated functionality stays deprecated for the next X (TBD) increases of the minor version.

web3.js Release Process

The following describes the steps required to release a new version of web3.js. It is followed to adhere to community standards and expectations.

Release Candidate (RC) Release Procedure

  1. Create a GitHub draft release.
    1. Example - should contain at a minimum: release notes, changelog, any other important notes.
    2. Request review on the draft release from a web3.js contributor (@cgewecke) for completeness, grammar, etc.
  2. Create release branch (e.g. release/1.2.7).
  3. Update and commit CHANGELOG.md.
    1. Move section header [Unreleased] to bottom.
    2. Add next anticipated release version number to bottom (as a placeholder for new changelog entries).
  4. Create release commit and tags e.g. lerna version 1.2.7-rc.0 --no-push
    1. (updates package version numbers, builds minified file (for 1.x), creates release commit and tags.)
  5. Push release branch to origin with tags git push origin release/1.2.7 --follow-tags.
  6. Create release PR as draft (example).
  7. Ensure CI is green / passing.
    1. (spend time here inspecting the CI logs to ensure everything looks valid and results were reported correctly)
  8. Run npm run publish from-package -- --dist-tag rc.
    1. Lerna can sometimes have difficulty with the number of packages we have. If the above command is unsuccessful, for every unpublished package run: lerna publish --scope="package-name" npm dist-tag add <package-name>@<version> rc)
  9. Publish the GitHub release.
  10. A GitHub Webhook should trigger the ReadTheDocs build after the release is published.
    1. (The build may sometimes need to be manually triggered in ReadTheDocs admin panel. If the version does not appear, create a build of a previous version to refresh the list.)
    2. Activate the new version.
  11. Request PR review from key contributors:
    1. Chris from EthereumJS (@cgewecke)
    2. Patricio from Nomic Labs (@alcuadrado)
    3. Michael from Embark (@michaelsbradleyjr)
    4. Nicholas from Truffle (@gnidan)
    5. If touches or affects ENS: Nick Johnson (@Arachnid)
  12. Wait 1 week for community discourse and 2 reviewer approvals.
    1. (if release is an emergency patch, time limit may be reduced relative to severity.)

Formal Release Procedure

  1. Create GitHub draft release from text of rc release.
  2. Checkout release branch (e.g. release/1.2.7).
  3. Create and push release commit and tags: lerna version 1.2.7 --force-publish --no-push
  4. Push release branch to origin with tags git push origin release/1.2.7 --follow-tags.
  5. Publish the GitHub release.
  6. A GitHub Webhook should trigger the ReadTheDocs build after the release is published.
    1. (The build may sometimes need to be manually triggered in ReadTheDocs admin panel. If the version does not appear, create a build of a previous version to refresh the list.)
    2. Activate the new version.
    3. Set the version to default.
  7. Run npm run publish from-package.
  8. Merge release PR.
  9. Share the release announcement on:
    1. (Note: There is a delay on npm between different regions, so all may not see the release immediately.)
    2. Twitter
    3. Gitter
    4. Ethereum JavaScript Community (EJC) Discord
    5. Reddit
    6. Depending on release's significance to certain projects, write to:
      1. Fabio from 0x (@fabioberger)
      2. Santiago from OpenZeppelin (@spalladino)
      3. Pedro from WalletConnect (@pedrouid)
      4. Josh from FunFair (@joshstevens19)
      5. Truffle, Gnosis, Aragon, Embark, Alchemy, Buidler, Remix