diff --git a/.changeset/tender-lemons-grab.md b/.changeset/tender-lemons-grab.md deleted file mode 100644 index d4a4b40b..00000000 --- a/.changeset/tender-lemons-grab.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'sofa-api': minor ---- - -BREAKING: Now OpenAPI module has been deprecated, SOFA now automatically generates \`openapi.json\` and Swagger UI on \`/docs\` on the fly diff --git a/CHANGELOG.md b/CHANGELOG.md index a8904282..6a5a683d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,19 +1,28 @@ # Change log +## 0.17.0 + +### Minor Changes + +- [`a32e2d6`](https://github.com/Urigo/SOFA/commit/a32e2d635c43468b5c70cbdc73143ead10bf5bc3) Thanks [@ardatan](https://github.com/ardatan)! - BREAKING: Now OpenAPI module has been deprecated, SOFA now automatically generates \`openapi.json\` and Swagger UI on \`/docs\` on the fly + ### vNEXT ### v0.12.0 + - Allow to override mapping of custom scalar to OpenAPI (#1159) - Thanks @izumin5210 - Stop using AST Node to retrieve Enum values in OpenAPI (#1158) - Thanks @izumin5210 - Feature/openapi tags description (#1114) - Thanks @NorbertRuff - Fix payload parsing for subscriptions (#1148) - Thanks @csuriano23 ## BREAKING CHANGES + - `createSofaRouter` is no longer exported, use `useSofa` directly - `useSofa` now supports more server frameworks. It uses `itty-router` and `@whatwg-node/server` so it supports almost all JS environments; -[See more](https://github.com/ardatan/whatwg-node/tree/master/packages/server#integrations) -Documentation on SOFA's docs will be updated soon. + [See more](https://github.com/ardatan/whatwg-node/tree/master/packages/server#integrations) + Documentation on SOFA's docs will be updated soon. - `OpenAPI` no longer has `.save` method. Use `.get` to get the schema; + ```diff const openApi = OpenAPI({ schema, @@ -34,7 +43,9 @@ const openApi = OpenAPI({ ``` ### v0.10.2 + In this release express is removed as dependency. New `basePath` option is required to resolve sofa routes properly + ```js app.use( '/api', @@ -46,6 +57,7 @@ app.use( ``` Added new server framework agnostic api + ```js const invokeSofa = createSofaRouter({ basePath: '/api', @@ -63,12 +75,15 @@ const response = await invokeSofa({ ``` ### v0.8.2 + - Replace winston with custom logger ([#534](https://github.com/Urigo/SOFA/pull/534)) - Thanks @TrySound ! ### v0.8.1 + - Bump @graphql-tools/utils to fix [ardatan/graphql-tools#1928](https://github.com/ardatan/graphql-tools/pull/1928) ### v0.8.0 + - Update dependencies ### v0.7.0 diff --git a/package.json b/package.json index 96892b5a..c3be4f55 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "sofa-api", "description": "Create REST APIs with GraphQL", - "version": "0.16.3", + "version": "0.17.0", "buildOptions": { "input": "./src/index.ts" },