Skip to content

test: set the jsonv-dev condition with devCondition() and drop the no-op test.nodeOptions - #121

Merged
Shinrai merged 1 commit into
nextfrom
test/dev-condition
Nov 5, 2026
Merged

Shinrai merged 1 commit into
nextfrom
test/dev-condition

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

test.nodeOptions isn't a Vitest option, so the jsonv-dev condition never reached the workers. devCondition() from @cldmv/configs 1.4.0 sets the resolve/ssr conditions and test.execArgv.

…-op test.nodeOptions

test.nodeOptions isn't a Vitest option. devCondition() from @cldmv/configs sets resolve/ssr conditions and test.execArgv.
@cldmv-bot cldmv-bot Bot added ! test → next v4 flow: test contributor PR targeting the next integration branch type: dependencies Relates to dependency updates, version bumps, or package management labels Nov 5, 2026
@Shinrai
Shinrai merged commit 0e6b52f into next Nov 5, 2026
31 checks passed
@cldmv-bot
cldmv-bot Bot deleted the test/dev-condition branch November 5, 2026 01:55
cldmv-bot Bot added a commit that referenced this pull request Nov 7, 2026
# `@cldmv/jsonv` v1.2.2 Changelog

**Release Date**: November 2026
**Release Type**: Patch
**Branch**: `release/1.2.2`

---

## Overview

v1.2.2 is a development-tooling release. The test config now resolves the package through the `jsonv-dev` export condition the way it was meant to, and the type scripts use the fleet names `types:check` and `types:build`.

No library code changed. The parser and every public specifier are the same as in v1.2.1, and nothing changes for anyone installing the package.

---

## 🔧 CI & tooling

### Tests run against `src/` through `devCondition()` ([#121](#121))

`.configs/vitest.config.mjs` set `test.nodeOptions` to pass `--conditions=jsonv-dev` to the test workers, but vitest has no such option, so the condition never reached them. The config now builds on `devCondition()` from `@cldmv/configs` (bumped to `^1.4.0`), which sets the resolver conditions and the worker `execArgv`, so Node's own resolver picks `src/` through the `jsonv-dev` export condition too.

### Type scripts renamed to `types:check` and `types:build` ([#123](#123))

- `test:types` is now `types:check` (`tsc --noEmit` on `.configs/tsconfig.build.json`), and CI's type-check step runs it.
- `build:types` is now `types:build`, which emits the declarations. `npm run build` and the comment in `tsup.config.mjs` use the new name.

## 📚 Documentation

- **NEW:** [docs/changelog/v1/v1.2.2.md](./v1.2.2.md) — this changelog.
- README What's New promoted to v1.2.2.

## 🔧 Dependencies

- `@cldmv/configs` ^1.3.0 → ^1.4.0, for `devCondition()` ([#121](#121)). Development dependency only.

---

## Upgrade notes

- No breaking changes — drop-in for v1.2.1. No library code changed.
- If you run `npm run test:types` or `npm run build:types` locally or in your own scripts, use `types:check` and `types:build`.



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

---

<!-- coverage-start -->

![coverage](https://img.shields.io/badge/coverage-98.7%25-brightgreen?style=for-the-badge&logo=vitest&logoColor=white)

| Metric | Coverage |
|--------|----------|
| Statements | 98.7% |
| Branches   | 97.3% |
| Functions  | 100.0% |
| Lines      | 98.8% |

*Avg: **98.7%** · `dcde5e4` · Node lts/**

<!-- coverage-end -->

<!-- co-authors -->

Co-authored-by: Shinrai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

! test → next v4 flow: test contributor PR targeting the next integration branch type: dependencies Relates to dependency updates, version bumps, or package management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant