Skip to content

Releases: bouwe77/temba

v0.38.0

15 Sep 13:00
90df6be
Compare
Choose a tag to compare
v0.38.0 Pre-release
Pre-release

New feature

Customize OpenAPI spec.

Before, you could either enable or disable OpenAPI with the openapi setting.

What is new is that next to this boolean, you can now also supply an object with a (partly) Open API spec, to overrule certain fields.

See also #78

v0.37.0

06 Sep 12:45
355053e
Compare
Choose a tag to compare
v0.37.0 Pre-release
Pre-release

New feature

Fixes #85

Next to configuring resources as strings, you can now also configure them as extended objects, so you can provide extra info for better OpenAPI spec generation:

const config = {
  resources: [
    "movies",
    {
      "resourcePath": "people",
      "singularName": "person",
      "pluralName": "people",
    }
  ]
}

With this config, your Temba API supports both the movies and people resources, and requesting any other resource will return a 404 Not Found.

v0.36.0

06 Sep 09:45
36ada41
Compare
Choose a tag to compare
v0.36.0 Pre-release
Pre-release

New feature

Added Open API support for APIs that don't have any resources configured.

The main difference from before is that the resource name in the request URL is now a path parameter. So if you use Swagger UI, before testing out a request you have to specify the resource name first.

v0.35.1

06 Sep 07:05
5514702
Compare
Choose a tag to compare
v0.35.1 Pre-release
Pre-release

Update dependencies

  • updating @typescript-eslint/eslint-plugin from ^7.2.0 to ^8.4.0
  • updating @typescript-eslint/parser from ^7.2.0 to ^8.4.0
  • updating prettier from ^3.2.5 to ^3.3.3
  • updating supertest from ^6.3.4 to ^7.0.0
  • updating tsc-alias from ^1.8.8 to ^1.8.10
  • updating typescript from ^5.4.2 to ^5.5.4
  • updating vitest from ^1.4.0 to ^2.0.5
  • updating ajv from ^8.12.0 to ^8.17.1
  • updating express from ^4.18.3 to ^4.19.2

v0.35.0

05 Sep 19:46
37f93c9
Compare
Choose a tag to compare
v0.35.0 Pre-release
Pre-release

New feature

OpenAPI spec for APIs created with Temba, see also #74

This is a first version, some more iterations to come.

The limitation of this first version is that it only works if you explicitely configured resources for your API.

As this OpenAPI feature is still a work in progress, the Temba docs (readme) will be updated later.

v0.34.2

06 Sep 07:01
5514702
Compare
Choose a tag to compare
v0.34.2 Pre-release
Pre-release

Dependency updates

  • updating @typescript-eslint/eslint-plugin from ^7.2.0 to ^8.4.0
  • updating @typescript-eslint/parser from ^7.2.0 to ^8.4.0
  • updating prettier from ^3.2.5 to ^3.3.3
  • updating supertest from ^6.3.4 to ^7.0.0
  • updating tsc-alias from ^1.8.8 to ^1.8.10
  • updating typescript from ^5.4.2 to ^5.5.4
  • updating vitest from ^1.4.0 to ^2.0.5
  • updating ajv from ^8.12.0 to ^8.17.1
  • updating express from ^4.18.3 to ^4.19.2

v0.34.1

05 Sep 19:40
38d6f3b
Compare
Choose a tag to compare
v0.34.1 Pre-release
Pre-release

Bugfix

When you configure resources, requests to other not configured resources gave a 400 Bad Request, while it should be 404 Not Found. This is fixed now.

v0.34.0

16 Aug 15:49
6773fc4
Compare
Choose a tag to compare
v0.34.0 Pre-release
Pre-release

New feature

requestInterceptor callbacks now also receive the request headers, so you can add you own validation for it, for example checking authentication tokens.

v0.33.0

15 Aug 21:23
5479912
Compare
Choose a tag to compare
v0.33.0 Pre-release
Pre-release

New feature

Etags, see #71

v0.32.0

15 Aug 20:56
81dbf1b
Compare
Choose a tag to compare
v0.32.0 Pre-release
Pre-release

Breaking change

Remove the configurable Cache-Control header, see #70