Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Gdgt 3238 release sdk v2 canary1 (#82733)

Jakub Chodorowicze49c2e60afaf
diff --git a/enterprise/frontend/src/custom-viz/dev.md b/enterprise/frontend/src/custom-viz/dev.md
index fa3eda3021d..b15c1cf72b8 100644
--- a/enterprise/frontend/src/custom-viz/dev.md
+++ b/enterprise/frontend/src/custom-viz/dev.md
@@ -62,17 +62,23 @@ Convention:
```bash
cd enterprise/frontend/src/custom-viz
- # canary → next canary (e.g. 0.0.1-canary.17 → 0.0.1-canary.18)
+ # canary → next canary (e.g. 2.0.0-canary.0 → 2.0.0-canary.1)
npm version prerelease --preid=canary --no-git-tag-version
- # canary → stable patch (e.g. 0.0.1-canary.17 → 0.0.1)
- # or stable → next patch (e.g. 0.0.1 → 0.0.2). Use minor/major as needed.
+ # canary → stable patch (e.g. 2.0.0-canary.1 → 2.0.0)
+ # or stable → next patch (e.g. 2.0.0 → 2.0.1). Use minor/major as needed.
npm version patch --no-git-tag-version
- # stable → first canary of next patch (e.g. 0.0.1 → 0.0.2-canary.0)
+ # stable → first canary of next patch (e.g. 2.0.0 → 2.0.1-canary.0)
npm version prerelease --preid=canary --no-git-tag-version
+
+ # stable → first canary of next minor/major (e.g. 2.0.0 → 2.1.0-canary.0 / 3.0.0-canary.0)
+ npm version preminor --preid=canary --no-git-tag-version
+ npm version premajor --preid=canary --no-git-tag-version
```
+ Prefer `npm version` over editing the field by hand — it keeps the version in one of the two accepted shapes and picks the right component to bump.
+
`--no-git-tag-version` stops npm from making a commit or git tag — the release workflow creates the git tag after the version-bump PR lands. The package is bun-managed (no `package-lock.json`), so `npm version` only edits `package.json`.
For a stable release, add a section for the new version to [CHANGELOG.md](CHANGELOG.md) in the same PR. The changelog is maintained by hand. Canary releases don't get changelog sections.
diff --git a/enterprise/frontend/src/custom-viz/package.json b/enterprise/frontend/src/custom-viz/package.json
index 2874a953ecb..f24cf442072 100644
--- a/enterprise/frontend/src/custom-viz/package.json
+++ b/enterprise/frontend/src/custom-viz/package.json
@@ -1,6 +1,6 @@
{
"name": "@metabase/custom-viz",
- "version": "2.0.0-canary.0",
+ "version": "2.0.0-canary.1",
"description": "Creating custom visualizations for Metabase",
"type": "module",
"bin": {