From ca2207ddd6fb9954fb3c310df8bcfe8ffc2945d3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 7 Dec 2024 10:02:06 +0000 Subject: [PATCH 1/3] chore(deps): update dependency typescript to v5.7.2 --- package-lock.json | 9 +++++---- package.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 174f5923b..c55edcb83 100644 --- a/package-lock.json +++ b/package-lock.json @@ -156,7 +156,7 @@ "ts-node": "10.9.2", "tslib": "2.8.1", "tsx": "4.19.2", - "typescript": "5.6.3", + "typescript": "5.7.2", "webpack": "5.97.1", "webpack-cli": "5.1.4" } @@ -16274,10 +16274,11 @@ } }, "node_modules/typescript": { - "version": "5.6.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", - "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", + "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", "devOptional": true, + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/package.json b/package.json index 83bd55cd2..e3a36ff8e 100644 --- a/package.json +++ b/package.json @@ -195,7 +195,7 @@ "ts-node": "10.9.2", "tslib": "2.8.1", "tsx": "4.19.2", - "typescript": "5.6.3", + "typescript": "5.7.2", "webpack": "5.97.1", "webpack-cli": "5.1.4" } From e90e6d2dadd0dc9df6b8f1ceeca2ae24e5ffd1cc Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 7 Dec 2024 12:04:57 +0200 Subject: [PATCH 2/3] chore(ci): run development build --- .github/workflows/dev.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index ce9c55d4c..295a259ce 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -37,6 +37,23 @@ jobs: context: . cache-from: type=gha cache-to: type=gha,mode=max + test_dev: + name: Test development + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + + - name: Set up node & dependencies + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "npm" + + - run: npm ci + + - name: Run the TypeScript build + run: npx tsc test_docker: name: Check Docker build runs-on: ubuntu-latest From 03dbf1a4f766ae61c02e42847505ea71aa1e5a9e Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 7 Dec 2024 12:09:51 +0200 Subject: [PATCH 3/3] chore(client): solve TypeScript errors after upgrade --- src/services/search/services/parse.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/search/services/parse.ts b/src/services/search/services/parse.ts index 5f7362623..21187e112 100644 --- a/src/services/search/services/parse.ts +++ b/src/services/search/services/parse.ts @@ -83,7 +83,7 @@ function getExpression(tokens: TokenData[], searchContext: SearchContext, level return `"${startIndex !== 0 ? "..." : ""}${searchContext.originalQuery.substr(startIndex, endIndex - startIndex)}${endIndex !== searchContext.originalQuery.length ? "..." : ""}"`; } - function resolveConstantOperand() { + const resolveConstantOperand = () => { const operand = tokens[i]; if (!operand.inQuotes @@ -136,7 +136,7 @@ function getExpression(tokens: TokenData[], searchContext: SearchContext, level return date.format(format); } - function parseNoteProperty(): Expression | undefined | null { + const parseNoteProperty: () => Expression | undefined | null = () => { if (tokens[i].token !== '.') { searchContext.addError('Expected "." to separate field path'); return;