Skip to content

Commit 8876799

Browse files
chore: version packages
1 parent 31d7af5 commit 8876799

5 files changed

Lines changed: 21 additions & 12 deletions

File tree

.changeset/fix-package-types.md

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

packages/sonics/CHANGELOG.md

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

3+
## 0.1.1
4+
5+
### Patch Changes
6+
7+
- 845572b: Packaging fixes for correct types + tree-shaking:
8+
9+
- Split the `exports` `types` per condition (`import``.d.mts`, `require``.d.ts`) so ESM consumers get ESM-interpreted types.
10+
- 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).
11+
- 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`.
12+
- Add `type`/`engines` fields. Verified with `publint` and `are-the-types-wrong`.
13+
314
## 0.1.0
415

516
### 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.1.1",
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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# consume-tests
2+
3+
## 0.0.1
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [845572b]
8+
- sonics@0.1.1

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)