Skip to content

Conversation

@lerouxb
Copy link
Contributor

@lerouxb lerouxb commented Nov 25, 2025

We missed some transitive deps of things the vscode extension depend on when we made a bunch of packages private recently.

@lerouxb lerouxb requested a review from a team as a code owner November 25, 2025 10:24
@lerouxb lerouxb requested review from Anemy and Copilot November 25, 2025 10:24
@lerouxb lerouxb added the no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) label Nov 25, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR makes three internal packages public by replacing the "private": true field with publishConfig settings. This change is necessary because these packages are transitive dependencies of the VS Code extension that were inadvertently made private in a previous refactoring.

  • Removes private flag from compass-utils, compass-logging, and compass-app-registry
  • Adds publishConfig with public access to enable npm publishing
  • Corrects dependency visibility for VS Code extension compatibility

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/compass-utils/package.json Changed from private to public with publishConfig
packages/compass-logging/package.json Changed from private to public with publishConfig
packages/compass-app-registry/package.json Changed from private to public with publishConfig

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +12 to +14
"publishConfig": {
"access": "public"
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you give an example where it's pulled as transitive for other public packges? We should probably remove this dependency

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"@mongodb-js/compass-app-registry": "^9.4.28",

Copy link
Collaborator

Choose a reason for hiding this comment

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

Le Roux Bodenstein
11:26

"@mongodb-js/compass-app-registry": "^9.4.28",

Copy link
Collaborator

@gribnoysup gribnoysup Nov 25, 2025

Choose a reason for hiding this comment

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

Actually, I guess it's weird that DataService depends on compass-logging and not on something lower level like mongodb log writer (I'm sure I said something exactly opposite at some point 🙂). I'll open a ticket for that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

import { createServiceLocator } from '@mongodb-js/compass-app-registry';

Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems easy enough: #7595

Copy link
Collaborator

@gribnoysup gribnoysup left a comment

Choose a reason for hiding this comment

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

Good as a temp workaround, but I opened https://jira.mongodb.org/browse/COMPASS-10116 to follow-up

@lerouxb lerouxb merged commit 47d2f40 into main Nov 25, 2025
57 of 61 checks passed
@lerouxb lerouxb deleted the make-private-deps-public branch November 25, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants