Skip to content

Commit 01b12fa

Browse files
committed
doc
1 parent 26bd3dc commit 01b12fa

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@ deepStrictEqual(decode(encoded, { extensionCodec }), value);
166166

167167
#### The temporal module as timestamp extensions
168168

169-
This library maps `Date` to the MessagePack timestamp extension, but you re-map the [temporal module](https://github.com/tc39/proposal-temporal) to the timestamp ext like this:
169+
There is a proposal for a new date/time representations in JavaScript:
170+
171+
* https://github.com/tc39/proposal-temporal
172+
173+
This library maps `Date` to the MessagePack timestamp extension by default, but you can re-map the temporal module (or [@std-proposal/temporal ponyfill](https://github.com/tc39/proposal-temporal)) to the timestamp extension like this:
170174

171175
```typescript
172176
import { Instant } from "@std-proposal/temporal";
@@ -206,7 +210,7 @@ const decoded = decode(encoded, { extensionCodec });
206210
deepStrictEqual(decoded, instant);
207211
```
208212

209-
This will be default after the temporal module is implemented in major browsers, which is not a near-future, though.
213+
This will be default once the temporal module is standardizied, which is not a near-future, though.
210214

211215
## MessagePack Mapping Table
212216

0 commit comments

Comments
 (0)