❗ = breaking change
- Fix issue in
timeToString
where when time was0
it didn't respected the internationalization.
- Type definitions not being loaded correctly.
- Build issue.
- Generate documentation as markdown.
- Changes in
timeToString
.- Add
short_string
format. - Add
internationalization
argument to replace the display value of the result (when using thestring
orshort_string
formats).
- Add
- New format type
partial_daytime
added to thetimeToString
function.
Timer
class arguments was adjusted. ❗- In the
timeToString
function,units
now default toundefined
instead of2
, which makes it show all non-zero units (ifformat
has valuestring
). ❗ - Updated NodeJS and dependencies.
Timer
class now accepts the same arguments as in thetimeToString
function to control how the time is displayed on the html element (also allows a custom function instead).
- Updated NodeJS and dependencies to latest versions.
- Improve some npm scripts.
- End to end tests with cypress.
- Improved dialog class.
- Add option to close the dialog on overlay click.
- Add option to not show the buttons or to add a custom implementation.
- Make some properties 'readonly' instead of 'private'.
- Improve the build system.
- Renamed the 'MOUSE_CODE' dictionary to the 'MouseButton' enum.
- The 'KEY_CODE' dictionary (use the 'KeyboardEvent.key' or '.code' instead).
- A changelog file.
- A 'Preload' class to pre-load assets (audio/images/etc).
- A 'EventDispatcher' class to handle events.
- Add a code linter (eslint).
- Improve the build system.
- Remove runtime type checks from some functions.
- Reworked the 'getSeveralRandomInts()' function.
- Add new function 'range()', that creates an array with all the numbers in-between the given range.