* return date object from date/datetime widgets if no format set
BREAKING CHANGE
As of 1.0, the documented behavior for the date and datetime widgets was
to always return a string value, but they were instead returning a date
object if the default date was not manually changed by the user. This
was addressed in #1143, but it became clear afterward that static site
generators were depending on the raw date objects that Netlify CMS was
unintentionally producing. Remaining as is or addressing the bug were
both "breaking" states, so this commit reverts to producing raw date
objects when no format is explicitly set.
It is now considered an edge case to require string dates, as most
static site generators expect to parse a raw date against formatting in
a site's templates.
Also note that this commit improves the original behavior by always
providing a date object when no format is provided, even if the user
manually changes the value.
* produce raw date when no format is provided
* Allow typing in date widget
* Handle empty case & warn user when invalid
* Try parsing date with moment
* Rename isValid -> isValidDate
* Warn user when date is invalid
* fix: allows for valid config types expansion
* feat: config url can now come through link tag
* fix: lints added coded
* fix: slims down code per review
* fix: expands query to find supported type
* fix: removes typo in test copy
* fix: changes validTypes to object
* fix: groups config functions into one getConfig func
* adds console message for config url
* adds to docs
* update docs
* fix test
* fix merge conflicts
contributor addition moved to #1241
* avoids empty path with link without href. changes link console message
* removes additional console
* fixes link path in console
* fix: remove superfluous .allcontributorsrc change
* Prevent Git Gateway users without permission from login.
* Handle Git Gateway token expiry explicitly.
This often happens when a user changes a repo from public to private, so
we want to make that specific case very clear.