miolo. substantivo masculino plural:
1. popular Encéfalo.
Disque aínda se vían os miolos esparexidos polo chan.
2. Parte interior do pan.
Prefiro o miolo á codia.
4. figurado Parte fundamental ou máis importante de algo.
O miolo da cuestión non é ese.
miolo(config, render)
config: ver defaults.js
render: undefined => renderiza un html fallback html (string) => renderiza ese HTML middleware => renderiza HTML con posibilidad de SSR
ctx.request.body => instead of ctx.request.fields (default on koa-better-body) ctx.request.ip
From koa-passport:
ctx.isAuthenticated() ctx.isUnauthenticated() await ctx.login() ctx.logout() ctx.state.user
From auth: ctx.session.user ctx.session.authenticated ctx.session.token (if guest auth)
- Rely on miolo settings for cached session's ttl
- Upgraded
cacheiro
- Session is cached on
cacheiro
and usingmiolo
config.
-
context.miolo.db.initConnection
is nowcontext.miolo.db.init_connection
-
context.miolo.db.getConnection
is nowcontext.miolo.db.get_connection
-
context.miolo.db.getModel
is nowcontext.miolo.db.get_model
-
context.miolo.db.dropConnection
is nowcontext.miolo.db.drop_connection
-
connection.getModel
is nowconnection.get_model
-
added
context.miolo.cache: {get_cache, get_cache_names,drop_cache,drop_caches}}
-
upgraded
calustra
to0.11.0
. After newer cache handling,get_connection()
,get_model()
, etc. areasync
. -
upgraded every other dependency. Major version changes: @koa/cors, @maxmind/geoip2-node cron, winston-daily-rotate-file and nodemon.