Skip to content

Commit 6c3dd2a

Browse files
captbaritoneclaude
andcommitted
Update docs, examples, and version for v2.3.0
- Bump package.json and Webamp.VERSION to 2.3.0 - Move changelog Unreleased items into 2.3.0 section - Update "unreleased" references in docs to v2.3.0 - Switch all examples from renderWhenReady to renderInto - Update multipleMilkdropPresets to use stable @^2 instead of @next - Update lazy example to webamp@^2.3.0 - Update release skill with version bump and changelog steps Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d7b0cee commit 6c3dd2a

17 files changed

Lines changed: 63 additions & 115 deletions

File tree

.claude/skills/release/SKILL.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: release
3+
description: Cut a new webamp npm release
4+
---
5+
6+
# Release webamp to npm
7+
8+
## Steps
9+
1. Create and push a git tag: `git tag v{X.Y.Z} && git push origin v{X.Y.Z}`
10+
2. CI (`.github/workflows/ci.yml`) builds, tests, publishes
11+
3. Monitor: `gh run list --limit 3` then `gh run watch <id> --exit-status`
12+
4. Verify: `npm view webamp versions --json | tail -5`
13+
14+
## How it works
15+
- Bump `version` in `packages/webamp/package.json` and `Webamp.VERSION` in `packages/webamp/js/webampLazy.tsx` to match the new version
16+
- Don't bump ani-cursor or winamp-eqf versions — CI sets those from the git tag
17+
- All 3 packages (webamp, ani-cursor, winamp-eqf) get the same version
18+
- Tagged releases publish to `latest`; master pushes publish `0.0.0-next-{sha}` to `next`
19+
- Uses npm provenance (OIDC)
20+
21+
## Post-release
22+
- Update changelog: move "Unreleased" items into a new versioned section, then comment out the Unreleased section (`<!-- ... -->`)
23+
- Update docs (features reference version numbers — replace "unreleased" with the new version)

examples/lazy/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Webamp</title>
88
</head>
99
<body>
10-
<div id="app"></div>
10+
<div id="app" style="height: 100vh; position: relative"></div>
1111
<script type="module" src="/src/main.ts"></script>
1212
</body>
1313
</html>

examples/lazy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
"butterchurn-presets": "3.0.0-beta.4",
1818
"jszip": "^3.10.1",
1919
"music-metadata": "^11.6.0",
20-
"webamp": "^2.2.0"
20+
"webamp": "^2.3.0"
2121
}
2222
}

examples/lazy/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ const webamp = new Webamp({
5454
},
5555
});
5656

57-
webamp.renderWhenReady(document.getElementById("app")!);
57+
webamp.renderInto(document.getElementById("app")!);

examples/minimal/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</head>
77

88
<body>
9-
<div id="app" style="height: 100vh">
10-
<!-- Webamp will attempt to center itself within this div -->
9+
<div id="app" style="height: 100vh; position: relative">
10+
<!-- Webamp will render as a child of this div -->
1111
</div>
1212
<script type="module">
1313
import Webamp from "https://unpkg.com/webamp@^2/butterchurn";
@@ -35,7 +35,7 @@
3535
],
3636
});
3737

38-
webamp.renderWhenReady(document.getElementById("app"));
38+
webamp.renderInto(document.getElementById("app"));
3939
</script>
4040
</body>
4141
</html>

examples/minimalMilkdrop/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</head>
77

88
<body>
9-
<div id="app" style="height: 100vh">
10-
<!-- Webamp will attempt to center itself within this div -->
9+
<div id="app" style="height: 100vh; position: relative">
10+
<!-- Webamp will render as a child of this div -->
1111
</div>
1212
<script type="module">
1313
/**
@@ -31,7 +31,7 @@
3131
},
3232
],
3333
});
34-
webamp.renderWhenReady(document.getElementById("app"));
34+
webamp.renderInto(document.getElementById("app"));
3535
</script>
3636
</body>
3737
</html>

examples/minimalWindowLayout/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</head>
77

88
<body>
9-
<div id="app" style="height: 100vh">
10-
<!-- Webamp will attempt to center itself within this div -->
9+
<div id="app" style="height: 100vh; position: relative">
10+
<!-- Webamp will render as a child of this div -->
1111
</div>
1212
<script type="module">
1313
import Webamp from "https://unpkg.com/webamp@^2";
@@ -34,7 +34,7 @@
3434
});
3535

3636
// Returns a promise indicating when it's done loading.
37-
webamp.renderWhenReady(document.getElementById("app"));
37+
webamp.renderInto(document.getElementById("app"));
3838
</script>
3939
</body>
4040
</html>

examples/multipleMilkdropPresets/index.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
</head>
77

88
<body>
9-
<div id="app" style="height: 100vh">
10-
<!-- Webamp will attempt to center itself within this div -->
9+
<div id="app" style="height: 100vh; position: relative">
10+
<!-- Webamp will render as a child of this div -->
1111
</div>
1212
<script type="module">
13-
// The `requireButterchurnPresets` config option is not yet available in a stable release.
14-
// for now you need to install a pre-release version of Webamp to use it.
15-
import Webamp from "https://unpkg.com/webamp@0.0.0-next-41cfbbb/butterchurn";
13+
import Webamp from "https://unpkg.com/webamp@^2/butterchurn";
1614
const webamp = new Webamp({
1715
initialTracks: [
1816
{
@@ -39,7 +37,7 @@
3937
});
4038

4139
// Returns a promise indicating when it's done loading.
42-
webamp.renderWhenReady(document.getElementById("app"));
40+
webamp.renderInto(document.getElementById("app"));
4341
</script>
4442
</body>
4543
</html>

examples/multipleSkins/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</head>
77

88
<body>
9-
<div id="app" style="height: 100vh">
10-
<!-- Webamp will attempt to center itself within this div -->
9+
<div id="app" style="height: 100vh; position: relative">
10+
<!-- Webamp will render as a child of this div -->
1111
</div>
1212
<script type="module">
1313
import Webamp from "https://unpkg.com/webamp@^2";
@@ -51,7 +51,7 @@
5151
});
5252

5353
// Returns a promise indicating when it's done loading.
54-
webamp.renderWhenReady(document.getElementById("app"));
54+
webamp.renderInto(document.getElementById("app"));
5555
</script>
5656
</body>
5757
</html>

examples/multipleTracks/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</head>
77

88
<body>
9-
<div id="app" style="height: 100vh">
10-
<!-- Webamp will attempt to center itself within this div -->
9+
<div id="app" style="height: 100vh; position: relative">
10+
<!-- Webamp will render as a child of this div -->
1111
</div>
1212
<script type="module">
1313
import Webamp from "https://unpkg.com/webamp@^2";
@@ -56,7 +56,7 @@
5656
});
5757

5858
// Returns a promise indicating when it's done loading.
59-
webamp.renderWhenReady(document.getElementById("app"));
59+
webamp.renderInto(document.getElementById("app"));
6060
</script>
6161
</body>
6262
</html>

0 commit comments

Comments
 (0)