Skip to content

Releases: stackpress/stackpress

0.7.1

19 Mar 18:31

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.6.1...0.7.1

0.6.1

31 Jul 02:45

Choose a tag to compare

Bump to sync versions lib, ingest, inquire, idea.

Full Changelog: 0.2.24...0.6.1

0.2.24

03 Jun 01:58

Choose a tag to compare

What's New

  • action.props() - where req, res, ctx are passed in an object instead
  • Added documentation attributes @description(), @example()
  • Added validation attributes @is.starting(), is.ending(), is.pattern()
  • New cors options for api.endpoints[] configuration

Action Props

import { action } from 'stackpress/server';

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

Idea Attributes

The following example are used for documentation purposes.

id String @description("A unique generated identifier")
               @example("abc123")

The following example are additional validation methods.

path String @is.starting("/") @is.ending("/") @is.pattern("[a-b]")

API CORS

{
  "api": {
    endpoints: [
      {
        "method": "GET",
        "route": "/api/foo/bar"
        "cors": true,
        "type": "public"
      }
    ]
  }
}

Full Changelog: 0.2.22...0.2.24

0.2.22

16 May 12:21

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/stackpress/stackpress/commits/0.2.22