Repository navigation
Version 0.12.0
What's Changed
Added
AutoPauseScopeandExtractionFormattypes.- The supported values and ranges behind preference validation:
verbosityPresets,languageModes,extractionFormats,autoPauseScopes,segmentationModes,rateRangeConfig,pitchRangeConfig,volumeRangeConfig,pauseDurationRangeConfig(RangeConfig), plusextractionPreferenceKeys. All are frozen.
Changed
- Breaking: requires Node.js 24 or later.
- Breaking: Guided Navigation generation moved to
@readium/guided-navigation.makeGnd,parseMarkup,decodeTextref, the#css(...)/#domrange(...)encoders and decoders, and theGndRole,GndMediaType,GndGenerationOptions,TextrefOptionsandDomRangeJSONtypes are no longer exported from@readium/speech; import them from@readium/guided-navigation. - Breaking:
extractUtterances(),loadGndContent()andcontextualization.paramstake@readium/shared'sGuidedNavigationObjectinstead ofGndObject.GndObject,GndTextandGndDocumentare removed. - Dependencies are no longer bundled into
build/; they're imported fromdependencies, with@readium/shared,@readium/decoratorand@readium/helpersnow as caret ranges (^2.7.0,^1.2.5,^1.2.0) instead of exact versions, and@readium/guided-navigationas^1.0.1, so an app depending on them too shares one copy with this package. extractUtterances()'soptionsargument is now optional; omitting it uses the defaults.IEnumPreference.supportedValuesis nowreadonly T[]andIRangePreference.supportedRangeis nowreadonly [T, T]; they return the same frozen values the library validates against.
Removed
- The CommonJS build (
build/index.cjs). The package is ESM-only;require("@readium/speech")still works on Node versions that supportrequire()of ES modules. - The
css-selector-generatordependency.
Full Changelog: v0.11.0...v0.12.0