Skip to content

Commit 1935b4b

Browse files
committed
fix: bump ktor to 3.5.0, remove hack on node:net import
1 parent 0a2ef2a commit 1935b4b

2 files changed

Lines changed: 1 addition & 21 deletions

File tree

acidify-core-js/tsdown.config.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,4 @@ export default defineConfig({
66
clean: true,
77
dts: false,
88
target: false,
9-
plugins: [
10-
{
11-
name: 'hack-eval-require',
12-
transform(code, id) {
13-
const banner =
14-
`import { createRequire as __cr } from "node:module";\n` +
15-
`const require = __cr(import.meta.url);\n`;
16-
const hitRE = /eval\(\s*['"]require['"]\s*\)/
17-
if (!/\.(mjs|js|mts|ts|jsx|tsx)$/.test(id)) return null;
18-
if (!hitRE.test(code)) return null;
19-
if (code.includes("createRequire as __cr") && code.includes("__cr(import.meta.url)")) {
20-
return null;
21-
}
22-
return {
23-
code: banner + code,
24-
map: null,
25-
};
26-
}
27-
}
28-
],
299
});

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ kx-coroutines = "1.11.0"
99
kx-io = "0.9.0"
1010
kx-datetime = "0.8.0-0.6.x-compat"
1111
kx-atomicfu = "0.32.1"
12-
ktor = "3.4.3"
12+
ktor = "3.5.0"
1313

1414
acidify-codec = "0.1.0"
1515
ktfs = "0.2.0"

0 commit comments

Comments
 (0)