Skip to content

Commit 27dcc97

Browse files
committed
Stop bundling the router as it can be used directly as a dependency
Signed-off-by: karthik2804 <[email protected]>
1 parent 777b227 commit 27dcc97

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ import * as Sqlite from './sqlite';
77
import * as Postgres from './postgres';
88
import * as Mysql from './mysql';
99
import * as Mqtt from './mqtt';
10-
import { Router } from './router';
1110
import * as PostgresV3 from './postgresv3';
1211
export {
13-
Router,
1412
Llm,
1513
Variables,
1614
Redis,

src/router.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/test-app/package-lock.json

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/test-app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"webpack-cli": "^4.10.0"
2020
},
2121
"dependencies": {
22-
"@fermyon/spin-sdk": "file:../../"
22+
"@fermyon/spin-sdk": "file:../../",
23+
"itty-router": "^5.0.18"
2324
}
2425
}

test/test-app/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Router } from "@fermyon/spin-sdk"
1+
import { Router } from "itty-router"
22
import { headersTest, health, kvTest, kvTestUint8Array, outboundHttp, statusTest, stream, streamTest, testFunctionality } from "./test";
33

44
let router = Router()

0 commit comments

Comments
 (0)