From 07242b37a49ef3c3704f429570b3c9e377b72ecb Mon Sep 17 00:00:00 2001 From: Rob Herley Date: Thu, 5 May 2022 19:44:13 +0000 Subject: [PATCH] add & deprecate old markdownSummary export --- packages/core/src/core.ts | 5 +++++ packages/core/src/summary.ts | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/core/src/core.ts b/packages/core/src/core.ts index 97073839..f5e7941b 100644 --- a/packages/core/src/core.ts +++ b/packages/core/src/core.ts @@ -364,3 +364,8 @@ export async function getIDToken(aud?: string): Promise { * Summary exports */ export {summary} from './summary' + +/** + * @deprecated use core.summary + */ +export {markdownSummary} from './summary' diff --git a/packages/core/src/summary.ts b/packages/core/src/summary.ts index 41db1de1..015f2eea 100644 --- a/packages/core/src/summary.ts +++ b/packages/core/src/summary.ts @@ -354,5 +354,10 @@ class Summary { } } -// singleton export -export const summary = new Summary() +const _summary = new Summary() + +/** + * @deprecated use `core.summary` + */ +export const markdownSummary = _summary +export const summary = _summary