Skip to content

Releases: stackpress/ingest

0.6.1

31 Jul 02:42
Compare
Choose a tag to compare

Bump to sync versions with reactus and stackpress.

Full Changelog: 0.5.24...0.6.1

0.5.24

03 Jun 02:02
Compare
Choose a tag to compare

What's New

import { action } from '@stackpress/ingest/Server';

action.props(function Page({ req, res }) {
  //...
});

Full Changelog: 0.5.22...0.5.24

0.5.22

16 May 12:19
Compare
Choose a tag to compare

What's Changed

  • addresses ingest - router rework based on function.length 4d by @cdsiats in #12

New Contributors

Full Changelog: 0.4.4...0.5.22

0.4.4

08 Mar 11:38
Compare
Choose a tag to compare

Full Changelog: 0.3.32...0.4.4

0.3.32

26 Feb 17:28
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.3.30...0.3.32

0.3.30

22 Feb 06:47
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.3.27...0.3.30

0.3.27

06 Feb 04:59
Compare
Choose a tag to compare

Full Changelog: 0.3.21...0.3.27

0.3.21

21 Jan 22:11
Compare
Choose a tag to compare

What's Changed

Mainly tests, coverage and dependencies version updates.

Full Changelog: 0.3.11...0.3.21

0.3.11

19 Dec 04:14
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.3.10...0.3.11

0.3.10

05 Dec 10:29
Compare
Choose a tag to compare

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