Release 3.3.0
3.3.0 (2024-11-10)
This major release introduces exciting new features that have been long-awaited. I didn’t have the chance to implement these myself, so a huge thanks goes to @ugurakin1 and @taisuke-j for their contributions! They’ve added support for requesting exercise permission routes and enabled grouping by duration with aggregation.
Features
- add aggregateGroupByDuration API (#171) (60efc22)
- adds a new method for requesting exercise permissions (#167) (3cbe841)
Breaking changes
- The
TimeRangeSlicer
interface has changed a bit. It will acceptlength
instead ofduration
:
export interface DurationRangeSlicer {
duration: 'MILLIS' | 'SECONDS' | 'MINUTES' | 'HOURS' | 'DAYS';
- duration: number;
+ length: number;
}
export interface PeriodRangeSlicer {
period: 'DAYS' | 'WEEKS' | 'MONTHS' | 'YEARS';
- duration: number;
+ length: number;
}
- Request permission API has changed and does not accept package name anymore. The new signature looks like this:
function requestPermission(
permissions: (Permission | WriteExerciseRoutePermission)[]
): Promise<Permission[]>