Skip to content

Releases: mcansh/packages

@mcansh/vitest-response-matchers@0.1.0

30 Jul 00:13
8a2c2a9
Compare
Choose a tag to compare

Minor Changes

  • 63750c9: add vitest response matchers package

    initial set of matchers is the following

    • toHaveBody - check that a Response has a body attatched to it
    • toHaveCookies - check that a Response has any cookies, specified cookies, or a perfect match
    • toHaveHeader - check that a Response has a specific header (and value)
    • toHaveJsonBody - check that a Response's body matches the expected json
    • toHaveStatus - check that a Response's status matches
    • toHaveStatusText - check that a Response's statusText matches
    • toHaveStrictStatusText - a stricter version of the above that uses node:http to look up the status text
    • toHaveTextBody - check that a Response's body matches the expected text
    • toMatchResponse - check that a complete Response matches
    • toThrowResponse - check that a function throws a Response

@mcansh/http-helmet@0.13.2

11 Jul 23:25
3daea1f
Compare
Choose a tag to compare

Patch Changes

  • db6e852: explicitly handle case-insensitive Set-Cookie keys. may have already been fine, but added happy-dom to add a test for NonceProvider/useNonce and it popped up
  • 16f4a4e: add createPermissionsPolicy to error message thrown when passing a non array input of permissions

@mcansh/url@0.3.0

14 Jun 00:47
27d73fd
Compare
Choose a tag to compare

Minor Changes

  • 7e1a5fb: add UrlBuilder

    const builder = new UrlBuilder();
    builder.protocol("https").domain("example.com").path("/test").build();
    
    // => https://example.com/test

Patch Changes

  • c79afa8: bump dependencies to latest versions
  • 3826f9d: add license to both packages during build

@mcansh/http-helmet@0.13.1

14 Jun 00:47
27d73fd
Compare
Choose a tag to compare

Patch Changes

  • c79afa8: bump dependencies to latest versions
  • 3826f9d: add license to both packages during build