@sentiance-react-native/event-timeline 6.6.0 → 6.7.0

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +8 -3
  2. package/package.json +2 -2
package/lib/index.d.ts CHANGED
@@ -96,13 +96,18 @@ declare module "@sentiance-react-native/event-timeline" {
96
96
  isSpeedLimitInfoSet: boolean;
97
97
  }
98
98
 
99
- export interface EventTimelineApi {
99
+ export interface SentianceEventTimeline {
100
100
  getTimelineUpdates(afterEpochTimeMs: number): Promise<Event[]>;
101
101
  getTimelineEvents(fromEpochTimeMs: number, toEpochTimeMs: number): Promise<Event[]>;
102
102
  getTimelineEvent(eventId: string): Promise<Event | null>;
103
103
  addTimelineUpdateListener(onTimelineUpdated: (event: Event) => void): Promise<EmitterSubscription>;
104
104
  }
105
105
 
106
- const EventTimelineApi: EventTimelineApi;
107
- export default EventTimelineApi;
106
+ /**
107
+ * @deprecated Use SentianceEventTimeline instead.
108
+ */
109
+ export type EventTimelineApi = SentianceEventTimeline;
110
+
111
+ const sentianceEventTimeline: SentianceEventTimeline;
112
+ export default sentianceEventTimeline;
108
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentiance-react-native/event-timeline",
3
- "version": "6.6.0",
3
+ "version": "6.7.0",
4
4
  "description": "The Sentiance Event Timeline library",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "sentiance"
15
15
  ],
16
16
  "peerDependencies": {
17
- "@sentiance-react-native/core": "6.6.0"
17
+ "@sentiance-react-native/core": "6.7.0"
18
18
  },
19
19
  "author": "",
20
20
  "license": "",