From e26ee82cdd80150143f81a0adc689c92da5585da Mon Sep 17 00:00:00 2001 From: skanaar Date: Wed, 8 Jul 2020 11:14:07 +0200 Subject: [PATCH] v0.7.3 --- changelog.md | 4 ++++ dist/nomnoml.js | 2 +- package-lock.json | 2 +- package.json | 2 +- src/nomnoml.ts | 2 +- test/test.js | 6 ++++++ 6 files changed, 14 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index c49918d..abfc609 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +## [0.7.3] - 2020-07-08 + +- fixed incomplete rendering when edges extended outside bounding box + ## [0.7.2] - 2020-05-14 - upgraded dependencies diff --git a/dist/nomnoml.js b/dist/nomnoml.js index c277bdf..9cac15a 100644 --- a/dist/nomnoml.js +++ b/dist/nomnoml.js @@ -206,7 +206,7 @@ var nomnoml; nomnoml.render(graphics, config, layout, measurer.setFont); return { config: config }; } - nomnoml.version = '0.7.2'; + nomnoml.version = '0.7.3'; function draw(canvas, code, scale) { return parseAndRender(code, nomnoml.skanaar.Canvas(canvas), canvas, scale || 1); } diff --git a/package-lock.json b/package-lock.json index d3e7e23..4428821 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nomnoml", - "version": "0.7.2", + "version": "0.7.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7efcaa6..42472df 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nomnoml", - "version": "0.7.2", + "version": "0.7.3", "description": "The sassy UML renderer that generates diagrams from text", "homepage": "http://www.nomnoml.com", "author": "Daniel Kallin ", diff --git a/src/nomnoml.ts b/src/nomnoml.ts index e68b718..0a1b34d 100644 --- a/src/nomnoml.ts +++ b/src/nomnoml.ts @@ -49,7 +49,7 @@ namespace nomnoml { return { config: config } } - export var version = '0.7.2' + export var version = '0.7.3' export function draw(canvas: HTMLCanvasElement, code: string, scale: number): { config: Config } { return parseAndRender(code, skanaar.Canvas(canvas), canvas, scale || 1) diff --git a/test/test.js b/test/test.js index 5f02bb7..775f41f 100644 --- a/test/test.js +++ b/test/test.js @@ -13,7 +13,13 @@ catch(e) { function assertLibraryVersion() { var library = require('../dist/nomnoml.js') var package = require('../package.json') + var changelog = fs.readFileSync('changelog.md', { encoding: 'utf-8' }) + var versionMatch = changelog.match(/\d+\.\d+\.\d+/) + var logVersion = versionMatch && versionMatch[0] if (library.version != package.version) { throw new Error('version of distribution bundle and npm package must match') } + if (library.version != logVersion) { + throw new Error('version must be documented in changelog') + } }