Repository navigation
chore: version packages - #15
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
October 31, 2026 18:23
f73bf21 to
52d1823
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
react-native-audio-analyzer@4.0.0
Major Changes
e3a7431Thanks @exzos28! - v4: decode once, render many.New API:
analyzeAudio(source, options)decodes a file once, on a background thread with bounded memory, and returnsPeaks: min, max and RMS per bucket asFloat32Arrays. Options:maxBuckets(default 100 000) or an exactframesPerBucket,splitChannels, astart/endrange, cancellation withAbortSignalandonProgress.resample(peaks, bars, { metric, start, end, channel })andresampleMinMax(peaks, bars, options)turn peaks into any number of bars over any time range without decoding again. RMS is weighted by frames; for peaks every bucket belongs to exactly one bar, so a transient is never lost or drawn twice.peaksLevel(peaks, { metric, percentile })computes a reference level over the whole file;normalize/normalizeMinMaxscale values linearly or in decibels against it, so zooming never rescales the waveform.waveformPathbuilds SVG/Skia paths;fitBarscomputes how many bars fit.useWaveform(source, options)React hook: status, progress, cancellation on unmount or source change,barsas a plain array, display errors reported as state, and analysis options kept separate from display options.waveformPresets.chat,.playerand.editor: plain option objects tuned for voice messages, scrubbers and precise views.getAudioInfo(source)returns format, sample rate, channel count and duration.encodePeaks/decodePeaksserialize peaks in a versioned, forward-compatible binary format (8, 16 or 32 bits per value).file://URIs,http(s)://URLs (downloaded and cached),{ uri, headers }orArrayBuffers with encoded audio.load(url, { headers })shares concurrent downloads of the same URL and headers;clearCache()andgetCacheSize(). Headers are never forwarded to another origin on redirects.Breaking changes:
computeAmplitudeis removed. Useresample(await analyzeAudio(source), n)oruseWaveform.scale,sample,robustScale,trimmedScale) are replaced byresample,normalizeandpeaksLevel.load()only acceptshttp:///https://URLs. Files are cached by the full URL in the app's caches directory; non-2xx responses reject and are never cached; interrupted downloads no longer leave truncated files behind. Files cached by v3 are not reused;clearCache()removes them andgetCacheSize()counts them.react-native-nitro-modules^0.37.1.Fixes:
end, it reads to the end of the stream.httpandhttps.cppFlagsdon't apply to C files), which made a 6-minute MP3 take ~10 s instead of ~0.2 s on an emulator; iOS Debug had the same issue.getAudioInforeports the detected codec and which decoder was used.