find-up breaking changes

npm

15 curated breaking changes across major versions of find-up. Use this as a migration checklist before bumping dependencies.

15
changes
Breaking changes by transition
  • v7.0.0 \u2192 v8.0.0breaking

    Require Node.js 20 321107b

  • v7.0.0 \u2192 v8.0.0breaking

    Stop re-exporting `path-exists` (#69) d65d145

  • v7.0.0 \u2192 v8.0.0breaking

    import it directly from its [package](https://github.com/sindresorhus/path-exists).

  • v6.3.0 \u2192 v7.0.0breaking

    Require Node.js 18 187b2a1

  • v5.0.0 \u2192 v6.0.0breaking

    Require Node.js 12.20 e93cfd2

  • v5.0.0 \u2192 v6.0.0breaking

    This package is now pure ESM. Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).

  • v5.0.0 \u2192 v6.0.0breaking

    Changed from a default export to named exports.

  • v5.0.0 \u2192 v6.0.0breaking

    `const findUp = require('find-up')` => `import {findUp} from 'find-up'`

  • v5.0.0 \u2192 v6.0.0breaking

    `const findUpSync = require('find-up').sync` => `import {findUpSync} from 'find-up'`

  • v4.1.0 \u2192 v5.0.0breaking

    Require Node.js 10 b0bf065 https://github.com/sindresorhus/find-up/compare/v4.1.0...v5.0.0

  • unknown \u2192 v4.0.0breaking

    Require Node.js 8 80fda88

  • unknown \u2192 v4.0.0breaking

    Return `undefined` instead of `null` when the path cannot be found a7a9500

  • unknown \u2192 v4.0.0breaking

    Add ability to specify if looking for file or directory (#40) da17a22 **It now only matches files by default, not also directories.** Previously it would match either. Enhancements:

  • unknown \u2192 v4.0.0breaking

    Add support for path matcher function (#28) c0f0dd7

  • unknown \u2192 v4.0.0breaking

    Add TypeScript definition (#35) 905e612 https://github.com/sindresorhus/find-up/compare/v3.0.0...v4.0.0

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/npm/find-up
find-up breaking changes — npm migration guide | DepScope