Releases: Urigo/SOFA
v0.18.8
Patch Changes
-
#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
v0.18.2
v0.18.1
Patch Changes
-
#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
v0.18.0
v0.17.1
v0.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
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, 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.get
to get the schema;
const openApi = OpenAPI({
schema,
servers: [
{
url: '/', // Specify Server's URL.
description: 'Development server',
},
],
info: {
title: 'Example API',
version: '3.0.0',
},
});
- openApi.save('swagger.json');
+ fs.writeFileSync('swagger.json', JSON.stringify(openApi.get(), 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.9.0
Do you want The Guild to keep your codebase up to date and run your build on each Sofa commit so we will make sure not to break your app?
Contact us here: the-guild.dev/connected-build
Chat with us on discord
v0.8.1
Do you want The Guild to keep your codebase up to date and run your build on each Sofa commit so we will make sure not to break your app?
Contact us here: the-guild.dev/connected-build
Chat with us on discord
- Bump @graphql-tools/utils to fix ardatan/graphql-tools#1928