Skip to content

Releases: belgattitude/httpx

@httpx/[email protected]

17 Nov 15:48
b2307ab
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@httpx/[email protected]

17 Nov 15:48
b2307ab
Compare
Choose a tag to compare

Patch Changes

@httpx/[email protected]

17 Nov 15:48
b2307ab
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@httpx/[email protected]

28 Oct 18:07
38fc1cb
Compare
Choose a tag to compare

Patch Changes

@httpx/[email protected]

28 Oct 17:04
b697d66
Compare
Choose a tag to compare

Patch Changes

@httpx/[email protected]

28 Oct 15:08
5ed840e
Compare
Choose a tag to compare

Patch Changes

@httpx/[email protected]

28 Oct 18:07
38fc1cb
Compare
Choose a tag to compare

Patch Changes

@httpx/[email protected]

28 Oct 17:04
b697d66
Compare
Choose a tag to compare

Minor Changes

  • #675 a6a63e1 Thanks @belgattitude! - Add support for HttpUnprocessableEntity.issues in serializer.

    import { fromJson, toJson } from '@httpx/exception/serializer';
    
    const e422 = new HttpUnprocessableEntity({
      message: 'Validation failed',
      issues: [
        {
          message: 'Invalid address',
          path: ['addresses', 0, 'line1'],
          code: 'empty_string',
        },
      ],
    });
    
    const json = toJson(e422);
    const js = fromJson(json);
    
    expect((js as HttpUnprocessableEntity).issues).toStrictEqual(e422.issues);
    expect(js).toStrictEqual(e422);

Patch Changes

  • #675 a6a63e1 Thanks @belgattitude! - Fix createHttpException that wasn't allowing issues on HttpUnprocessableEntity

    const e422 = createHttpException(422, {
      message: 'Validation failed',
      issues: [
        {
          message: 'Invalid address',
          path: ['addresses', 0, 'line1'],
          code: 'empty_string',
        },
      ],
    });

@httpx/[email protected]

28 Oct 15:08
5ed840e
Compare
Choose a tag to compare

Minor Changes

  • #672 9d1d248 Thanks @belgattitude! - Reduce bundle size by using class names rather than strings

    Importing all exceptions (excluding utilities, typeguards...) now top at 1Kb

    Example based on ESM (min+gzip)

    Scenario Size
    one exception ~ 450b
    all exceptions < 1kb
    everything (typeguards,...) 1.7kb

@httpx/[email protected]

25 Oct 23:25
bb92dbf
Compare
Choose a tag to compare

Patch Changes