2 Commits
v2.0.2 ... main

Author SHA1 Message Date
a957feb868 v2.0.3
Some checks failed
Default (tags) / security (push) Failing after 0s
Default (tags) / test (push) Failing after 0s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2026-03-23 11:17:59 +00:00
bbc569b628 fix(adapter.node): unref the node server before closing connections during shutdown 2026-03-23 11:17:59 +00:00
4 changed files with 9 additions and 2 deletions

View File

@@ -1,5 +1,11 @@
# Changelog
## 2026-03-23 - 2.0.3 - fix(adapter.node)
unref the node server before closing connections during shutdown
- Calls server.unref() before closing all connections so shutdown does not keep the Node.js event loop alive.
- Improves shutdown behavior for the Node adapter when stopping HTTP or HTTPS servers.
## 2026-03-23 - 2.0.2 - fix(adapter.node)
close websocket server and active connections when stopping the Node adapter

View File

@@ -1,6 +1,6 @@
{
"name": "@push.rocks/smartserve",
"version": "2.0.2",
"version": "2.0.3",
"private": false,
"description": "a cross platform server module for Node, Deno and Bun",
"exports": {

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartserve',
version: '2.0.2',
version: '2.0.3',
description: 'a cross platform server module for Node, Deno and Bun'
}

View File

@@ -99,6 +99,7 @@ export class NodeAdapter extends BaseAdapter {
}
return new Promise((resolve, reject) => {
if (this.server) {
this.server.unref();
this.server.closeAllConnections();
this.server.close((err) => {
if (err) reject(err);