Skip to content

Releases: apollographql/apollo-link-rest

v0.4.4

26 Jul 22:35
4078e15
Compare
Choose a tag to compare

New in v0.4.4

  • Expose an internal helper class (PathBuilder) for experimentation

v0.4.x

  • Fix: Bad regexp causes path-replacements with multiple replacement slots to fail #135
  • Fix: Correctly slicing nested key-paths #134
  • Fix: Improve Types for ServerError #133

Breaking changes around path-variable replacement and pathBuilder (previously undocumented, #132).

  • Breaking Change: paths now have a new style for variable replacement. (Old style is marked as deprecated, but will still work until v0.5.0). The migration should be easy in most cases /path/:foo => /path/{args.foo}
  • Breaking Change: pathBuilder signature changes to give them access to context & other data #131 and support optional Values #130
  • Breaking Change: bodyBuilder signature changes to give them access to context & other data (for consistency with pathBuilder)
  • Fix/Feature: Queries that fetch Scalar values or Arrays of scalar values should now work! #129

Tickets from this milestone: https://github.com/apollographql/apollo-link-rest/milestone/4

v0.4.3

26 Jul 18:24
d193829
Compare
Choose a tag to compare

New in v0.4.3

  • Expose an internal helper class (PathBuilder) for experimentation

v0.4.x

  • Fix: Bad regexp causes path-replacements with multiple replacement slots to fail #135
  • Fix: Correctly slicing nested key-paths #134
  • Fix: Improve Types for ServerError #133

Breaking changes around path-variable replacement and pathBuilder (previously undocumented, #132).

  • Breaking Change: paths now have a new style for variable replacement. (Old style is marked as deprecated, but will still work until v0.5.0). The migration should be easy in most cases /path/:foo => /path/{args.foo}
  • Breaking Change: pathBuilder signature changes to give them access to context & other data #131 and support optional Values #130
  • Breaking Change: bodyBuilder signature changes to give them access to context & other data (for consistency with pathBuilder)
  • Fix/Feature: Queries that fetch Scalar values or Arrays of scalar values should now work! #129

Tickets from this milestone: https://github.com/apollographql/apollo-link-rest/milestone/4

v0.4.2

26 Jul 12:35
6f83e5b
Compare
Choose a tag to compare

New in v0.4.2

  • Fix: Bad regexp causes path-replacements with multiple replacement slots to fail #135

v0.4.x

  • Fix: Correctly slicing nested key-paths #134
  • Fix: Improve Types for ServerError #133

Breaking changes around path-variable replacement and pathBuilder (previously undocumented, #132).

  • Breaking Change: paths now have a new style for variable replacement. (Old style is marked as deprecated, but will still work until v0.5.0). The migration should be easy in most cases /path/:foo => /path/{args.foo}
  • Breaking Change: pathBuilder signature changes to give them access to context & other data #131 and support optional Values #130
  • Breaking Change: bodyBuilder signature changes to give them access to context & other data (for consistency with pathBuilder)
  • Fix/Feature: Queries that fetch Scalar values or Arrays of scalar values should now work! #129

Tickets from this milestone: https://github.com/apollographql/apollo-link-rest/milestone/4

v0.4.1

18 Jul 18:17
fe49c8d
Compare
Choose a tag to compare

New in v0.4.1

  • Fix: Correctly slicing nested key-paths #134
  • Fix: Improve Types for ServerError #133

v0.4.0

Breaking changes around path-variable replacement and pathBuilder (previously undocumented, #132).

  • Breaking Change: paths now have a new style for variable replacement. (Old style is marked as deprecated, but will still work until v0.5.0). The migration should be easy in most cases /path/:foo => /path/{args.foo}
  • Breaking Change: pathBuilder signature changes to give them access to context & other data #131 and support optional Values #130
  • Breaking Change: bodyBuilder signature changes to give them access to context & other data (for consistency with pathBuilder)
  • Fix/Feature: Queries that fetch Scalar values or Arrays of scalar values should now work! #129

Tickets from this milestone: https://github.com/apollographql/apollo-link-rest/milestone/4

v0.4.0

16 Jul 10:12
4a2000c
Compare
Choose a tag to compare

Breaking changes around path-variable replacement and pathBuilder (previously undocumented, #132).

  • Breaking Change: paths now have a new style for variable replacement. (Old style is marked as deprecated, but will still work until v0.5.0). The migration should be easy in most cases /path/:foo => /path/{args.foo}
  • Breaking Change: pathBuilder signature changes to give them access to context & other data #131 and support optional Values #130
  • Breaking Change: bodyBuilder signature changes to give them access to context & other data (for consistency with pathBuilder)
  • Fix/Feature: Queries that fetch Scalar values or Arrays of scalar values should now work! #129

Tickets from this milestone: https://github.com/apollographql/apollo-link-rest/milestone/4

v0.3.1

14 Jun 17:39
7afda62
Compare
Choose a tag to compare

New

  • Fix: Fetch Response bodies can only be "read" once after which they throw "Already Read" -- this prevented us from properly speculatively parsing the error bodies outside of a test environment. #122
  • Fix: Some browsers explode when you send null to them! #121

v0.3.x

  • Feature: Expose Headers from REST responses to the apollo-link chain via context. #106
  • Feature: Expose HTTP-error REST responses as JSON if available! #94
  • Feature: Add @type(name: ) as an alternative, lighter-weight system for tagging Nested objects with __typenames! #72
  • Feature: Support "No-Content" responses! #107 #111
  • Feature: Support serializing the body of REST calls with formats other than JSON #103
  • Fix: Bundle-size / Tree Shaking issues #99
  • Fix: Dependency tweaks to prevent multiple versions of deps #105
  • Fix: GraphQL Nested Aliases - #113 #7

v0.3.0

25 May 21:47
4820d07
Compare
Choose a tag to compare

New

  • Feature: Expose Headers from REST responses to the apollo-link chain via context. #106
  • Feature: Expose HTTP-error REST responses as JSON if available! #94
  • Feature: Add @type(name: ) as an alternative, lighter-weight system for tagging Nested objects with __typenames! #72
  • Feature: Support "No-Content" responses! #107 #111
  • Feature: Support serializing the body of REST calls with formats other than JSON #103
  • Fix: Bundle-size / Tree Shaking issues #99
  • Fix: Dependency tweaks to prevent multiple versions of deps #105
  • Fix: GraphQL Nested Aliases - #113 #7

v0.2.4

02 Apr 19:06
ec65ab6
Compare
Choose a tag to compare

New

  • Enable JSDoc comments for TypeScript!
  • Add in-repo copy of docs so PRs can make changes to docs in sync with implementation changes.
  • Fixed a bug with recursive type-patching around arrays.
  • Fixed a bug in default URI assignment! #91

v0.2.x Improvements

  • Fix: react-native: Android boolean responses being iterated by fieldNameNormalizer throws an error #89
  • Fix: Queries with Arrays & omitted fields would treat those fields as required (and fail) #85
  • Fix: Query throws an error when path-parameter is falsy #82
  • Fix: Concurrency bug when multiple requests are in flight and both use @export(as:) #81
  • Fix: fieldNameNormalizer/fieldNameDenormalizer should now be working! #80
  • Improvement: Jest should now report code-coverage correctly for Unit Tests on PRs!
  • Feature: Support Handling Non-success HTTP Status Codes
  • Feature: Dynamic Paths & Query building using pathBuilder
  • Improvement: Sourcemaps should now be more TypeScript aware (via rollup changes) see #76 for more up-to-date info.

v0.2.3

08 Mar 01:05
c9d81ae
Compare
Choose a tag to compare

New

  • Fix: react-native: Android boolean responses being iterated by fieldNameNormalizer throws an error #89

v0.2.x Improvements

  • Fix: Queries with Arrays & omitted fields would treat those fields as required (and fail) #85
  • Fix: Query throws an error when path-parameter is falsy #82
  • Fix: Concurrency bug when multiple requests are in flight and both use @export(as:) #81
  • Fix: fieldNameNormalizer/fieldNameDenormalizer should now be working! #80
  • Improvement: Jest should now report code-coverage correctly for Unit Tests on PRs!
  • Feature: Support Handling Non-success HTTP Status Codes
  • Feature: Dynamic Paths & Query building using pathBuilder
  • Improvement: Sourcemaps should now be more TypeScript aware (via rollup changes) see #76 for more up-to-date info.

v0.2.2

27 Feb 19:59
320235d
Compare
Choose a tag to compare

New

  • Fix: Queries with Arrays & omitted fields would treat those fields as required (and fail) #85

v0.2.x - Other Changes

  • Fix: Query throws an error when path-parameter is falsy #82
  • Fix: Concurrency bug when multiple requests are in flight and both use @export(as:) #81
  • Fix: fieldNameNormalizer/fieldNameDenormalizer should now be working! #80
  • Improvement: Jest should now report code-coverage correctly for Unit Tests on PRs!
  • Feature: Support Handling Non-success HTTP Status Codes
  • Feature: Dynamic Paths & Query building using pathBuilder
  • Improvement: Sourcemaps should now be more TypeScript aware (via rollup changes) see #76 for more up-to-date info.