Forgot a console.log(), so had to re-publish without it.
Changelog
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
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);
})
);
Not published on npm, published on 1.0.9 instead.
Better error handling and warnings when there is no response from the server.
Do not show a warning if only the status was set but no body was set. Fixes #46
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
Fixed rare bug where some error handling might throw an error
Added session globally so stores can be created based on that
Added session to the sockets. Fixed test and docs for jsonp