Skip to content

Commit 95d7b72

Browse files
authored
Merge pull request #21 from nrkno/chore/update-electron
2 parents b54a07a + 85d1088 commit 95d7b72

8 files changed

Lines changed: 8523 additions & 5604 deletions

File tree

.github/workflows/create-release.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
needs: create-release
2828
steps:
2929
- uses: actions/checkout@v4
30-
- name: Use Node.js 20
30+
- name: Use Node.js 22
3131
uses: actions/setup-node@v4
3232
with:
33-
node-version: '20'
33+
node-version: '22'
3434
- name: restore node_modules
3535
uses: actions/cache@v4
3636
with:
@@ -39,6 +39,7 @@ jobs:
3939
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
4040
- name: Prepare Environment
4141
run: |
42+
corepack enable
4243
yarn --ignore-engines --frozen-lockfile --network-timeout 1000000
4344
- name: Build
4445
run: |
@@ -56,10 +57,10 @@ jobs:
5657
needs: create-release
5758
steps:
5859
- uses: actions/checkout@v4
59-
- name: Use Node.js 20
60+
- name: Use Node.js 22
6061
uses: actions/setup-node@v4
6162
with:
62-
node-version: '20'
63+
node-version: '22'
6364
- name: Install Snapcraft
6465
uses: samuelmeuli/action-snapcraft@v3
6566
- name: restore node_modules

.github/workflows/node.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
uses: actions/checkout@v4
1919
with:
2020
persist-credentials: false
21-
- name: Use Node.js 20.x
21+
- name: Use Node.js 22.x
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 20.x
24+
node-version: 22.x
2525
- name: restore node_modules
2626
uses: actions/cache@v4
2727
with:
@@ -30,7 +30,8 @@ jobs:
3030
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
3131
- name: Prepare Environment
3232
run: |
33-
yarn install
33+
corepack enable
34+
yarn
3435
- name: Run typecheck
3536
run: |
3637
yarn build

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
node_modules
22
dist
33
config.json
4+
5+
.pnp.*
6+
.yarn/*
7+
!.yarn/patches
8+
!.yarn/plugins
9+
!.yarn/releases
10+
!.yarn/sdks
11+
!.yarn/version
12+

.yarnrc.yml

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

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to this project will be documented in this file. See [Convential Commits](https://www.conventionalcommits.org/en/v1.0.0/#specification) for commit guidelines.
44

5+
## [0.4.1](https://github.com/nrkno/sofie-chef/compare/v0.4.0...v0.4.1) (Fri Jan 24 2025)
6+
7+
58
## [0.4.0](https://github.com/nrkno/sofie-chef/compare/v0.3.5...v0.4.0) (Thu Aug 08 2024)
69

710

package.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sofie-chef",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Sofie Chef - Disrupting the industry & stirring pots",
55
"author": {
66
"name": "NRK"
@@ -10,12 +10,13 @@
1010
"build": "tsc",
1111
"watch:build": "tsc -w",
1212
"watch:electron": "nodemon --exec npm start",
13-
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
13+
"lint": "run -T g:eslint . --ext .js,.jsx,.ts,.tsx",
1414
"start": "electron ./dist/main.js",
1515
"build:binary": "electron-builder",
1616
"dev": "yarn && yarn build && concurrently --kill-others \"yarn watch:build\" \"yarn watch:electron\"",
1717
"release:release": "sofie-version",
18-
"release": "yarn release:release"
18+
"release": "yarn release:release",
19+
"g:eslint": "cd $INIT_CWD && \"$PROJECT_CWD/node_modules/.bin/eslint\""
1920
},
2021
"repository": "https://github.com/nrkno/sofie-chef",
2122
"homepage": "https://github.com/nrkno/sofie-chef#readme",
@@ -35,22 +36,23 @@
3536
"@types/koa-bodyparser": "^4.3.10",
3637
"@types/koa-router": "^7.4.5",
3738
"@types/koa__cors": "^4.0.3",
39+
"@types/node": "22.15.19",
3840
"@types/underscore": "^1.11.9",
3941
"@types/url-join": "^4.0.1",
4042
"@types/ws": "^8.5.6",
41-
"concurrently": "^8.2.1",
42-
"electron": "^31.0.0",
43-
"electron-builder": "^24.6.4",
43+
"concurrently": "^9.1.2",
44+
"electron": "^36.2.1",
45+
"electron-builder": "^26.0.15",
4446
"jest": "^29.7.0",
4547
"nodemon": "^3.0.1",
4648
"typescript": "~4.9"
4749
},
4850
"dependencies": {
49-
"@koa/cors": "^4.0.0",
50-
"chokidar": "^3.5.3",
51+
"@koa/cors": "^5.0.0",
52+
"chokidar": "^4.0.3",
5153
"koa": "^2.14.2",
5254
"koa-bodyparser": "^4.4.1",
53-
"koa-router": "^12.0.0",
55+
"koa-router": "^13.0.1",
5456
"underscore": "^1.13.6",
5557
"url-join": "^4.0.1",
5658
"winston": "^3.10.0",
@@ -96,5 +98,6 @@
9698
"dist/**/*",
9799
"static/**/*"
98100
]
99-
}
101+
},
102+
"packageManager": "yarn@3.6.3+sha512.d432ab8b22b89cb8b46649ebaf196159b0c1870904224771d75fdf8b55490aaa5de4d9f028deb0425f1513bff7843e97b9d117103795a23b12d2e7c1cedcf50f"
100103
}

src/helpers/APIHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class APIHelper {
8989
}
9090
})
9191

92-
router.all('(.*)', async (ctx, next) => {
92+
router.all(/.*/, async (ctx, next) => {
9393
// Intercept and authenticate:
9494
const requestApiKey: string | undefined =
9595
firstInArray(ctx.request.query?.apiKey) || // Querystring parameter

0 commit comments

Comments
 (0)