From 4bb26aadb5d45e6c3e2476e2fa412d509ec770d9 Mon Sep 17 00:00:00 2001 From: Paula Stachova Date: Thu, 2 Oct 2025 14:52:30 +0200 Subject: [PATCH 1/2] fix: update links to docs MONGOSH-1153 --- packages/i18n/src/locales/en_US.ts | 32 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/i18n/src/locales/en_US.ts b/packages/i18n/src/locales/en_US.ts index 7ed18552d..da1c107f1 100644 --- a/packages/i18n/src/locales/en_US.ts +++ b/packages/i18n/src/locales/en_US.ts @@ -2446,7 +2446,7 @@ const translations: Catalog = { DBRef: { help: { description: 'The DBRef BSON Class.', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/DBRef.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.DBRef.html', example: 'new DBRef(namespace: string, oid: ObjectId, db: string [optional])', }, @@ -2455,7 +2455,7 @@ const translations: Catalog = { MaxKey: { help: { description: 'The MaxKey BSON Class.', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/MaxKey.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.MaxKey.html', example: 'new MaxKey()', }, attributes: {}, @@ -2463,7 +2463,7 @@ const translations: Catalog = { MinKey: { help: { description: 'The MinKey BSON Class', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/MinKey.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.MinKey.html', example: 'new MinKey()', }, attributes: {}, @@ -2471,7 +2471,7 @@ const translations: Catalog = { ObjectId: { help: { description: 'The ObjectId BSON Class', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/ObjectID.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.ObjectId.html', example: 'new ObjectId(id: string|number [optional])', }, attributes: {}, @@ -2480,7 +2480,7 @@ const translations: Catalog = { help: { description: 'The Symbol BSON Class. Deprecated since server version 1.6', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/Symbol.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.BSONSymbol.html', example: 'new BSONSymbol("abc")', }, attributes: {}, @@ -2488,7 +2488,7 @@ const translations: Catalog = { Timestamp: { help: { description: 'The Timestamp BSON Class', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/Timestamp.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.Timestamp.html', example: 'new Timestamp(low: signed 32 bit number, high: signed 32 bit number)', }, @@ -2497,7 +2497,7 @@ const translations: Catalog = { Code: { help: { description: 'The Code BSON Class', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/Code.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.Code.html', example: 'new Code("x", { x: 1 } [optional])', }, attributes: {}, @@ -2506,7 +2506,7 @@ const translations: Catalog = { help: { description: 'A helper method that constructs a Decimal128 BSON Class from a string', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/Decimal128.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.Decimal128.html', example: 'NumberDecimal("1.23423423")', }, }, @@ -2514,7 +2514,7 @@ const translations: Catalog = { help: { description: 'The Decimal128 BSON Class. Takes a Buffer as an argument.', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/Decimal128.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.Decimal128.html', }, attributes: {}, }, @@ -2522,14 +2522,14 @@ const translations: Catalog = { help: { description: 'A helper method that constructs an Int32 BSON Class from a string', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/Int32.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.Int32.html', example: 'NumberInt("123")', }, }, Int32: { help: { description: 'The 32-bit Integer BSON Class', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/Int32.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.Int32.html', example: 'new Int32(123)', }, attributes: {}, @@ -2537,7 +2537,7 @@ const translations: Catalog = { Long: { help: { description: 'The Long BSON Class', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/Long.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.Long.html', example: 'new Long(low: signed 32 bit number, high: signed 32 bit number)', }, @@ -2546,7 +2546,7 @@ const translations: Catalog = { Double: { help: { description: 'The Double BSON Class.', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/Long.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.Long.html', example: 'new Double(123)', }, attributes: {}, @@ -2555,7 +2555,7 @@ const translations: Catalog = { help: { description: 'A helper method that constructs a Long BSON Class from a string', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/Long.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.Long.html', example: 'NumberLong("123")', }, }, @@ -2572,7 +2572,7 @@ const translations: Catalog = { BinData: { help: { description: 'A helper method that constructs a Binary BSON Class.', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/Binary.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.Binary.html', example: 'BinData(subtype: number, base64string)', }, }, @@ -2580,7 +2580,7 @@ const translations: Catalog = { help: { description: 'The Binary BSON Class that takes in (Buffer, subtype: number) as arguments.', - link: 'https://mongodb.github.io/node-mongodb-native/3.6/api/Binary.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.Binary.html', }, attributes: { SUBTYPE_BYTE_ARRAY: { From 173585f25319d7f5cb5334624149c3a2608e3421 Mon Sep 17 00:00:00 2001 From: Paula Stachova Date: Thu, 2 Oct 2025 14:56:38 +0200 Subject: [PATCH 2/2] Update packages/i18n/src/locales/en_US.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- packages/i18n/src/locales/en_US.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/i18n/src/locales/en_US.ts b/packages/i18n/src/locales/en_US.ts index da1c107f1..9d186d5d0 100644 --- a/packages/i18n/src/locales/en_US.ts +++ b/packages/i18n/src/locales/en_US.ts @@ -2546,7 +2546,7 @@ const translations: Catalog = { Double: { help: { description: 'The Double BSON Class.', - link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.Long.html', + link: 'https://mongodb.github.io/node-mongodb-native/Next/classes/BSON.Double.html', example: 'new Double(123)', }, attributes: {},