Skip to content

Commit 03d0650

Browse files
committed
feat(node): 22.9.0
1 parent 25ec948 commit 03d0650

File tree

7 files changed

+26
-29
lines changed

7 files changed

+26
-29
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
- name: Install Node.js
2828
uses: actions/setup-node@v4
2929
with:
30-
node-version: 20.18.1
31-
cache: 'pnpm'
30+
node-version: 22.9.0
31+
cache: "pnpm"
3232

3333
- name: Check node $PATH version
3434
shell: bash
@@ -64,7 +64,6 @@ jobs:
6464
env:
6565
KIT: ${{ env.kit_path }}
6666

67-
6867
test-mac-and-ubuntu:
6968
strategy:
7069
matrix:
@@ -90,8 +89,8 @@ jobs:
9089
- name: Install Node.js
9190
uses: actions/setup-node@v4
9291
with:
93-
node-version: 20.18.1
94-
cache: 'pnpm'
92+
node-version: 22.9.0
93+
cache: "pnpm"
9594

9695
- name: Build Kit
9796
run: |
@@ -121,13 +120,12 @@ jobs:
121120
122121
- name: Log ./.kit
123122
run: |
124-
ls ./.kit/*/*
123+
ls ./.kit/*/*
125124
126125
- name: pnpm i
127126
run: |
128127
cd "${{ env.wd_path }}"
129-
pnpm i
130-
128+
pnpm i
131129
132130
- name: pnpm ava
133131
run: |
@@ -162,9 +160,8 @@ jobs:
162160
- name: Install Node.js
163161
uses: actions/setup-node@v4
164162
with:
165-
node-version: 20.18.1
166-
cache: 'pnpm'
167-
163+
node-version: 22.9.0
164+
cache: "pnpm"
168165

169166
- name: Build Kit
170167
run: |
@@ -189,7 +186,7 @@ jobs:
189186
node --version
190187
pnpm --version
191188
192-
- name: Semantic Release
189+
- name: Semantic Release
193190
run: |
194191
cd "${{ env.wd_path }}"
195192
npx semantic-release
@@ -229,4 +226,4 @@ jobs:
229226
env:
230227
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
231228
with:
232-
release_id: ${{ steps.create_release.outputs.id }}
229+
release_id: ${{ steps.create_release.outputs.id }}

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
registry=https://registry.npmjs.org
22
install-links=false
33
save-exact=true
4-
use-node-version=20.18.1
4+
use-node-version=22.9.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
]
194194
},
195195
"volta": {
196-
"node": "20.18.1"
196+
"node": "22.9.0"
197197
},
198198
"config": {
199199
"commitizen": {

src/setup/link-kenv-to-kit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ await cli("install", `"${kitPath()}"`)
4343
let defaultPackageJson = {
4444
type: "module",
4545
engines: {
46-
node: "20.18.1",
46+
node: "22.9.0",
4747
},
4848
devDependencies: {
4949
"@johnlindquist/kit": `link:${(process.env.KIT || home(".kit"))?.replace(/\\/g, '/')}`,

src/setup/setup-pnpm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ try {
6363
)
6464
try {
6565
await exec(
66-
"pnpm config set use-node-version 20.18.1 --location project",
66+
"pnpm config set use-node-version 22.9.0 --location project",
6767
{
6868
cwd: kenvPath(),
6969
}

src/target/app.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2412,18 +2412,18 @@ global.setFooter = (footer: string) => {
24122412
global.send(Channel.SET_FOOTER, footer)
24132413
}
24142414

2415-
global.setDiv = async (h, containerClasses = "") => {
2415+
global.setDiv = (h, containerClasses = "") => {
24162416
let html = maybeWrapHtml(h, containerClasses)
24172417
global.send(Channel.SET_PANEL, html)
24182418
}
24192419

2420-
global.setPreview = async (h, containerClasses = "") => {
2420+
global.setPreview = (h, containerClasses = "") => {
24212421
let html = maybeWrapHtml(h, containerClasses)
24222422
global.send(Channel.SET_PREVIEW, html)
24232423
// setLoading(false)
24242424
}
24252425

2426-
global.setHint = async hint => {
2426+
global.setHint = hint => {
24272427
global.send(Channel.SET_HINT, hint)
24282428
}
24292429

@@ -2445,8 +2445,8 @@ global.scrollTo = async location => {
24452445
return await global.sendWait(Channel.SCROLL_TO, location)
24462446
}
24472447

2448-
global.setFilterInput = async inputFilter => {
2449-
global.send(Channel.SET_FILTER_INPUT, inputFilter)
2448+
global.setFilterInput = inputFilter => {
2449+
return global.sendWait(Channel.SET_FILTER_INPUT, inputFilter)
24502450
}
24512451

24522452
global.showDeprecated = async (markdown: string) => {
@@ -2461,15 +2461,15 @@ All prompts now ignore blur by default
24612461
`)
24622462
}
24632463

2464-
global.setResize = async ignore => {
2464+
global.setResize = ignore => {
24652465
global.send(Channel.SET_RESIZE, ignore)
24662466
}
24672467

24682468
global.setPauseResize = async pause => {
24692469
await global.sendWait(Channel.SET_PAUSE_RESIZE, pause)
24702470
}
24712471

2472-
global.setValue = async value => {
2472+
global.setValue = value => {
24732473
global.send(Channel.SET_VALUE, value)
24742474
}
24752475

@@ -2485,7 +2485,7 @@ global.getDataFromApp = global.sendWait = async (
24852485
) => {
24862486
if (process?.send) {
24872487
return await new Promise((res, rej) => {
2488-
let timeoutId = null
2488+
let timeoutId: NodeJS.Timeout | null = null
24892489
let messageHandler = data => {
24902490
// if (data?.promptId !== global.__kitPromptId) {
24912491
// log(
@@ -3497,7 +3497,7 @@ global.prompt = {
34973497
openActions: async () => {
34983498
return await sendWait(Channel.OPEN_ACTIONS)
34993499
},
3500-
close: async () => {
3500+
close: () => {
35013501
return exit()
35023502
},
35033503
setInput: (input: string) => {

src/types/kitapp.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ export type Toast = (
148148

149149
export type Prompt = {
150150
closeActions(): Promise<void>
151-
close(): Promise<void>
152-
openActions(): Promise<void>
153-
setInput(input: string): Promise<void>
151+
close(): void
152+
openActions(): void
153+
setInput(input: string): void
154154
focus(): Promise<void>
155155
blur(): Promise<void>
156156
hide(): Promise<void>

0 commit comments

Comments
 (0)