- 服务器 Server
- server([options])
- Server options
- 服务器属性 Server properties
- server.auth.default(options)
- server.auth.scheme(name, scheme)
- server.auth.strategy(name, scheme, [options])
- await server.auth.test(strategy, request)
- await server.auth.verify(request)
- server.bind(context)
- server.cache(options)
- await server.cache.provision(options)
- server.control(server)
- server.decoder(encoding, decoder)
- server.decorate(type, property, method, [options])
- server.dependency(dependencies, [after])
- server.encoder(encoding, encoder)
- server.event(events)
- await server.events.emit(criteria, data)
- server.events.on(criteria, listener)
- server.events.once(criteria, listener)
- await server.events.once(criteria)
- server.expose(key, value)
- server.expose(obj)
- server.ext(events)
- server.ext(event, method, [options])
- await server.initialize()
- await server.inject(options)
- server.log(tags, [data, [timestamp]])
- server.lookup(id)
- server.match(method, path, [host])
- server.method(name, method, [options])
- server.method(methods)
- server.path(relativeTo)
- await server.register(plugins, [options])
- server.route(route)
- server.rules(processor, [options])
- await server.start()
- server.state(name, [options])
- server.states.add(name, [options])
- await server.states.format(cookies)
- await server.states.parse(header)
- await server.stop([options])
- server.table([host])
- Route options
- route.options.app
- route.options.auth
- route.options.bind
- route.options.cache
- route.options.compression
- route.options.cors
- route.options.description
- route.options.ext
- route.options.files
- route.options.handler
- route.options.id
- route.options.isInternal
- route.options.json
- route.options.jsonp
- route.options.log
- route.options.notes
- route.options.payload
- route.options.plugins
- route.options.pre
- route.options.response
- route.options.rules
- route.options.security
- route.options.state
- route.options.tags
- route.options.timeout
- route.options.validate
- Request lifecycle
- 请求
- 插件
hapi core modules support policy
The hapi code module and its dependencies are published under the following support rules:
TL;DR
Every major version of the core module receives at least one year of support from the time of publication of the first x.0.0
release. When a new major version is published, the previous major version gets at least 3 months of support from that moment. There are typically one to three major releases each year and most are simple to upgrade. Core dependecies are maintained as long as they are used by a supported core version.
Current versions
v18.x.x
- under active support. Maintenance support until at least January 18th, 2020.v17.x.x
- under maintenance support until August 1st, 2019.
Extended paid support options is available for v16, v17, and v18 by contacting sales@sideway.com . For more information visit hapi.business .
Latest version
The latest version of the hapi
module published to npm is the currently supported version. It receives bug fixes, security patches, and new features on an ongoing basis.
Only the latest published module of the current major version is supported. For example, if the current published version is v10.2.3
, it is the only supported version of the v10.x.x
branch. If you are using an older version of v10.x.x
such as v10.0.4
, you must upgrade to v10.2.3
before opening issues and seeking support.
Previous major version
Once a new major version is published, the previous major version goes into maintenance mode. Versions in maintenance mode receive critical bug fixes and security patches but do not receive new features.
Each major version branch stays in maintenance mode for whichever is the longer period:
- 1 year from the day of the first publication of this major version, or
- 3 months from the day of the first publication of the following major version.
For example, if:
- version
v9.0.0
was published on January 1st, 2010, and - version
v10.0.0
was published on May 1st, 2010
Support for v9.x.x
will end on January 1st, 2011 (one year from time of initial publication of the v9.0.0
release).
However, if:
- version
v9.0.0
was published on January 1st, 2010, and - version
v10.0.0
was published on December 1st, 2010
Support for v9.x.x
will end on March 1st, 2011 (three months from time of initial publication of the v10.0.0
release).
Deprecated versions
When a version is no longer supported, it will be marked as deprecated
in the npm registry. You may continue using it at your own risk, ignoring the warning messages.
Starting with v16, you may obtain extended paid support by contacting sales@sideway.com .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论