Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/types-0-34.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@seamless-auth/messaging": patch
---

Depend on `@seamless-auth/types` ^0.34.0, the version the auth API and server adapters use, so an install no longer carries two copies. Types 0.34.0 adds the optional `headers` field to `EmailMessage`, so `EmailMessage` is now the shared type itself rather than a local extension of it. Its shape is unchanged.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"access": "public"
},
"dependencies": {
"@seamless-auth/types": "^0.33.0"
"@seamless-auth/types": "^0.34.0"
}
}
18 changes: 6 additions & 12 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import type { EmailMessage as SharedEmailMessage } from "@seamless-auth/types";

export type { DeliveryResult, MessagingChannel, SmsMessage } from "@seamless-auth/types";

export type EmailMessage = SharedEmailMessage & {
/**
* Extra headers to send with the message, such as `List-Unsubscribe`. Names
* and values are passed through as given; a transport that cannot send
* custom headers ignores them.
*/
headers?: Record<string, string>;
};
export type {
DeliveryResult,
EmailMessage,
MessagingChannel,
SmsMessage,
} from "@seamless-auth/types";
Loading