Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish 0.2.0 #33

Merged
merged 4 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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