Skip to content

Commit 2706b6e

Browse files
authored
refactor: drop lru-cache in favor of a simple custom memoize function (#13)
* refactor: drop `lru-cache` in favor of a simple custom cache * refactor: new memoize function * test: add tests * ci: add test * unify names * refactor: move createCachedParse to custome memoize * ci: update * chore: add some logs
1 parent 32e1595 commit 2706b6e

File tree

14 files changed

+1054
-133
lines changed

14 files changed

+1054
-133
lines changed

.github/workflows/unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
unit-test:
1818
uses: sxzz/workflows/.github/workflows/unit-test.yml@v1
1919
with:
20-
skip-test: true
20+
node-versions: 22,"lts/*"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"postinstall": "npm run update",
6464
"update": "vscode-ext-gen --scope npmx",
6565
"check": "npm run lint:fix && npm run typecheck",
66+
"test": "vitest",
6667
"lint": "eslint .",
6768
"lint:fix": "eslint . --fix",
6869
"typecheck": "tsc --noEmit",
@@ -82,13 +83,13 @@
8283
"eslint": "^9.39.2",
8384
"husky": "^9.1.7",
8485
"jsonc-parser": "^3.3.1",
85-
"lru-cache": "^11.2.5",
8686
"module-replacements": "^2.11.0",
8787
"nano-staged": "^0.9.0",
8888
"ofetch": "^2.0.0-alpha.3",
8989
"reactive-vscode": "^0.4.1",
9090
"tsdown": "^0.20.1",
9191
"typescript": "^5.9.3",
92+
"vitest": "^4.0.18",
9293
"vscode-ext-gen": "1.3.0",
9394
"yaml": "^2.8.2"
9495
}

0 commit comments

Comments
 (0)