Commit 5e7b8b5
authored
Convert to typescript (#287)
* Convert expiring map to JS
* Conver option list to TypeScript
* Fix ESM plugin loading
This doesn’t seem to actually have any side-effects but typescript has revealed possible issues here
* Convert plugin loading to typescript
* Convert config loading to typescript
* Convert sorting code to typescript
* Convert utils to typescript
* Add types
* Convert main file to typescript
* wip
* Make package type: module
* Switch to vitest
* Update lockfile
* Run fixture tests concurrently
* Use tsup for building dts files
Can’t use it to bundle just yet
* Bump test timeout
* Use Node 18 in CI
* Use Node v22 in CI
Worth seeing if it makes things faster
* Remove expired data from maps to prevent memory leaks
* Update comments
* Remove comments
Probably isn’t any reason for this actually
* Add better types to `prefixCandidate`1 parent aa6ec0a commit 5e7b8b5
File tree
28 files changed
+4386
-5706
lines changed- .github/workflows
- scripts
- src
- tests
- fixtures
28 files changed
+4386
-5706
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 65 | | |
83 | 66 | | |
84 | 67 | | |
| |||
90 | 73 | | |
91 | 74 | | |
92 | 75 | | |
93 | | - | |
| 76 | + | |
94 | 77 | | |
95 | 78 | | |
96 | 79 | | |
| |||
0 commit comments