Skip to content

chore(npm): enable listDeprecations check - #6727

Merged
christoph-jerolimov merged 1 commit into
backstage:mainfrom
christoph-jerolimov:npm/listDeprecations
Jan 3, 2026
Merged

christoph-jerolimov merged 1 commit into
backstage:mainfrom
christoph-jerolimov:npm/listDeprecations

Conversation

@christoph-jerolimov

Copy link
Copy Markdown
Member

Hey, I just made a Pull Request!

Enable bcp.json listDeprecations option and move deprecated exports from plugins.ts to index.ts to disable "false positive" warnings.

Helps towards #5994.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@christoph-jerolimov christoph-jerolimov self-assigned this Jan 3, 2026
@christoph-jerolimov
christoph-jerolimov requested review from vinzscam and removed request for a team January 3, 2026 15:57
@backstage-goalie

Copy link
Copy Markdown
Contributor

Missing Changesets

The following package(s) are changed by this PR but do not have a changeset:

  • @backstage-community/plugin-npm

See CONTRIBUTING.md for more information about how to add changesets.

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-npm workspaces/npm/plugins/npm none v1.15.0


export {
npmPlugin,
export * from './plugin';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can explicitly name every export from plugin.ts here, so it's harder to accidentally add stuff to the API?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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".

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory adding anything new would show up in the API report.

@christoph-jerolimov
christoph-jerolimov merged commit 24077d5 into backstage:main Jan 3, 2026
@christoph-jerolimov
christoph-jerolimov deleted the npm/listDeprecations branch January 3, 2026 21:33
* @deprecated please use `EntityNpmReleaseTableCard` instead.
* @public
*/
export const NpmReleaseTableCard = EntityNpmReleaseTableCard;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking of some new features and a 2.0 "soon"

fjudith pushed a commit to alithya-oss/community-plugins that referenced this pull request Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants