From fecd85c67ace75f521b698c19872df468034ac3d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 6 Nov 2023 22:24:32 +0000 Subject: [PATCH 1/4] chore(deps): update dependency typescript to ~5.2.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d8c60e0d..c9820324 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,7 @@ "semver": "^7.5.1", "svelte": "^4.2.0", "svelte2tsx": "^0.6.20", - "typescript": "~5.1.3", + "typescript": "~5.2.0", "typescript-eslint-parser-for-extra-files": "^0.5.0" }, "publishConfig": { From 086726202125c522dbaafdf2eec309c096ef8d16 Mon Sep 17 00:00:00 2001 From: baseballyama Date: Mon, 13 Nov 2023 07:40:54 +0900 Subject: [PATCH 2/4] update module field of tsconfig.json --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index dcea3353..b725cbe7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "target": "es2015", "strict": true, "lib": ["es2020", "DOM"], - "module": "commonjs", + "module": "node16", "moduleResolution": "Node16", "declaration": true, "noImplicitAny": true, From 82258d2ed29dbb90ac1e414449993d7764982bf7 Mon Sep 17 00:00:00 2001 From: baseballyama Date: Sun, 21 Jan 2024 11:24:21 +0900 Subject: [PATCH 3/4] update --- package.json | 3 ++- tsconfig.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b8d28d5d..a05bab06 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, + "type": "commonjs", "main": "lib/index.js", "files": [ "lib" @@ -106,7 +107,7 @@ "semver": "^7.5.4", "svelte": "^5.0.0-next.25", "svelte2tsx": "^0.7.0", - "typescript": "~5.2.0", + "typescript": "~5.3.0", "typescript-eslint-parser-for-extra-files": "^0.6.0" }, "publishConfig": { diff --git a/tsconfig.json b/tsconfig.json index b725cbe7..ae1218d9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "target": "es2015", "strict": true, "lib": ["es2020", "DOM"], - "module": "node16", + "module": "NodeNext", "moduleResolution": "Node16", "declaration": true, "noImplicitAny": true, From c40767d2756ea6dbd2bf3cca53a25d3704c9de6a Mon Sep 17 00:00:00 2001 From: baseballyama Date: Sun, 21 Jan 2024 11:27:46 +0900 Subject: [PATCH 4/4] fix lint --- src/context/script-let.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/script-let.ts b/src/context/script-let.ts index 7d594dc5..8ae1c97a 100644 --- a/src/context/script-let.ts +++ b/src/context/script-let.ts @@ -352,7 +352,7 @@ export class ScriptLetContext { const callArrayFrom = (call.callee as ESTree.MemberExpression) .object as ESTree.CallExpression; const expr = callArrayFrom.arguments[0] as ESTree.Expression; - const ctx = fn.params[0]!; + const ctx = fn.params[0]; const idx = (fn.params[1] ?? null) as ESTree.Identifier | null; const scope = result.getScope(fn.body);