Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

v1.4.0

Compare
Choose a tag to compare
@haltcase haltcase released this 20 May 05:22
· 61 commits to master since this release

All new features have been added to the online playground!

This release improves spread placeholders by supporting them in member expressions
and fixes an issue that occurs when passing an object placeholder as an argument
to an object placeholder call ( along with further nesting into binary expressions ).

In prior releases, this was the situation:

// worked fine
blah.foo(..._)

// 'Placeholder spread is unsupported outside call expressions.'
_.foo(..._)

... but this will now compile just fine to:

(_obj, ..._spr) => {
  return _obj.foo(..._spr)
}

The other fixes are for these situations:

_.foo(_.bar)
_.foo(_.baz())
_.foo(_.name === 'Dude')

... which would all fail with a container is falsy error. Now they work as expected.

Features

  • support spread placeholders in member calls like _.foo(..._) (b766359)

Bug fixes

  • object placeholders and some previously busted binary expressions now work correctly as arguments to object placeholder member calls ( _.foo(_.bar) ) (4aaadb5)