Skip to content

Commit 7d2f9da

Browse files
committed
feat/optional promise for getPublicationDate and getDisplayDate
1 parent 9928659 commit 7d2f9da

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @code.store/arcxp-sdk-ts
22

3+
## 4.43.2
4+
5+
### Patch Changes
6+
7+
- MaybePromise for getPublicationDate and getDisplayDate
8+
39
## 4.43.1
410

511
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code.store/arcxp-sdk-ts",
3-
"version": "4.43.1",
3+
"version": "4.43.2",
44
"description": "A strongly typed set of ArcXP API's and utilities reduce the amount of work required to develop with ArcXP, starting with reducing the boilerplate code you have to write.",
55
"type": "commonjs",
66
"main": "./dist/index.js",

src/mapper/doc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ export abstract class Document<ANS extends ANSContent> {
115115
return date.toISOString();
116116
}
117117

118-
protected getDisplayDate(): Optional<Date> {
118+
protected getDisplayDate(): MaybePromise<Optional<Date>> {
119119
return new Date();
120120
}
121121

122122
protected async getContentElements(): Promise<ArcTypes.ContentElements.ContentElementType<any>[]> {
123123
return [];
124124
}
125125

126-
protected getPublicationDate(): Optional<Date> {
126+
protected getPublicationDate(): MaybePromise<Optional<Date>> {
127127
return new Date();
128128
}
129129

0 commit comments

Comments
 (0)