v0.0.1-alpha.4
Pre-release
Pre-release
🚀 Features
- Add directive test case add spread test case - by zdw (8f18b)
- Add directive feature - by @zhoudewei2526 (49a6b)
- Add withDirectives in .jest - by @Amour1688 (547d8)
- Compatible with Vue 2.x - by @Amour1688 (dcada)
- Jsx-explorer - by @Amour1688 in https://github.com/showlotus/babel-plugin-jsx/issues/11 (4dda1)
- Configurable usePatchFlag - by @Amour1688 (9b005)
- VSlots - by @Amour1688 (17a0e)
- Optional usePatchFlag - by @Amour1688 (76f3f)
- Remove
compatibleProps
- by @Amour1688 (5c217) - Merge static and dynamic class / style attributes into array - by @Amour1688 (94b4f)
- Optional mergePros - by @Amour1688 (e1669)
- Support v-models - by @John60676 in https://github.com/showlotus/babel-plugin-jsx/issues/140 (604d5)
- Use
addNamed
import - by @Amour1688 in https://github.com/showlotus/babel-plugin-jsx/issues/196 (9ea52) - Should support passing object slots via JSX children - by @Amour1688 in https://github.com/showlotus/babel-plugin-jsx/issues/204 (5b632)
- Support optional
enableObjectSlots
- by @Amour1688, @dependabot-preview[bot] and 逆寒 in https://github.com/showlotus/babel-plugin-jsx/issues/259 (9238f) - Export interface VueJSXPluginOptions - by @Amour1688 (689ce)
- Should merge generated imports - by @Amour1688 in https://github.com/showlotus/babel-plugin-jsx/issues/274 (16986)
- Add pragma option and support @jsx annotation - by @Jokcy in https://github.com/showlotus/babel-plugin-jsx/issues/322 (ec50f)
- V-model targe value support variable - by @Amour1688 in https://github.com/showlotus/babel-plugin-jsx/issues/331 (98b4f)
- Jsx-explorer support options - by @Amour1688 (17c28)
- V-model targe value should support variable - by @Amour1688 (e9b83)
- Add umd bundle - by @zouhangwithsweet in https://github.com/showlotus/babel-plugin-jsx/issues/457 (b0cdd)
- Add umd bundle " - by @Amour1688 in https://github.com/showlotus/babel-plugin-jsx/issues/457 and https://github.com/showlotus/babel-plugin-jsx/issues/458 (47fc8)
- Allow string arguments on directives - by @KaelWD in https://github.com/showlotus/babel-plugin-jsx/issues/496 (1ab84)
- 添加内置组件
Dialog
、Fragment
、Template
- by @showlotus (317fc) - Add
injectKey
- by @showlotus (4646a) - jsx-explorer: Support dev debugging - by @sxzz (a92ff)
🐞 Bug Fixes
- Only pass string when children is string - by @Amour1688 (4180c)
- IsFragment get wrong result - by @Amour1688 (8a6c8)
- Skip normalizeObjectSlots in runtime-core - by @Amour1688 (74744)
- Fragment - by @Amour1688 (a4d73)
- CheckIsComponent got wrong result - by @Amour1688 (5c59e)
- Component doesn't render when variables outside slot - by @Amour1688 (94546)
- WalksScope throw error when path.parentPath is null - by @martinoooo in https://github.com/showlotus/babel-plugin-jsx/issues/25 (d4955)
- Warning Fragment with condition fails with undefined vnode - by @Amour1688 in https://github.com/showlotus/babel-plugin-jsx/issues/28 (9179e)
- Directive with single param did not work - by @Amour1688 (9f133)
- Force update on forwarded slots - by @Amour1688 in https://github.com/showlotus/babel-plugin-jsx/issues/33 (b3ea5)
- InnerHTML should be string - by @Amour1688 (f96f8)
- MergeProps order error - by @Amour1688 (bf598)
- Eslint errors - by @Amour1688 (371f6)
- Ts error - by @Amour1688 (e9aa2)
<A {...{ a: 1 }} />
throw error when override props - by @Amour1688 (f50b9)model
can be v-model argument - by @John60676 in https://github.com/showlotus/babel-plugin-jsx/issues/153 (cc1d9)- Declared emitted event in the emits option - by @Amour1688 (1ba60)
- Jsx slot render unexpected vuejs#215 - by @zkwolf in https://github.com/showlotus/babel-plugin-jsx/issues/218 and https://github.com/showlotus/babel-plugin-jsx/issues/215 (b0fb8)
- Typo [ci skip] - by @Amour1688 (03586)
- Child nodes of KeepAlive should not be transformed to slots - by @Amour1688 (f1c96)
- Typo [ci skip] - by @Amour1688 (57f67)
- Jsx-explorer default text value error - by @Amour1688 (4c858)
- Dynamic slot flag not working - by @Amour1688 (3a83e)
- Using v-slots without children should not be spread - by @Amour1688 (14ada)
- Wrong compilation result of withDirectives - by @Amour1688 in https://github.com/showlotus/babel-plugin-jsx/issues/404 (22419)
- Should check
isCustomElement
- by @fxy060608 in https://github.com/showlotus/babel-plugin-jsx/issues/431 (117b2) - Throw
state.get(...)
when using object slots - by @Amour1688 in https://github.com/showlotus/babel-plugin-jsx/issues/494 (55035) - Wrong compilation result when _Fragment is imported - by @beicause and Amour1688 in https://github.com/showlotus/babel-plugin-jsx/issues/518 (35780)
- Add
@babel/core
as peerDependencies - by @sodatea (d13cd) - Support es2015 - by @sxzz (450d7)
- Don't transform empty string to boolean - by @sxzz (a030d)
- Disable incremental - by @sxzz (47746)
- babel-helper-vue-transform-on: Dts type - by @sxzz (1dd05)
- jsx: Multiline property value - by @sxzz (8ed49)
- plugin-jsx: Make babel optional - by @sxzz (b7190)
🏎 Performance
- Replace h with createVNode for PatchFlags - by @Amour1688 and @sodatea in https://github.com/showlotus/babel-plugin-jsx/issues/6 (4c34c)