All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Revert
@chalk
upgrade due to module import differences with previous version
- Updated many dependencies of this library. See the package.json diff for details.
@faker-js/faker
is now a peer dependency and is required to be installed by consuming projects if that functionality is used.
- fix: support variables nested in query when making private queries
- feat: support nested faker configurations (for scalars, etc)
- fix: support multiple nodes in private queries
- fix: support unions when building private queries
- feat: allow explicit passing of cors options
- fix: handle null arguments
- fix: resolve matching arguments correctly + support nested arguments
- feat: add support for serving a GraphQL IDE from the mock servers
/graphql
route. Three options are available:- DEFAULT
GraphQLIDE.ApolloSandbox
: Serve's the Apollo Sandbox experience. GraphQLIDE.GraphiQL
: Serve's the latest version of GraphiQLGraphQLIDE.None
: Disables the GraphQL IDE experience
- DEFAULT
- fix: don't require sequenceId when executing a query
- breaking: remove
/graphql/register-schema
. Use new/schema/register
endpoint instead.
- feat: add new
/schema/register
endpoint - feat: add support for operation names in
/graphql
path
- GQMock docker support to eliminate Node.js dependency
- Fix networkError seed behavior
- Documentation about the mock server endpoints for use cases without access to the Node.js API that comes with this module
- Documentation about using GQMock as a pure GraphQL HTTP server for local development
- Fix static mocks for shorthand notation arrays
- Added CORS to enable local development work
- Fix mock caching resulting in constant values for fields
- Fix overmocking of arrays seeded with longhand notation
- Improve mocking of unseeded array items
- Fix named fragments handling
- Add faker.js support
- Add support for aliases and fragment spread field selection
- Simplify handling of GraphQL interfaces and unions
- Handle GraphQL interfaces and unions
- Handle falsy values correctly in merge logic
- Use deep compare for matching operation arguments
- Added seed matching logs
- generate .d.ts file during build
- Add support for subgraph schemas.
- Add the option to create multiple contexts with the same
sequenceId
- Add initial library API
GraphqlMockingService
GraphqlMockingContext
- Add a README
- Add project configuration