Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

Disallow source document to be object #159

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kylef
Copy link
Member

@kylef kylef commented Feb 8, 2018

Currently the parser allows you to feed in JavaScript objects instead of a JSON or YAML document. I feel like allowing the source document to be a JavaScript object was a developer convince, but it is an anti-pattern as there will be no source maps for these types of source documents.

This will prevent any accidental parsing of an object to the parser causing missing source maps.

BREAKING CHANGE

@kylef kylef added the BREAKING label Feb 8, 2018
I feel like allowing the source document to be a JavaScript object was a
developer convince, but it is an anti-pattern as there will be no source
maps for these types of source documents.

This will prevent any accidental parsing of an object to the parser
causing missing source maps.

BREAKING CHANGE
@kylef kylef removed the BREAKING label May 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants