7 Commits

Author SHA1 Message Date
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
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
995fdae3d8
refactor: use env instead of deps or dependencies 2024-12-07 20:48:10 -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
c04508f295
refactor: migrate to ES modules 2023-02-28 20:12:24 -08:00
Jeff Williams
67d043160f
fix(jsdoc-template-legacy): in inline links, strip spaces around pipe character
Previously, if you had an inline link tag like `{@link https://example.com/ | link text}`, then the link URL ended up being `https://example.com/%20`.

Ported from 3d90c8a8c2.
2023-02-18 15:23:09 -08:00
Jeff Williams
96ff601efe
refactor: move default template to new @jsdoc/template-legacy package
Also switches to variable fonts and fixes a bug that prevented attributes like `static` from showing up in the docs.
2023-01-29 15:13:39 -08:00