upgrade to bun 1.3.0

This commit is contained in:
Dax Raad
2025-10-10 17:37:03 -04:00
parent 34ec6cc978
commit 9da95cb805
15 changed files with 32 additions and 23 deletions

View File

@@ -691,10 +691,10 @@ export namespace Config {
}
const data = parsed.data
if (data.plugin) {
for (let i = 0; i < data.plugin?.length; i++) {
for (let i = 0; i < data.plugin.length; i++) {
const plugin = data.plugin[i]
try {
data.plugin[i] = import.meta.resolve(plugin, configFilepath)
data.plugin[i] = import.meta.resolve!(plugin, configFilepath)
} catch (err) {}
}
}

View File

@@ -39,8 +39,8 @@ export namespace LSPClient {
l.info("starting client")
const connection = createMessageConnection(
new StreamMessageReader(input.server.process.stdout),
new StreamMessageWriter(input.server.process.stdin),
new StreamMessageReader(input.server.process.stdout as any),
new StreamMessageWriter(input.server.process.stdin as any),
)
const diagnostics = new Map<string, Diagnostic[]>()

View File

@@ -18,7 +18,7 @@ export namespace Context {
return result
},
provide<R>(value: T, fn: () => R) {
return storage.run<R>(value, fn)
return storage.run(value, fn)
},
}
}

View File

@@ -123,7 +123,7 @@ test("binary file handling", async () => {
const before = await Snapshot.track()
expect(before).toBeTruthy()
await Bun.write(`${tmp.path}/image.png`, Buffer.from([0x89, 0x50, 0x4e, 0x47]))
await Bun.write(`${tmp.path}/image.png`, new Uint8Array([0x89, 0x50, 0x4e, 0x47]))
const patch = await Snapshot.patch(before!)
expect(patch.files).toContain(`${tmp.path}/image.png`)

View File

@@ -5,6 +5,7 @@
"jsx": "preserve",
"jsxImportSource": "@opentui/solid",
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"types": [],
"customConditions": ["browser"],
"baseUrl": ".",
"paths": {