设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

​Hapi.js 12.0.0发布,Node.js服务端框架

2016-1-19 20:13| 发布者: joejoe0332| 查看: 577| 评论: 0|原作者: oschina|来自: oschina

摘要: Hapi.js 是一个用来构建基于 Node.js 的应用和服务的富框架,使得开发者把重点放在便携可重用的应用逻辑而不是构建架构。内建输入验证、缓存、认证和其他 Web 应用开发常用的功能。hapi v12.0.0 主要移除了 qs 模块 ...

Hapi.js 是一个用来构建基于 Node.js 的应用和服务的富框架,使得开发者把重点放在便携可重用的应用逻辑而不是构建架构。内建输入验证、缓存、认证和其他 Web 应用开发常用的功能。

hapi v12.0.0 主要移除了 qs 模块的框架依赖。qs 是一个 URL 查询字符串解析器,支持特定的复杂结构。此版本最大的贡献者是 Sideway

非兼容改进:

  • Removed support for the processing of special form-encoded key=value pairs in query strings, form-encoded payloads, and multipart field names.

  • Removes the connection query.qs configuration option.

  • Removes the route payload.qs configuration option.

  • Removes the parserOptions argument from the request.setUrl() method.

  • Authentication scope strings cannot begin with ! or + as those prefix characters now have a special meaning.

  • request.route (the route public interface) settings.auth changed to move scope and entity inside a new access array.

  • When using server.inject(), any HTTP trailers are no longer included in res.headers but instead are provided under res.trailers to be consistent with node.

  • Removed request.session and request.auth.session placeholders (was set to null before).

新特性:

  • Allow passing a pre-processed URL object (from node's URL parse()) to request.setUrl().

  • Support new required and forbidden authentication scopes.

  • Allow specifying multiple scope/entity sets for a single endpoint.

  • New pendingGenerateTimeout cache option for reducing calls to the generate method while another is already pending.

  • Return a Promise when a callback is not provided.

  • Expose CORS origin match status in request.info.cors.isOriginMatch.

  • Expose entire request.auth object in validation context.

详细改进内容请看发行说明

酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部