From a61edc8bc6c5ac3b9485ec24b7e3748c45ce2bd9 Mon Sep 17 00:00:00 2001 From: Norman Fomferra Date: Wed, 29 Nov 2023 09:13:24 +0100 Subject: [PATCH 1/4] About to publish 0.2.0 --- CHANGES.md | 3 ++- package.json | 9 ++++----- src/framework/core/index.test.ts | 4 ++++ src/framework/core/index.ts | 2 ++ 4 files changed, 12 insertions(+), 6 deletions(-) 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..3ca0dd1 100644 --- a/src/framework/core/index.test.ts +++ b/src/framework/core/index.test.ts @@ -35,3 +35,7 @@ test("Framework Core API is complete", () => { // console.log(api) expect(api).toEqual(expectedExports); }); + +test("Framework Core API version matches package.json", () => { + expect(core.version).toEqual("0.2.0"); +}); 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"; From 542a012f1fbbbd196ce5c3a71e8fd0c58f1a0fdd Mon Sep 17 00:00:00 2001 From: Norman Fomferra Date: Wed, 29 Nov 2023 10:36:52 +0100 Subject: [PATCH 2/4] compare version with package.json --- src/framework/core/index.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/framework/core/index.test.ts b/src/framework/core/index.test.ts index 3ca0dd1..bf10906 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", () => { @@ -37,5 +40,5 @@ test("Framework Core API is complete", () => { }); test("Framework Core API version matches package.json", () => { - expect(core.version).toEqual("0.2.0"); + expect(core.version).toEqual(packageJson.version); }); From 745ff7c9b13c76d940dbabbd4f97ffcdde122cf1 Mon Sep 17 00:00:00 2001 From: Norman Fomferra Date: Wed, 29 Nov 2023 10:39:13 +0100 Subject: [PATCH 3/4] compare version with package.json --- src/framework/core/index.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/framework/core/index.test.ts b/src/framework/core/index.test.ts index bf10906..5574cf4 100644 --- a/src/framework/core/index.test.ts +++ b/src/framework/core/index.test.ts @@ -40,5 +40,6 @@ test("Framework Core API is complete", () => { }); test("Framework Core API version matches package.json", () => { + expect(typeof core.version).toEqual("string"); expect(core.version).toEqual(packageJson.version); }); From 8080664c931977462ed9ca80efed60cd957a4eae Mon Sep 17 00:00:00 2001 From: Norman Fomferra Date: Wed, 29 Nov 2023 10:40:44 +0100 Subject: [PATCH 4/4] compare version with package.json (3) --- src/framework/core/index.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/core/index.test.ts b/src/framework/core/index.test.ts index 5574cf4..4a23b13 100644 --- a/src/framework/core/index.test.ts +++ b/src/framework/core/index.test.ts @@ -7,7 +7,7 @@ import { expect, test } from "vitest"; import * as core from "./index"; -import packageJson from "/package.json"; +import packageJson from "../../../package.json"; export const expectedExports = [ "activateExtension",