0.3.1
API Updates
- Added a few more methods to Cursor .
- Added support for query PlanCache methods.
- Added support error helper methods.
- Added support for show users, show profile, show logs, show log[name] .
- [Breaking change comparing with
mongo
] Consistently throw when result of command has ok: 0.
The old shell and the driver have a behavior that is not consistent from one command to another. We decided to standardize the user-facing behavior here. Whenever a shell helper issues a db command that results in{ok: 0}
the shell will throw an error. Running the raw command, however, will not throw and will just print whatever the server returns.
Bug Fixes
- getUser() userId field is outputted as binary.
- Linux tarball is not gzipped.
- [Breaking change compared to
mongo
] Wrong values with NumberLong for numbers > Number.MAX_SAFE_INTEGER.
mongo
allows users to create NumberLong and NumberDecimal objects passing either a string or a number in the constructor. This potentially leads to unexpected behaviors when the number passed in the constructor is greater thanNumber.MAX_SAFE_INTEGER
. For this reason, we decided to force the argument to be a string and we throw an error (MongoshInvalidInputError
) if it’s not. Ctrl+C
does not terminate the currently running command in the shell.
NowCtrl+C
only terminates the running command and not the whole shell (note: it terminates the process in the shell, but does not terminate the process on the mongodb server).
This release also builds an rpm
artifact which can be downloaded from the downloads centre or from the attached assets to this release. It can then be installed on redhat-like distros with:
rpm --install /path/to/rpm/artifact
Release notes in Jira