@magmacrunch/adenosine-audio 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -3
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -33,17 +33,26 @@ itself off.
33
33
 
34
34
  ## Without a bundler
35
35
 
36
+ Straight from a CDN — no npm, no build step:
37
+
36
38
  ```html
37
- <script src="adenosine-audio.js"></script>
38
- <script>AdAudio.init({ music: { url: 'theme.ogg' } });</script>
39
+ <script src="https://cdn.jsdelivr.net/npm/@magmacrunch/adenosine-audio@0.2/dist/index.global.js"></script>
39
40
  ```
40
41
 
41
- The IIFE build is `dist/index.global.js` and exposes `window.AdAudio`.
42
+ The IIFE build exposes `window.AdAudio`. The version is pinned to a minor here on purpose:
43
+ an unpinned URL follows `latest` and will cross a major without warning.
44
+
45
+ Installed from npm instead, the same file is `dist/index.global.js`.
42
46
 
43
47
  ## Full API
44
48
 
45
49
  [`API.md`](API.md) documents every export, with parameters and return shapes.
46
50
 
51
+ ## Module format
52
+
53
+ ESM only. The `exports` map declares no `require` condition, so this cannot be
54
+ `require()`d from CommonJS — use `import`, or the IIFE build above.
55
+
47
56
  ## License
48
57
 
49
58
  [Apache-2.0](LICENSE) — Copyright 2026 Magma Crunch Media.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magmacrunch/adenosine-audio",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "description": "Web Audio API engine for game music and sound effects",
6
6
  "license": "Apache-2.0",
@@ -47,5 +47,6 @@
47
47
  "tsup": "^8.5.1",
48
48
  "typescript": "^7.0.2",
49
49
  "vitest": "^3.2.1"
50
- }
50
+ },
51
+ "sideEffects": false
51
52
  }