v2.17.0

MagicMirrorOrg/MagicMirrorv2.17.0Oct 1, 2021by MichMich

AI Summary

Adds test infrastructure for clock and updatenotification modules, refactors weather providers.

Key Highlights

  • New `showTime` parameter for the clock module.
  • Custom electron switches via user config.
  • Unit tests for the updatenotification module.
  • Refactored weather providers into weatherobject.

New Features

  • Clock module `showTime` parameter
  • Custom electron switches via `config.electronSwitches`
  • Unit tests for updatenotification module

Full Release Notes

## [2.17.0] - 2021-10-01

Special thanks to the following contributors: @apiontek, @eouia, @jupadin, @khassel and @rejas.

### Added

- Added showTime parameter to clock module for enabling/disabling time display in analog clock.
- Added custom electron switches from user config (`config.electronSwitches`).
- Added unit tests for updatenotification module.

### Updated

- Bump electron to v13 (and spectron to v15) and update other dependencies in package.json.
- Refactor test configs, use default test config for all tests.
- Updated github templates.
- Actually test all js and css files when lint script is run.
- Update jsdocs and print warnings during testing too.
- Update weathergov provider to try fetching not just current, but also foreacst, when API URLs available.
- Refactored clock layout.
- Refactored methods from weatherproviders into weatherobject (isDaytime, updateSunTime).
- Use of `logger.js` in jest tests.
- Run prettier over all relevant files.
- Move tests needing electron in new category `electron`, use `server only` mode in `e2e` tests.
- Update dependencies in package.json.

### Fixed

- Fix undefined error with ignoreToday option in weather module (#2620).
- Fix time zone correction in calendar module when the date hour is equal to the time zone correction value (#2632).
- Fix black cursor on startup when using electron.
- Fix update notification not working for own repository (#2644).