Repository navigation
chore(npm): enable listDeprecations check - #6727
Conversation
Signed-off-by: Christoph Jerolimov <[email protected]>
Missing ChangesetsThe following package(s) are changed by this PR but do not have a changeset:
See CONTRIBUTING.md for more information about how to add changesets. Changed Packages
|
|
|
||
| export { | ||
| npmPlugin, | ||
| export * from './plugin'; |
There was a problem hiding this comment.
maybe we can explicitly name every export from plugin.ts here, so it's harder to accidentally add stuff to the API?
There was a problem hiding this comment.
I had this before and changed this to *. I do this in all my plugins so far because until now I exported always everything from plugins. Maybe this changes with NFS, but for now I had more problems with missing exports in index.ts then with "too much exports".
There was a problem hiding this comment.
In theory adding anything new would show up in the API report.
| * @deprecated please use `EntityNpmReleaseTableCard` instead. | ||
| * @public | ||
| */ | ||
| export const NpmReleaseTableCard = EntityNpmReleaseTableCard; |
There was a problem hiding this comment.
I know this is closed but these deprecations were initially added back in 2024, would it not have made more sense to remove them? That's sort of part of the ideas behind this feature is to help clean those up and not have them floating around for ages.
There was a problem hiding this comment.
I'm thinking of some new features and a 2.0 "soon"
Signed-off-by: Christoph Jerolimov <[email protected]>
Hey, I just made a Pull Request!
Enable bcp.json
listDeprecationsoption and move deprecated exports from plugins.ts to index.ts to disable "false positive" warnings.Helps towards #5994.
✔️ Checklist
Signed-off-byline in the message. (more info)