Skip to content

Commit 8f491ea

Browse files
committed
feat: bump jsdoctypeparser to 5.0.0
The update brings in: 1. feat: TypeScript key query (`keyof X`) types 1. feat: Preserve quote style: 1. (single, double) for strings 1. (single, double, or none) for `MemberName` (e.g., `owner.'Member'`), `RecordTypeExprEntryKey` (e.g., `{"keyOnly"}`), `FilePathExpr` (e.g., `module:"..."`), `ExternalNameExpr2` (e.g., `external:"..."`) 1. feat: changed `SyntaxError` export to `JSDocTypeSyntaxError` to avoid shadowing (not currently in use as such here) 1. feat: jsdoctypeparser binary is available (not currently in use here) 1. fix: allow optional `+` at beginning of decimal literals and optional `e` scientific notation at end, and decimal with no leading digit 1. fix: tighten unquoted `RecordTypeExprEntryKey` to disallow numbers followed by non-numbers (except as part of a decimal and/or scientific notation) 1. fix: allow quotes in `FilePathExpr` (for `module:"..."`) and `ExternalNameExpr` (for `external:"..."`) 1. fix: Disallow unescaped backslash before final quote and escaped backslash sequence before inside quote in `MemberName` (e.g., `owner."Mem.ber\\"`) and `RecordTypeExprEntryKey` (e.g., `{"key\\\\"Only"}`) 1. fix: Improvements in quoting/backslashes of strings 1. fix: accept `MemberName` in place of `NamepathExpr` ("external:..." should point to a (quotable) name, optionally with members, but not a name path with parenthesized literals, imports, etc.) 1. chore: update @types/node
1 parent 4bb3af6 commit 8f491ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"comment-parser": "^0.5.5",
99
"debug": "^4.1.1",
1010
"flat-map-polyfill": "^0.3.8",
11-
"jsdoctypeparser": "4.0.0",
11+
"jsdoctypeparser": "5.0.0",
1212
"lodash": "^4.17.11"
1313
},
1414
"description": "JSDoc linting rules for ESLint.",

0 commit comments

Comments
 (0)