Skip to content

Commit 80334d8

Browse files
committed
fix: update jsdoccomment and jsdoc-type-pratt-parser
- type parser update allows semi-colon as TypeScript object entry separator - jsdocomment update allows execution by older Node versions, e.g., within Atom (though `engines` still set at stricter value of `comment-parser`)
1 parent 508bf18 commit 80334d8

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"url": "http://gajus.com"
66
},
77
"dependencies": {
8-
"@es-joy/jsdoccomment": "0.10.3",
8+
"@es-joy/jsdoccomment": "0.10.6",
99
"comment-parser": "1.2.1",
1010
"debug": "^4.3.2",
1111
"esquery": "^1.4.0",
12-
"jsdoc-type-pratt-parser": "^1.0.4",
12+
"jsdoc-type-pratt-parser": "^1.1.1",
1313
"lodash": "^4.17.21",
1414
"regextras": "^0.8.0",
1515
"semver": "^7.3.5",

src/alignTransform.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@
55
*/
66

77
import {
8-
Markers,
9-
} from 'comment-parser/primitives';
10-
import {
8+
9+
// `comment-parser/util` re-exports
1110
rewireSource,
12-
} from 'comment-parser/util';
11+
} from '@es-joy/jsdoccomment';
12+
import {
13+
14+
// `comment-parser/primitives` export
15+
Markers,
16+
} from 'comment-parser';
1317

1418
const zeroWidth = {
1519
name: 0,

src/iterateJsdoc.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import {
22
getReducedASTNode, getJSDocComment, commentHandler, parseComment,
3+
4+
// `comment-parser/util` re-exports
5+
rewireSpecs,
6+
seedTokens,
37
} from '@es-joy/jsdoccomment';
48
import {
59
stringify as commentStringify,
610
} from 'comment-parser';
7-
import {
8-
rewireSpecs,
9-
seedTokens,
10-
} from 'comment-parser/util';
1111
import _ from 'lodash';
1212
import jsdocUtils from './jsdocUtils';
1313

0 commit comments

Comments
 (0)