Releases: japa/assert
Releases · japa/assert
Support @japa/runner v4
4.0.1 (2025-01-07)
Full Changelog: v4.0.0...v4.0.1
Remove OpenAPI assertions to its own package
Instead you must use the @japa/openapi-assertions
package for OpenAPI assertions. You can configure and use it as follows.
npm i -D @japa/openapi-assertions
import { openapi } from '@japa/openapi-assertions'
configure({
plugins: [
openapi({
schemas: [new URL('../api-spec.json', import.meta.url)],
}),
],
})
Bug Fixes
- type issues and test script (81c7a9b)
BREAKING CHANGES
- API assertions have been moved to its own package
Full Changelog: v3.0.0...v4.0.0
Upgrade to Chai 5
There are no breaking changes in @japa/assert
. However, since we have upgraded the underlying dependency chai
, it might bring some surprises. Please check chai releases once.
Commits
What's Changed
- notInclude docs update by @shaheedazaad in #1
New Contributors
- @shaheedazaad made their first contribution in #1
Full Changelog: v1.4.1...v3.0.0
Rename certain assertion methods
Deprecations
- The
doesNotRejects
method has been deprecated in favor ofdoesNotReject
- The
doesNotThrows
method has been deprecated in favor ofdoesNotThrow
Commits
- refactor: deprecate doesNotRejects and doesNotThrows in favor of new methods 46ce1df
- chore: update dependencies 3ee9d49
- docs: fix docblock for notInclude and notDeepInclude methods 931beca
What's Changed
- notInclude docs update by @shaheedazaad in #1
New Contributors
- @shaheedazaad made their first contribution in #1
Full Changelog: v2.0.1...v2.1.0
Bundle using tsup
Full Changelog: v2.0.0...v2.0.1
Major release under latest tag
- The package is ESM only
Commits
- docs(README): update usage docs 125b9f4
- feat: allow schema paths to be instanceof URLs cdd9dbb
- chore: publish under latest tag c502614
- chore: update dependencies f37dc8d
Full Changelog: v1.4.1...v2.0.0
Update dependencies
- chore: update peer dependency ebf2ba5
- ci: rename test.yml to checks.yml bbf72ba
- chore: update dependencies 7d6dcea
Full Changelog: v2.0.0-1...v2.0.0-2
Re-export Assert class
Pre-release for v3
Breaking Changes
- Package is now ESM only
- Types are now available from
@japa/runner/types
Commits
- refactor!: migrate to esm 22cd8c8
Update "evaluate" method to accept "showDiff" option
- refactor: accept "showDiff" prop when evaluating assertion result d403c6b
Full Changelog: v1.4.0...v1.4.1