9 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
995fdae3d8
refactor: use env instead of deps or dependencies 2024-12-07 20:48:10 -08:00
Jeff Williams
125a9add3d
refactor: remove jsdoc.deps from test environment
Use `jsdoc.env` instead.
2024-12-07 14:56:28 -08:00
Jeff Williams
55b0489662
chore(jsdoc-eslint-config): migrate to ESLint flat config 2024-04-14 11:39:46 -07:00
Jeff Williams
45c497e192
refactor: simplify dependency management
It turns out that JSDoc's dependency-injection needs are pretty simple; we mostly just need to pass around some data, plus some logging functions. That means the previous solution was overengineered, even though it was still pretty lightweight.

Now we just put everything in the `Env` object and pass that around instead.
2023-12-10 15:05:35 -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