Skip to content

Commit 5021f08

Browse files
committed
8.1.0
1 parent 5d22fac commit 5021f08

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typewriter",
3-
"version": "8.0.10",
3+
"version": "8.1.0",
44
"description": "A compiler for generating strongly typed analytics clients via Segment Protocols",
55
"repository": "ssh://git@github.com/segmentio/typewriter.git",
66
"author": "Oscar Bazaldua <oscar.bazaldua@segment.com>",

src/telemetry/segment.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ export type TrackMessage<PropertiesType> = Options & Record<string, any> & Ident
269269
* a timestamp.
270270
*/
271271
timestamp?: Date
272+
/**
273+
* MessageId which can be optionally set to override the default one generated by the library.
274+
* This is useful when you want to deduplicate messages.
275+
*/
276+
messageId?: string
272277
}
273278

274279
/** The callback exposed by analytics-node. */
@@ -461,7 +466,7 @@ function withTypewriterContext<P, T extends TrackMessage<P>>(
461466
...(message.context || {}),
462467
typewriter: {
463468
language: 'typescript',
464-
version: '8.0.10',
469+
version: '8.1.0',
465470
},
466471
},
467472
}

0 commit comments

Comments
 (0)