Skip to content

Releases: WalnutProgramming/room-finder

One-way hallways

13 Mar 22:47
Compare
Choose a tag to compare

Added one-way hallways with the oneWay option on a hallway.

In the process, we had to make each room its own node, which, in some cases, causes changes in produced directions.

Changing API for specifying nodes

20 Mar 22:05
Compare
Choose a tag to compare
Pre-release

This is for #38. The docs are NOT yet updated.

No changes

27 Feb 00:45
Compare
Choose a tag to compare

This release shouldn't have any actual changes. It was published because the package homepage changed.

Remove all commas before newlines

21 Feb 22:42
Compare
Choose a tag to compare

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

26 Jan 01:35
Compare
Choose a tag to compare

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

26 Jan 01:36
Compare
Choose a tag to compare

There are no user-side changes in this release. Upgraded devDependencies.

Added Building.validity

26 Jan 01:39
Compare
Choose a tag to compare

Added a property called Building.validity, which is useful for testing whether there's something wrong with a Building.