Releases: WalnutProgramming/room-finder
Releases · WalnutProgramming/room-finder
One-way hallways
Changing API for specifying nodes
This is for #38. The docs are NOT yet updated.
No changes
This release shouldn't have any actual changes. It was published because the package homepage changed.
Remove all commas before newlines
When 2 hallways are connected by nodes that were each on the RIGHT or LEFT sides of their corresponding hallways (i.e. the connected hallways are parallel), room-finder previously gave directions like this:
Turn right out of room A
Continue, then turn left into hallway 2
, and then turn right
Continue, then turn left into hallway 3
, and then turn left
Continue, then turn right into room F
Now, the newlines before the commas are removed:
Turn right out of room A
Continue, then turn left into hallway 2, and then turn right
Continue, then turn left into hallway 3, and then turn left
Continue, then turn right into room F
Add formatting options
Added
- Added an optional third argument to Building.getDirections for formatting options. This allows you to specify whether the directions should be capitalized at the beginning of a line and whether there should be a period at the end of each sentence.
Fixed
- Fixed a bug where Buildings with a single hallway produce directions that begin with a lowercase letter.
Other
- Added tests
- Added documentation on GitHub as homepage in package.json
Development-side changes
There are no user-side changes in this release. Upgraded devDependencies.
Added Building.validity
Added a property called Building.validity, which is useful for testing whether there's something wrong with a Building.