Skip to content

Conversation

@coreyfarrell
Copy link
Contributor

Return undefined instead of null when package.json can't be found.

@sindresorhus
Copy link
Owner

Return undefined instead of null when package.json can't be found.

You need to update the docs too.

@sindresorhus sindresorhus changed the title Update dependencies, drop node.js 6. Update dependencies, require Node.js 8 Apr 9, 2019
Return undefined instead of null when package.json can't be found.
@coreyfarrell
Copy link
Contributor Author

You need to update the docs too.

Sorry I missed that, fixed.

@sindresorhus sindresorhus merged commit a0ed7cc into sindresorhus:master Apr 9, 2019
goto-bus-stop pushed a commit to u-wave/hub that referenced this pull request Apr 9, 2019
## The dependency [find-cache-dir](https://github.com/avajs/find-cache-dir) was updated from `2.1.0` to `3.0.0`.
This version 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.

---

<details>
<summary>Release Notes for v3.0.0</summary>

<p>Breaking:</p>
<ul>
<li>Require Node.js 8 (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="429988266" data-permission-text="Issue title is private" data-url="sindresorhus/find-cache-directory#15" data-hovercard-type="pull_request" data-hovercard-url="/sindresorhus/find-cache-directory/pull/15/hovercard" href="https://urls.greenkeeper.io/avajs/find-cache-dir/pull/15">#15</a>)  <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/avajs/find-cache-dir/commit/a0ed7cce14124e26818b238bc844441572b4f8dd/hovercard" href="https://urls.greenkeeper.io/avajs/find-cache-dir/commit/a0ed7cce14124e26818b238bc844441572b4f8dd"><tt>a0ed7cc</tt></a></li>
<li>Return <code>undefined</code> instead of <code>null</code> if the cache directory cannot be found (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="429988266" data-permission-text="Issue title is private" data-url="sindresorhus/find-cache-directory#15" data-hovercard-type="pull_request" data-hovercard-url="/sindresorhus/find-cache-directory/pull/15/hovercard" href="https://urls.greenkeeper.io/avajs/find-cache-dir/pull/15">#15</a>)  <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/avajs/find-cache-dir/commit/a0ed7cce14124e26818b238bc844441572b4f8dd/hovercard" href="https://urls.greenkeeper.io/avajs/find-cache-dir/commit/a0ed7cce14124e26818b238bc844441572b4f8dd"><tt>a0ed7cc</tt></a></li>
</ul>
<p>Enhancements:</p>
<ul>
<li>Update dependencies (<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="429988266" data-permission-text="Issue title is private" data-url="sindresorhus/find-cache-directory#15" data-hovercard-type="pull_request" data-hovercard-url="/sindresorhus/find-cache-directory/pull/15/hovercard" href="https://urls.greenkeeper.io/avajs/find-cache-dir/pull/15">#15</a>)  <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/avajs/find-cache-dir/commit/a0ed7cce14124e26818b238bc844441572b4f8dd/hovercard" href="https://urls.greenkeeper.io/avajs/find-cache-dir/commit/a0ed7cce14124e26818b238bc844441572b4f8dd"><tt>a0ed7cc</tt></a></li>
</ul>
<p><a class="commit-link" href="https://urls.greenkeeper.io/avajs/find-cache-dir/compare/v2.1.0...v3.0.0"><tt>v2.1.0...v3.0.0</tt></a></p>
</details>

<details>
<summary>Commits</summary>
<p>The new version differs by 3 commits.</p>
<ul>
<li><a href="https://urls.greenkeeper.io/avajs/find-cache-dir/commit/f6ecb85f6137107a048083afde1f064033c10a50"><code>f6ecb85</code></a> <code>3.0.0</code></li>
<li><a href="https://urls.greenkeeper.io/avajs/find-cache-dir/commit/a0ed7cce14124e26818b238bc844441572b4f8dd"><code>a0ed7cc</code></a> <code>Update dependencies, require Node.js 8 (#15)</code></li>
<li><a href="https://urls.greenkeeper.io/avajs/find-cache-dir/commit/1f96b9854ca75871076229c89730cda4dfb2aed6"><code>1f96b98</code></a> <code>Add Tidelift mention in the readme</code></li>
</ul>
<p>See the <a href="https://urls.greenkeeper.io/avajs/find-cache-dir/compare/bfcdbd855fdc860e037e6739eb1cccedbed4b893...f6ecb85f6137107a048083afde1f064033c10a50">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 🌴
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants