Skip to content

Releases: japa/assert

Support @japa/runner v4

07 Jan 11:17
Compare
Choose a tag to compare

Remove OpenAPI assertions to its own package

18 Dec 05:38
Compare
Choose a tag to compare

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)],
    }),
  ],
})
  • refactor!: remove api-contract-validator for OpenAPI testing (#5) (e9ad2ed), closes #5

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

29 Mar 10:32
Compare
Choose a tag to compare

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

  • fix: peer dependencies range 272bdc5
  • chore: update dependencies 4e1fc51

What's Changed

New Contributors

Full Changelog: v1.4.1...v3.0.0

Rename certain assertion methods

16 Dec 07:34
Compare
Choose a tag to compare

Deprecations

  • The doesNotRejects method has been deprecated in favor of doesNotReject
  • The doesNotThrows method has been deprecated in favor of doesNotThrow

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

New Contributors

Full Changelog: v2.0.1...v2.1.0

Bundle using tsup

06 Nov 09:11
Compare
Choose a tag to compare
  • refactor: bundle code using tsup and reformat internals b34c6b4
  • chore: update dependencies 7202805

Full Changelog: v2.0.0...v2.0.1

Major release under latest tag

07 Oct 05:13
Compare
Choose a tag to compare
  • 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

25 Sep 10:28
Compare
Choose a tag to compare
Update dependencies Pre-release
Pre-release
  • 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

28 Jun 19:16
Compare
Choose a tag to compare
Pre-release

Commits

  • fix: add missing Assert class export 5b3abb1

v2.0.0-0...v2.0.0-1

Pre-release for v3

28 Jun 19:03
Compare
Choose a tag to compare
Pre-release for v3 Pre-release
Pre-release

Breaking Changes

  • Package is now ESM only
  • Types are now available from @japa/runner/types

Commits

  • refactor!: migrate to esm 22cd8c8

v1.4.1...v2.0.0-0

Update "evaluate" method to accept "showDiff" option

10 Feb 06:47
Compare
Choose a tag to compare
  • refactor: accept "showDiff" prop when evaluating assertion result d403c6b

Full Changelog: v1.4.0...v1.4.1