Skip to content

Releases: franciscop/server

1.0.17

13 Jan 06:32

Choose a tag to compare

Forgot a console.log(), so had to re-publish without it.

1.0.16

13 Jan 06:30

Choose a tag to compare

Added hook for options within a plugin options so you can have a subschema in a plugin option schema. Example:

// For the plugin @server/auth
module.exports = {
  name: 'auth',
  callback: { type: String },
  options: {
    facebook: {

      // Note: these 2 should be not needed in the future
      default: {},
      extend: true,

      // This is the new thing that you can do:
      options: {
        id: { type: String, env: 'FACEBOOK_ID' },
        secret: { type: String, env: 'FACEBOOK_SECRET' }
      }

    }
  }
};

Then when using the plugin it will be like this:

server({
  auth: {
    facebook: {
      id: 'whatever',
      secret: 'whatever'
    }
  }
});

But of course for this specific example you'd use the .env:

# .env
FACEBOOK_ID=whatever
FACEBOOK_SECRET=whatever

1.0.15

01 Jan 09:48

Choose a tag to compare

Added session to the sockets. Fixed test and docs for jsonp

1.0.14

01 Jan 09:49

Choose a tag to compare

Added session globally so stores can be created based on that

1.0.13

01 Jan 09:49

Choose a tag to compare

Fixed rare bug where some error handling might throw an error

1.0.12

01 Jan 10:39

Choose a tag to compare

Remove the default body that was set by express when only an status code was sent by making it explicit with status(NUMBER).send(). Also fixes #46

1.0.10

01 Jan 10:42

Choose a tag to compare

Do not show a warning if only the status was set but no body was set. Fixes #46

1.0.9

01 Jan 10:47

Choose a tag to compare

Better error handling and warnings when there is no response from the server.

1.0.8

01 Jan 10:47

Choose a tag to compare

Not published on npm, published on 1.0.9 instead.

1.0.7

01 Jan 10:59

Choose a tag to compare

Yarn and npm have different path resolution. Manually attached path-to-regexp-wrap, which fixes #43

This was giving inconsistent results when using yarn (vs the expected one with npm):

server(
  get('*', (ctx) => {
    return status(200);
  })
);