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

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.31.29
4
+
5
+ ### Patch Changes
6
+
7
+ - ([#31810](https://github.com/RocketChat/Rocket.Chat/pull/31810)) feat(message-parser): add timestamps pattern
8
+
9
+ ### Usage
10
+
11
+ Pattern: <t:{timestamp}:?{format}>
12
+
13
+ - {timestamp} is a Unix timestamp
14
+ - {format} is an optional parameter that can be used to customize the date and time format.
15
+
16
+ #### Formats
17
+
18
+ | Format | Description | Example |
19
+ | ------ | ------------------------- | --------------------------------------- |
20
+ | `t` | Short time | 12:00 AM |
21
+ | `T` | Long time | 12:00:00 AM |
22
+ | `d` | Short date | 12/31/2020 |
23
+ | `D` | Long date | Thursday, December 31, 2020 |
24
+ | `f` | Full date and time | Thursday, December 31, 2020 12:00 AM |
25
+ | `F` | Full date and time (long) | Thursday, December 31, 2020 12:00:00 AM |
26
+ | `R` | Relative time | 1 year ago |
27
+
3
28
  ## 0.31.29-rc.0
4
29
 
5
30
  ### Patch Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rocket.chat/message-parser",
3
3
  "description": "Rocket.Chat parser for messages",
4
- "version": "0.31.29-rc.0",
4
+ "version": "0.31.29",
5
5
  "author": {
6
6
  "name": "Rocket.Chat",
7
7
  "url": "https://rocket.chat/"
@@ -51,7 +51,7 @@
51
51
  "@babel/core": "~7.21.4",
52
52
  "@babel/eslint-parser": "~7.21.3",
53
53
  "@babel/preset-env": "~7.21.4",
54
- "@rocket.chat/eslint-config": "^0.6.2-rc.0",
54
+ "@rocket.chat/eslint-config": "^0.6.2",
55
55
  "@rocket.chat/peggy-loader": "~0.31.25",
56
56
  "@rocket.chat/prettier-config": "~0.31.25",
57
57
  "@types/jest": "~29.5.7",