Merge pull request #656 from TriliumNext/renovate/typescript-5.x

chore(deps): update dependency typescript to v5.7.2
This commit is contained in:
Elian Doran 2024-12-07 12:10:05 +02:00 committed by GitHub
commit 154bd92eaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 25 additions and 7 deletions

View File

@ -37,6 +37,23 @@ jobs:
context: . context: .
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max 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: test_docker:
name: Check Docker build name: Check Docker build
runs-on: ubuntu-latest runs-on: ubuntu-latest

9
package-lock.json generated
View File

@ -156,7 +156,7 @@
"ts-node": "10.9.2", "ts-node": "10.9.2",
"tslib": "2.8.1", "tslib": "2.8.1",
"tsx": "4.19.2", "tsx": "4.19.2",
"typescript": "5.6.3", "typescript": "5.7.2",
"webpack": "5.97.1", "webpack": "5.97.1",
"webpack-cli": "5.1.4" "webpack-cli": "5.1.4"
} }
@ -16274,10 +16274,11 @@
} }
}, },
"node_modules/typescript": { "node_modules/typescript": {
"version": "5.6.3", "version": "5.7.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz",
"integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==",
"devOptional": true, "devOptional": true,
"license": "Apache-2.0",
"bin": { "bin": {
"tsc": "bin/tsc", "tsc": "bin/tsc",
"tsserver": "bin/tsserver" "tsserver": "bin/tsserver"

View File

@ -195,7 +195,7 @@
"ts-node": "10.9.2", "ts-node": "10.9.2",
"tslib": "2.8.1", "tslib": "2.8.1",
"tsx": "4.19.2", "tsx": "4.19.2",
"typescript": "5.6.3", "typescript": "5.7.2",
"webpack": "5.97.1", "webpack": "5.97.1",
"webpack-cli": "5.1.4" "webpack-cli": "5.1.4"
} }

View File

@ -83,7 +83,7 @@ function getExpression(tokens: TokenData[], searchContext: SearchContext, level
return `"${startIndex !== 0 ? "..." : ""}${searchContext.originalQuery.substr(startIndex, endIndex - startIndex)}${endIndex !== searchContext.originalQuery.length ? "..." : ""}"`; return `"${startIndex !== 0 ? "..." : ""}${searchContext.originalQuery.substr(startIndex, endIndex - startIndex)}${endIndex !== searchContext.originalQuery.length ? "..." : ""}"`;
} }
function resolveConstantOperand() { const resolveConstantOperand = () => {
const operand = tokens[i]; const operand = tokens[i];
if (!operand.inQuotes if (!operand.inQuotes
@ -136,7 +136,7 @@ function getExpression(tokens: TokenData[], searchContext: SearchContext, level
return date.format(format); return date.format(format);
} }
function parseNoteProperty(): Expression | undefined | null { const parseNoteProperty: () => Expression | undefined | null = () => {
if (tokens[i].token !== '.') { if (tokens[i].token !== '.') {
searchContext.addError('Expected "." to separate field path'); searchContext.addError('Expected "." to separate field path');
return; return;