From 6f08d1a9706d70c47272d815c8cd694eb90d9b81 Mon Sep 17 00:00:00 2001 From: Casey Occhialini <1508707+littlespex@users.noreply.github.com> Date: Thu, 12 Oct 2023 14:47:31 -0700 Subject: [PATCH 1/3] fix: rename CmcdParam file to match exported const Signed-off-by: Casey Occhialini <1508707+littlespex@users.noreply.github.com> --- CHANGELOG.md | 3 +++ lib/src/cmcd.ts | 2 +- lib/src/cmcd/{CmcdParam.ts => CMCD_PARAM.ts} | 0 3 files changed, 4 insertions(+), 1 deletion(-) rename lib/src/cmcd/{CmcdParam.ts => CMCD_PARAM.ts} (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b40f34c..86658e82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.4.5] - 2023-10-12 +### Fixed +- `CMCD_PARAM` constant does not match file name [#27](https://github.com/streaming-video-technology-alliance/common-media-library/issues/27) + ## [0.4.4] - 2023-10-11 diff --git a/lib/src/cmcd.ts b/lib/src/cmcd.ts index 66de579f..ce01b386 100644 --- a/lib/src/cmcd.ts +++ b/lib/src/cmcd.ts @@ -3,6 +3,7 @@ * * @packageDocumentation */ +export { CMCD_PARAM } from './cmcd/CMCD_PARAM.js'; export type { Cmcd } from './cmcd/Cmcd.js'; export type { CmcdCustomKey } from './cmcd/CmcdCustomKey.js'; export type { CmcdEncodeOptions } from './cmcd/CmcdEncodeOptions.js'; @@ -12,7 +13,6 @@ export { CmcdHeaderField } from './cmcd/CmcdHeaderField.js'; export type { CmcdHeadersMap } from './cmcd/CmcdHeadersMap.js'; export type { CmcdKey } from './cmcd/CmcdKey.js'; export { CmcdObjectType } from './cmcd/CmcdObjectType.js'; -export { CMCD_PARAM } from './cmcd/CmcdParam.js'; export { CmcdStreamType } from './cmcd/CmcdStreamType.js'; export { CmcdStreamingFormat } from './cmcd/CmcdStreamingFormat.js'; export type { CmcdValue } from './cmcd/CmcdValue.js'; diff --git a/lib/src/cmcd/CmcdParam.ts b/lib/src/cmcd/CMCD_PARAM.ts similarity index 100% rename from lib/src/cmcd/CmcdParam.ts rename to lib/src/cmcd/CMCD_PARAM.ts From 5f7d6eb0b9ea01aef53f1b5e1d6689fd3f3c25bb Mon Sep 17 00:00:00 2001 From: Casey Occhialini <1508707+littlespex@users.noreply.github.com> Date: Thu, 12 Oct 2023 15:02:11 -0700 Subject: [PATCH 2/3] fix: ts errors Signed-off-by: Casey Occhialini <1508707+littlespex@users.noreply.github.com> --- lib/src/cmcd/fromCmcdQuery.ts | 2 +- lib/src/cmcd/toCmcdQuery.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/cmcd/fromCmcdQuery.ts b/lib/src/cmcd/fromCmcdQuery.ts index 5599ba1d..4b81ce70 100644 --- a/lib/src/cmcd/fromCmcdQuery.ts +++ b/lib/src/cmcd/fromCmcdQuery.ts @@ -1,5 +1,5 @@ import { Cmcd } from './Cmcd.js'; -import { CMCD_PARAM } from './CmcdParam.js'; +import { CMCD_PARAM } from './CMCD_PARAM.js'; import { decodeCmcd } from './decodeCmcd.js'; /** diff --git a/lib/src/cmcd/toCmcdQuery.ts b/lib/src/cmcd/toCmcdQuery.ts index f882fd46..0c169919 100644 --- a/lib/src/cmcd/toCmcdQuery.ts +++ b/lib/src/cmcd/toCmcdQuery.ts @@ -1,6 +1,6 @@ +import { CMCD_PARAM } from './CMCD_PARAM.js'; import { Cmcd } from './Cmcd.js'; import { CmcdEncodeOptions } from './CmcdEncodeOptions.js'; -import { CMCD_PARAM } from './CmcdParam.js'; import { encodeCmcd } from './encodeCmcd.js'; /** @@ -11,7 +11,7 @@ import { encodeCmcd } from './encodeCmcd.js'; * * @returns The CMCD query arg. * - * @group CMCD + * @tag CMCD */ export function toCmcdQuery(cmcd: Cmcd, options: CmcdEncodeOptions = {}) { if (!cmcd) { From 9058f273b1a939206cfaacf13ba037c54269791a Mon Sep 17 00:00:00 2001 From: Casey Occhialini <1508707+littlespex@users.noreply.github.com> Date: Thu, 12 Oct 2023 15:04:47 -0700 Subject: [PATCH 3/3] no message Signed-off-by: Casey Occhialini <1508707+littlespex@users.noreply.github.com> --- lib/src/cmcd/toCmcdQuery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/cmcd/toCmcdQuery.ts b/lib/src/cmcd/toCmcdQuery.ts index 0c169919..f0f60c49 100644 --- a/lib/src/cmcd/toCmcdQuery.ts +++ b/lib/src/cmcd/toCmcdQuery.ts @@ -11,7 +11,7 @@ import { encodeCmcd } from './encodeCmcd.js'; * * @returns The CMCD query arg. * - * @tag CMCD + * @group CMCD */ export function toCmcdQuery(cmcd: Cmcd, options: CmcdEncodeOptions = {}) { if (!cmcd) {