@flare-engine/audio 0.4.1 → 0.4.3

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 +3 -1
  2. package/package.json +6 -1
package/README.md CHANGED
@@ -8,7 +8,9 @@ Web-Audio-shaped runtime audio — `AudioManager` (init / suspend / resume), `SF
8
8
  bun add @flare-engine/audio
9
9
  ```
10
10
 
11
- Native: pair with `react-native-audio-api` (Web Audio API on native).
11
+ Native: pair with `react-native-audio-api` (Web Audio API on native). It is an optional peer, so
12
+ install it yourself in an app that plays audio on native (`bun add react-native-audio-api`); the
13
+ package never imports it. On web, the browser's `AudioContext` needs nothing installed.
12
14
 
13
15
  ## Usage
14
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flare-engine/audio",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "AudioManager, SFX pool, music crossfade",
5
5
  "keywords": ["flare-engine", "audio", "sfx", "music"],
6
6
  "license": "Apache-2.0",
@@ -39,6 +39,11 @@
39
39
  "peerDependencies": {
40
40
  "react-native-audio-api": ">=0.3.0"
41
41
  },
42
+ "peerDependenciesMeta": {
43
+ "react-native-audio-api": {
44
+ "optional": true
45
+ }
46
+ },
42
47
  "engines": {
43
48
  "node": ">=20"
44
49
  },