Skip to content

v3.0.0

Choose a tag to compare

@excitement-engineer excitement-engineer released this 05 Feb 15:45
· 65 commits to master since this release

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 called GraphQLDate. 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'