Skip to content

Commit

Permalink
v0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
skanaar committed Jul 8, 2020
1 parent bb38fc0 commit e26ee82
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion dist/nomnoml.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/nomnoml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}

0 comments on commit e26ee82

Please sign in to comment.