v2.20.0

MagicMirrorOrg/MagicMirrorv2.20.0Jul 2, 2022by MichMich

AI Summary

Enhances security with Helmet, adds calendar end date display, and migrates to Node 18.

Key Highlights

  • New `httpHeaders` config option for Helmet integration.
  • Calendar events now show end date when configured.
  • Migration to Node 18 and Electron 19.
  • Use of internal fetch function in Node v18+.

New Features

  • New config option `httpHeaders` for embedding into other websites
  • Show endDate for calendar events
  • Weather module emits notifications on information updates

Full Release Notes

## [2.20.0] - 2022-07-02

Special thanks to the following contributors: @eouia, @khassel, @kolbyjack, @KristjanESPERANTO, @nathannaveen, @naveensrinivasan, @rejas, @rohitdharavath and @sdetweil.

### Added

- Added a new config option `httpHeaders` used by helmet (see https://helmetjs.github.io/). You can now set own httpHeaders which will override the defaults in `js/defauls.js` which is useful e.g. if you want to embed MagicMirror into annother website (solves #2847).
- Show endDate for calendar events when dateHeader is enabled and showEnd is set to true (#2192).
- Added the notification emitting from the weather module on infromation updated.
- Use recommended file extention for YAML files (#2864).

### Updated

- Use latest node 18 when running tests on github actions.
- Update `electron` to v19 and other dependencies.
- Use internal fetch function of node instead external `node-fetch` library if used node version >= `v18`.
- Include duplicate events in broadcasts.

### Fixed

- Fix problems with non latin fonds caused by updating to fontsource (fixes #2835).