Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hapi-compat

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-compat - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

10

CHANGELOG.md

@@ -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)

2

lib/register.js

@@ -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 @@

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc