Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/node-22-support.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/picomatch-globs.md

This file was deleted.

14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# code-inventory

## 0.5.0

### Minor Changes

- [#24](https://github.com/Huldoser/code-inventory/pull/24) [`878940f`](https://github.com/Huldoser/code-inventory/commit/878940f5023962e37d15aaa5f4e3a16b85b39d78) - Support Node.js 22.12 and newer, down from Node.js 26.

- [#24](https://github.com/Huldoser/code-inventory/pull/24) [`878940f`](https://github.com/Huldoser/code-inventory/commit/878940f5023962e37d15aaa5f4e3a16b85b39d78) - Match glob options and npm workspace patterns with [picomatch](https://github.com/micromatch/picomatch), a new dependency, instead of Node's `path.matchesGlob`, so neither the CLI nor the library prints an experimental-feature warning on Node.js versions before 22.20 and 24.8. Most patterns select the same files as before. The differences:

- `--workspace-entries` and `workspaceEntries()` select member folders as npm does. An exclusion such as `!packages/b` applies wherever it is listed, unless a later pattern that it matches lists the folder again; `!packages/b/**` also excludes `packages/b`; exclusions also apply to dot folders; and `packages/**` also selects `packages` when it has a manifest.
- Glob options (`--exclude`, `--test`, `--tooling`, `--production`, `--entry-glob` and the matching library options) are case-sensitive on every platform. On macOS and Windows, path segments with wildcards or character classes used to ignore case.
- `--exclude`, `--test`, `--tooling` and `--production` accept a leading `./`, as `--entry-glob` already did.
- A pattern also matches a path spelled exactly like it, so `app/[id]/route.ts` selects that file as well as `app/i/route.ts`, and a pattern ending in `/**` also matches the path before it.
- A `!(…)` extglob also rejects names that begin with one of its alternatives, so `src/!(a).ts` no longer matches `src/ab.ts`, and it can match dot files.

## 0.4.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "code-inventory",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"type": "module",
"description": "Static code inventory for JavaScript and TypeScript. Find symbol usages and trace paths from entry points.",
Expand Down