Martijn Walraven
a6bda6ef00
0.18.0
v0.18.0
2017-11-28 21:30:41 +01:00
Lewis Chung
8990bae6b9
Add typescript-modern target ( #304 )
2017-11-28 17:22:12 +01:00
lewisf
5fa4525869
Revert "Add typeName for nested property objects ( #294 )"
...
This reverts commit 3161d224d7 .
2017-11-25 23:06:42 -08:00
Sirui Li
3161d224d7
Add typeName for nested property objects ( #294 )
...
* Add typeName for nested property objects
* Add test for Flow
* Add typeName for nested property objects for TypeScript
2017-11-25 14:52:27 -08:00
Justin Steffen
bb604db153
swift: Fix operation-ids-path option ( #299 )
...
Fixes #280 .
2017-11-13 18:22:10 +01:00
Lewis Chung
f3e6fa49f9
Initial work on a new Flow target ( #296 )
2017-11-13 08:38:19 +01:00
Mark Huot
2e551a0a1c
swift: Escape struct names ( #291 )
2017-11-07 15:56:21 +01:00
Sirui Li
270b7bf4cb
flow: Correct typename values for fragments on non-abstract types ( #292 )
2017-11-07 10:50:50 +01:00
Martijn Walraven
7779d208cc
0.17.2
v0.17.2
2017-11-05 13:19:39 +01:00
Justin Steffen
91a41ff191
swift: Add support for unknown enum values ( #290 )
2017-11-05 13:18:04 +01:00
Martijn Walraven
935d797ae8
Fix failing Flow snapshot tests due to #283
2017-10-30 23:07:23 +01:00
Scott Taylor
37f8af1bbc
disable ESLint ( #283 )
2017-10-30 22:55:50 +01:00
Martijn Walraven
882bbff922
0.17.1
v0.17.1
2017-10-29 02:43:24 +02:00
Martijn Walraven
51bf4bf153
swift: Escape property identifiers where needed
2017-10-29 02:43:13 +02:00
Florian Nagel
e55d049efd
Fix markdown code-block typo ( #277 )
2017-10-22 20:25:24 -07:00
Simon Lydell
fdecc2707c
Fix __typename for List types in Flow ( #276 )
...
* Add test case with bad snapshot for __typename in Flow
* Fix __typename for List types in Flow
By copying the `getObjectTypeName` function from the TypeScript
implementation.
2017-10-21 08:20:49 -07:00
Martijn Walraven
d33ffc0b5b
Add fields getter to Variant
2017-10-20 10:03:38 -07:00
Martijn Walraven
a3287786ff
0.17.0
v0.17.0
2017-10-14 09:57:06 +02:00
Martijn Walraven
a797ab3270
Fix snapshot tests for #245
2017-10-14 09:37:31 +02:00
Ruslan Arkhipau
a582130d86
Do not enable tslint in auto-generated schema file ( #245 )
...
Fixes #244
2017-10-14 09:36:15 +02:00
Piotr Małecki-Jurek
4cd6ae9e73
Correct typename values for fragments on non-abstract types ( #251 )
2017-10-14 09:34:15 +02:00
Martijn Walraven
f268e70215
0.17.0-alpha.14
v0.17.0-alpha.14
2017-10-13 20:49:51 +02:00
Kim Burge Strand
164f83ab83
[Swift] Don't use extension for enum JSONDecodable/Encodable conformance. ( #243 )
...
It breaks when wrapping the generated output in a namespace, since Swift
does not allow declaring extensions in a nested scope. Before this patch,
generated output (with namespace) would look like this:
`generate --namespace WhateverNamespace …`
```swift
public enum WhateverNamespace {
/// enum for notification category
public enum CaseCategory: String {
case caseOne = "case_one"
case caseTwo = "case_two"
}
extension CaseCategory: Apollo.JSONDecodable, Apollo.JSONEncodable {}
// ^ Compiler error: Declaration is only valid at file scope
}
```
2017-10-11 04:01:49 +02:00
Jonas Kello
cdecc9c76d
Improve docs by describing the purpose of the commands ( #265 )
2017-10-11 04:00:34 +02:00
Simon Lydell
824dd8cfb2
Add support for .graphqlconfig ( #238 )
2017-10-11 04:00:00 +02:00
Martijn Walraven
7ba00d932e
0.17.0-alpha.13
v0.17.0-alpha.13
2017-10-05 19:18:34 +02:00
Martijn Walraven
82eacd5437
Fix generated Swift code for optional composite property
2017-10-05 19:18:16 +02:00
Martijn Walraven
ee59374c8a
0.17.0-alpha.12
v0.17.0-alpha.12
2017-10-04 16:07:06 +02:00
Martijn Walraven
b7c1e419bc
Fix outputting single file for Swift target
2017-10-04 16:06:52 +02:00
Martijn Walraven
337b6b76d3
0.17.0-alpha.11
v0.17.0-alpha.11
2017-09-30 15:02:34 +02:00
Martijn Walraven
a5c16123e9
Add experimental support for outputting multiple files
2017-09-30 15:02:07 +02:00
Martijn Walraven
3b4d690a0a
0.17.0-alpha.10
v0.17.0-alpha.10
2017-09-29 14:35:37 +02:00
Martijn Walraven
6a8e15b304
Properly serialize input object fields to JSON
...
Partly fixes #256 , but the default value of input object fields for
custom scalars always seems to be false in graphql-js.
2017-09-29 14:35:20 +02:00
Martijn Walraven
ed8f362cdd
0.17.0-alpha.9
v0.17.0-alpha.9
2017-09-29 12:46:51 +02:00
Martijn Walraven
85757012f5
Don't generate initializers with composite fields when not merging in fragments spreads
2017-09-29 12:45:25 +02:00
Martijn Walraven
4a9b9f0795
Fix Swift output for fragment spreads in variants
2017-09-29 11:51:53 +02:00
Martijn Walraven
7baaea4d45
Fix fragment spreads nested within inline fragments
...
Fixes apollographql/apollo-ios#155 .
2017-09-28 15:33:38 +02:00
Martijn Walraven
4146c2c854
0.17.0-alpha.8
v0.17.0-alpha.8
2017-09-27 06:26:37 +02:00
Jason Berry
a87e11dac9
Use TypeScript string enums ( #247 )
...
Resolves #193
2017-09-26 14:12:54 -07:00
Lewis Chung
6241198585
Update Jest Typescript support to use ts-jest ( #252 )
...
- Bump Jest to v21
- Gives us sourcemap support
2017-09-25 08:46:48 -07:00
Martijn Walraven
19d7662eeb
0.17.0-alpha.7
v0.17.0-alpha.7
2017-09-25 15:15:42 +02:00
Martijn Walraven
eab38f0c23
Don't use string concatenation for multiline strings in Swift
...
Fixes apollographql/apollo-ios#152 .
2017-09-25 15:15:27 +02:00
Martijn Walraven
a6df08104e
0.17.0-alpha.6
v0.17.0-alpha.6
2017-09-22 15:24:44 +02:00
Martijn Walraven
fac8e5324e
Avoid duplicate fragment spreads when computing type case
2017-09-22 14:39:36 +02:00
Martijn Walraven
c461827532
0.17.0-alpha.5
v0.17.0-alpha.5
2017-09-17 16:46:10 +02:00
Martijn Walraven
99a34d5288
Avoid repeating boolean conditions for each individual selection
2017-09-17 16:45:38 +02:00
Martijn Walraven
4a6512d309
Only propagate conditionals to subselections if the parent field is also included unconditionally
2017-09-17 12:06:03 +02:00
Martijn Walraven
4fdb8eea98
0.17.0-alpha.4
v0.17.0-alpha.4
2017-09-15 15:54:15 +02:00
Martijn Walraven
a587b49c11
Merge snapshots when setting fragments
...
Fixes #240 .
2017-09-15 15:53:48 +02:00
Martijn Walraven
fc3da45747
Fix initializer expression for non-null composite fields and add tests
2017-09-15 12:01:03 +02:00