From 3bec55c9180a2a9fa1ca6aeef8d5741b08a2571c Mon Sep 17 00:00:00 2001 From: semantic-release-bot <205643090+hirosystems-release-bot[bot]@users.noreply.github.com> Date: Thu, 2 Oct 2025 20:24:34 +0000 Subject: [PATCH 1/3] chore(release): 1.3.1 [skip ci] ## [1.3.1](https://github.com/hirosystems/token-metadata-api/compare/v1.3.0...v1.3.1) (2025-10-02) ### Bug Fixes * replace hard coded IPFS gateways with configurable gateway ([#319](https://github.com/hirosystems/token-metadata-api/issues/319)) ([d04012f](https://github.com/hirosystems/token-metadata-api/commit/d04012f9187a8885bab5046bb626010f681f57fb)) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 994aece..35491e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.3.1](https://github.com/hirosystems/token-metadata-api/compare/v1.3.0...v1.3.1) (2025-10-02) + + +### Bug Fixes + +* replace hard coded IPFS gateways with configurable gateway ([#319](https://github.com/hirosystems/token-metadata-api/issues/319)) ([d04012f](https://github.com/hirosystems/token-metadata-api/commit/d04012f9187a8885bab5046bb626010f681f57fb)) + ## [1.3.0](https://github.com/hirosystems/token-metadata-api/compare/v1.2.0...v1.3.0) (2025-06-16) From 2b02e81095e10584be0649b749af4d15dd43337e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20C=C3=A1rdenas?= Date: Thu, 2 Oct 2025 15:53:34 -0600 Subject: [PATCH 2/3] fix: force close db connection after a configurable timeout (#321) --- src/env.ts | 1 + src/index.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/env.ts b/src/env.ts index 2b16d09..653d3f8 100644 --- a/src/env.ts +++ b/src/env.ts @@ -62,6 +62,7 @@ const schema = Type.Object({ PG_CONNECTION_POOL_MAX: Type.Number({ default: 10 }), PG_IDLE_TIMEOUT: Type.Number({ default: 30 }), PG_MAX_LIFETIME: Type.Number({ default: 60 }), + PG_CLOSE_TIMEOUT: Type.Number({ default: 10 }), STACKS_NODE_RPC_HOST: Type.String(), STACKS_NODE_RPC_PORT: Type.Number({ minimum: 0, maximum: 65535 }), diff --git a/src/index.ts b/src/index.ts index 66d36b9..eaf8ae7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -102,7 +102,7 @@ async function initApp() { name: 'DB', forceKillable: false, handler: async () => { - await db.close(); + await db.close({ timeout: ENV.PG_CLOSE_TIMEOUT }); }, }); } From e26f9ebf1fc6cfd8a0f71be5b23c8ca7e94487a8 Mon Sep 17 00:00:00 2001 From: semantic-release-bot <205643090+hirosystems-release-bot[bot]@users.noreply.github.com> Date: Thu, 2 Oct 2025 21:55:17 +0000 Subject: [PATCH 3/3] chore(release): 1.3.2 [skip ci] ## [1.3.2](https://github.com/hirosystems/token-metadata-api/compare/v1.3.1...v1.3.2) (2025-10-02) ### Bug Fixes * force close db connection after a configurable timeout ([#321](https://github.com/hirosystems/token-metadata-api/issues/321)) ([2b02e81](https://github.com/hirosystems/token-metadata-api/commit/2b02e81095e10584be0649b749af4d15dd43337e)) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35491e6..b626c92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.3.2](https://github.com/hirosystems/token-metadata-api/compare/v1.3.1...v1.3.2) (2025-10-02) + + +### Bug Fixes + +* force close db connection after a configurable timeout ([#321](https://github.com/hirosystems/token-metadata-api/issues/321)) ([2b02e81](https://github.com/hirosystems/token-metadata-api/commit/2b02e81095e10584be0649b749af4d15dd43337e)) + ## [1.3.1](https://github.com/hirosystems/token-metadata-api/compare/v1.3.0...v1.3.1) (2025-10-02)