Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instance extends feature #524

Merged
merged 3 commits into from Sep 11, 2018
Merged

instance extends feature #524

merged 3 commits into from Sep 11, 2018

Conversation

kwolfy
Copy link
Contributor

@kwolfy kwolfy commented Nov 23, 2017

This adds the ability to dynamically create "child-loggers"
This is just add-on, not breaking-change

Example

const debug = require('debug');

const log = debug('auth');
const logSign = log.extend('sign');
const logLogin = log.extend('login');

log('hello'); // auth hello
logSign('hello'); //auth:sign hello
logLogin('hello'); //auth:login hello

It's useful when there is one class with large functions that need to be divided into different namespace but at the same time be able to easily log all of them

@coveralls
Copy link

@coveralls coveralls commented Nov 23, 2017

Coverage Status

Coverage increased (+2.0%) to 75.74% when pulling 75c91df on kwolfy:master into 285dfe1 on visionmedia:master.

1 similar comment
@coveralls
Copy link

@coveralls coveralls commented Nov 23, 2017

Coverage Status

Coverage increased (+2.0%) to 75.74% when pulling 75c91df on kwolfy:master into 285dfe1 on visionmedia:master.

@coveralls
Copy link

@coveralls coveralls commented Nov 23, 2017

Coverage Status

Coverage increased (+1.7%) to 75.449% when pulling 35c03f2 on kwolfy:master into 285dfe1 on visionmedia:master.

@Qix-
Copy link
Member

@Qix- Qix- commented Jun 20, 2018

Closes #399.

Copy link
Member

@Qix- Qix- left a comment

One comment - also, can you rebase first and add documentation to the readme?

src/common.js Outdated
delimiter = ':';
}

return createDebug(this.namespace + delimiter + namespace);
Copy link
Member

@Qix- Qix- Jun 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove the if check and just change the + delimiter + to + (delimiter || ':') +

@Qix- Qix- added feature This proposes or provides a feature or enhancement change-minor This proposes or provides a change that requires a minor release needs-documentation This issue or change requires additional documentation awaiting-response This issue or pull request is awaiting a user's response labels Jun 20, 2018
@Qix-
Copy link
Member

@Qix- Qix- commented Jun 22, 2018

Your tests appear to be failing. Could you check on those?

@kwolfy
Copy link
Contributor Author

@kwolfy kwolfy commented Jul 1, 2018

@Qix- I fix it

Qix-
Qix- approved these changes Jul 3, 2018
Copy link
Member

@Qix- Qix- left a comment

Great, thanks!

@Qix- Qix- requested review from TooTallNate and thebigredgeek Jul 3, 2018
@Qix-
Copy link
Member

@Qix- Qix- commented Jul 3, 2018

@TooTallNate / @thebigredgeek can I get a review on this?

@thebigredgeek
Copy link
Contributor

@thebigredgeek thebigredgeek commented Jul 3, 2018

This is clever. I love it. @TooTallNate ?

@DhavalW
Copy link

@DhavalW DhavalW commented Sep 8, 2018

I've implemented child instances similarly, in debug-pest, which is a light wrapper over debug.
Along with log levels (log, warn, error),
& the ability to swap debug in & out without breaking anything.

I did break convention a little bit - to include log levels as the topmost namespace.
ie logs:octopus:endpoint, errors:octopus:endpoint

so that logs & warnings may be shut off while errors are allowed to show, for all modules in a single shot. ie - errors:*, -logs:*, -warnings:*

Does that make sense ? Could there be any issues with it ?
Also, happy to contribute that code here, if you guys like it.

@Qix-
Copy link
Member

@Qix- Qix- commented Sep 11, 2018

Landing this, though please see #598 (comment).

@Qix- Qix- merged commit e43e5fe into debug-js:master Sep 11, 2018
2 checks passed
@kwolfy
Copy link
Contributor Author

@kwolfy kwolfy commented Sep 11, 2018

Thank you!

@mlshvdv
Copy link

@mlshvdv mlshvdv commented Sep 11, 2018

Thanks a lot!

bors bot added a commit to IMA-WorldHealth/TaskList that referenced this issue Sep 11, 2018
6: Update debug to the latest version 🚀 r=jniles a=greenkeeper[bot]




## Version **4.0.0** of **debug** was just published.

<table>
  <tr>
    <th align=left>
      Dependency
    </th>
    <td>
      <a target=_blank href=https://github.com/visionmedia/debug>debug</a>
    </td>
  </tr>
  <tr>
      <th align=left>
       Current Version
      </th>
      <td>
        3.2.3
      </td>
    </tr>
  <tr>
    <th align=left>
      Type
    </th>
    <td>
      dependency
    </td>
  </tr>
</table>



The version **4.0.0** is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

It might be worth looking into these changes and trying to get this project onto the latest version of debug.

If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.


---


<details>
<summary>Release Notes</summary>
<strong>4.0.0</strong>

<p>A long-awaited release to <code>debug</code> is available now: <strong><code>4.0.0</code></strong>.</p>
<h4>Due to the delay in release and the number of changes made (including bumping dependencies in order to mitigate vulnerabilities), it is highly recommended maintainers update to the latest package version and <em>test thoroughly</em>.</h4>
<h4>This release drops support for Node 4.</h4>
<hr>
<h3>Major Changes</h3>
<ul>
<li>move to XO (closes <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="197527010" data-permission-text="Issue title is private" data-url="debug-js/debug#397" href="https://urls.greenkeeper.io/visionmedia/debug/issues/397">#397</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/ba8a424d41e9dc6129e081ac3aa9715be6a45fbd"><tt>ba8a424</tt></a></li>
<li>add Node.js 10, remove Node.js 4 (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="335027326" data-permission-text="Issue title is private" data-url="debug-js/debug#583" href="https://urls.greenkeeper.io/visionmedia/debug/pull/583">#583</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/05b0ceb8856bc7b6bb0f2adc3de5cae3cea9c872"><tt>05b0ceb</tt></a></li>
</ul>
<h3>Minor Changes</h3>
<ul>
<li>bump vulnerable packages: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/853853f9f588044d76df3daf1959ca56c5f341b7"><tt>853853f</tt></a></li>
<li>Fix nwjs support (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="322430406" data-permission-text="Issue title is private" data-url="debug-js/debug#569" href="https://urls.greenkeeper.io/visionmedia/debug/pull/569">#569</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/207a6a2d53507ec9dd57c94c46cc7d3dd272306d"><tt>207a6a2</tt></a></li>
<li>add instance extends feature (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="276280081" data-permission-text="Issue title is private" data-url="debug-js/debug#524" href="https://urls.greenkeeper.io/visionmedia/debug/pull/524">#524</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/e43e5fed177b8698674748063f4ed1aaba1d59c8"><tt>e43e5fe</tt></a></li>
<li>Add TVMLKit support (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="332115083" data-permission-text="Issue title is private" data-url="debug-js/debug#579" href="https://urls.greenkeeper.io/visionmedia/debug/pull/579">#579</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/02b9ea9fd7ec95c42de47da13b4b6bb8e50025d8"><tt>02b9ea9</tt></a></li>
</ul>
<h3>Patches</h3>
<ul>
<li>clean up builds: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/3ca23316a470f6bc6e0d75d297179cfc19bbc763"><tt>3ca2331</tt></a></li>
<li>remove needless command aliases in makefile: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/9f4f8f59ba745166b0c014a61c76de5e73d4841a"><tt>9f4f8f5</tt></a></li>
<li>no longer checking for BROWSER=1: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/623c08ef73f8211278d5596c88041c65a2a58ee7"><tt>623c08e</tt></a></li>
<li>fix tests: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/57cde56e43003f6b404d4b3d9d76b74aafaeeec8"><tt>57cde56</tt></a></li>
<li>clean up makefile: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/62822f12668e8a0b1d1a4fd5a1c2fce1d8715da3"><tt>62822f1</tt></a></li>
<li>fix tests: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/833b6f84c8f8dc5b6f13da38ab0ef8a8ff86c0c9"><tt>833b6f8</tt></a></li>
<li>add .editorconfig: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/2d2509e26bf6df1e1954267e3b1a1cb83973fb09"><tt>2d2509e</tt></a></li>
<li>add yarn-error.log to .gitignore: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/7e1d5d94f31b37b460fb8d88000ab7ed0be3597e"><tt>7e1d5d9</tt></a></li>
<li>Improve usability of Windows notes w/ examples for prompts &amp; npm script (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="330761681" data-permission-text="Issue title is private" data-url="debug-js/debug#577" href="https://urls.greenkeeper.io/visionmedia/debug/pull/577">#577</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/1ad1e4a79ff36981c1972bb4e61f93c7d4ade68d"><tt>1ad1e4a</tt></a></li>
<li>Drop usage of <code>chrome.storage</code> (or make the storage backend pluggable): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/71d2aa77ff54c3c95a000bdead6b710b2a762c3f"><tt>71d2aa7</tt></a></li>
<li>Detect 'process' package: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/225c66f7198d2995e8232f9486aa9e087dc2a469"><tt>225c66f</tt></a></li>
<li>Update ms to 2.1.1 (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="286601560" data-permission-text="Issue title is private" data-url="debug-js/debug#539" href="https://urls.greenkeeper.io/visionmedia/debug/pull/539">#539</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/22f993216dcdcee07eb0601ea71a917e4925a30a"><tt>22f9932</tt></a></li>
<li>Update .npmignore (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="278743467" data-permission-text="Issue title is private" data-url="debug-js/debug#527" href="https://urls.greenkeeper.io/visionmedia/debug/pull/527">#527</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/a5ca7a20860e78a4ea47f80770c09c0c663bae1e"><tt>a5ca7a2</tt></a></li>
<li>fix colors with <code>supports-color@5</code>: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/285dfe10a5c06d4a86176b54bef2d7591eedaf40"><tt>285dfe1</tt></a></li>
<li>Document <code>enable()</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="265202236" data-permission-text="Issue title is private" data-url="debug-js/debug#517" href="https://urls.greenkeeper.io/visionmedia/debug/pull/517">#517</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/ab5083f68a7e4c1ab474ff06cd5995d706abf143"><tt>ab5083f</tt></a></li>
<li>refactor to make the common code be a setup function (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="259824649" data-permission-text="Issue title is private" data-url="debug-js/debug#507" href="https://urls.greenkeeper.io/visionmedia/debug/pull/507">#507</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/71169065b5262f9858ac78cc0b688c84a438f290"><tt>7116906</tt></a></li>
<li>Simplify and improve: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/da51af8314436ab532c151583f7fd52b2ebf2a3e"><tt>da51af8</tt></a></li>
<li>use babel-ified distributed source for browsers: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/b3f8f8e683915ef4fae3a77cbcebc6c410e65a8c"><tt>b3f8f8e</tt></a></li>
</ul>
<h3>Credits</h3>
<p>Huge thanks to <a class="user-mention" data-hovercard-user-id="827205" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/DanielRuf">@DanielRuf</a>, <a class="user-mention" data-hovercard-user-id="12223584" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/EirikBirkeland">@EirikBirkeland</a>, <a class="user-mention" data-hovercard-user-id="4483057" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/KyleStay">@KyleStay</a>, <a class="user-mention" data-hovercard-user-id="885648" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/Qix-">@Qix-</a>, <a class="user-mention" data-hovercard-user-id="7466144" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/abenhamdine">@abenhamdine</a>, <a class="user-mention" data-hovercard-user-id="345102" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/alexey-pelykh">@alexey-pelykh</a>, <a class="user-mention" data-hovercard-user-id="2006839" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/DiegoRBaquero">@DiegoRBaquero</a>, <a class="user-mention" data-hovercard-user-id="340062" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/febbraro">@febbraro</a>, <a class="user-mention" data-hovercard-user-id="8408911" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/kwolfy">@kwolfy</a>, and <a class="user-mention" data-hovercard-user-id="71256" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/TooTallNate">@TooTallNate</a> for their help!</p>
</details>

<details>
<summary>Commits</summary>
<p>The new version differs by 1 commits ahead by 1, behind by 2.</p>
<ul>
<li><a href="https://urls.greenkeeper.io/visionmedia/debug/commit/7fb104b8cfcbc3a91d8e4a6727638c3fe24be8d2"><code>7fb104b</code></a> <code>4.0.0</code></li>
</ul>
<p>See the <a href="https://urls.greenkeeper.io/visionmedia/debug/compare/700a01074456ac42922392c7f327b2d7dfe23dc8...7fb104b8cfcbc3a91d8e4a6727638c3fe24be8d2">full diff</a></p>
</details>

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

---


Your [Greenkeeper](https://greenkeeper.io) bot 🌴



Co-authored-by: greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
bors bot added a commit to IMA-WorldHealth/bhima that referenced this issue Sep 11, 2018
3173: Update debug to the latest version 🚀 r=jniles a=greenkeeper[bot]




## Version **4.0.0** of **debug** was just published.

<table>
  <tr>
    <th align=left>
      Dependency
    </th>
    <td>
      <a target=_blank href=https://github.com/visionmedia/debug>debug</a>
    </td>
  </tr>
  <tr>
      <th align=left>
       Current Version
      </th>
      <td>
        3.2.3
      </td>
    </tr>
  <tr>
    <th align=left>
      Type
    </th>
    <td>
      dependency
    </td>
  </tr>
</table>



The version **4.0.0** is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

It might be worth looking into these changes and trying to get this project onto the latest version of debug.

If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.


---


<details>
<summary>Release Notes</summary>
<strong>4.0.0</strong>

<p>A long-awaited release to <code>debug</code> is available now: <strong><code>4.0.0</code></strong>.</p>
<h4>Due to the delay in release and the number of changes made (including bumping dependencies in order to mitigate vulnerabilities), it is highly recommended maintainers update to the latest package version and <em>test thoroughly</em>.</h4>
<h4>This release drops support for Node 4.</h4>
<hr>
<h3>Major Changes</h3>
<ul>
<li>move to XO (closes <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="197527010" data-permission-text="Issue title is private" data-url="debug-js/debug#397" href="https://urls.greenkeeper.io/visionmedia/debug/issues/397">#397</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/ba8a424d41e9dc6129e081ac3aa9715be6a45fbd"><tt>ba8a424</tt></a></li>
<li>add Node.js 10, remove Node.js 4 (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="335027326" data-permission-text="Issue title is private" data-url="debug-js/debug#583" href="https://urls.greenkeeper.io/visionmedia/debug/pull/583">#583</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/05b0ceb8856bc7b6bb0f2adc3de5cae3cea9c872"><tt>05b0ceb</tt></a></li>
</ul>
<h3>Minor Changes</h3>
<ul>
<li>bump vulnerable packages: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/853853f9f588044d76df3daf1959ca56c5f341b7"><tt>853853f</tt></a></li>
<li>Fix nwjs support (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="322430406" data-permission-text="Issue title is private" data-url="debug-js/debug#569" href="https://urls.greenkeeper.io/visionmedia/debug/pull/569">#569</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/207a6a2d53507ec9dd57c94c46cc7d3dd272306d"><tt>207a6a2</tt></a></li>
<li>add instance extends feature (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="276280081" data-permission-text="Issue title is private" data-url="debug-js/debug#524" href="https://urls.greenkeeper.io/visionmedia/debug/pull/524">#524</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/e43e5fed177b8698674748063f4ed1aaba1d59c8"><tt>e43e5fe</tt></a></li>
<li>Add TVMLKit support (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="332115083" data-permission-text="Issue title is private" data-url="debug-js/debug#579" href="https://urls.greenkeeper.io/visionmedia/debug/pull/579">#579</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/02b9ea9fd7ec95c42de47da13b4b6bb8e50025d8"><tt>02b9ea9</tt></a></li>
</ul>
<h3>Patches</h3>
<ul>
<li>clean up builds: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/3ca23316a470f6bc6e0d75d297179cfc19bbc763"><tt>3ca2331</tt></a></li>
<li>remove needless command aliases in makefile: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/9f4f8f59ba745166b0c014a61c76de5e73d4841a"><tt>9f4f8f5</tt></a></li>
<li>no longer checking for BROWSER=1: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/623c08ef73f8211278d5596c88041c65a2a58ee7"><tt>623c08e</tt></a></li>
<li>fix tests: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/57cde56e43003f6b404d4b3d9d76b74aafaeeec8"><tt>57cde56</tt></a></li>
<li>clean up makefile: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/62822f12668e8a0b1d1a4fd5a1c2fce1d8715da3"><tt>62822f1</tt></a></li>
<li>fix tests: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/833b6f84c8f8dc5b6f13da38ab0ef8a8ff86c0c9"><tt>833b6f8</tt></a></li>
<li>add .editorconfig: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/2d2509e26bf6df1e1954267e3b1a1cb83973fb09"><tt>2d2509e</tt></a></li>
<li>add yarn-error.log to .gitignore: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/7e1d5d94f31b37b460fb8d88000ab7ed0be3597e"><tt>7e1d5d9</tt></a></li>
<li>Improve usability of Windows notes w/ examples for prompts &amp; npm script (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="330761681" data-permission-text="Issue title is private" data-url="debug-js/debug#577" href="https://urls.greenkeeper.io/visionmedia/debug/pull/577">#577</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/1ad1e4a79ff36981c1972bb4e61f93c7d4ade68d"><tt>1ad1e4a</tt></a></li>
<li>Drop usage of <code>chrome.storage</code> (or make the storage backend pluggable): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/71d2aa77ff54c3c95a000bdead6b710b2a762c3f"><tt>71d2aa7</tt></a></li>
<li>Detect 'process' package: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/225c66f7198d2995e8232f9486aa9e087dc2a469"><tt>225c66f</tt></a></li>
<li>Update ms to 2.1.1 (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="286601560" data-permission-text="Issue title is private" data-url="debug-js/debug#539" href="https://urls.greenkeeper.io/visionmedia/debug/pull/539">#539</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/22f993216dcdcee07eb0601ea71a917e4925a30a"><tt>22f9932</tt></a></li>
<li>Update .npmignore (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="278743467" data-permission-text="Issue title is private" data-url="debug-js/debug#527" href="https://urls.greenkeeper.io/visionmedia/debug/pull/527">#527</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/a5ca7a20860e78a4ea47f80770c09c0c663bae1e"><tt>a5ca7a2</tt></a></li>
<li>fix colors with <code>supports-color@5</code>: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/285dfe10a5c06d4a86176b54bef2d7591eedaf40"><tt>285dfe1</tt></a></li>
<li>Document <code>enable()</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="265202236" data-permission-text="Issue title is private" data-url="debug-js/debug#517" href="https://urls.greenkeeper.io/visionmedia/debug/pull/517">#517</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/ab5083f68a7e4c1ab474ff06cd5995d706abf143"><tt>ab5083f</tt></a></li>
<li>refactor to make the common code be a setup function (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="259824649" data-permission-text="Issue title is private" data-url="debug-js/debug#507" href="https://urls.greenkeeper.io/visionmedia/debug/pull/507">#507</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/71169065b5262f9858ac78cc0b688c84a438f290"><tt>7116906</tt></a></li>
<li>Simplify and improve: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/da51af8314436ab532c151583f7fd52b2ebf2a3e"><tt>da51af8</tt></a></li>
<li>use babel-ified distributed source for browsers: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/b3f8f8e683915ef4fae3a77cbcebc6c410e65a8c"><tt>b3f8f8e</tt></a></li>
</ul>
<h3>Credits</h3>
<p>Huge thanks to <a class="user-mention" data-hovercard-user-id="827205" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/DanielRuf">@DanielRuf</a>, <a class="user-mention" data-hovercard-user-id="12223584" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/EirikBirkeland">@EirikBirkeland</a>, <a class="user-mention" data-hovercard-user-id="4483057" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/KyleStay">@KyleStay</a>, <a class="user-mention" data-hovercard-user-id="885648" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/Qix-">@Qix-</a>, <a class="user-mention" data-hovercard-user-id="7466144" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/abenhamdine">@abenhamdine</a>, <a class="user-mention" data-hovercard-user-id="345102" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/alexey-pelykh">@alexey-pelykh</a>, <a class="user-mention" data-hovercard-user-id="2006839" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/DiegoRBaquero">@DiegoRBaquero</a>, <a class="user-mention" data-hovercard-user-id="340062" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/febbraro">@febbraro</a>, <a class="user-mention" data-hovercard-user-id="8408911" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/kwolfy">@kwolfy</a>, and <a class="user-mention" data-hovercard-user-id="71256" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/TooTallNate">@TooTallNate</a> for their help!</p>
</details>

<details>
<summary>Commits</summary>
<p>The new version differs by 1 commits ahead by 1, behind by 2.</p>
<ul>
<li><a href="https://urls.greenkeeper.io/visionmedia/debug/commit/7fb104b8cfcbc3a91d8e4a6727638c3fe24be8d2"><code>7fb104b</code></a> <code>4.0.0</code></li>
</ul>
<p>See the <a href="https://urls.greenkeeper.io/visionmedia/debug/compare/700a01074456ac42922392c7f327b2d7dfe23dc8...7fb104b8cfcbc3a91d8e4a6727638c3fe24be8d2">full diff</a></p>
</details>

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

---


Your [Greenkeeper](https://greenkeeper.io) bot 🌴



Co-authored-by: greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
bors bot added a commit to IMA-WorldHealth/Tree that referenced this issue Sep 12, 2018
7: Update debug to the latest version 🚀 r=jniles a=greenkeeper[bot]




## Version **4.0.0** of **debug** was just published.

<table>
  <tr>
    <th align=left>
      Dependency
    </th>
    <td>
      <a target=_blank href=https://github.com/visionmedia/debug>debug</a>
    </td>
  </tr>
  <tr>
      <th align=left>
       Current Version
      </th>
      <td>
        3.2.3
      </td>
    </tr>
  <tr>
    <th align=left>
      Type
    </th>
    <td>
      dependency
    </td>
  </tr>
</table>



The version **4.0.0** is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

It might be worth looking into these changes and trying to get this project onto the latest version of debug.

If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.


---


<details>
<summary>Release Notes</summary>
<strong>4.0.0</strong>

<p>A long-awaited release to <code>debug</code> is available now: <strong><code>4.0.0</code></strong>.</p>
<h4>Due to the delay in release and the number of changes made (including bumping dependencies in order to mitigate vulnerabilities), it is highly recommended maintainers update to the latest package version and <em>test thoroughly</em>.</h4>
<h4>This release drops support for Node 4.</h4>
<hr>
<h3>Major Changes</h3>
<ul>
<li>move to XO (closes <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="197527010" data-permission-text="Issue title is private" data-url="debug-js/debug#397" href="https://urls.greenkeeper.io/visionmedia/debug/issues/397">#397</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/ba8a424d41e9dc6129e081ac3aa9715be6a45fbd"><tt>ba8a424</tt></a></li>
<li>add Node.js 10, remove Node.js 4 (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="335027326" data-permission-text="Issue title is private" data-url="debug-js/debug#583" href="https://urls.greenkeeper.io/visionmedia/debug/pull/583">#583</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/05b0ceb8856bc7b6bb0f2adc3de5cae3cea9c872"><tt>05b0ceb</tt></a></li>
</ul>
<h3>Minor Changes</h3>
<ul>
<li>bump vulnerable packages: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/853853f9f588044d76df3daf1959ca56c5f341b7"><tt>853853f</tt></a></li>
<li>Fix nwjs support (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="322430406" data-permission-text="Issue title is private" data-url="debug-js/debug#569" href="https://urls.greenkeeper.io/visionmedia/debug/pull/569">#569</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/207a6a2d53507ec9dd57c94c46cc7d3dd272306d"><tt>207a6a2</tt></a></li>
<li>add instance extends feature (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="276280081" data-permission-text="Issue title is private" data-url="debug-js/debug#524" href="https://urls.greenkeeper.io/visionmedia/debug/pull/524">#524</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/e43e5fed177b8698674748063f4ed1aaba1d59c8"><tt>e43e5fe</tt></a></li>
<li>Add TVMLKit support (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="332115083" data-permission-text="Issue title is private" data-url="debug-js/debug#579" href="https://urls.greenkeeper.io/visionmedia/debug/pull/579">#579</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/02b9ea9fd7ec95c42de47da13b4b6bb8e50025d8"><tt>02b9ea9</tt></a></li>
</ul>
<h3>Patches</h3>
<ul>
<li>clean up builds: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/3ca23316a470f6bc6e0d75d297179cfc19bbc763"><tt>3ca2331</tt></a></li>
<li>remove needless command aliases in makefile: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/9f4f8f59ba745166b0c014a61c76de5e73d4841a"><tt>9f4f8f5</tt></a></li>
<li>no longer checking for BROWSER=1: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/623c08ef73f8211278d5596c88041c65a2a58ee7"><tt>623c08e</tt></a></li>
<li>fix tests: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/57cde56e43003f6b404d4b3d9d76b74aafaeeec8"><tt>57cde56</tt></a></li>
<li>clean up makefile: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/62822f12668e8a0b1d1a4fd5a1c2fce1d8715da3"><tt>62822f1</tt></a></li>
<li>fix tests: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/833b6f84c8f8dc5b6f13da38ab0ef8a8ff86c0c9"><tt>833b6f8</tt></a></li>
<li>add .editorconfig: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/2d2509e26bf6df1e1954267e3b1a1cb83973fb09"><tt>2d2509e</tt></a></li>
<li>add yarn-error.log to .gitignore: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/7e1d5d94f31b37b460fb8d88000ab7ed0be3597e"><tt>7e1d5d9</tt></a></li>
<li>Improve usability of Windows notes w/ examples for prompts &amp; npm script (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="330761681" data-permission-text="Issue title is private" data-url="debug-js/debug#577" href="https://urls.greenkeeper.io/visionmedia/debug/pull/577">#577</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/1ad1e4a79ff36981c1972bb4e61f93c7d4ade68d"><tt>1ad1e4a</tt></a></li>
<li>Drop usage of <code>chrome.storage</code> (or make the storage backend pluggable): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/71d2aa77ff54c3c95a000bdead6b710b2a762c3f"><tt>71d2aa7</tt></a></li>
<li>Detect 'process' package: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/225c66f7198d2995e8232f9486aa9e087dc2a469"><tt>225c66f</tt></a></li>
<li>Update ms to 2.1.1 (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="286601560" data-permission-text="Issue title is private" data-url="debug-js/debug#539" href="https://urls.greenkeeper.io/visionmedia/debug/pull/539">#539</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/22f993216dcdcee07eb0601ea71a917e4925a30a"><tt>22f9932</tt></a></li>
<li>Update .npmignore (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="278743467" data-permission-text="Issue title is private" data-url="debug-js/debug#527" href="https://urls.greenkeeper.io/visionmedia/debug/pull/527">#527</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/a5ca7a20860e78a4ea47f80770c09c0c663bae1e"><tt>a5ca7a2</tt></a></li>
<li>fix colors with <code>supports-color@5</code>: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/285dfe10a5c06d4a86176b54bef2d7591eedaf40"><tt>285dfe1</tt></a></li>
<li>Document <code>enable()</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="265202236" data-permission-text="Issue title is private" data-url="debug-js/debug#517" href="https://urls.greenkeeper.io/visionmedia/debug/pull/517">#517</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/ab5083f68a7e4c1ab474ff06cd5995d706abf143"><tt>ab5083f</tt></a></li>
<li>refactor to make the common code be a setup function (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="259824649" data-permission-text="Issue title is private" data-url="debug-js/debug#507" href="https://urls.greenkeeper.io/visionmedia/debug/pull/507">#507</a>): <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/71169065b5262f9858ac78cc0b688c84a438f290"><tt>7116906</tt></a></li>
<li>Simplify and improve: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/da51af8314436ab532c151583f7fd52b2ebf2a3e"><tt>da51af8</tt></a></li>
<li>use babel-ified distributed source for browsers: <a class="commit-link" href="https://urls.greenkeeper.io/visionmedia/debug/commit/b3f8f8e683915ef4fae3a77cbcebc6c410e65a8c"><tt>b3f8f8e</tt></a></li>
</ul>
<h3>Credits</h3>
<p>Huge thanks to <a class="user-mention" data-hovercard-user-id="827205" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/DanielRuf">@DanielRuf</a>, <a class="user-mention" data-hovercard-user-id="12223584" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/EirikBirkeland">@EirikBirkeland</a>, <a class="user-mention" data-hovercard-user-id="4483057" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/KyleStay">@KyleStay</a>, <a class="user-mention" data-hovercard-user-id="885648" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/Qix-">@Qix-</a>, <a class="user-mention" data-hovercard-user-id="7466144" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/abenhamdine">@abenhamdine</a>, <a class="user-mention" data-hovercard-user-id="345102" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/alexey-pelykh">@alexey-pelykh</a>, <a class="user-mention" data-hovercard-user-id="2006839" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/DiegoRBaquero">@DiegoRBaquero</a>, <a class="user-mention" data-hovercard-user-id="340062" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/febbraro">@febbraro</a>, <a class="user-mention" data-hovercard-user-id="8408911" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/kwolfy">@kwolfy</a>, and <a class="user-mention" data-hovercard-user-id="71256" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://urls.greenkeeper.io/TooTallNate">@TooTallNate</a> for their help!</p>
</details>

<details>
<summary>Commits</summary>
<p>The new version differs by 1 commits ahead by 1, behind by 2.</p>
<ul>
<li><a href="https://urls.greenkeeper.io/visionmedia/debug/commit/7fb104b8cfcbc3a91d8e4a6727638c3fe24be8d2"><code>7fb104b</code></a> <code>4.0.0</code></li>
</ul>
<p>See the <a href="https://urls.greenkeeper.io/visionmedia/debug/compare/700a01074456ac42922392c7f327b2d7dfe23dc8...7fb104b8cfcbc3a91d8e4a6727638c3fe24be8d2">full diff</a></p>
</details>

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

---


Your [Greenkeeper](https://greenkeeper.io) bot 🌴



Co-authored-by: greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>
@Qix- Qix- mentioned this pull request Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-response This issue or pull request is awaiting a user's response change-minor This proposes or provides a change that requires a minor release feature This proposes or provides a feature or enhancement needs-documentation This issue or change requires additional documentation
Development

Successfully merging this pull request may close these issues.

None yet

6 participants