Skip to content

Conversation

gagik
Copy link
Collaborator

@gagik gagik commented Jan 17, 2025

This also includes slight refactoring to split the modules of MongoLogManager and MongoLogWriter and export them separately as well as a minor breaking change capitalization typo fix.

Breaking Change:

There's one minor breaking change that seemed worth doing since this is a large enough change anyhow. Can revert if not worth it.
MongoLogManager.cleanupOldLogfiles => MongoLogManager.cleanupOldLogFiles

Related to:
MONGOSH-1992: Split MongoLogWriter and MongoLogManager
MONGOSH-1991: Move logging to devtools-shared

This also includes slight refactoring to split the modules of MongoLogManager and MongoLogWriter and export them separately as well as a minor breaking change capitalization typo fix.
@gagik gagik force-pushed the gagik/move-logging branch from 85d81de to 807ccb1 Compare January 17, 2025 11:41
@@ -0,0 +1,90 @@
{
"name": "@mongodb-js/mongodb-log-writer",
Copy link
Collaborator

@alenakhineika alenakhineika Jan 17, 2025

Choose a reason for hiding this comment

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

Are we moving it under the @mongodb-js/ prefix? originally the package had the mongodb-log-writer namespace. I think we have both namespaces in devtools-shared. Looks like other old packages that were moved to the mono repo didn't add the @mongodb-js/ prefix to their names. cc @addaleax

Copy link
Collaborator Author

@gagik gagik Jan 17, 2025

Choose a reason for hiding this comment

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

Oh my quick impression was that they did get a prefix but you're right, I could preserve the old name, don't have thoughts about this.
The prefix does mean we'd have divergent packages this way but I thought with a breaking change as long as that's communicated to Compass folk would be same effort.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

probably worth preserving the old name just for the NPM history etc.

@gagik gagik requested a review from alenakhineika January 20, 2025 09:55
@gagik gagik merged commit 1a9fdee into main Jan 20, 2025
5 checks passed
@gagik gagik deleted the gagik/move-logging branch January 20, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants