@siteed/expo-audio-stream 2.0.0 → 2.0.1

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.
package/CHANGELOG.md CHANGED
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
  ## [Unreleased]
9
9
 
10
10
 
11
+ ## [2.0.1] - 2025-02-27
12
+ ### Changed
13
+ - refactor: update background mode handling for audio stream plugin ([e7e98cc](https://github.com/deeeed/expo-audio-stream/commit/e7e98cc60b7965770dcf25e9ae74cb356e1e7097))
14
+ - chore(expo-audio-stream): release @siteed/expo-audio-stream@2.0.0 ([356d3f4](https://github.com/deeeed/expo-audio-stream/commit/356d3f40ffb66806eeecb86d12bcbe5d60b7eea6))
11
15
  ## [2.0.0] - 2025-02-27
12
16
  ### Changed
13
17
  - feat(playground): Enhance Audio Playground with Improved UX and Sample Audio Loading (#148) ([09d2794](https://github.com/deeeed/expo-audio-stream/commit/09d27940dcffa60e662c828742f4577bca5327f9))
@@ -154,7 +158,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
154
158
  - Feature: Audio features extraction during recording.
155
159
  - Feature: Consistent WAV PCM recording format across all platforms.
156
160
 
157
- [unreleased]: https://github.com/deeeed/expo-audio-stream/compare/@siteed/expo-audio-stream@2.0.0...HEAD
161
+ [unreleased]: https://github.com/deeeed/expo-audio-stream/compare/@siteed/expo-audio-stream@2.0.1...HEAD
162
+ [2.0.1]: https://github.com/deeeed/expo-audio-stream/compare/@siteed/expo-audio-stream@2.0.0...@siteed/expo-audio-stream@2.0.1
158
163
  [2.0.0]: https://github.com/deeeed/expo-audio-stream/compare/@siteed/expo-audio-stream@1.17.0...@siteed/expo-audio-stream@2.0.0
159
164
  [1.17.0]: https://github.com/deeeed/expo-audio-stream/compare/@siteed/expo-audio-stream@1.16.0...@siteed/expo-audio-stream@1.17.0
160
165
  [1.16.0]: https://github.com/deeeed/expo-audio-stream/compare/@siteed/expo-audio-stream@1.15.1...@siteed/expo-audio-stream@1.16.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siteed/expo-audio-stream",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "stream audio crossplatform",
5
5
  "license": "MIT",
6
6
  "main": "build/index.js",
@@ -48,7 +48,12 @@ const withRecordingPermission = (config, props) => {
48
48
  if (options.iosBackgroundModes?.useAudio === true &&
49
49
  enableBackgroundAudio === true &&
50
50
  !existingBackgroundModes.includes('audio')) {
51
- existingBackgroundModes.push('audio');
51
+ // Don't automatically add 'audio' background mode as it's only for playback
52
+ // existingBackgroundModes.push('audio')
53
+ // Instead, ensure processing mode is used for background recording
54
+ if (options.iosBackgroundModes?.useProcessing !== true) {
55
+ console.warn(`${LOG_PREFIX} Warning: Background audio recording requires 'processing' background mode. Please enable 'useProcessing' in iosBackgroundModes.`);
56
+ }
52
57
  }
53
58
  if (options.iosBackgroundModes?.useVoIP === true &&
54
59
  enablePhoneStateHandling === true) {
@@ -90,7 +90,15 @@ const withRecordingPermission: ConfigPlugin<AudioStreamPluginOptions> = (
90
90
  enableBackgroundAudio === true &&
91
91
  !existingBackgroundModes.includes('audio')
92
92
  ) {
93
- existingBackgroundModes.push('audio')
93
+ // Don't automatically add 'audio' background mode as it's only for playback
94
+ // existingBackgroundModes.push('audio')
95
+
96
+ // Instead, ensure processing mode is used for background recording
97
+ if (options.iosBackgroundModes?.useProcessing !== true) {
98
+ console.warn(
99
+ `${LOG_PREFIX} Warning: Background audio recording requires 'processing' background mode. Please enable 'useProcessing' in iosBackgroundModes.`
100
+ )
101
+ }
94
102
  }
95
103
 
96
104
  if (