Skip to content

Releases: Urigo/graphql-modules

v0.7.2

17 May 09:42
Compare
Choose a tag to compare
  • Fixed issues with resolversComposition that caused next to be undefined.
  • Bump graphql-toolkit.

v0.7.1

30 Apr 13:12
Compare
Choose a tag to compare

Core

  • Fixed exception thrown when s Scalar resolver is declared as object and not as GraphQLScalarType.
  • Pass correct session to context builder for subscriptions (#423)

v0.7.0

03 Apr 13:50
Compare
Choose a tag to compare

Core

  • Allow schema building to be async (#375)
  • Added onResponse hooks (#382)
  • Fix issues with increased memory in latest release
  • Better support for DataSources (#385)
  • Do not load defaultLogger and defaultCache lazily (#392)
  • Added tests to prevent memory leaks.

DI

  • Added tests to prevent memory leaks.

v0.6.6

20 Mar 08:52
Compare
Choose a tag to compare
  • Merge schemas recursively according to the application's module tree
  • Performance improvements
    • Fix an issue related to Application-Scoped providers

v0.6.5

18 Mar 15:49
Compare
Choose a tag to compare
const server = new ApolloServer({ schema, context: session => session });
  • No need to return anything for middleware

v0.6.0

14 Mar 17:10
Compare
Choose a tag to compare
  • Create ES Modules bundle for tree-shaking
  • Apollo modules compability, that way you can make your app faster;
  • No need to pass context for express-graphql which increases the performance a lot

v0.4.2

06 Feb 09:11
Compare
Choose a tag to compare

Fix InjectFunction signature

v0.4.1

05 Feb 08:57
Compare
Choose a tag to compare
  • Move epoxy, sonar and utils to graphql-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

30 Jan 19:16
Compare
Choose a tag to compare
  • 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 and forChild 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 to utils
  • 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

21 Jan 06:56
Compare
Choose a tag to compare

core

@Injectable()
class SomeProvider {
 @Inject(SomeOtherProvider)
 someOtherProvider: SomeOtherProvider;
}
resolvers: InjectFunction(SomeProvider)(someProvider => ({
  foo: () => someProvider.foo()
}))