[COMPASS-6322] Compass shows a Buffer() warning when started from the command line Created: 23/Nov/22  Updated: 29/Oct/23  Resolved: 24/Nov/22

Status: Closed
Project: Compass
Component/s: CLI
Affects Version/s: 1.34.1
Fix Version/s: 1.35.0

Type: Bug Priority: Major - P3
Reporter: Jeffrey Allen Assignee: Anna Henningsen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

macOS


Issue Links:
Related
is related to COMPASS-6151 Running compass as CLI leads to error... Open
Epic Link: COMPASS-5816
Story Points: 2
Documentation Changes: Not Needed
Sprint: Iteration Porpoise

 Description   

Problem Statement/Rationale

When I start Compass from the command line, Compass displays the following warning:

> /Applications/MongoDB\ Compass.app/Contents/MacOS/MongoDB\ Compass 
 
(node:68272) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `MongoDB Compass Beta Helper (Renderer) --trace-deprecation ...` to show where the warning was created)

Expected Results

Compass does not show any warnings on startup.

Actual Results

Compass shows this warning on startup. The application still starts normally, this warning is just shown in the console.

Additional Notes

This warning could be seen as a security risk to users unfamiliar with what's going on behind the scenes.



 Comments   
Comment by Githook User [ 01/Dec/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(compass): disable deprecation warnings in production COMPASS-6322 (#3818)
Branch: update-compass-shell-to-shared-config
https://github.com/mongodb-js/compass/commit/8525427348ca32fef3115e4a530fa1e074bc478d

Comment by Githook User [ 30/Nov/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(compass): disable deprecation warnings in production COMPASS-6322 (#3818)
Branch: update-lg-again
https://github.com/mongodb-js/compass/commit/8525427348ca32fef3115e4a530fa1e074bc478d

Comment by Githook User [ 28/Nov/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(compass): disable deprecation warnings in production COMPASS-6322 (#3818)
Branch: no-duplicate-stages
https://github.com/mongodb-js/compass/commit/8525427348ca32fef3115e4a530fa1e074bc478d

Comment by Githook User [ 28/Nov/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(compass): disable deprecation warnings in production COMPASS-6322 (#3818)
Branch: update-react-tooltip-usage-to-lg
https://github.com/mongodb-js/compass/commit/8525427348ca32fef3115e4a530fa1e074bc478d

Comment by Githook User [ 28/Nov/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(compass): disable deprecation warnings in production COMPASS-6322 (#3818)
Branch: add-script-for-generating-readme-package-descriptions
https://github.com/mongodb-js/compass/commit/8525427348ca32fef3115e4a530fa1e074bc478d

Comment by Githook User [ 25/Nov/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(compass): disable deprecation warnings in production COMPASS-6322 (#3818)
Branch: COMPASS-6325-fix-settings-modal-height-and-categories
https://github.com/mongodb-js/compass/commit/8525427348ca32fef3115e4a530fa1e074bc478d

Comment by Githook User [ 25/Nov/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(compass): disable deprecation warnings in production COMPASS-6322 (#3818)
Branch: compass-6057-refactor-auto-updates
https://github.com/mongodb-js/compass/commit/8525427348ca32fef3115e4a530fa1e074bc478d

Comment by Githook User [ 25/Nov/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(compass): disable deprecation warnings in production COMPASS-6322 (#3818)
Branch: COMPASS-6328-telemtry-for-text-mode
https://github.com/mongodb-js/compass/commit/8525427348ca32fef3115e4a530fa1e074bc478d

Comment by Githook User [ 24/Nov/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(compass): disable deprecation warnings in production COMPASS-6322 (#3818)
Branch: main
https://github.com/mongodb-js/compass/commit/8525427348ca32fef3115e4a530fa1e074bc478d

Comment by Githook User [ 24/Nov/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix(compass): disable deprecation warnings in production COMPASS-6322
Branch: 6322-dev
https://github.com/mongodb-js/compass/commit/f9dc1e09389416f958e939a8f9236e6180edb4b1

Generated at Wed Feb 07 22:42:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.