chore(release): prepare version 0.6.0

Also improve the release procedure.
development
Thomas Bouffard 2023-12-22 08:11:34 +01:00
parent 63f002c263
commit 7544da2da3
5 changed files with 23 additions and 15 deletions

View File

@ -1,6 +1,8 @@
# `maxGraph` Change Log
# UNRELEASED
## 0.6.0
Release date: `2023-12-22`
**Breaking Changes**
- Codecs supplied by `maxGraph` are no longer registered by default. They **MUST** be registered before performing an `encode` or `decode`.
@ -11,6 +13,8 @@ You can use one of the following functions to register codecs:
To serialize the `maxGraph` model, you can use the `ModelXmlSerializer` class, which registers codecs under the hood.
For more details, see the [0.6.0 Changelog](https://github.com/maxGraph/maxGraph/releases/tag/v0.6.0) on the GitHub release page.
## 0.5.0
Release date: `2023-12-07`

2
package-lock.json generated
View File

@ -24967,7 +24967,7 @@
},
"packages/core": {
"name": "@maxgraph/core",
"version": "0.5.0",
"version": "0.6.0",
"license": "Apache-2.0",
"devDependencies": {
"jest": "^29.3.1",

View File

@ -2,7 +2,7 @@
"name": "@maxgraph/core",
"license": "Apache-2.0",
"private": false,
"version": "0.5.0",
"version": "0.6.0",
"description": "maxGraph is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.",
"keywords": [
"browser",

View File

@ -18,9 +18,9 @@ limitations under the License.
class Client {
/**
* Contains the current version of the maxGraph library.
* The version of the `maxGraph` library.
*/
static VERSION = '0.5.0';
static VERSION = '0.6.0';
/**
* Base path for all URLs in the core without trailing slash.

View File

@ -29,25 +29,29 @@ Changes in the source code
- Update the `package-lock.json` file by running npm install at the root of the repository. It should only change the version of `@maxgraph/core`.
- Update the `CHANGELOG` file to list the major changes included in the new version. Be generic and add a
link to the future GitHub release that will contain detailed release notes, as shown below.
```markdown
```
For more details, see the [0.1.0 Changelog](https://github.com/maxGraph/maxGraph/releases/tag/v0.1.0) on
the GitHub release page.
```
- Make a single commit that includes the changes described above
- use the following template for the commit message: `chore(release): prepare version 0.2.0`
- push the changes
- The default branch is protected by a GitHub ruleset and prevent to push directly to the branch
- Update the ruleset and add a [bypass permission](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/creating-rulesets-for-a-repository#granting-bypass-permissions-for-your-ruleset) for your account
- Run the git push command
- Update the ruleset to remove the bypass permission
Create a git tag, prefixing the version with a `v`. For example, if the version is 0.2.0, run
- Use the following template for the commit message: `chore(release): prepare version 0.2.0`
- Push the changes
- The default branch is protected by a GitHub ruleset that prevents direct pushing to the branch.
- Update the ruleset and add a [bypass permission](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/creating-rulesets-for-a-repository#granting-bypass-permissions-for-your-ruleset) for your account.
- Run the git push command.
- Update the ruleset to remove the bypass permission.
- Create a git tag, prefixing the version with a `v`. For example, if the version is 0.2.0, run:
```
git fetch --tags
git tag v0.2.0
git push origin v0.2.0
```
- Push the tag
- As for the default branch, tags are protected by a GitHub ruleset that prevents direct pushing tags.
- Update the ruleset and add a [bypass permission](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/creating-rulesets-for-a-repository#granting-bypass-permissions-for-your-ruleset) for your account.
- Run the git tag push, for example `git push origin v0.2.0`
- Update the ruleset to remove the bypass permission.
## Publish the npm package