Releases: Urigo/graphql-modules
Releases Β· Urigo/graphql-modules
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)
v0.3.0
core
- Subscriptions Support w/ onConnect hook #267
- Add
config
andname
field inModuleSessionInfo
- Better error handling for undefined service identifier
- Better error handling for context builder
- π BREAKING CHANGE! Able to use
Inject
in a property and useInjectFunction
for factory functions instead ofInject
@Injectable()
class SomeProvider {
@Inject(SomeOtherProvider)
someOtherProvider: SomeOtherProvider;
}
resolvers: InjectFunction(SomeProvider)(someProvider => ({
foo: () => someProvider.foo()
}))
- πBREAKING CHANGE! Now
session
name is used for the network request object passed from GraphQL-Server to prevent confusion betweenrequest
andreq
ofexpress
. - πBREAKING CHANGE!
CommunicationBridge
is now deprecated; you can usePubSub
implementations recommended by Apollo.- You can see the docs for details and changes in the API.