From 4fd08d6cfdd41446685b53190be833055c10086f Mon Sep 17 00:00:00 2001 From: Chris Chudzicki Date: Mon, 4 Apr 2022 21:32:25 -0400 Subject: [PATCH] release version 2.1.3 (#24) --- CHANGES.md | 10 ++++++++++ package.json | 2 +- src/index.js | 2 +- src/types.ts | 2 ++ test/mathBox.spec.ts | 7 +++++++ tsconfig.json | 3 ++- 6 files changed, 23 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 77f4eacb..04f2923d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,15 @@ ### MathBox Changelog +#### 2.1.3 + +Some bugfixes: + +- [do not call inspect if mathbox was destroyed](https://github.com/unconed/mathbox/pull/23) Fixes an issue where Mathbox would asynchronously error if instances were destroyed immediately after creation. +- [Add a Jupyter Notebook example](https://github.com/unconed/mathbox/pull/17) _Note: This currently uses an outdated version of Mathbox._ +- [Fix sampling bug](https://gitgud.io/unconed/mathbox/-/merge_requests/36) Fixes a bug where `width`, `height`, and `depth` could be increased but not decreased +- Mathbox has been moved from GitGud to Github. Various CI/Development enhancements: + - https://github.com/unconed/mathbox/pull/22, https://github.com/unconed/mathbox/pull/20, https://github.com/unconed/mathbox/pull/11 + #### 2.1.2 - Typescript Improvements: diff --git a/package.json b/package.json index 2239bcd2..cb4f32ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mathbox", - "version": "2.1.2", + "version": "2.1.3", "description": "Presentation-quality WebGL math graphing", "repository": { "type": "git", diff --git a/src/index.js b/src/index.js index a93f8aad..61da4b57 100644 --- a/src/index.js +++ b/src/index.js @@ -23,7 +23,7 @@ import * as util from "./util"; import { Bootstrap } from "threestrap/src/bootstrap.js"; import { Context as ctx } from "./context.js"; -export const version = "2.1.1"; +export const version = "2.1.3"; // Just because export const π = Math.PI; diff --git a/src/types.ts b/src/types.ts index 9f80a408..a9a0457d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -804,3 +804,5 @@ export type MathBoxOptions = any; export declare function mathBox( opts?: MathBoxOptions ): MathboxSelection<"root">; + +export declare const version: string; diff --git a/test/mathBox.spec.ts b/test/mathBox.spec.ts index b7d95003..5ef452f6 100644 --- a/test/mathBox.spec.ts +++ b/test/mathBox.spec.ts @@ -1,6 +1,13 @@ import * as MathBox from "../src"; +import * as packageJson from "../package.json"; import { smallPause } from "./test_utils"; +describe("MathBox.version", () => { + it("matches package.json", () => { + expect(packageJson.version).toBe(MathBox.version); + }); +}); + describe("mathBox", () => { describe("ready", () => { it("it calls inspect asynchronously", async () => { diff --git a/tsconfig.json b/tsconfig.json index 0c259bca..2d3159f7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,8 @@ "moduleResolution": "node", "strictNullChecks": true, "baseUrl": "./", - "declaration": true + "declaration": true, + "resolveJsonModule": true }, "include": ["src/**/*"], "exclude": ["node_modules"]