@rocket.chat/message-parser 0.31.31 → 0.31.32

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,22 +1,38 @@
1
1
  # Change Log
2
2
 
3
- ## 0.31.31
3
+ ## 0.31.32
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - ([#33227](https://github.com/RocketChat/Rocket.Chat/pull/33227)) Improved the performance of the message parser
7
+ - ([#34906](https://github.com/RocketChat/Rocket.Chat/pull/34906)) Adds simple app subprocess metrics report
8
+
9
+ - ([#34906](https://github.com/RocketChat/Rocket.Chat/pull/34906)) Attempts to restart an app subprocess if the spawn command fails
10
+
11
+ - ([#34906](https://github.com/RocketChat/Rocket.Chat/pull/34906)) Fixes an issue while collecting the error message from a failed restart attempt of an app subprocess
12
+
13
+ - ([#34906](https://github.com/RocketChat/Rocket.Chat/pull/34906)) Prevents app:getStatus requests from timing out in some cases
14
+
15
+ - ([#34906](https://github.com/RocketChat/Rocket.Chat/pull/34906)) Fixes an error where the engine would not retry a subprocess restart if the last attempt failed
8
16
 
9
- ## 0.31.31-rc.0
17
+ - ([#34906](https://github.com/RocketChat/Rocket.Chat/pull/34906)) Fixes error propagation when trying to get the status of apps in some cases
18
+
19
+ - ([#34906](https://github.com/RocketChat/Rocket.Chat/pull/34906)) Fixes wrong data being reported to total failed apps metrics and statistics
20
+
21
+ - ([#34906](https://github.com/RocketChat/Rocket.Chat/pull/34906)) Fixes an issue that prevented the apps-engine from reestablishing communications with subprocesses in some cases
22
+
23
+ ## 0.31.31
10
24
 
11
25
  ### Patch Changes
12
26
 
13
- - ([#33227](https://github.com/RocketChat/Rocket.Chat/pull/33227)) Improved the performance of the message parser
27
+ - ([#33929](https://github.com/RocketChat/Rocket.Chat/pull/33929)) Fixes an issue that would cause apps to appear disabled after a subprocess restart
28
+
29
+ - ([#33929](https://github.com/RocketChat/Rocket.Chat/pull/33929)) Fixed a problem in the deno runtime controller where it would not handle undefined child process references correctly
14
30
 
15
31
  ## 0.31.30
16
32
 
17
33
  ### Patch Changes
18
34
 
19
- - ([#33254](https://github.com/RocketChat/Rocket.Chat/pull/33254) by [@dionisio-bot](https://github.com/dionisio-bot)) Improved the performance of the message parser
35
+ - ([#33256](https://github.com/RocketChat/Rocket.Chat/pull/33256) by [@dionisio-bot](https://github.com/dionisio-bot)) Improved the performance of the message parser
20
36
 
21
37
  ## 0.31.29
22
38
 
@@ -1 +1 @@
1
- {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../src/guards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,OAAO,SACrC,OAAO,QACR,CAAC,CAAC,MAAM,CAAC,KACd,KAAK,IAAI,CAIgC,CAAC"}
1
+ {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../src/guards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,YAAY,6BAChB,OAAO,gCAM4B,CAAC"}
package/dist/utils.d.ts CHANGED
@@ -2,10 +2,10 @@ import type { BigEmoji, Code, Color, Heading, Markup, Paragraph, Types, Task, Li
2
2
  export declare const paragraph: (value: Inlines[]) => Paragraph;
3
3
  export declare const bold: (value: (import("./definitions").InlineCode | Link | import("./definitions").UserMention | Emoji | import("./definitions").MarkupExcluding<import("./definitions").Bold>)[]) => import("./definitions").Bold;
4
4
  export declare const color: (r: number, g: number, b: number, a?: number) => Color;
5
- export declare const heading: (value: Heading["value"], level?: Heading["level"]) => Heading;
6
- export declare const code: (value: Code["value"], language?: Code["language"]) => Code;
7
- export declare const bigEmoji: (value: BigEmoji["value"]) => BigEmoji;
8
- export declare const task: (value: Task["value"], status: boolean) => Task;
5
+ export declare const heading: (value: Heading['value'], level?: Heading['level']) => Heading;
6
+ export declare const code: (value: Code['value'], language?: Code['language']) => Code;
7
+ export declare const bigEmoji: (value: BigEmoji['value']) => BigEmoji;
8
+ export declare const task: (value: Task['value'], status: boolean) => Task;
9
9
  export declare const inlineCode: (value: import("./definitions").Plain) => import("./definitions").InlineCode;
10
10
  export declare const tasks: (value: Task[]) => import("./definitions").Tasks;
11
11
  export declare const italic: (value: (import("./definitions").InlineCode | Link | import("./definitions").UserMention | Emoji | import("./definitions").MarkupExcluding<import("./definitions").Italic>)[]) => import("./definitions").Italic;
@@ -25,11 +25,11 @@ export declare const mentionUser: (value: string) => import("./definitions").Use
25
25
  export declare const emoji: (shortCode: string) => Emoji;
26
26
  export declare const emojiUnicode: (unicode: string) => Emoji;
27
27
  export declare const emoticon: (emoticon: string, shortCode: string) => Emoji;
28
- export declare const reducePlainTexts: (values: Paragraph["value"]) => Paragraph["value"];
28
+ export declare const reducePlainTexts: (values: Paragraph['value']) => Paragraph['value'];
29
29
  export declare const lineBreak: () => LineBreak;
30
30
  export declare const katex: (content: string) => KaTeX;
31
31
  export declare const inlineKatex: (content: string) => InlineKaTeX;
32
32
  export declare const phoneChecker: (text: string, number: string) => import("./definitions").Plain | Link;
33
- export declare const timestamp: (value: string, type?: "t" | "T" | "d" | "D" | "f" | "F" | "R") => Timestamp;
34
- export declare const extractFirstResult: (value: Types[keyof Types]["value"]) => Types[keyof Types]["value"];
33
+ export declare const timestamp: (value: string, type?: 't' | 'T' | 'd' | 'D' | 'f' | 'F' | 'R') => Timestamp;
34
+ export declare const extractFirstResult: (value: Types[keyof Types]['value']) => Types[keyof Types]['value'];
35
35
  //# sourceMappingURL=utils.d.ts.map
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.31",
4
+ "version": "0.31.32",
5
5
  "author": {
6
6
  "name": "Rocket.Chat",
7
7
  "url": "https://rocket.chat/"
@@ -42,40 +42,37 @@
42
42
  "build": "run-s .:build:clean .:build:bundle",
43
43
  ".:build:clean": "rimraf dist",
44
44
  ".:build:bundle": "webpack",
45
- "lint": "eslint .",
46
- "test": "jest",
47
- "testunit": "jest",
45
+ "testunit": "jest --runInBand --coverage",
46
+ "watch": "jest --watch",
47
+ "lint": "eslint src",
48
48
  "docs": "typedoc"
49
49
  },
50
50
  "devDependencies": {
51
- "@babel/core": "~7.21.8",
52
- "@babel/eslint-parser": "~7.21.8",
53
- "@babel/preset-env": "~7.21.5",
51
+ "@babel/core": "~7.21.4",
52
+ "@babel/eslint-parser": "~7.21.3",
53
+ "@babel/preset-env": "~7.21.4",
54
54
  "@rocket.chat/eslint-config": "^0.7.0",
55
- "@rocket.chat/jest-presets": "~0.0.1",
56
- "@rocket.chat/peggy-loader": "~0.31.27",
55
+ "@rocket.chat/peggy-loader": "~0.31.28",
57
56
  "@rocket.chat/prettier-config": "~0.31.25",
58
- "@types/jest": "~29.5.13",
59
- "@types/node": "~14.18.63",
57
+ "@types/jest": "~29.5.7",
58
+ "@types/node": "~14.18.42",
60
59
  "@typescript-eslint/parser": "~5.58.0",
61
- "babel-loader": "~9.1.3",
60
+ "babel-loader": "~9.1.2",
62
61
  "eslint": "~8.45.0",
63
- "jest": "~29.7.0",
62
+ "jest": "~29.6.4",
64
63
  "npm-run-all": "^4.1.5",
65
64
  "peggy": "3.0.2",
66
- "prettier": "~2.8.8",
65
+ "prettier": "~2.8.7",
67
66
  "prettier-plugin-pegjs": "~0.5.4",
68
67
  "rimraf": "^3.0.2",
69
- "ts-loader": "~9.4.4",
70
- "typedoc": "~0.24.8",
71
- "typescript": "~5.5.4",
68
+ "ts-jest": "~29.1.0",
69
+ "ts-loader": "~9.4.2",
70
+ "typedoc": "~0.24.1",
71
+ "typescript": "~5.3.3",
72
72
  "webpack": "~5.78.0",
73
- "webpack-cli": "~5.0.2"
73
+ "webpack-cli": "~5.0.1"
74
74
  },
75
75
  "dependencies": {
76
76
  "tldts": "~5.7.112"
77
- },
78
- "volta": {
79
- "extends": "../../package.json"
80
77
  }
81
78
  }