vinyl
vinyl copied to clipboard
Use ES2015 Proxies
I wanted to open this issue as a place to track things we could use Proxies to implement.
- Currently, unsetting
baseto fallback tocwdrequires setting base tonullorundefined. With Proxies, I believe we could watch fordelete file.baseand unset it. - We could probably do some cool
statstuff with Proxies. Not sure what though.
More information about Proxies at https://github.com/mikaelbr/proxy-fun
In the docs, we currently tell people to treat history and it's properties as read-only. I think we could enforce this with proxies.
Yeah, that would be a great use for a proxy here.