Skip to content

Commit

Permalink
Merge pull request #33 from forman/publish-0.2.0
Browse files Browse the repository at this point in the history
Publish 0.2.0
  • Loading branch information
forman authored Nov 29, 2023
2 parents e1477a4 + 8080664 commit 5d192be
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.2.0 (in development)
# 0.2.0 (from 29.11.2023)

## Breaking changes

Expand All @@ -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
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -12,11 +12,10 @@
"license": "MIT",
"keywords": [
"dependency inversion",
"dependency injection",
"extension management",
"state",
"store",
"react"
"plugin management",
"react",
"ui"
],
"files": [
"dist",
Expand Down
8 changes: 8 additions & 0 deletions src/framework/core/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import { expect, test } from "vitest";
import * as core from "./index";

import packageJson from "../../../package.json";

export const expectedExports = [
"activateExtension",
"addExtensionListener",
Expand All @@ -27,6 +29,7 @@ export const expectedExports = [
"registerContributionPoint",
"registerExtension",
"updateFrameworkConfig",
"version",
];

test("Framework Core API is complete", () => {
Expand All @@ -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);
});
2 changes: 2 additions & 0 deletions src/framework/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* https://opensource.org/licenses/MIT.
*/

export const version = "0.2.0";

//////////////////////////////////////////////////////////////////////////
// Framework API:
export type { FrameworkOptions } from "./types";
Expand Down

0 comments on commit 5d192be

Please sign in to comment.