From e7ea1a3ddef293ce0121a24e84e785f7bad9d68d Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Mon, 30 Aug 2021 16:34:14 +0200 Subject: [PATCH 1/2] fix(shell-api): fix deprecated PlanCache method name MONGOSH-937 --- packages/shell-api/src/plan-cache.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/shell-api/src/plan-cache.ts b/packages/shell-api/src/plan-cache.ts index ce36a35f1..20d6f329c 100644 --- a/packages/shell-api/src/plan-cache.ts +++ b/packages/shell-api/src/plan-cache.ts @@ -61,12 +61,12 @@ export default class PlanCache extends ShellApiWithMongoClass { } @deprecated - planCacheQueryShapes(): void { + listQueryShapes(): never { throw new MongoshDeprecatedError('PlanCache.listQueryShapes was deprecated, please use PlanCache.list instead'); } @deprecated - getPlansByQuery(): void { + getPlansByQuery(): never { throw new MongoshDeprecatedError('PlanCache.getPlansByQuery was deprecated, please use PlanCache.list instead'); } } From 27934ae5c0a872e2af823248770b174fa3e1b2ea Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Mon, 30 Aug 2021 20:30:41 +0200 Subject: [PATCH 2/2] fixup --- 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 0cf7a81a6..99e26a96c 100644 --- a/packages/i18n/src/locales/en_US.ts +++ b/packages/i18n/src/locales/en_US.ts @@ -2082,7 +2082,7 @@ const translations: Catalog = { getPlansByQuery: { description: 'Deprecated. Please use PlanCache.list instead' }, - planCacheQueryShapes: { + listQueryShapes: { description: 'Deprecated. Please use PlanCache.list instead' } }