13 Commits

Author SHA1 Message Date
Jeff Williams
13cdfd18b7
fix: use the correct name and longname for an exported symbol with a @memberof tag 2025-10-04 17:40:13 -07:00
Jeff Williams
7a2e561e11
fix(jsdoc-parse): use the correct scopes when exported objects have properties
Previously, JSDoc parsed the test code and found the namepath `module:icecream.FLAVORS` (correct), but also `module:icecream~FLAVORS.VANILLA` (wrong, because `FLAVORS` is a static member of the module, not an inner member).

With this change, JSDoc should consistently identify `FLAVORS` as a static member of `module:icecream`.
2025-05-15 20:40:45 -07: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
fdf8f6b481
refactor: use env instead of deps 2024-12-07 21:02:01 -08:00
Jeff Williams
749fbeb622
refactor: use env instead of dependencies 2024-12-07 15:17:24 -08:00
Jeff Williams
f7d5fa77b0
fix: use a special longname for a non-default export in an ES2015 module
Previously, we used `exports.NAME`, which was both incorrect and confusing.
2024-05-11 17:42:04 -07:00
Jeff Williams
575f0dccc8
fix: use a special longname for an ES2015 module's default export
Previously, we used `module.exports`, which is both incorrect and confusing.
2024-05-11 12:07:56 -07:00
Jeff Williams
65da78e6bb
fix(jsdoc-parse): infer the existence of a module from @alias tags
If a class has a tag like `@alias module:foo.Bar`, then we can infer that the module for the current file is `module:foo`, even if there's no `/** @module foo */` comment in the file.
2023-12-30 19:58:50 -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
5e4f999497
refactor: don't use deprecated RegExp.$1...$9 properties
Plus some miscellaneous cleanup.
2023-10-11 16:40:23 -07:00
Jeff Williams
231ec6e1b0
refactor(jsdoc-parse): use optional chaining 2023-09-17 12:52:02 -07:00
Jeff Williams
c04508f295
refactor: migrate to ES modules 2023-02-28 20:12:24 -08:00
Jeff Williams
23dd975322
refactor: move parser handlers to new @jsdoc/parse package
Replacing the former `@jsdoc/parse` package, which is now `@jsdoc/ast`.
2023-01-22 20:38:17 -08:00