Skip to content

Releases: flauwekeul/honeycomb

v4.1.5

20 Nov 11:10
Compare
Choose a tag to compare

v4.1.5 (2023-11-20)

🐛 Bug Fixes

4.1.5 (2023-11-20)

v4.1.4

18 Jul 19:23
Compare
Choose a tag to compare

v4.1.4 (2023-07-18)

🐛 Bug Fixes

4.1.4 (2023-07-18)

v4.1.3

14 Jul 20:20
Compare
Choose a tag to compare

v4.1.3 (2023-07-14)

🐛 Bug Fixes

4.1.3 (2023-07-14)

v4.1.2

14 Jul 08:08
Compare
Choose a tag to compare

v4.1.2 (2023-07-14)

🐛 Bug Fixes

4.1.2 (2023-07-14)

v4.1.1

16 May 19:35
Compare
Choose a tag to compare

v4.1.1 (2023-05-16)

🐛 Bug Fixes

  • 00b2567 Rings created with a radius never skip the first hex (Issues: #100)

4.1.1 (2023-05-16)

v4.1.0

13 May 13:23
Compare
Choose a tag to compare

v4.1.0 (2023-05-13)

✨ New Features

  • 2af4707 add optional 2nd argument to Grid.fromJSON() (Issues: #99)

4.1.0 (2023-05-13)

v4.0.1

13 Oct 19:40
Compare
Choose a tag to compare

v4.0.1 (2022-10-13)

🐛 Bug Fixes

  • 07af072 grid.neighborOf() now uses grid.getHex() primarily (Issues: #91)

4.0.1 (2022-10-13)

v4.0.0

04 Oct 07:08
Compare
Choose a tag to compare

v4.0.0 (2022-10-04)

✨ New Features

  • e08bc46 add, update and remove several Grid methods
  • fbac697 add some methods to Grid
  • f74f0d9 add completeCubeCoordinates() function
  • 0db7e22 add translate() function
  • 442e723 add pixelWidth and pixelHeight getters to Grid
  • 6b29a12 Hex is now a class
  • 5825ff0 update grid-related code to use Hex class
  • 6fc63cb rename functions and add util
  • e3cafe0 Hex's toString() returns constructor name
  • b369f1b hexes now only have q and r in the instance
  • 46ab7f2 grids now also accept iterables of coordinates
  • 6acb7e7 make `hexPrototype` public in `Grid`
  • 97e2838 add static `settings` prop to `Hex` (Issues: #86)

🐛 Bug Fixes

  • 38daeb0 fix Grid's traverse() (Issues: #84)
  • 5b6f730 fix release
  • b5a3895 another attempt to fix the release
  • 8f09aa4 actually build the project in ci 🥲
  • 921726d don't add /dist to git 🫤
  • 8115d61 use prepare hook for husky
  • 8e5d2b3 a spiral's radius now excludes the center
  • 3ed0fa5 fix bug in pointToHex()

4.0.0 (2022-10-04)

Bug Fixes

  • grid: fix bug where internal hexes were cleared after Grid run() was called (cb6c65d), closes #67
  • grid: fix incorrect width or height calculation in Grid.rectangleFromOpposingCorners() (3b4bb7c)
  • grid: fix neighborOf() (and functions that use it like move()) (3b8cdf6)
  • grid: grid's update() now always returns a grid that iterates over hexes in its store (b2a0298), closes #68
  • grid: grids are now iterable again (e.g.: [...grid] or for (const hex of grid) {})) (c142a68)
  • hex: createHex() now also accepts tuple coordinates (8f5196e)
  • hex: fix typing issue for createHexPrototype() (d6e24b4)
  • hex: when overriding a hex prototype method, this is now correctly typed (8df5488), closes 1#comment116992054_66162731
  • move (internal) util to fix circular dependency (be57fee)

Code Refactoring

  • grid: rename at() to add() and make it accept multiple coordinates (e63f650)

Features

  • add benny for running benchmarks (in node) (63a932f)
  • add parcel-bundler and playground (2845088)
  • coordinates: expand the HexCoordinates type to include a tuple of axial or cube coordinates (ca41673)
  • createHexPrototype() adds several readonly properties (WIP) (6af96e1)
  • first functionality of v4.0 (WIP) (fcd005a)
  • fix reference to type declaration and improve typing of createHexPrototype() (2c53678)
  • grid/neighborof: returns a hex instead of just coordinates (fa9f2f0)
  • grid/transduce: add transduce function (efd9c2e)
  • grid/transducers: add inGrid() transducer (97660e4)
  • grid/transducers: add tap() (28797cf)
  • grid/traversers: add repeatWith traverser (8e400af)
  • grid/traversers: re-implement rays, ring and spiral (9c84121)
  • grid/traversers: revert back to outputting arrays (282f1f1)
  • grid: a grid can now be created with an optional traverser (e56ced8)
  • grid: add distance function and method that returns the amount of hexes between 2 hexes (7a2de46)
  • grid: add from() static method that accepts an iterable of hexes and returns a new grid (83b25ad)
  • grid: add GridStore type and make sure the toString() Hex method is called to create an id (99192b2)
  • grid: add HexCache class and use it as a start to cache hexes in grid (2b4afeb)
  • grid: add hexes() and cursor() methods to Grid (5738045)
  • grid: add map() method to Grid (3716e6c)
  • grid: add NoOpCache and use it as the default cache in Grid (30d7a87)
  • grid: add optional argument to move() traverser to move in the same direction multiple times (f8b96ad)
  • grid: add rays() traverser (50e707d)
  • grid: add ring() traverser (256879f)
  • grid: add setStore helper function and add set method to GridStore interface (10125c1)
  • grid: add size getter and hasHex() method (eb41e71)
  • grid: add spiral() traverser (d433af0)
  • grid: add update() method to Grid (ec0dfce)
  • grid: call copy() on the initial cursor hex in Grid.traverse() (98c7054)
  • grid: change how a grid's store is set (2376845)
  • grid: grids can now be created/traversed with a single traverser or an array of traversers (890ce96)
  • grid: improve types and name some anonymous functions for better debugging (383dfbd)
  • grid: improve typing of Grid methods and traverse commands ([193531d](193531d9d2091399f4fae0a1539a...
Read more

v4.0.0-beta.8

03 Sep 12:53
Compare
Choose a tag to compare
v4.0.0-beta.8 Pre-release
Pre-release

v4.0.0-beta.8 (2022-09-03)

✨ New Features

  • 97e2838 add static `settings` prop to `Hex` (Issues: #86)

4.0.0-beta.8 (2022-09-03)

v4.0.0-beta.7

30 Aug 20:13
Compare
Choose a tag to compare
v4.0.0-beta.7 Pre-release
Pre-release

v4.0.0-beta.7 (2022-08-30)

🐛 Bug Fixes

4.0.0-beta.7 (2022-08-30)