Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

Add support to render non array iterables & stringify error objects #72

Merged
merged 1 commit into from
Oct 10, 2020

Conversation

JimmayVV
Copy link
Contributor

Addresses #71 and #69

This pull request adds support to render ES6 Iterables (specifically targeting Maps and Sets), as well as allows JSON.stringify to display Error objects.

Hat tip to https://stackoverflow.com/questions/18391212/is-it-not-possible-to-stringify-an-error-using-json-stringify for the stringify logic for Error objects

Hat tip to https://stackoverflow.com/questions/18884249/checking-whether-something-is-iterable for the logic to detect if an object is iterable

and errors

Adds support to render iterables such as Map and Set
as well as JSON.stringify's Error objects

Breaking Changes: None
@tannerlinsley tannerlinsley merged commit cb1b217 into tannerlinsley:master Oct 10, 2020
@tannerlinsley
Copy link
Owner

Wonderful!

@tannerlinsley
Copy link
Owner

🎉 This PR is included in version 2.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants