29 Commits

Author SHA1 Message Date
Jeff Williams
3c68f21f36
feat: add a doclet kind for enums 2025-01-12 15:06:45 -08:00
Jeff Williams
b60df463f4
refactor(jsdoc-doclet): minor cleanup 2025-01-11 16:18:46 -08:00
Jeff Williams
019aeb7478
refactor: miscellaneous cleanup/optimization 2025-01-01 09:49:47 -08:00
Jeff Williams
e7432611b6
perf: optimize hot method 2024-12-29 16:21:38 -08:00
Jeff Williams
59d31d5176
fix: add type expression, not parsed type AST, to doclets
The AST was normally added as a non-enumerable property, `type.parsedType`, which caused many complications; most recently, I noticed that doclets don't retain this property when `DocletStore` proxies them. Better to just add the original type expression as `type.expression` and let templates parse it again as needed.
2024-12-24 16:49:16 -08:00
Jeff Williams
42f73299c7
docs: improve code comments
Plus some very minor code cleanup.
2024-12-16 22:03:35 -08:00
Jeff Williams
428ddcf521
refactor: create @jsdoc/name package to break dependency cycles
Tons of stuff depends on these methods; in contrast, these methods don't depend on any other JSDoc packages.
2024-12-15 15:08:06 -08:00
Jeff Williams
2bcc664866
refactor: minor cleanup 2024-12-12 12:58:50 -08:00
Jeff Williams
995fdae3d8
refactor: use env instead of deps or dependencies 2024-12-07 20:48:10 -08:00
Jeff Williams
5a74ffd016
chore(jsdoc-eslint-config): move packages to the correct package.json file; enable Prettier; fix linter issues 2023-11-25 10:28:22 -08:00
Jeff Williams
89f2c72da4
refactor: provide logging functions in dependencies; stop using EventBus
These changes enable templates to use the logging functions even if they're not installed in the same `node_modules` directory as JSDoc.

Includes API changes to various modules and functions that didn't have access to the dependency object. Most notably, you now call a function to retrieve tag definitions, rather than just using an exported object as-is.
2023-11-15 17:43:21 -08:00
Jeff Williams
aeb1e4833d
feat(jsdoc-doclet): add public methods to make DocletStore start/stop listening for events 2023-11-12 15:19:42 -08:00
Jeff Williams
ba70bb4d6b
fix(jsdoc-doclet): don't track unused doclets by properties like longname 2023-11-12 13:05:02 -08:00
Jeff Williams
e8340994fd
refactor(jsdoc-doclet): clean up DocletStore private methods 2023-10-15 12:46:28 -07:00
Jeff Williams
fe806ddbba
fix(jsdoc-doclet): track property values under the correct property name 2023-10-15 12:32:37 -07:00
Jeff Williams
5e4f999497
refactor: don't use deprecated RegExp.$1...$9 properties
Plus some miscellaneous cleanup.
2023-10-11 16:40:23 -07:00
Jeff Williams
31cd03d379
fix(jsdoc-doclet): improve visibility check for packages 2023-10-06 15:17:56 -07:00
Jeff Williams
bb70100915
refactor: pass DocletStore to the template
Also fixes a bunch of breakage in the legacy template.
2023-10-03 19:38:03 -07:00
Jeff Williams
1a2690915a
refactor: use DocletStore to track parse results
Also updates a bunch of code to use optional chaining and nullish coalescing.
2023-10-01 17:52:01 -07:00
Jeff Williams
b2df642b31
feat(jsdoc-doclet): add DocletStore, a reactive tracker for doclets 2023-09-17 17:48:23 -07:00
Jeff Williams
954d17f87c
feat(jsdoc-doclet): emit events when certain doclet properties change 2023-09-10 14:56:27 -07:00
Jeff Williams
f5865d3e59
feat: add isGlobal() and isVisible() methods to Doclet 2023-03-19 21:47:13 -07:00
Jeff Williams
c04508f295
refactor: migrate to ES modules 2023-02-28 20:12:24 -08:00
Jeff Williams
b36ccd5bbe
refactor: move augment module to @jsdoc/doclet package 2023-01-22 08:46:16 -08:00
Jeff Williams
69d1a0ad3e
refactor: move borrows resolver to @jsdoc/doclet package 2023-01-21 22:56:33 -08:00
Jeff Williams
0ca411969e
refactor: move doclet module to @jsdoc/doclet 2023-01-16 12:09:50 -08:00
Jeff Williams
96ece0b442
refactor: fix up comments 2023-01-15 19:20:45 -08:00
Jeff Williams
d4e762d3b2
refactor: move Package class to @jsdoc/doclet 2023-01-15 16:05:25 -08:00
Jeff Williams
5b1e7ddd23
refactor: move doclet schema to new @jsdoc/doclet package 2023-01-14 15:12:09 -08:00