All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Make
slate-hyperscript
CLI accept JSON and JS files in addition to YAML files.
- User standalone version of prettier@1.13.0 to use hyperprint in browser environment
- Fix representation of data on
document
- Fix issues with data keys that are not a valid JSX attributes
- Escape newlines for texts that contain no other special characters too
- Escape newlines for text in tags
- Robust string escaping and value printing
- Support slate 0.33.x (renamed
kind
toobject
)
- Add
strict
option to preserve empty texts and other things that the formatting would otherwise omit
- Use older version of prettier, that still works in the browser
- Sort tag attributes, for deterministic output
- Add
hyperprint.log
util
- Add option 'preserveKeys'
- Increase CLI retro-compatibility
- Add CLI tool
- Replace
indent
option with aprettier
config option. Prettier is now used to format output. - Improve rendering of void nodes
- Fix rendering of nodes containing whitespaces only
- Added support for empty nodes to be rendered as
<something />
- Initial release