Releases: stackpress/ingest
Releases · stackpress/ingest
0.6.1
Bump to sync versions with reactus and stackpress.
Full Changelog: 0.5.24...0.6.1
0.5.24
What's New
action.props()
- where req, res, ctx are passed in an object instead
import { action } from '@stackpress/ingest/Server';
action.props(function Page({ req, res }) {
//...
});
Full Changelog: 0.5.22...0.5.24
0.5.22
0.4.4
Full Changelog: 0.3.32...0.4.4
0.3.32
0.3.30
What's Changed
- feature/add Netlify example 2d by @amielchristian in #8
- created a lambda function 8d by @rgtoa in #9
- Add GCP function example by @patlouis in #10
New Contributors
- @amielchristian made their first contribution in #8
- @rgtoa made their first contribution in #9
- @patlouis made their first contribution in #10
Full Changelog: 0.3.27...0.3.30
0.3.27
Full Changelog: 0.3.21...0.3.27
0.3.21
What's Changed
Mainly tests, coverage and dependencies version updates.
- Docs/markdown documentation by @amerah-abdul in #6
Full Changelog: 0.3.11...0.3.21
0.3.11
0.3.10
New API Methods
res.fromStatusResponse() - imports a status response object to the response.
res.fromStatusResponse({
code: 200,
status: 'OK',
results: { foo: 'bar'} ,
total: 1
});
res.toStatusResponse() - exports a response to a status response object .
res.toStatusResponse(); //--> { code: 200, status: 'OK' }
server.call() - a shortcur to emit
, that can auto create a request and/or response and return a status response object
const response = await server.call('foobar', req, res);
const response = await server.call('foobar' { foo: bar });
const response = await server.call('foobar');
server.routeTo() - Allows routes to call on other routes without redirecting. Return a status response object
await server.routeTo('get', '/foo/bar', req, res);
await server.routeTo('get', '/foo/bar', { foo: bar });
await server.routeTo('get', '/foo/bar');
Full Changelog: 0.3.6...0.3.10