Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/srvx.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "srvx";
1 change: 1 addition & 0 deletions lib/srvx.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "srvx";
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"./context": "./dist/runtime/context.mjs",
"./database": "./dist/runtime/database.mjs",
"./h3": "./lib/h3.mjs",
"./srvx": "./lib/srvx.mjs",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exporting all can be risky against breaking change surface (srvx 0.12 to 0.13 could drop some for example), instead we can simply export FastResponse from main nitro subpath

@schplitt schplitt Jul 30, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright. I know I needed FastURL and ServerRequest aswell as the types for those + ServerRequestContext, ServerRuntimeContext in the past

These can go under the nitro subpath aswell?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have nitro/types subpath for types. Not sure about ServerRequestContext i guess it needs explicit declaration for srvx to extend

@schplitt schplitt Jul 30, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the exports :)

"./meta": "./dist/runtime/meta.mjs",
"./package.json": "./package.json",
"./runtime-config": "./dist/runtime/runtime-config.mjs",
Expand Down