escalade is a tiny utility that ascends parent directories from a given file or directory, calling your callback at each level until it finds what you are looking for or reaches the system root. It returns the resolved absolute path to the matching file, and it does not search sibling directories of parent folders. It is available for Node.js (async or sync modes) and includes Deno support (with allow-read permission).
Project status
- Active maintenance: The most recent upstream activity is in 2024-08-29, with prior updates in 2024-02-05, indicating the project is still maintained rather than abandoned.
- Update cadence: Updates appear sporadic, with about 6 months between the 2024-02-05 update (v3.1.2) and the 2024-08-29 update (v3.2.0), and much longer gap before earlier work (2020-10-13 for v3.1.1).
AI summary generated Today
Recent updates
v3.2.0
8/29/2024v3.2.0 focuses on TypeScript declaration accuracy by shipping distinct ESM vs CommonJS type definitions, and updates the CI Node.js test matrix. The code diff also shows related packaging changes in the package.json exports map to point importers to .d.mts and require users to .d.ts.
v3.1.2
2/5/2024v3.1.2 adds support for TypeScript module resolution mode "nodenext" by updating the package.json exports to expose type entrypoints. It also updates CI tooling and the CI matrix configuration, and adds a licenses.dev badge to the README.
Featuresv3.1.1
10/13/2020v3.1.1 is a patch release that updates the package.json exports configuration to improve compatibility with Node 13.0 through 13.6. The only code-level change in the diff is the shape of the `exports` field, not the runtime implementation of escalade itself.
v3.1.0
9/14/2020Release v3.1.0 is primarily focused on TypeScript typing changes (separating typings for async vs sync modes and moving away from CommonJS-style exports) and a stated addition of Deno support. In the provided diff, the actual code changes shown are limited to removing a root type declaration and adding per-mode .d.ts files, plus devDependency bumps.
BreakingFeaturesv3.0.3
8/11/2020v3.0.3 is described in the release notes as a test release for the Deno registry. The actual diff includes newly added Deno entrypoints (async and sync) plus changes to TypeScript declaration exports and documentation.
v3.0.1
7/14/2020This patch release fixes an issue with the root export path syntax. It should resolve packaging/import problems caused by an incorrect export path configuration.
v3.0.2
7/14/2020v3.0.2 is a small patch release focused on correcting TypeScript definition typos. The code diff shows a version bump plus updates to the exported Callback type in both the main and sync module typings.