Skip to content
Merged
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
16 changes: 10 additions & 6 deletions docs/changelog/v1/v1.0.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ The package is relicensed from MIT to Apache-2.0 ([#34](https://github.com/CLDMV

- **Test suite on `@cldmv/vitest-runner`** ([#37](https://github.com/CLDMV/wisp/pull/37)) β€” the mocha + chai suite under `test/` moved to vitest under `tests/` (`*.test.vitest.mjs`), with new tests for the import strategies and the caller resolver. Coverage is 100% and the coverage badge and PR coverage comment are enabled in CI. The legacy `assert`-strategy tests run on Node.js 24+, because Node.js 20 and 22 cache a failed `import()` of the same URL; older versions check the unsupported-type error instead.
- **Standard lint/format setup** ([#36](https://github.com/CLDMV/wisp/pull/36)) β€” prettier and ESLint configs in `.configs/`, a `.prettierignore`, `lint` / `lint:fix` / `format` / `format:check` scripts, and a check-only pre-commit hook installed by `prepare`.
- **Build scripts** ([#40](https://github.com/CLDMV/wisp/pull/40)) β€” `build` runs tsup, `types:build` / `types:check` replace `build:types`, `prepack` builds types and `dist/` before packing, and `build:ci` runs lint, format check, types, build and tests. CI, publish and release workflows build `dist/` alongside the types, and the bundle-size check measures `dist/index.mjs` and `dist/index.cjs`.
- **Build scripts** ([#40](https://github.com/CLDMV/wisp/pull/40)) β€” `build` runs tsup, `types:build` / `types:check` replace `build:types`, `prepack` builds types and `dist/` before packing, and `build:ci` runs lint, format check, types, build and tests. CI, publish and release workflows build `dist/` alongside the types, the coverage jobs run `build:ci` before measuring, and the bundle-size check measures `dist/index.mjs` and `dist/index.cjs`.
- `BUGS.md` was reformatted by prettier (code-fence languages and spacing; no content change), and one `/* v8 ignore next */` comment marks a type check in `src/lib/resolve-from-caller.mjs` that the exported wrappers make unreachable. Neither changes behaviour.
- New tests for `wisp` and `wispSync`: a primary that fails validation throws without using the fallback, a primary that is invalid JSON uses the fallback, and a fallback that fails validation throws.
- New `tests/cjs/entry.test.cjs` (run by `npm test` through `npm run test:cjs`, which now builds `dist/` first) checks that `require()` returns the same functions as `import`, and that the version check fires when `require(esm)` is unavailable.

Expand All @@ -76,12 +77,15 @@ The package is relicensed from MIT to Apache-2.0 ([#34](https://github.com/CLDMV

## πŸ”§ Dependencies

No runtime dependencies were added; the package still has none. Development dependencies only:
No runtime dependencies were added or changed; the package still has none, and `engines.node` stays `>=16.0.0`. All changes are to development dependencies:

- Added `@cldmv/vitest-runner`, `vitest` and `@vitest/coverage-v8`; removed `mocha` and `chai` ([#37](https://github.com/CLDMV/wisp/pull/37)).
- Added `tsup` ([#40](https://github.com/CLDMV/wisp/pull/40)).
- Added prettier, the ESLint plugins and `@cldmv/prettier-plugin-jsonv` / `@cldmv/eslint-plugin-jsonv` for the lint/format setup ([#36](https://github.com/CLDMV/wisp/pull/36)).
- `@cldmv/fix-headers` 2.1.2 β†’ 2.1.4 ([#42](https://github.com/CLDMV/wisp/pull/42)).
- **Test toolchain** ([#37](https://github.com/CLDMV/wisp/pull/37)): added `@cldmv/vitest-runner` (`^1.5.3`), `vitest` (`^5.0.3`) and `@vitest/coverage-v8` (`^5.0.3`); removed `mocha` and `chai`.
- **Build** ([#40](https://github.com/CLDMV/wisp/pull/40)): added `tsup` (`^8.5.1`).
- **Lint and format** ([#36](https://github.com/CLDMV/wisp/pull/36)): added `prettier` (`^3.9.9`), `@eslint/json`, `@eslint/markdown`, `@eslint/css`, `@cldmv/eslint-plugin-jsonv`, `@cldmv/prettier-plugin-jsonv` and `@cldmv/jsonv`; `eslint` `^10.10.0` β†’ `^10.12.0` and `globals` `^17.12.0` β†’ `^17.13.0`.
- **`@cldmv/fix-headers`** `^2.1.2` β†’ `^2.2.0` ([#42](https://github.com/CLDMV/wisp/pull/42) took it to `^2.1.4`, [#44](https://github.com/CLDMV/wisp/pull/44) to `^2.2.0`). Version 2.1.4 no longer writes a JavaScript comment into JSON or Markdown files, processes every repeated `--input`, and never walks dependency folders such as `node_modules`. Version 2.2.0 makes the `@Last modified by` header tag follow content edits only, so a header-only rewrite keeps the recorded editor instead of replacing it.
- **`@cldmv/configs`** `^1.2.1` β†’ `^1.2.4` ([#44](https://github.com/CLDMV/wisp/pull/44)). It provides the shared `fix-headers` configuration that `.configs/fix-headers.json` extends. Version 1.2.4 turns off `forceAuthorUpdate` and `forceLastModifiedAuthorUpdate` (both were on in 1.2.1), so the shared configuration no longer overwrites the recorded author or last editor.
- [#42](https://github.com/CLDMV/wisp/pull/42) and [#44](https://github.com/CLDMV/wisp/pull/44) change only `package.json` and the lockfile; no file headers were restamped.
- **Development Node.js floor.** `vitest` 5 supports `^22.12.0 || ^24.0.0 || >=26.0.0` and `@cldmv/vitest-runner` 1.5.3 and `@cldmv/fix-headers` 2.2.0 require `>=22.12.0`, so contributors need Node.js 22.12 or newer (23 is not supported by the test runner). The CI matrix already started at 22.12.0. The published package still runs on Node.js 16 and later for `import`.

---

Expand Down
Loading