hapi-compat
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -5,3 +5,13 @@ # Change Log | ||
<a name="1.1.0"></a> | ||
# [1.1.0](https://github.com/bakjs/hapi-compat/compare/v1.0.1...v1.1.0) (2017-10-20) | ||
### Features | ||
* **register:** warn for attributes ([17ecae6](https://github.com/bakjs/hapi-compat/commit/17ecae6)) | ||
<a name="1.0.1"></a> | ||
## 1.0.1 (2017-10-20) |
@@ -11,2 +11,4 @@ const { warn, caller, getFnParamNames, isPlugin } = require('./utils') | ||
delete plugin.register.attributes | ||
warn('PLUGIN_ATTRS', 'plugins should export { register, pkg } instead of { register.attributes }', 'plugin: ' + plugin.pkg.name) | ||
} | ||
@@ -13,0 +15,0 @@ |
{ | ||
"name": "hapi-compat", | ||
"description": "hapi plugin which tries to detect, warn and auto-fix Hapi 17 breaking changes", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
# hapi-compat | ||
<p> | ||
<a href="https://github.com/bakjs/bak"> | ||
@@ -12,2 +13,3 @@ <img alt="" src="https://david-dm.org/bakjs/hapi-compat.svg?style=flat-square"> | ||
</a> | ||
<br> | ||
<a href="https://github.com/bakjs/hapi-compat"> | ||
@@ -26,2 +28,3 @@ <img alt="" src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square"> | ||
<br> | ||
</p> | ||
@@ -38,6 +41,7 @@ This plugin tries to detect, warn and auto-fix Hapi 17 breaking changes which are not fixed in plugins with a best effort. | ||
SERVER_REGISTER | YES | - | `server.register({ register })` should be `{ plugin }` | ||
PLUGIN_ATTRS | YES | - | `register.attributes` ~> `{register, pkg}` | ||
SERVER_ON | YES | I* + R* | `server.on` ~> `server.events.on` | ||
ASYNC_SERVER_EXT | YES | I | Support for server.ext where the method expects having `next` callback | ||
- Perf Impact indicates wether this support impacts performance of framework (I)init or (R)untime. | ||
- Perf Impact indicates if this support impacts performance of framework (I)init or (R)untime. | ||
- `*` means only impacts perf when old code detected not newer plugins | ||
@@ -77,2 +81,3 @@ | ||
+ Does this plugin magically fixes everything for migration? | ||
Absolutely no. This is just a helper utility for making migration easier and faster. | ||
@@ -79,0 +84,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11613
170
85