Skip to content

SDK v7.1.0

Latest

Choose a tag to compare

@andrewjaykeller andrewjaykeller released this 12 Apr 01:50
· 11 commits to master since this release

@neurosity/sdk v7.1.0

New Features

Recording API

  • neurosity.record({ label, duration }) β€” one-line fixed-duration brainwave recording
  • neurosity.startRecording({ label, maxDuration }) β€” reactive recording handle with:
    • elapsed$ β€” Observable of elapsed ms (~1Hz) for progress UI
    • stop() β€” complete and save the recording
    • cancel() β€” discard without saving
    • result β€” Promise that resolves when recording ends
  • Recordings are resilient to network outages (saved locally, auto-uploaded on reconnect)

Signal Quality V2

  • neurosity.signalQualityV2() β€” normalized 0-1 scores per channel with overall score
  • Type aligned with @neurosity/metrics package (includes standardDeviation, spectrumSlope, status)

Security Fixes

  • Update axios 1.6β†’1.15 (fixes critical SSRF vulnerability)
  • Replace lite-server with serve (removes 15 transitive vulns)
  • Update @rollup/plugin-terser and rollup (fixes high serialize-javascript)
  • 0 vulnerabilities (was 37 including 3 critical)

Build Fixes

  • Fix Node 22 build crash (replace rollup-plugin-dts with tsc --emitDeclarationOnly)
  • Fix jest moduleFileExtensions for .ts/.js coexistence

New Types

  • RecordingOptions, StartRecordingOptions, RecordingResult, RecordingHandle
  • SignalQualityV2, SignalStatus

Tests

  • 28 new tests for recording and signalQualityV2
  • 132 total tests passing