1.3.0 New Minor release with support for scoped slots
Things we added
Scoped Slots!
This means you can now do this:
<portal to="target">
<p slot-scope="props">
{{props.message}}
</p>
</portal>
<portal-target name="message" v-bind:slot-props="{message: 'Hi!'}">
Things we deprecated
- the portal's
targetEl
prop is now officially deprecated and will be removed in 2.0, since it added a lot of internal complexity that can be solved more elegantly in userland.
Internals
- Switched the Wormhole from a naked ES6 class to a Vue instance. This saves us some boilerplate from babel-transform-runtime. (#73)
- Added integration tests (#43)
Things to come
We will try and push 2.0 quite quickly. Removing targetEl (#74) will be the only breaking change.