Releases: Urigo/graphql-modules
Releases · Urigo/graphql-modules
v0.7.6
- Throw if error is not related to service identifier (#460)
- Fix resolver types (#513)
- Fix high memory usage on directive with arguments (#506)
- Fix an issue with overwritten scalar name (#497)
- NEW feature Mocking (#464).
-
- You can now mock every part of module;
Module.mock({ context: { foo: 'FOO' }})
- You can now mock every part of module;
- Use generic SchemaDirectiveVisitor typings
- Support exclusions from modules (#534)
- NEW hook ->
onError
(#535)
v0.7.2
- Fixed issues with
resolversComposition
that causednext
to be undefined. - Bump
graphql-toolkit
.
v0.7.1
v0.7.0
v0.6.6
v0.6.5
- New hooks ->
onInit
andonResponse
- No need to pass module's context builder anymore
const server = new ApolloServer({ schema, context: session => session });
- No need to return anything for
middleware
v0.6.0
- Create ES Modules bundle for tree-shaking
- Apollo modules compability, that way you can make your app faster;
- See it on docs -> Integrate with Apollo Server
- No need to pass
context
forexpress-graphql
which increases the performance a lot
v0.4.2
v0.4.1
- Move
epoxy
,sonar
andutils
tographql-toolkit
and use it inside@graphql-modules/core
.
56a96be - Do not search for subscribe method if it is not an object #303
- Resolve context if it is promise. This makes GraphQL Modules compatible with browser; #313
- Fix
onDisconnectHook
- Clear cache before resetting the configuration object in case of multiple
forRoot
call;
7334ffe
-Fix error handling in context build phase
0.4.0
- Remove circular dep support and using name in definitions are also removed
🚀 BREAKING CHANGE! ; circular deps must be fixed in the projects which uses old version - Reimplement
forRoot
andforChild
logic - Remove
modulesMap
- Generate more readable module names
- Reimplement and optimize schema merge logic
- Remove
mergeModules
- Add more unit tests
- Implement better
directiveResolvers
logic - Make sure session is deleted from memory when WS connection is terminated
- Custom logger definition enhancement
- Move
composeResolvers
toutils
resolvers
field is now able to take an array of resolvers.
import { GraphQLModule } from '@graphql-modules/core';
import { loadResolversFiles, loadSchemaFiles } from '@graphql-modules/sonar';
export const UserModule = new GraphQLModule({
typeDefs: loadSchemaFiles(__dirname + '/schema/'),
resolvers: loadResolversFiles(__dirname + '/resolvers/'),
});
- FIX: Call
middleware
immediately after schema built - FIX: Expose
ModuleSessionInfo
- Add Default
ProviderScope
option;defaultProviderScope
- Performance Improvements; initial schema construction and context builder is way faster. (80% / 90% short response time)