All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Upgraded
passport
dependency to version 0.7.x.
0.2.5 - 2023-10-18
- Upgraded
flowstate
dependency to version 0.6.x.
0.2.4 - 2023-10-18
- Exposed
auth/authenticator
component that implementsmodule:passport.Authenticator
interface. session/stores/memory
component that implementsmodule:express-session.Store
interface and is suitable for use with service discovery.session/stores/redis
component that implementsmodule:express-session.Store
interface and is suitable for use with service discovery.state/store/session
component that implementsmodule:flowstate.Store
interface.
- Default Express app sets
'view engine'
to registered template engine type if only one template engine component is loaded. - Default Express app adds application-level middleware that implement
module:express.ApplicationRequestHandler
interface. - Default Express app adds locals variables that implement
module:express.Locals
interface. auth/authenticator
component requiresmodule:passport.SessionManager
interface.auth/authenticator
component loads components that implementmodule:passport.Strategy
interface rather thanhttp://i.bixbyjs.org/http/auth/Scheme
, adopting JSDoc namepaths for interface names.gateway/http
component creates instance ofmodule:http.Server
interface rather thanhttp://i.bixbyjs.org/http/Server
, adopting JSDoc namepaths for interface names. Corresponds with change inbixby-http@0.2.3
.
- Removed
middleware/authenticate
component. Routes should@require = 'module:passport.Authenticator'
and addauthenticator.authenticate()
to the handler stack instead. - Removed
middleware/cleanstate
component. Routes shouldrequire('flowstate')
instead. Note that that package is currently undergoing a major refactoring. - Removed
middleware/cors
component. Routes shouldrequire('cors')
instead. - Removed
middleware/csrfprotection
component. Routes shouldrequire('csurf')
instead. - Removed
middleware/errorlogging
component. - Removed
middleware/logging
component. Default app requiresmorgan
internally. - Removed
middleware/parse
component. Routes shouldrequire('body-parser')
instead. - Removed
middleware/parsecookies
component. Routes shouldrequire('cookie-parser')
instead. ??? - Removed
middleware/session
component. Routes shouldrequire('express-session')
instead, optionally with session store that implementsmodule:express-session.Store
interface. - Removed
middleware/state
component. Routes shouldrequire('flowstate')
instead, optionally with state store that implementsmodule:flowstate.Store
interface.
0.2.3 - 2021-11-17
- Default Express app sets
'view'
and'view engine'
settings and registers template engine components. - Default Express app serves static files from
public
directory. - Added
middleware/state
andmiddleware/cleanstate
.
- Application-specific Express app created from
app/app
rather thanapp/service
. - Obtain secret for session middleware from
http://i.bixbyjs.org/security/credentials/SecretVault
component instead ofhttp://i.bixbyjs.org/security/Keyring
. - Obtain secret for cookie parser middleware from
http://i.bixbyjs.org/security/credentials/SecretVault
component instead ofhttp://i.bixbyjs.org/security/Keyring
. - Session store interface renamed to
http://i.bixbyjs.org/http/SessionStore
fromhttp://i.bixbyjs.org/http/ISessionStore
. - Connection to session store is no longer established by this package, and is now expected to be established by the component that creates the store.
- State store no longer attempts to create components that implement
http://i.bixbyjs.org/http/state/StoreProvider
. It defers to application- supplied component and defaults to a session store. - Updated to
flowstate@0.5.x
.
- Removed
middleware/ceremony
. Usemiddleware/state
instead. - Removed
middleware/initialize
.