Unreleased - TBD
0.11.1 - 2024-08-06
- The
allow_null
option that controls if optional arguments may benull
.True
by default.
0.11.0 - 2023-11-29
- Support for Python 3.12.
- Include tests in the source tarball. #82
- A way to control what characters are used for string generation via the
allow_x00
andcodec
arguments toqueries
,mutations
andfrom_schema
.
- Bump the minimum supported Hypothesis version to
6.84.3
.
- Python 3.7 support.
0.10.0 - 2023-04-12
- Build: Switch the build backend to Hatch.
- Python 3.6 support.
- Dependency on
attrs
.
0.9.2 - 2022-11-07
- Support for Python 3.11.
0.9.1 - 2022-09-02
- Use
poetry-core
for building the package.
0.9.0 - 2022-04-29
- The
from_schema
function which takes a GraphQL schema and returns a Hypothesis strategy for defined queries and mutations.
- Use Hypothesis'
InvalidArgument
exception when an invalid input is passed to the generator functions.
hypothesis_graphql.schemas
as it is not complete and not tested well.
0.8.2 - 2022-04-29
- Internal error on some invalid schemas.
0.8.1 - 2022-04-27
- Expose
validate_scalar_strategy
in the public API.
0.8.0 - 2022-04-27
- Support for using default values of arguments and input fields. #71
- Duplicated inline fragments that may miss aliases. #69
- Queries missing required fields in their inputs when these fields are custom scalars.
0.7.1 - 2022-04-27
hypothesis_graphql.nodes
module to simplify working with custom scalars.
0.7.0 - 2022-04-26
- Support for custom query printers. #21
- Support for custom scalars. #22
- Do not generate fields inside inputs if they have custom scalar types. #38
- Generate
null
for nullable custom scalars in the argument position. #35
- Additional strategy cache.
0.6.1 - 2022-04-26
- Improve performance on recent Hypothesis versions.
0.6.0 - 2022-04-25
- Python 3.10 support.
- Mutations support. #51
- Support PEP-561. #26
Invalid queries:
- Fields with the same name, but different types. #49
- Fields with the same name, and the same arguments that have different enum values. #57
- Avoid using
st.builds
in internal strategies. It gives ~65% data generation time reduction in schemas from the test suite. #14
- Rename
strategies.query
tostrategies.queries
andstrategies.schema
tostrategies.schemas
, so they conform with the recommended naming of Hypothesis strategies. Old names are preserved for backward-compatibility. - Cache parsed GraphQL schemas.
0.5.1 - 2021-08-05
- Relax dependency on
attrs
.
0.5.0 - 2021-04-30
- Support union types. #42
- Support interfaces. #44
- Generate only 32-bit signed integers for the
Int
type. #40 - Always generate required fields in argument types. #46
0.4.2 - 2021-04-21
- Generating invalid queries for nullable enum types as arguments. #32
0.4.1 - 2021-04-15
- Do not generate Unicode surrogates for
String
types. #30
0.4.0 - 2021-03-27
- Restricting fields in the
query
output via thefields
argument.
0.3.3 - 2021-01-15
- Support for Python 3.9
- Relax requirement on
Hypothesis
.
0.3.2 - 2020-09-27
- Nullable custom scalar types are handled gracefully in argument positions.
Non-nullable types raise a
TypeError
in such cases. - Shrink
Enum
types to their first value instead of the first value in their sorted list.
0.3.1 - 2020-06-04
- Support for creating
query
strategies fromGraphQLSchema
instances
0.3.0 - 2020-04-12
- Query arguments generation
- Selecting fields in queries
- Initial public release