Skip to content

Commit abe5c08

Browse files
authored
Release 2.23.0 (#3078)
## [2.23.0] - 2023-04-04 Thanks to: @angeldeejay, @buxxi, @CarJem, @dariom, @DaveChild, @dWoolridge, @grenagit, @Hirschberger, @KristjanESPERANTO, @MagMar94, @naveensrinivasan, @nfogal, @psieg, @rajniszp, @retroflex, @SkySails and @tomzt. Special thanks to @khassel, @rejas and @sdetweil for taking over most (if not all) of the work on this release as project collaborators. This version would not be there without their effort. Thank you guys! You are awesome! ### Added - Added increments for hourly forecasts in weather module (#2996) - Added tests for hourly weather forecast - Added possibility to ignore MagicMirror repo in updatenotification module - Added Pirate Weather as new weather provider (#3005) - Added possibility to use your own templates in Alert module - Added error message if `<modulename>.js` file is missing in module folder to get a hint in the logs (#2403) - Added possibility to use environment variables in `config.js` (#1756) - Added option `pastDaysCount` to default calendar module to control of how many days past events should be displayed - Added thai language to alert module - Added option `sendNotifications` in clock module (#3056) ### Removed - Removed darksky weather provider - Removed unneeded (and unwanted) '.' after the year in calendar repeatingCountTitle (#2896) ### Updated - Use develop as target branch for dependabot - Update issue template, contributing doc and sample config - The weather modules clearly separates precipitation amount and probability (risk of rain/snow) - This requires all providers that only supports probability to change the config from `showPrecipitationAmount` to `showPrecipitationProbability`. - Update tests for weather and calendar module - Changed updatenotification module for MagicMirror repo only: Send only notifications for `master` if there is a tag on a newer commit - Update dates in Calendar widgets every minute - Cleanup jest coverage for patches - Update `stylelint` dependencies, switch to `stylelint-config-standard` and handle `stylelint` issues, update `main.css` matching new rules - Update Eslint config, add new rule and handle issue - Convert lots of callbacks to async/await - Revise require imports (#3071 and #3072) ### Fixed - Fix wrong day labels in envcanada forecast (#2987) - Fix for missing default class name prefix for customEvents in calendar - Fix electron flashing white screen on startup (#1919) - Fix weathergov provider hourly forecast (#3008) - Fix message display with HTML code into alert module (#2828) - Fix typo in french translation - Yr wind direction is no longer inverted - Fix async node_helper stopping electron start (#2487) - The wind direction arrow now points in the direction the wind is flowing, not into the wind (#3019) - Fix precipitation css styles and rounding value - Fix wrong vertical alignment of calendar title column when wrapEvents is true (#3053) - Fix empty news feed stopping the reload forever - Fix e2e tests (failed after async changes) by running calendar and newsfeed tests last - Lint: Use template literals instead of string concatenation - Fix default alert module to render HTML for title and message - Fix Open-Meteo wind speed units
1 parent f14e956 commit abe5c08

File tree

162 files changed

+6642
-3042
lines changed

Some content is hidden

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

162 files changed

+6642
-3042
lines changed

.eslintrc.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:jsdoc/recommended"],
3-
"plugins": ["prettier", "jsdoc", "jest"],
3+
"plugins": ["prettier", "import", "jsdoc", "jest"],
44
"env": {
55
"browser": true,
6-
"es6": true,
6+
"es2022": true,
77
"jest/globals": true,
88
"node": true
99
},
@@ -16,16 +16,18 @@
1616
},
1717
"parserOptions": {
1818
"sourceType": "module",
19-
"ecmaVersion": 2020,
19+
"ecmaVersion": 2022,
2020
"ecmaFeatures": {
2121
"globalReturn": true
2222
}
2323
},
2424
"rules": {
25-
"prettier/prettier": "error",
2625
"eqeqeq": "error",
26+
"import/order": "error",
2727
"no-prototype-builtins": "off",
28+
"no-throw-literal": "error",
2829
"no-unused-vars": "off",
29-
"no-useless-return": "error"
30+
"no-useless-return": "error",
31+
"prefer-template": "error"
3032
}
3133
}

.github/CONTRIBUTING.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ We hold our code to standard, and these standards are documented below.
66

77
## Linters
88

9-
If you wish to run our linters, use `npm run lint` without any arguments.
9+
We use prettier for automatic linting of all our files: `npm run lint:prettier`.
1010

1111
### JavaScript: Run ESLint
1212

@@ -18,7 +18,7 @@ To run ESLint, use `npm run lint:js`.
1818

1919
### CSS: Run StyleLint
2020

21-
We use [StyleLint](https://stylelint.io) to lint our CSS. Our configuration is in our .stylelintrc file.
21+
We use [StyleLint](https://stylelint.io) to lint our CSS. Our configuration is in our `.stylelintrc` file.
2222

2323
To run StyleLint, use `npm run lint:css`.
2424

@@ -28,7 +28,8 @@ We use [Jest](https://jestjs.io) for JavaScript testing.
2828

2929
To run all tests, use `npm run test`.
3030

31-
The specific test commands are defined in `package.json`. So you can also run the specific tests with other commands, e.g. `npm run test:unit` or `npx jest tests/e2e/env_spec.js`.
31+
The specific test commands are defined in `package.json`.
32+
So you can also run the specific tests with other commands, e.g. `npm run test:unit` or `npx jest tests/e2e/env_spec.js`.
3233

3334
## Submitting Issues
3435

File renamed without changes.

.github/codecov.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ coverage:
44
default:
55
# advanced settings
66
informational: true
7+
patch:
8+
default:
9+
threshold: 0%
10+
target: 0

.github/dependabot.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
target-branch: "develop"

.github/workflows/automated-tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
matrix:
2121
node-version: [14.x, 16.x, 18.x]
2222
steps:
23-
- name: Checkout code
23+
- name: "Checkout code"
2424
uses: actions/checkout@v3
25-
- name: Use Node.js ${{ matrix.node-version }}
25+
- name: "Use Node.js ${{ matrix.node-version }}"
2626
uses: actions/setup-node@v3
2727
with:
2828
node-version: ${{ matrix.node-version }}
2929
cache: "npm"
30-
- name: Install dependencies and run tests
30+
- name: "Install dependencies and run tests"
3131
run: |
3232
Xvfb :99 -screen 0 1024x768x16 &
3333
export DISPLAY=:99

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ jobs:
1717
runs-on: ubuntu-latest
1818
timeout-minutes: 30
1919
steps:
20-
- name: Checkout code
20+
- name: "Checkout code"
2121
uses: actions/checkout@v3
22-
- name: Install dependencies and run coverage
22+
- name: "Install dependencies and run coverage"
2323
run: |
2424
Xvfb :99 -screen 0 1024x768x16 &
2525
export DISPLAY=:99
2626
npm ci
2727
touch css/custom.css
2828
npm run test:coverage
29-
- name: Upload coverage results to codecov
29+
- name: "Upload coverage results to codecov"
3030
uses: codecov/codecov-action@v3
3131
with:
3232
files: ./coverage/lcov.info

.github/workflows/depsreview.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
name: "Dependency Review"
1+
# This workflow scans your pull requests for dependency changes, and will raise an error if any vulnerabilities or invalid licenses are being introduced.
2+
# For more information see: https://github.com/actions/dependency-review-action
3+
4+
name: "Review Dependencies"
5+
26
on: [pull_request]
37

48
permissions:
@@ -8,7 +12,7 @@ jobs:
812
dependency-review:
913
runs-on: ubuntu-latest
1014
steps:
11-
- name: "Checkout Repository"
15+
- name: "Checkout code"
1216
uses: actions/checkout@v3
1317
- name: "Dependency Review"
14-
uses: actions/dependency-review-action@v2
18+
uses: actions/dependency-review-action@v3

.github/workflows/enforce-changelog.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow enforces on every pull request:
2+
# - the update of our CHANGELOG.md file, see: https://github.com/dangoslen/changelog-enforcer
3+
# - that the PR is not based against master, taken from https://github.com/oppia/oppia-android/pull/2832/files
4+
5+
name: "Enforce Pull-Request Rules"
6+
7+
on:
8+
pull_request:
9+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
10+
11+
jobs:
12+
check:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 10
15+
steps:
16+
- name: "Enforce changelog"
17+
uses: dangoslen/changelog-enforcer@v3
18+
with:
19+
changeLogPath: "CHANGELOG.md"
20+
skipLabels: "Skip Changelog"
21+
- name: "Enforce develop branch"
22+
if: ${{ github.base_ref == 'master' && !contains(github.event.pull_request.labels.*.name, 'mastermerge') }}
23+
run: |
24+
echo "This PR is based against the master branch and not a release or hotfix."
25+
echo "Please don't do this. Switch the branch to 'develop'."
26+
exit 1
27+
env:
28+
BASE_BRANCH: ${{ github.base_ref }}

0 commit comments

Comments
 (0)