Skip to content

Commit c204905

Browse files
authored
Merge pull request #2 from peetzweg/changeset-release/main
chore: version packages
2 parents ec8b587 + de7aef8 commit c204905

6 files changed

Lines changed: 32 additions & 23 deletions

File tree

.changeset/fix-package-types.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

.changeset/tidy-moons-repeat.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/sonics/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# sonics
22

3+
## 0.2.0
4+
5+
### Minor Changes
6+
7+
- 380392f: Extend the tick spec so a sound can be more than a struck resonator, and ship the cuelume palette as an add-on kit.
8+
9+
`Tick` gains six optional fields — `attack`, `curve`, `wave`, `filter`, `glideTo`/`glideTime`, and `ring` — and `Sound` gains `shimmer`, a short low-passed feedback delay. Every one of them is optional and defaults to the previous behaviour, so existing specs, encoded strings and presets are unchanged; the built-in presets render bit-identically.
10+
11+
New `register(name, spec)` / `register(kit)` teaches `play()` extra names, and `registered()` lists everything it answers to.
12+
13+
New `sonics/presets` subpath exports `cuelume`: the seventeen interaction sounds designed by Daniel Belyi for [cuelume](https://github.com/Danilaa1/cuelume) (MIT), ported to sonics specs so they can be tweaked in the playground, shared as encoded strings, and baked to WAV. It is a separate entry point, so the core bundle only grows for consumers who import it.
14+
15+
### Patch Changes
16+
17+
- 081fcda: Packaging fixes for correct types + tree-shaking:
18+
19+
- Split the `exports` `types` per condition (`import``.d.mts`, `require``.d.ts`) so ESM consumers get ESM-interpreted types.
20+
- The React bindings now import the core by package name, so an ESM consumer loads the ESM core (one shared `AudioContext`, not a duplicate CJS instance).
21+
- Ship the library ESM **unminified** and mark the default export `/* @__PURE__ */`, so bundlers can tree-shake: `import { play }` now drops unused code like `render`/`toWav`.
22+
- Add `type`/`engines` fields. Verified with `publint` and `are-the-types-wrong`.
23+
324
## 0.1.0
425

526
### Minor Changes

packages/sonics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sonics",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Tiny, dependency-free UI sounds you can feel. Synthesised in the browser with the Web Audio API — no audio files.",
55
"author": "Philip Poloczek",
66
"license": "MIT",

tests/consume/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# consume-tests
2+
3+
## 0.0.1
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [081fcda]
8+
- Updated dependencies [380392f]
9+
- sonics@0.2.0

tests/consume/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "consume-tests",
33
"private": true,
4-
"version": "0.0.0",
4+
"version": "0.0.1",
55
"description": "Smoke-tests that the BUILT `sonics` package resolves and runs under different runtimes/module systems (node + bun, ESM + CJS).",
66
"scripts": {
77
"smoke": "node ./esm.mjs && node ./cjs.cjs"

0 commit comments

Comments
 (0)