Collection of libs: http exceptions, dsn-parser...
MIT License
Bot releases are hidden (Show)
Published by belgattitude 12 months ago
81311de
]:
Published by belgattitude 12 months ago
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: [],
});
Published by belgattitude 12 months ago
339e8a3
Thanks @belgattitude! - Reduce dsn regexp character lengths (reduce complexity)Published by belgattitude about 1 year ago
#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'
Published by belgattitude about 1 year ago
6eab016
]:
Published by belgattitude about 1 year ago
6eab016
Thanks @belgattitude! - Fix serializer type export for older projectsPublished by belgattitude about 1 year ago
cfe1808
Thanks @belgattitude! - Lint with typescript/eslint v6 strictcfe1808
]:
Published by belgattitude about 1 year ago
cfe1808
Thanks @belgattitude! - Lint with typescript/eslint v6 strictPublished by belgattitude about 1 year ago
#532 cfe1808
Thanks @belgattitude! - Lint with typescript-eslint v6, change || to ??.
#532 cfe1808
Thanks @belgattitude! - Lint with typescript/eslint v6 strict
#532 cfe1808
Thanks @belgattitude! - Narrow HttpStatusCode type from number to registered status codes (400,...,599)
Published by belgattitude about 1 year ago
58ea021
, 58ea021
, 58ea021
]:
Published by belgattitude about 1 year ago
#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.
58ea021
Thanks @belgattitude! - Reduce global file size by transpiling for node 16 and modern browsers.58ea021
Thanks @belgattitude! - Fix type exports in some circumstances (masquerading as esm)Published by belgattitude about 1 year ago
a02984c
Thanks @belgattitude! - Support '+' character in driverPublished by belgattitude about 1 year ago
6dbbf43
Thanks @belgattitude! - Transpile from es2020 to es2019 to widen browser supportPublished by belgattitude about 1 year ago
6dbbf43
Thanks @belgattitude! - Transpile from es2020 to es2019 to widen browser supportPublished by belgattitude about 1 year ago
eb2c363
Thanks @belgattitude! - Fix type exportsPublished by belgattitude about 1 year ago
#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
c966acb
Thanks @belgattitude! - Ensure modern browser support.#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.
Published by belgattitude about 1 year ago
b5c1845
Thanks @belgattitude! - Add missing JsonApiErrorFactory exportPublished by belgattitude about 1 year ago
#482 5337e61
Thanks @belgattitude! - Improve typecheck strictness
Updated dependencies [5337e61
]:
Published by belgattitude about 1 year ago
5337e61
Thanks @belgattitude! - Improve typecheck strictnessPublished by belgattitude about 1 year ago
5337e61
Thanks @belgattitude! - Improve typecheck strictness