@rocket.chat/message-parser 0.31.29-rc.0 → 0.31.30

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.31.30
4
+
5
+ ### Patch Changes
6
+
7
+ - ([#33254](https://github.com/RocketChat/Rocket.Chat/pull/33254) by [@dionisio-bot](https://github.com/dionisio-bot)) Improved the performance of the message parser
8
+
9
+ ## 0.31.29
10
+
11
+ ### Patch Changes
12
+
13
+ - ([#31810](https://github.com/RocketChat/Rocket.Chat/pull/31810)) feat(message-parser): add timestamps pattern
14
+
15
+ ### Usage
16
+
17
+ Pattern: <t:{timestamp}:?{format}>
18
+
19
+ - {timestamp} is a Unix timestamp
20
+ - {format} is an optional parameter that can be used to customize the date and time format.
21
+
22
+ #### Formats
23
+
24
+ | Format | Description | Example |
25
+ | ------ | ------------------------- | --------------------------------------- |
26
+ | `t` | Short time | 12:00 AM |
27
+ | `T` | Long time | 12:00:00 AM |
28
+ | `d` | Short date | 12/31/2020 |
29
+ | `D` | Long date | Thursday, December 31, 2020 |
30
+ | `f` | Full date and time | Thursday, December 31, 2020 12:00 AM |
31
+ | `F` | Full date and time (long) | Thursday, December 31, 2020 12:00:00 AM |
32
+ | `R` | Relative time | 1 year ago |
33
+
3
34
  ## 0.31.29-rc.0
4
35
 
5
36
  ### Patch Changes