@rspress/plugin-api-docgen 2.0.0-rc.2 → 2.0.0-rc.3

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/dist/index.js +1 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -187,7 +187,7 @@ function generateTable(componentDoc, language) {
187
187
  formattedDescription,
188
188
  getType(),
189
189
  getDefaultValue()
190
- ].map((str)=>str.replace(/(?<!\\)\|/g, '&#124;')).join('|')}|`;
190
+ ].map((str)=>str.replace(RegExp("(?<!\\\\)\\|", "g"), '&#124;')).join('|')}|`;
191
191
  });
192
192
  return `
193
193
  ${param.displayName ? `### ${param.displayName}\n` : ''}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-api-docgen",
3
- "version": "2.0.0-rc.2",
3
+ "version": "2.0.0-rc.3",
4
4
  "description": "A plugin for rspress to generate api doc.",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -33,20 +33,20 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@microsoft/api-extractor": "^7.55.2",
36
- "@rslib/core": "0.18.3",
36
+ "@rslib/core": "0.18.5",
37
37
  "@types/hast": "^3.0.4",
38
38
  "@types/mdast": "^4.0.4",
39
39
  "@types/node": "^22.8.1",
40
40
  "@types/react": "^19.2.7",
41
41
  "@types/react-dom": "^19.2.3",
42
- "react": "^19.2.1",
43
- "react-dom": "^19.2.1",
44
- "react-router-dom": "^7.10.1",
42
+ "react": "^19.2.3",
43
+ "react-dom": "^19.2.3",
44
+ "react-router-dom": "^7.11.0",
45
45
  "rsbuild-plugin-publint": "^0.3.3",
46
46
  "typescript": "^5.8.2"
47
47
  },
48
48
  "peerDependencies": {
49
- "@rspress/core": "^2.0.0-rc.2",
49
+ "@rspress/core": "^2.0.0-rc.3",
50
50
  "typescript": "^5.8.2"
51
51
  },
52
52
  "peerDependenciesMeta": {