Skip to content

fix: seeing catalog when inside workspaces#1656

Merged
raineorshine merged 3 commits intoraineorshine:mainfrom
Zamiell:fix-catalog
Apr 15, 2026
Merged

fix: seeing catalog when inside workspaces#1656
raineorshine merged 3 commits intoraineorshine:mainfrom
Zamiell:fix-catalog

Conversation

@Zamiell
Copy link
Copy Markdown
Contributor

@Zamiell Zamiell commented Apr 7, 2026

Fixes #1543.

This also makes the feature work properly with bun (which is what I personally use nowadays).

Claude helped me write this PR, but it should be relatively easy to review.

@raineorshine raineorshine merged commit 738eeda into raineorshine:main Apr 15, 2026
10 checks passed
@Zamiell Zamiell deleted the fix-catalog branch April 15, 2026 20:55
Thiladev pushed a commit to Thiladev/effect-fc that referenced this pull request Apr 23, 2026
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [npm-check-updates](https://github.com/raineorshine/npm-check-updates) | [`^19.6.6` → `^21.0.0`](https://renovatebot.com/diffs/npm/npm-check-updates/19.6.6/21.0.3) | ![age](https://developer.mend.io/api/mc/badges/age/npm/npm-check-updates/21.0.3?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/npm-check-updates/19.6.6/21.0.3?slim=true) |

---

### Release Notes

<details>
<summary>raineorshine/npm-check-updates (npm-check-updates)</summary>

### [`v21.0.3`](https://github.com/raineorshine/npm-check-updates/releases/tag/v21.0.3)

[Compare Source](raineorshine/npm-check-updates@v21.0.2...v21.0.3)

#### What's Changed

- fix: chmod build/cli.js executable after vite build by [@&#8203;raineorshine](https://github.com/raineorshine) in [#&#8203;1678](raineorshine/npm-check-updates#1678)
- fix: migrate from rc-config-loader to cosmiconfig for ESM config support (closes [#&#8203;1674](raineorshine/npm-check-updates#1674)) by [@&#8203;onemen](https://github.com/onemen) in [#&#8203;1676](raineorshine/npm-check-updates#1676)

**Full Changelog**: <raineorshine/npm-check-updates@v21.0.2...v21.0.3>

### [`v21.0.2`](https://github.com/raineorshine/npm-check-updates/releases/tag/v21.0.2)

[Compare Source](raineorshine/npm-check-updates@v21.0.1...v21.0.2)

#### What's Changed

- fix: skip intersects() for non-semver specs like catalog: in peer dep checks by [@&#8203;terminalchai](https://github.com/terminalchai) in [#&#8203;1675](raineorshine/npm-check-updates#1675)

**Full Changelog**: <raineorshine/npm-check-updates@v21.0.1...v21.0.2>

### [`v21.0.1`](https://github.com/raineorshine/npm-check-updates/releases/tag/v21.0.1)

[Compare Source](raineorshine/npm-check-updates@v21.0.0...v21.0.1)

#### What's Changed

- fix: seeing catalog when inside workspaces by [@&#8203;Zamiell](https://github.com/Zamiell) in [#&#8203;1656](raineorshine/npm-check-updates#1656)
- Bump [@&#8203;types/bun](https://github.com/types/bun) from 1.3.11 to 1.3.12 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1663](raineorshine/npm-check-updates#1663)
- Bump globals from 17.4.0 to 17.5.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1664](raineorshine/npm-check-updates#1664)
- Bump [@&#8203;typescript-eslint/parser](https://github.com/typescript-eslint/parser) from 8.58.1 to 8.58.2 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1665](raineorshine/npm-check-updates#1665)
- Bump prettier from 3.8.1 to 3.8.2 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1667](raineorshine/npm-check-updates#1667)
- Bump verdaccio from 6.4.0 to 6.5.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1669](raineorshine/npm-check-updates#1669)
- Bump sinon from 21.0.3 to 21.1.2 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1668](raineorshine/npm-check-updates#1668)
- Skip CI on PRs with no file changes by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;1672](raineorshine/npm-check-updates#1672)
- Bump [@&#8203;typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/eslint-plugin) from 8.58.1 to 8.58.2 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1666](raineorshine/npm-check-updates#1666)
- Fix wrong message when all packages are within cooldown window by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;1671](raineorshine/npm-check-updates#1671)

**Full Changelog**: <raineorshine/npm-check-updates@v21.0.0...v21.0.1>

### [`v21.0.0`](https://github.com/raineorshine/npm-check-updates/blob/HEAD/CHANGELOG.md#2100---2026-04-14)

[Compare Source](raineorshine/npm-check-updates@v20.0.2...v21.0.0)

##### ⚠️ Breaking Changes

This is a **major breaking change** with significant architectural updates.

##### ESM Migration & Module System

- **Pure ESM:** Converted to pure ESM with dual-build support (ESM/CJS) via Vite 8.
- **Import Syntax:** Programmatic usage now requires named imports or namespace imports.
  - **Old:** `import ncu from 'npm-check-updates'`
  - **New:** `import * as ncu from 'npm-check-updates'` or `import { run } from 'npm-check-updates'`
- **Node.js Requirements:** Now requires `^20.19.0 || ^22.12.0 || >=24.0.0`. This is required for native `require(esm)` support and the Rolldown engine.
- **npm Requirements:** Minimum version increased to `>=10.0.0`.

##### Configuration Files (`.ncurc.js`)

- Files named `.ncurc.js` that use `module.exports` will now fail in projects that are `"type": "module"`.
- **Fix:** Rename these files to `.ncurc.cjs` or convert them to use `export default`.

##### Dependency Updates (Pure ESM versions)

| Package            | Old Version | New Version |
| :----------------- | :---------- | :---------- |
| `camelcase`        | `^6.3.0`    | `^9.0.0`    |
| `chai`             | `^4.3.10`   | `^6.2.2`    |
| `chai-as-promised` | `^7.1.2`    | `^8.0.2`    |
| `find-up`          | `5.0.0`     | `8.0.0`     |
| `p-map`            | `^4.0.0`    | `^7.0.4`    |
| `untildify`        | `^4.0.0`    | `^6.0.0`    |

##### Tooling & Build Changes

- **Vite 8 Upgrade:** Migrated to Vite 8 with the new Rust-based **Rolldown** bundler (10-30x faster builds).
- **TypeScript 6.0:** Adopted latest type-system features and performance improvements.
- **Strip ANSI:** Replaced `strip-ansi` with Node.js built-in `util.stripVTControlCharacters`.
- **Test Runner:** Replaced `vite-node` with `tsx` for TypeScript support in ESM context.

***

##### Migration Guide

If you are upgrading to v21 from earlier versions:

##### 1. Environment Check

- Ensure you meet the new Node.js requirement: `^20.19.0 || ^22.12.0 || >=24.0.0`.
- Update npm to at least `10.0.0`.

##### 2. Update Configuration Files

If you have a `.ncurc.js` file:

- **Option A:** Rename it to `.ncurc.cjs`.
- **Option B:** Convert it to ESM:

  ```js
  import { defineConfig } from 'npm-check-updates'

  export default defineConfig({
    upgrade: true,
    filter: name => name.startsWith('@&#8203;myorg/'),
  })
  ```

##### 3. Update Programmatic Usage

If you import `npm-check-updates` in your scripts:

- **ESM:** Change `import ncu from ...` to `import * as ncu from 'npm-check-updates'`.
- **CommonJS:** Ensure you are destructuring the named exports or using the full object:

```js
const ncu = require('npm-check-updates')
// Use ncu.run(...)
```

***

##### Testing

Tests now use `tsx` for module loading. When running tests manually:

```sh
mocha --node-option import=tsx 'test/**/*.test.ts'
```

Or use the npm script:

```sh
npm test
```

##### Related Issues & PRs

[PR 1649](raineorshine/npm-check-updates#1649)

***

### [`v20.0.2`](https://github.com/raineorshine/npm-check-updates/releases/tag/v20.0.2)

[Compare Source](raineorshine/npm-check-updates@v20.0.1...v20.0.2)

#### What's Changed

- Show auto-detected cooldown source at normal log level; fix test isolation by [@&#8203;bayraak](https://github.com/bayraak) in [#&#8203;1662](raineorshine/npm-check-updates#1662)

#### New Contributors

- [@&#8203;bayraak](https://github.com/bayraak) made their first contribution in [#&#8203;1662](raineorshine/npm-check-updates#1662)

**Full Changelog**: <raineorshine/npm-check-updates@v20.0.1...v20.0.2>

### [`v20.0.1`](https://github.com/raineorshine/npm-check-updates/releases/tag/v20.0.1)

[Compare Source](raineorshine/npm-check-updates@v20.0.0...v20.0.1)

#### What's Changed

- Add CI workflow to verify build output is committed by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;1645](raineorshine/npm-check-updates#1645)
- Bump lodash-es from 4.17.23 to 4.18.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1647](raineorshine/npm-check-updates#1647)
- Add Node v24 to test workflow by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;1608](raineorshine/npm-check-updates#1608)
- feat: remove pre-push git hook by [@&#8203;Zamiell](https://github.com/Zamiell) in [#&#8203;1658](raineorshine/npm-check-updates#1658)
- feat: add verbose output when packages are skipped due to cooldown by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;1659](raineorshine/npm-check-updates#1659)

**Full Changelog**: <raineorshine/npm-check-updates@v20.0.0...v20.0.1>

### [`v20.0.0`](https://github.com/raineorshine/npm-check-updates/blob/HEAD/CHANGELOG.md#2000---2026-03-31)

[Compare Source](raineorshine/npm-check-updates@v19.6.6...v20.0.0)

##### Auto Cooldown

The cooldown option is now automatically applied from the respective package manager's config:

- **npm** - `min-release-age` ([#&#8203;1632](raineorshine/npm-check-updates#1632))
- **yarn** - `npmMinimalAgeGate` (excluding `npmPreapprovedPackages`) ([#&#8203;1643](raineorshine/npm-check-updates#1643))
- **pnpm** - `minimumReleaseAge` (excluding `minimumReleaseAgeExclude`) ([#&#8203;1639](raineorshine/npm-check-updates#1639))

Why is this a breaking change?

- If you use any of the above configs, npm-check-updates will automatically exclude releases that do not exceed the specified minimum age as described in <https://github.com/raineorshine/npm-check-updates#cooldown>.
- Otherwise, you don't need to do anything.

##### Other changes

- Bump strip-ansi from 7.1.2 to 7.2.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1620](raineorshine/npm-check-updates#1620)
- Bump lodash and [@&#8203;types/lodash](https://github.com/types/lodash) by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1615](raineorshine/npm-check-updates#1615)
- Bump [@&#8203;typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/eslint-plugin) from 8.44.1 to 8.57.2 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1619](raineorshine/npm-check-updates#1619)
- Bump hosted-git-info from 9.0.0 to 9.0.2 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1622](raineorshine/npm-check-updates#1622)
- Bump glob and markdownlint-cli by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;1625](raineorshine/npm-check-updates#1625)
- update dependencies; fix vulnerabilities by [@&#8203;onemen](https://github.com/onemen) in [#&#8203;1630](raineorshine/npm-check-updates#1630)
- Potential fix for code scanning alert no. 13: Incomplete string escaping or encoding by [@&#8203;raineorshine](https://github.com/raineorshine) in [#&#8203;1640](raineorshine/npm-check-updates#1640)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMjEuMCIsInVwZGF0ZWRJblZlciI6IjQzLjEzNy4wIiwidGFyZ2V0QnJhbmNoIjoibmV4dCIsImxhYmVscyI6W119-->

Reviewed-on: https://git.valverde.cloud/Thilawyn/effect-fc/pulls/46
Co-authored-by: Renovate Bot <renovate-bot@valverde.cloud>
Co-committed-by: Renovate Bot <renovate-bot@valverde.cloud>
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.

Does not see catalog inside "workspaces"

2 participants