Skip to content

Latest commit

 

History

History
175 lines (111 loc) · 6.86 KB

CHANGELOG.md

File metadata and controls

175 lines (111 loc) · 6.86 KB

Change log

0.18.4

Patch Changes

0.18.3

Patch Changes

0.18.2

Patch Changes

0.18.1

Patch Changes

0.18.0

Minor Changes

  • f6afa0e Thanks @ardatan! - Breaking changes:

    • Drop Node 14 support and require Node >16

    • OpenAPI options are now under openAPI

    • SwaggerUI options are now under swaggerUI

0.17.1

Patch Changes

0.17.0

Minor Changes

  • a32e2d6 Thanks @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 Documentation on SOFA's docs will be updated soon.
  • OpenAPI no longer has .save method. Use .openapiDocument to get the schema;
- openApi.save('swagger.json');
+ fs.writeFileSync('swagger.json', JSON.stringify(sofa.openapiDocument, null, 2));

v0.10.2

In this release express is removed as dependency. New basePath option is required to resolve sofa routes properly

app.use(
  "/api",
  useSofa({
    basePath: "/api",
    schema,
  }),
);

Added new server framework agnostic api

const invokeSofa = createSofaRouter({
  basePath: '/api',
  schema,
});
...
const response = await invokeSofa({
  method: req.method,
  url: req.url,
  body: JSON.parse(await getStream(req)),
  contextValue: {
    req
  },
});

v0.8.2

  • Replace winston with custom logger (#534) - Thanks @TrySound !

v0.8.1

v0.8.0

  • Update dependencies

v0.7.0

  • feat(swagger): custom components and security for OpenAPI PR #296

v0.6.1

  • fix(swagger): broken type of ID scalar in generated swagger document PR #280
  • fix: do not resolve nil variables PR #193
  • fix: use Kind from graphql instead of strings PR #192
  • fix: replace request package with Axios PR #194

v0.6.0

  • fix(swagger): fix descriptions PR #178
  • feat: support GraphQL Interfaces PR #167

v0.5.1

  • fix: do not skip falsy values (only null and undefined) PR #134

v0.5.0

  • feat(swagger): add description PR #107
  • feat(swagger): add ID scalar definition PR #107
  • fix(swagger): use requestBody or parameters not both PR #107
  • fix(swagger): generate valid YAML structure for nested objects PR #107
  • fix(swagger): avoid empty required array PR #107

v0.4.0

v0.3.0

  • fix: parse InputTypeObject with JSON.parse PR #30
  • feat: custom depthLimit (circular references) PR #29

v0.2.3

  • fix: prevent circular references PR #23

v0.2.2

We didn't track changes before this version.