Skip to content

Commit 26a76f8

Browse files
authored
Merge pull request #2607 from MichMich/develop
Release v2.16.0
2 parents 491f5aa + 53ead20 commit 26a76f8

File tree

139 files changed

+15318
-2735
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+15318
-2735
lines changed

.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:jsdoc/recommended"],
3-
"plugins": ["prettier", "jsdoc"],
3+
"plugins": ["prettier", "jsdoc", "jest"],
44
"env": {
55
"browser": true,
66
"es6": true,
7-
"mocha": true,
7+
"jest/globals": true,
88
"node": true
99
},
1010
"globals": {

.github/ISSUE_TEMPLATE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Hello and thank you for opening an issue.
2+
3+
**Please make sure that you have read the following lines before submitting your Issue:**
4+
15
## I'm not sure if this is a bug
26

37
If you're not sure if it's a real bug or if it's just you, please open a topic on the forum: [https://forum.magicmirror.builders/category/15/bug-hunt](https://forum.magicmirror.builders/category/15/bug-hunt)

.github/codecov.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
# advanced settings
6+
informational: true

.github/workflows/codecov-test-suites.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
jobs:
1212
run-and-upload-coverage-report:
1313
runs-on: ubuntu-latest
14+
timeout-minutes: 30
1415
steps:
1516
- uses: actions/checkout@v2
1617
- run: |

.github/workflows/enforce-changelog.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
check:
1111
runs-on: ubuntu-latest
12+
timeout-minutes: 10
1213
steps:
1314
- uses: actions/checkout@v2
1415
- uses: dangoslen/[email protected]

.github/workflows/node-ci.js.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ on:
1212
jobs:
1313
test:
1414
runs-on: ubuntu-latest
15+
timeout-minutes: 30
1516
strategy:
1617
matrix:
17-
node-version: [10.x, 12.x, 14.x]
18+
node-version: [12.x, 14.x, 16.x]
1819
steps:
1920
- uses: actions/checkout@v2
2021
- name: Use Node.js ${{ matrix.node-version }}
@@ -28,5 +29,5 @@ jobs:
2829
npm run test:prettier
2930
npm run test:js
3031
npm run test:css
31-
npm run test:e2e
3232
npm run test:unit
33+
npm run test:e2e

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run lint:staged

.prettierignore

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
package-lock.json
2-
/config/**/*
3-
/vendor/**/*
1+
/config
2+
/coverage
3+
/vendor
44
!/vendor/vendor.js
5-
.github/**/*
5+
.github
6+
.nyc_output
7+
package-lock.json
8+
*.ts

CHANGELOG.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,61 @@ This project adheres to [Semantic Versioning](https://semver.org/).
55

66
❤️ **Donate:** Enjoying MagicMirror²? [Please consider a donation!](https://magicmirror.builders/donate) With your help we can continue to improve the MagicMirror²
77

8+
## [2.16.0] - 2021-07-01
9+
10+
Special thanks to the following contributors: @210954, @B1gG, @codac, @Crazylegstoo, @daniel, @earlman, @ezeholz, @FrancoisRmn, @jupadin, @khassel, @KristjanESPERANTO, @njwilliams, @oemel09, @r3wald, @rejas, @rico24, Faizan Ahmed.
11+
12+
### Added
13+
14+
- Added French translations for "MODULE_CONFIG_ERROR" and "PRECIP".
15+
- Added German translation for "PRECIP".
16+
- Added Dutch translation for "WEEK", "PRECIP", "MODULE_CONFIG_CHANGED" and "MODULE_CONFIG_ERROR".
17+
- Added first test for Alert module.
18+
- Added support for `dateFormat` when not using `timeFormat: "absolute"`.
19+
- Added custom-properties for colors and fonts for improved styling experience, see `custom.css.sample` file.
20+
- Added custom-properties for gaps around body and between modules.
21+
- Added test case for recurring calendar events.
22+
- Added new Environment Canada provider for default WEATHER module (weather data for Canadian locations only).
23+
- Added list view for newsfeed module.
24+
- Added dev dependency jest, switching from mocha to jest.
25+
26+
### Updated
27+
28+
- Bump node-ical to v0.13.0 (now last runtime dependency using deprecated `request` package is removed).
29+
- Use codecov in informational mode.
30+
- Refactor code into es6 where possible (e.g. var -> let/const).
31+
- Use node v16 in github workflow (replacing node v10).
32+
- Moved some files into better suited directories.
33+
- Update dependencies in package.json, require node >= v12, remove `rrule-alt` and `rrule`.
34+
- Update dependencies in package.json and migrate husky to v6, fix husky setup in prod environment.
35+
- Cleaned up error handling in newsfeed and calendar modules for real.
36+
- Updated default WEATHER module such that a provider can optionally set a custom unit-of-measure for precipitation (`weatherObject.precipitationUnits`).
37+
- Update documentation.
38+
- Update jest tests: Reset changes on js/logger.js, mock logger.js in global_vars tests.
39+
- Update dependencies in package.json.
40+
41+
### Removed
42+
43+
- Switching from mocha to jest so removed following dev dependencies: chai, chai-as-promised, mocha, mocha-each, mocha-logger.
44+
45+
### Fixed
46+
47+
- Fix calendar start function logging inconsistency.
48+
- Fix updatenotification start function logging inconsistency.
49+
- Checks and applies the showDescription setting for the newsfeed module again.
50+
- Fix issue with openweathermap not showing current or forecast info when using onecall API.
51+
- Fix tests in weather module and add one for decimalPoint in forecast.
52+
- Fix decimalSymbol in the forecast part of the new weather module (#2530).
53+
- Fix wrong treatment of `appendLocationNameToHeader` when using `ukmetofficedatahub`.
54+
- Fix alert not recognizing multiple alerts (#2522).
55+
- Fix fetch option httpsAgent to agent in calendar module (#466).
56+
- Fix module updatenotification which did not work for repos with many refs (#1907).
57+
- Fix config check failing when encountering let syntax ("Parsing error: Unexpected token config").
58+
- Fix calendar debug check.
59+
- Really run prettier over all files.
60+
- Fix logger.js after jest changes, use --forceExit running jest.
61+
- Workaround for dev_console test using getWindowCount.
62+
863
## [2.15.0] - 2021-04-01
964

1065
Special thanks to the following contributors: @EdgardosReis, @MystaraTheGreat, @TheDuffman85, @ashishtank, @buxxi, @codac, @fewieden, @khassel, @klaernie, @qu1que, @rejas, @sdetweil & @thomasrockhu.

0 commit comments

Comments
 (0)