- 🌟 Add the
Component Overview
built with TypeScript types.
- 🐛 Fix
<Template>
type error.
- 👆
vite-plugin-jsx-sfc
added atransformJsx
parameter to adapt to the@vitejs/plugin-react
.
- 🎨 Optimization TS type comments.
- 🌟 Add
render
function. And thetemplate
function remains, you can choose to use one of them. - 👆 Remove the
runtime mode
, this will reduce the size of the package. Theruntime mode
is the earliest usage ofjsx-sfc
. In fact, this mode has not been disclosed in the documentation, because it's performance and ecological adaptability will have many limitations.
- 👆
options
is deprecated, usestatic
instead.
- 🌟 Add
props
parameter in template function.
- 👆 The APIs of
babel-plugin-jsx-sfc
can be exported.
- 👆
originalProps
is deprecated, useprops
instead.
- 🌟 Add
createTemplate
API, support bothjsx-sfc
anduse-templates
.
- 🐛 Fix the error when
<Template>
is null.
- 🌟 Add
options
,ComponentDataType
API forjsx-sfc
. - 🌟 Add
use-templates
.
- 🌟 Add
jsx-sfc.macro
.
- 👆 Optimize production environment rendering performance.
- 🌟 Add
parserPlugins
option forvite-plugin-jsx-sfc
.
- 🌟 Add
originalProps
property forSFCProps
. - 🐛 Published the
index.d.ts
forbabel-plugin-jsx-sfc
.
- 👆 The parameter type of the export template function by the component is changed to optional.
- 👆 Support rendering null value of sub template.
- 🤟 The first stable version of
jsx-sfc
released.
- 🐛 Fix
ObjectMethod
case forbabel-plugin-jsx-sfc
.
- 💥 Change
sfc.createFuncResults
tosfc.createOptions
. - 🐛 Fix
sfc.forwardRef
export type in jsx environment. - 🌟 Auto add displayName on compiled code.
- 🐛 Fix type inference in jsx environment.
- 🐛 Add @babel/plugin-transform-react-jsx to
babel-plugin-jsx-sfc
dependencies.
- 🌟
vite-plugin-jsx-sfc
supported Vite v2.
- 🌟 Restrict the return value type of multiple templates.
- 🌟 Type optimization of internal implementation.
- 💥 Change
SfcComponent#Origin
toSfcComponent#Component
. - 💥 Change the second parameter of
sfc
to a function which can be return any extension members. - 🐛 Fix some type safe features in
strict mode
. - 🌟 Add
SfcComponent#Template
to render template as react components in jsx.
- 🌟 Add
SfcComponent#Origin
to get origin component.
- 🌟 Add
vite-plugin-jsx-sfc
, the compiled code can supportReact Fast Refresh
(Currently only support vite v1). - 🐛 Fix
utils#getFuncParams
in handling braces.
- 🌟 Optimize the
babel-plugin-jsx-sfc
compilation results.
- 🌟 Remove unnecessary name property of the main template on multiple templates.
- 🌟 Support no template and style function.
- 🌟 Support export template function from sfc components.
- 💥 Remove name property of the main template.
- 🌟 Add
babel-plugin-jsx-sfc
, the compiled code can supportReact Fast Refresh
. - 🌟 Remove
DefineComponent#options#templates
and usetemplate
instead.
- 💥 Reset the data argument position of template function.
- 🌟 Add
Template.Data
type.
- 🌟 Type safety enhancement for
DefineComponent
type by overriding.
- 🌟 The first version of
jsx-sfc
have been completed.