httpx

Collection of libs: http exceptions, dsn-parser...

MIT License

Downloads
67.2K
Stars
16
Committers
5

Bot releases are visible (Hide)

httpx - @httpx/[email protected]

Published by belgattitude 12 months ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude 12 months ago

Minor Changes

  • 81311de Thanks @belgattitude! - Deprecate ValidationError type in favour of HttpValidationIssue

    // @deprecated errors
    // const errors: ValidationError[] = [
    
    // becomes
    const issues: HttpValidationIssue[] = [
      {
        message: 'Invalid email',
        path: 'email',
        code: 'invalid_email',
      },
      {
        message: 'Invalid address',
        path: ['addresses', 0, 'line1'],
        code: 'empty_string',
      },
    ];
    
    const e422 = new HttpUnprocessableEntity({
      // @deprecated name
      // errors: errors,
    
      // becomes issues
      issues: [],
    });
    
httpx - @httpx/[email protected]

Published by belgattitude 12 months ago

Minor Changes

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Minor Changes

  • #619 b7587cd Thanks @belgattitude! - Add convertJdbcToDsn utility function
    Helps to convert jdbc dsn.
    Useful for prisma using sqlserver.

    import { convertJdbcToDsn } from '@httpx/dsn-parser';
    
    const jdbcDsn =
        'sqlserver://localhost:1433;database=my-db;authentication=default;user=sa;password=pass03$;encrypt=true;trustServerCertificate=true';
    
    const dsn = convertJdbcToDsn(jdbc);
    
    // -> 'sqlserver://localhost:1433?database=my-db&authentication=default&user=sa&password=pass03
    encrypt=true&trustServerCertificate=true'
    
httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Minor Changes

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Minor Changes

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Minor Changes

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Major Changes

  • #512 58ea021 Thanks @belgattitude! - Minimum to node 16.12 / es2018 and modern browsers (>1%)

    Possibly a breaking change for some users relying on older browsers.

Minor Changes

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Minor Changes

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Minor Changes

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Major Changes

  • #496 746390b Thanks @belgattitude! - Minimum requirement bumped to node16 / es2019 / chrome90

    The dsn-parser package can be transpiled if you need support in older
    browsers. See your framework documentation for how to do this (ie nextjs).

  • #496 746390b Thanks @belgattitude! - Fix esm/cjs exported types thanks to arethetypeswrong and publint

Minor Changes

Patch Changes

  • #496 746390b Thanks @belgattitude! - Reduce total bundle size from 1.30kb to 1.13kb mingzip

    dsn-parser tree-shakes well, 1.13kb is the size of the full import.

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude about 1 year ago

Patch Changes