Skip to content

Releases: belgattitude/httpx

@httpx/[email protected]

16 Jul 11:47
2ff0465
Compare
Choose a tag to compare

Patch Changes

@httpx/[email protected]

16 Jul 11:20
22cdfa1
Compare
Choose a tag to compare

Minor Changes

@httpx/[email protected]

16 Jul 08:50
71f7750
Compare
Choose a tag to compare

Patch Changes

@httpx/[email protected]

16 Jul 10:29
c2af661
Compare
Choose a tag to compare

Minor Changes

@httpx/[email protected]

14 Jun 21:54
84b6b46
Compare
Choose a tag to compare

Patch Changes

@httpx/[email protected]

14 Jun 19:12
f76664a
Compare
Choose a tag to compare

Minor Changes

  • #402 6b945d3 Thanks @belgattitude! - Add field error validation support for 422 HttpUnprocessableEntity

    Example:

    import { HttpUnprocessableEntity } from '@httpx/exception';
    
    const e422 = new HttpUnprocessableEntity({
      errors: [
        {
          message: 'Invalid email',
          path: 'email',
          code: 'invalid_email',
        },
        {
          message: 'Invalid address',
          path: ['addresses', 0, 'line1'],
          code: 'empty_string',
        },
      ],
    });
    
    console.log(e422.errors);

Patch Changes

@httpx/[email protected]

29 Apr 10:53
13a252b
Compare
Choose a tag to compare

Patch Changes

@httpx/[email protected]

23 Jan 17:42
f74928c
Compare
Choose a tag to compare

Patch Changes

@httpx/[email protected]

29 Nov 15:39
e367469
Compare
Choose a tag to compare

Minor Changes

  • #31 167c216 Thanks @belgattitude! - Support ValidationError in HttpBadRequest

    In some circumstances you might find useful to append the validation errors to
    HttpBadRequest. Here's a quick example:

    const e400 = new HttpBadRequest({
      errors: [
        {
          message: 'Invalid email',
          path: 'email',
          code: 'invalid_email',
        },
        {
          message: 'Invalid address',
          path: ['addresses', 0, 'line1'],
          code: 'empty_string',
        },
      ],
    });
    console.log(e400.errors);

@httpx/[email protected]

28 Nov 17:31
09a5b61
Compare
Choose a tag to compare

Patch Changes