mongosh
Changelog¶
v0.6.1¶
Released November 30, 2020
New features in this release:
- Support for readPreference methods.
- Support for the session object and related session object methods.
- Support for transaction methods.
Bug fixes and miscellaneous updates in this release:
- Remove support for deprecated 3.6 CRUD methods (
insert()
,remove()
,save()
, andupdate()
). - Fix an issue with loading JavaScript files into
mongosh
. - Fix an issue where when inserting many documents via a for loop, the loop would abort before all documents were inserted.
- Fix issue with output when printing result of a cursor.
- Update the Node REPL to use Node version 14.
v0.5.2¶
Released November 11, 2020
- Autocomplete now works properly when connected to a MongoDB 4.4.1 deployment.
- The
sh.status
method now outputs correctly in the browser shell.
v0.5.0¶
Released October 12, 2020
- Adds support for replica set management methods.
- Adds support for sharded cluster management methods.
v0.4.2¶
Released October 1, 2020
Adds support for collection names with a dot. For example, to query a collection named
my.collection
, you can run:db.my.collection.findOne()
v0.4.0¶
Released September 15, 2020
Adds support for the following methods:
- Adds support for
maxAwaitTimeMS
for cursors.
v0.3.1¶
Released September 14, 2020
Improvements¶
This release adds support for:
- New
cursor
methods - Query
planCache
methods - Error helper methods
The following helper commands:
show users
show profile
show logs
show log[<name>]
This release includes an .rpm
artifact which can be downloaded from
the MongoDB Download Center.
Behavior Updates¶
Whenever a command's output includes { ok: 0 }
, mongosh
throws
an exception and does not return the raw output from the server.
The legacy mongo
shell error handling is not consistent between
commands. mongosh
standardizes the user-facing behavior for a
more consistent experience.
Bug Fixes¶
- MONGOSH-323: getUser() userId field is outputted as binary.
- MONGOSH-337: Linux tarball is not gzipped.
MONGOSH-341: Wrong values with NumberLong for numbers > Number.MAX_SAFE_INTEGER. As a result of this fix, values passed to
NumberLong
andNumberDecimal
must be strings.ImportantThe fix for MONGOSH-341 is a breaking change when compared to behavior in the legacy
mongo
shell.MONGOSH-346:
Ctrl+C
does not terminate the currently running command in the shell.NoteCtrl+C
terminates the process in the shell, but does not terminate the process on the MongoDB server.
v0.2.2¶
Released August 31, 2020
API Additions¶
This release adds support for the following APIs:
- Admin commands such as
db.killOp
anddb.currentOp
. More detail in MONGOSH-307. - Free monitoring commands such as
db.enableFreeMonitoring
. More detail in MONGOSH-300. - Logging and profiling helper method implementations
(e.g.
db.setLogLevel
,db.getProfilingLevel
). More detail in MONGOSH-299. - Raw command execution methods helpers (e.g.
db.listCommands
). More detail in MONGOSH-301. - Server stats commands such as
db.serverBuildInfo
anddb.serverStatus
. More detail in MONGOSH-304. - Bulk API support. Details in MONGOSH-296.
Bug Fixes¶
- Credentials are now properly redacted in logging and history.
Past Releases¶
For information on past releases, refer to mongosh Releases on GitHub.