Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This repository is a monorepo for all the various components in the MongoDB Shel
all environments (REPL, Browser, Compass, etc).

For our official documentation, please visit [MongoDB Docs
page](https://docs.mongodb.com/mongodb-shell).
page](https://mongodb.com/docs/mongodb-shell).

MongoDB Shell works with MongoDB servers >= 4.0.

Expand Down Expand Up @@ -108,7 +108,7 @@ variable. For detailed instructions for each of our supported platforms, please
Start mongosh using 'ships' database on specified connection string:
$ mongosh mongodb://192.168.0.5:9999/ships

For more information on usage: https://docs.mongodb.com/mongodb-shell.
For more information on usage: https://mongodb.com/docs/mongodb-shell.
```

<!-- /AUTOMATICALLY_INSERT_CLI_USAGE -->
Expand Down
4 changes: 2 additions & 2 deletions packages/cli-repl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ of mongosh, visit https://www.mongodb.com/try/download/shell.
Start mongosh using 'ships' database on specified connection string:
$ mongosh mongodb://192.168.0.5:9999/ships

For more information on usage: https://docs.mongodb.com/mongodb-shell.
For more information on usage: https://mongodb.com/docs/mongodb-shell.
```

<!-- /AUTOMATICALLY_INSERT_CLI_USAGE -->
Expand Down Expand Up @@ -306,5 +306,5 @@ npm install --save @mongosh/cli-repl
[mongosh]: https://github.com/mongodb-js/mongosh
[evergreen-url]: https://evergreen.mongodb.com/waterfall/mongosh
[pino-js]: https://github.com/pinojs/pino
[object-id]: https://docs.mongodb.com/manual/reference/method/ObjectId/
[object-id]: https://mongodb.com/docs/manual/reference/method/ObjectId/
[error-object]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error
2 changes: 1 addition & 1 deletion packages/cli-repl/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const USAGE = `
${clr('$ mongosh mongodb://192.168.0.5:9999/ships', 'mongosh:uri')}

${clr(i18n.__('cli-repl.args.moreInformation'), 'bold')} ${clr(
'https://docs.mongodb.com/mongodb-shell',
'https://mongodb.com/docs/mongodb-shell',
'mongosh:uri'
)}.
`
Expand Down
6 changes: 3 additions & 3 deletions packages/cli-repl/src/format-output.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ test 558.79 GiB
format({
value: {
help: 'Shell API',
docs: 'https://docs.mongodb.com',
docs: 'https://mongodb.com/docs',
attr: [
{
name: 'show dbs',
Expand All @@ -530,7 +530,7 @@ test 558.79 GiB
format({
value: {
help: 'Shell API',
docs: 'https://docs.mongodb.com',
docs: 'https://mongodb.com/docs',
attr: [
{
description: 'list available databases',
Expand Down Expand Up @@ -561,7 +561,7 @@ test 558.79 GiB
})
);

expect(output).to.not.contain('https://docs.mongodb.com');
expect(output).to.not.contain('https://mongodb.com/docs');
expect(output).to.contain('list available databases');
});

Expand Down
674 changes: 337 additions & 337 deletions packages/i18n/src/locales/en_US.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/mongosh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ of mongosh, visit https://www.mongodb.com/try/download/shell.
Start mongosh using 'ships' database on specified connection string:
$ mongosh mongodb://192.168.0.5:9999/ships

For more information on usage: https://docs.mongodb.com/mongodb-shell.
For more information on usage: https://mongodb.com/docs/mongodb-shell.
```

<!-- /AUTOMATICALLY_INSERT_CLI_USAGE -->
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ describe('worker-runtime', function () {
expect(printable).to.have.property('help', 'Shell Help');
expect(printable)
.to.have.property('docs')
.match(/https:\/\/docs.mongodb.com/);
.match(/https:\/\/mongodb.com\/docs/);
},
],
];
Expand Down
2 changes: 1 addition & 1 deletion packages/shell-api/src/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2016,7 +2016,7 @@ export default class Collection extends ShellApiWithMongoClass {
optionsOrOutString: MapReduceShellOptions
): Promise<Document> {
await this._instanceState.printDeprecationWarning(
'Collection.mapReduce() is deprecated. Use an aggregation instead.\nSee https://docs.mongodb.com/manual/core/map-reduce for details.'
'Collection.mapReduce() is deprecated. Use an aggregation instead.\nSee https://mongodb.com/docs/manual/core/map-reduce for details.'
);
assertArgsDefinedType(
[map, reduce, optionsOrOutString],
Expand Down
2 changes: 1 addition & 1 deletion packages/shell-api/src/field-level-encryption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ export class KeyVault extends ShellApiWithMongoClass {
if (typeof masterKeyOrAltNamesOrDataKeyOptions === 'string') {
if (kms === 'local' && masterKeyOrAltNamesOrDataKeyOptions === '') {
// allowed in the old shell - even enforced prior to 4.2.3
// https://docs.mongodb.com/manual/reference/method/KeyVault.createKey/
// https://mongodb.com/docs/manual/reference/method/KeyVault.createKey/
masterKey = undefined;
} else {
throw new MongoshInvalidInputError(
Expand Down
2 changes: 1 addition & 1 deletion packages/shell-api/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ export function markAsExplainOutput<T extends NotAPromise>(value: T): T {
return value;
}

// https://docs.mongodb.com/v5.0/reference/limits/#naming-restrictions
// https://mongodb.com/docs/v5.0/reference/limits/#naming-restrictions
// For db names, $ can be valid in some contexts (e.g. $external),
// so we let the server reject it if necessary.
export function isValidDatabaseName(name: string): boolean {
Expand Down
2 changes: 1 addition & 1 deletion packaging/LICENSE-crypt-library
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ By agreeing to an Order Form that references this Customer Agreement (this “Ag

“Deliverable” means a work provided to you as a part of the Consulting Services, including any report.

“Documentation” means the instructions, specifications and information regarding the Software available at https://docs.mongodb.com/.
“Documentation” means the instructions, specifications and information regarding the Software available at https://mongodb.com/docs/.

“Order Form” means an ordering document for Subscriptions signed by both parties that refers to this Agreement.

Expand Down