Introduction of a set of date/time scalars that implement the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.
New
- Scalar
Time
representing a time string at UTC. - Scalar
DateTime
representing a date-time string at UTC.
Improvements
- Scalar
Date
can now be serialized from a date string. In earlier versions this scalar could only be serialized from a javascript Date instance.
Breaking
- The
Date
scalar is no longer the default export. Instead, it is now a named export calledGraphQLDate
. In order to update from versions 2.x and below do the following:
+ import { GraphQLDate } from 'graphql-iso-date'
- import GraphQLDate from 'graphql-iso-date'