feTS

TypeScript HTTP Framework focusing on e2e type-safety, easy setup, performance & great developer experience

MIT License

Downloads
84.5K
Stars
572
Committers
26

Bot releases are visible (Hide)

feTS - July 24, 2023

Published by github-actions[bot] about 1 year ago

[email protected]

Patch Changes

feTS - July 24, 2023

Published by github-actions[bot] about 1 year ago

[email protected]

Patch Changes

  • #376
    5dc2a08
    Thanks @ardatan! - Fix complex union issue happening if there are a
    lot of parameters defined in OAS, and request parameters are now simplified automatically during
    autocompletion
feTS - July 20, 2023

Published by github-actions[bot] over 1 year ago

[email protected]

Patch Changes

  • #363
    85bd174
    Thanks @ardatan! - Fix the bug happening when there is no successful
    response defined in the OpenAPI spec but only default;

    For example;

    {
      // No 2xx response defined.
      "responses": {
        "400": {
          "description": "Bad Request"
          //...
        },
        "default": {
          "description": "Successful response"
          //...
        }
      }
    }
    

    Then feTS should take the default response as the successful response.

    const response = await client['/user'].post({
      json: { name: 'John' },
    });
    
    if (!res.ok) {
      // 400 should be here
    } else {
      // default should be here
    }
    
  • #360
    098806a
    Thanks @ardatan! - Fix the bug happening when there are multiple
    request bodies are defined in a single operation.

    For example;

    If the following exists in the OpenAPI spec,

    {
      "requestBody": {
        "application/json": "...",
        "multipart/form-data": "...",
        "required": true
      }
    }
    

    feTS shouldn't take both json and formData required;

    client['/user'].post({
      // Both shouldn't be required because only one of them is enough.
      json: { name: 'John' },
      formData: { name: 'John' },
    });
    
  • #363
    85bd174
    Thanks @ardatan! - Add comments to the types and fields

feTS - July 19, 2023

Published by github-actions[bot] over 1 year ago

[email protected]

Patch Changes

  • #358
    5cc42a9
    Thanks @ardatan! - Less strict endpoint parameter to allow users
    to give different endpoints (behind proxy etc)
feTS - July 19, 2023

Published by github-actions[bot] over 1 year ago

[email protected]

Patch Changes

feTS - July 14, 2023

Published by github-actions[bot] over 1 year ago

[email protected]

Patch Changes

feTS - July 14, 2023

Published by github-actions[bot] over 1 year ago

[email protected]

Patch Changes

feTS - July 13, 2023

Published by github-actions[bot] over 1 year ago

[email protected]

Patch Changes

feTS - July 13, 2023

Published by github-actions[bot] over 1 year ago

[email protected]

Minor Changes

  • #223
    6217215
    Thanks @kylem123! - Altered logic on get query params to return
    undefined when optional prop is missing or the empty string

  • #317
    77d1b25
    Thanks @beerose! - Remove Mutable from the public API

Patch Changes

feTS - July 12, 2023

Published by github-actions[bot] over 1 year ago

[email protected]

Patch Changes

feTS - July 11, 2023

Published by github-actions[bot] over 1 year ago

[email protected]

Patch Changes

  • #307
    d15afe4
    Thanks @ardatan! - Respect security schemes and definitions in the
    request parameters (Authorization header for OAuth etc)
feTS - July 09, 2023

Published by github-actions[bot] over 1 year ago

[email protected]

Minor Changes

  • bb0b70b
    Thanks @ardatan! - BREAKING: Use NormalizeOAS to normalize
    imported const schema type instead of `Mutable`

Patch Changes

  • bb0b70b
    Thanks @ardatan! - Client: infer types from path parameters
    automatically
feTS - July 02, 2023

Published by github-actions[bot] over 1 year ago

[email protected]

Patch Changes

feTS - June 22, 2023

Published by github-actions[bot] over 1 year ago

[email protected]

Patch Changes

feTS - June 19, 2023

Published by github-actions[bot] over 1 year ago

[email protected]

Patch Changes

feTS - June 15, 2023

Published by github-actions[bot] over 1 year ago

[email protected]

Patch Changes

  • #251
    7979639
    Thanks @ardatan! - Client;

    • No more optional for each request parameter object, make them required if they are in OAS
    • Now endpoint is required if OAS has servers.url in createClient options

    Server;

    • requestBody is now required in the generated OAS
  • #251
    7979639
    Thanks @ardatan! - dependencies updates:

feTS - June 14, 2023

Published by github-actions[bot] over 1 year ago

[email protected]

Patch Changes

  • b1fa478
    Thanks @ardatan! - Small performance optimizations for lazy
    serialization
feTS - June 08, 2023

Published by ardatan over 1 year ago

[email protected]

Patch Changes

feTS - June 08, 2023

Published by ardatan over 1 year ago

[email protected]

Patch Changes

feTS - June 06, 2023

Published by ardatan over 1 year ago

[email protected]

Patch Changes