v2.0.0
PLAYGROUND
The online playground received a pretty major upgrade:
- contains all new features of
param.macro
- supports all current features of Babel (pipeline operator, optional catch binding, etc — see here for more)
- it's now smaller & more efficient since minification's been restored
FEATURES
- include tail paths, support spread, default params (
8a47350
)
BREAKING CHANGES
spread placeholders
Input:
import { _ } from 'param.macro'
const log = console.log(..._)
Output (before):
const log = (_arg) => {
return console.log(..._arg);
};
Output (after):
const log = (..._arg) => {
return console.log(..._arg);
};
tail paths
Input:
import { _ } from 'param.macro'
const fn = String(_).toUpperCase() === 'HELLO'
Output (before):
const fn = (_arg => {
return String(_arg)
}).toUpperCase() === 'HELLO'
Output (after):
const fn = _arg => {
return String(_arg).toUpperCase() === 'HELLO'
}