-
#1459
5442709
Thanks @ernestognw! - ExportcreateSofa
andcreateSofaRouter
for custom intermediate configuration -
#1596
390ecd2
Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.10.0
↗︎ (from^0.9.14
, independencies
)
- Updated dependency
- #1439
428522d
Thanks @renovate! - dependencies updates:- Updated dependency
fets@^0.8.0
↗︎ (from^0.7.0
, independencies
)
- Updated dependency
-
#1410
4999686
Thanks @renovate! - dependencies updates:- Updated dependency
fets@^0.7.0
↗︎ (from^0.6.4
, independencies
)
- Updated dependency
-
#1372
dac1f7e
Thanks @gilgardosh! - Bug fix: Generate spec for Union types -
#1388
ffe6e67
Thanks @robertherber! - fix: add types to exports in package.json -
#1390
03b0ccf
Thanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.9.14
↗︎ (from^0.9.0
, independencies
) - Updated dependency
fets@^0.6.4
↗︎ (from^0.2.0
, independencies
)
- Updated dependency
-
#1370
028af74
Thanks @nathanchapman! - Handle nested query parameters
-
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
-
a32e2d6
Thanks @ardatan! - BREAKING: Now OpenAPI module has been deprecated, SOFA now automatically generates `openapi.json` and Swagger UI on `/docs` on the fly
- 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
createSofaRouter
is no longer exported, useuseSofa
directlyuseSofa
now supports more server frameworks. It usesitty-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));
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
},
});
- Replace winston with custom logger (#534) - Thanks @TrySound !
- Bump @graphql-tools/utils to fix ardatan/graphql-tools#1928
- Update dependencies
- feat(swagger): custom components and security for OpenAPI PR #296
- 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
- fix: do not skip falsy values (only null and undefined) PR #134
- feat(swagger): add description PR #107
- feat(swagger): add
ID
scalar definition PR #107 - fix(swagger): use
requestBody
orparameters
not both PR #107 - fix(swagger): generate valid YAML structure for nested objects PR #107
- fix(swagger): avoid empty
required
array PR #107
- feat: add error handler PR #44 PR #45
- feat: allow to customize endpoint's HTTP Method PR #46
- feat: add InputTypeObjects to OpenAPI generation PR #34 - @hajnalben
- fix: parse InputTypeObject with JSON.parse PR #30
- feat: custom
depthLimit
(circular references) PR #29
- fix: prevent circular references PR #23
We didn't track changes before this version.