diff --git a/CHANGES.md b/CHANGES.md index 5cdcfb3..fc3a3d7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,4 @@ -# 0.2.0 (in development) +# 0.2.0 (from 29.11.2023) ## Breaking changes @@ -18,6 +18,7 @@ ## Other changes +* Exporting version number from `core` module. * A new function `getDataViewType(viewType: string): DataViewType` is exported from `extendit/contrib`. * Included the compiled `when` clause in `ToolView` interface to better diff --git a/package.json b/package.json index 0442c8f..86b8893 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@forman2/extendit", - "version": "0.2.0-alpha.0", + "version": "0.2.0", "type": "module", "displayName": "ExtendIt.js", "description": "A framework supporting development of extensible and scalable JavaScript applications", @@ -12,11 +12,10 @@ "license": "MIT", "keywords": [ "dependency inversion", - "dependency injection", "extension management", - "state", - "store", - "react" + "plugin management", + "react", + "ui" ], "files": [ "dist", diff --git a/src/framework/core/index.test.ts b/src/framework/core/index.test.ts index 7640090..4a23b13 100644 --- a/src/framework/core/index.test.ts +++ b/src/framework/core/index.test.ts @@ -7,6 +7,8 @@ import { expect, test } from "vitest"; import * as core from "./index"; +import packageJson from "../../../package.json"; + export const expectedExports = [ "activateExtension", "addExtensionListener", @@ -27,6 +29,7 @@ export const expectedExports = [ "registerContributionPoint", "registerExtension", "updateFrameworkConfig", + "version", ]; test("Framework Core API is complete", () => { @@ -35,3 +38,8 @@ test("Framework Core API is complete", () => { // console.log(api) expect(api).toEqual(expectedExports); }); + +test("Framework Core API version matches package.json", () => { + expect(typeof core.version).toEqual("string"); + expect(core.version).toEqual(packageJson.version); +}); diff --git a/src/framework/core/index.ts b/src/framework/core/index.ts index 8a3a5cd..c25780c 100644 --- a/src/framework/core/index.ts +++ b/src/framework/core/index.ts @@ -4,6 +4,8 @@ * https://opensource.org/licenses/MIT. */ +export const version = "0.2.0"; + ////////////////////////////////////////////////////////////////////////// // Framework API: export type { FrameworkOptions } from "./types";