Releases: TENSIILE/saborter-server
Releases · TENSIILE/saborter-server
v1.0.1 (Match 27th, 2026)
v1.0.0 (Match 26th, 2026)
What's Changed | 🎉 Initial Release of Saborter Server
✨ Core Functionality
- Request abort capability for the Express framework
🎯 Usage Example
import express from 'express';
import { isAbortError } from 'saborter/lib';
import { initRequestInterrupts, getAbortSignal } from '@saborter/server/express';
const app = express();
const port = process.env.PORT || 3000;
initRequestInterrupts(app);
app.use(express.json());
app.get('/', async (req, res) => {
try {
const result = await longRunningOperation(getAbortSignal(req));
res.json(result);
} catch (error) {
if (isAbortError(error)) {
return res.status(499).send();
}
res.status(500).send();
}
});
app.listen(port, () => {
console.log(`Server running at http://localhost:${port}`);
});🔗 Dependencies
- External dependencies are Express
- Uses native AbortController
- Minimal bundle size
📦 Distribution
- Available via npm:
npm install saborter @saborter/server - Available via yarn:
yarn add saborter @saborter/server