From 309939be624731d952ad17b411b3650bad75265e Mon Sep 17 00:00:00 2001 From: David Mihalcik Date: Tue, 7 Jan 2025 16:07:32 -0500 Subject: [PATCH] publish tdfSpecVersion in ctl's --version option --- cli/src/cli.ts | 2 ++ lib/src/index.ts | 2 +- lib/src/version.ts | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cli/src/cli.ts b/cli/src/cli.ts index 2cec570b..91af19d0 100644 --- a/cli/src/cli.ts +++ b/cli/src/cli.ts @@ -13,6 +13,7 @@ import { type Source, AuthProviders, version, + tdfSpecVersion, OpenTDF, DecoratedStream, } from '@opentdf/sdk'; @@ -650,6 +651,7 @@ export const handleArgs = (args: string[]) => { JSON.stringify({ '@opentdf/ctl': process.env.npm_package_version || 'UNRELEASED', '@opentdf/sdk': version, + tdfSpecVersion, }) ) .alias('version', 'V') diff --git a/lib/src/index.ts b/lib/src/index.ts index 022be994..8e27fc56 100644 --- a/lib/src/index.ts +++ b/lib/src/index.ts @@ -1,6 +1,6 @@ export { type AuthProvider, type HttpMethod, HttpRequest, withHeaders } from './auth/auth.js'; export * as AuthProviders from './auth/providers.js'; export { attributeFQNsAsValues } from './policy/api.js'; -export { version, clientType } from './version.js'; +export { version, clientType, tdfSpecVersion } from './version.js'; export * from './opentdf.js'; export * from './seekable.js'; diff --git a/lib/src/version.ts b/lib/src/version.ts index dabecd6e..a16104fa 100644 --- a/lib/src/version.ts +++ b/lib/src/version.ts @@ -7,3 +7,5 @@ export const version = '0.2.0'; * A string name used to label requests as coming from this library client. */ export const clientType = 'web-sdk'; + +export const tdfSpecVersion = '4.3.0';