Skip to content

Commit

Permalink
Release 1.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
matthijsgroen committed Sep 23, 2020
1 parent 7c9071e commit 366bd95
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.11.1] - 2020-09-23

## Fixes

- Overview diagrams should also optimize its sub elements

## [1.11.0] - 2020-09-23

### Added
Expand Down
4 changes: 2 additions & 2 deletions examples/ebnf.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/json.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions examples/optimizations.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ebnf2railroad",
"version": "1.11.0",
"version": "1.11.1",
"description": "EBNF to Railroad diagram",
"keywords": [
"ebnf",
Expand Down
6 changes: 5 additions & 1 deletion src/report-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,12 @@ const createDiagram = (production, metadata, ast, options) => {
if (expand) {
const nested = ast.find(node => node.identifier === item);
expanded.push(item);
const renderNested =
options.optimizeDiagrams === false
? nested
: optimizeProduction(nested);
return Group(
productionToDiagram(nested.definition, {
productionToDiagram(renderNested.definition, {
...baseOptions,
renderNonTerminal
}),
Expand Down

0 comments on commit 366bd95

Please sign in to comment.