Releases: felipeochoa/rjsx-mode
v0.5.0
v0.4.0
Support for React Fragments (#58)
<><C1/><C2/></> now parses as a fragment. You can't yet use the electric C-d or > (see below) shortcut to expand </> into <></>. Thanks to @mostafah for pointing out this new syntax
Electric > (#51)
Some users (especially evil users I think) found the C-d rebinding not very useful. Now hitting > right before a self-closing slash will expand the tag the same as C-d. Thanks to @allforabit for the suggestion
New face for <, / and > (#61)
You can now specify a style for the JSX brackets using rjsx-tag-bracket-face. The default face does not add any styles, but this allows greater consistency between rjsx and web-mode. Thanks to @Fuco1 for the suggestion.
Various bugfixes
Automatic reparsing
Some of the magic commands in rjsx requires a parse tree to work and will silently fall back to non-magic if there's no parse yet (#48). This release adds more frequent parsing for buffers below a certain size. This limit is configurable via rjsx-max-size-for-frequent-reparse (default 100K characters); set it 0 to keep the old behavior.
JSX text improvements
The new release adds two improvements to rjsx's handling of JSX text sequences:
- A text-specific syntax table is used, so contractions won't mess up bracket matching
- JSX text is now fontified as a string (which is what it desugars into)
I suspect the latter change may not be welcome by everyone (hence the minor bump), but it can be easily fixed by customizing the rjsx-text face. E.g., you can remove the :inherit property to revert to the old look.
Update for Emacs 26
Fixes issue #39 related to new struct format on Emacs 26. (Remains backwards compatible)
Fix brownbag 0.1.3
js2 hasn't published an emacs 26-compatible version yet, so 0.1.3 failed to install there. This version downgrades to 0.1.2 until js2 has caught up
0.1.2
Added a rename tag function (rjsx-rename-tag-at-point), bound by default to C-c C-r
0.1.1
Fixes a C-d bug when in transient mark mode. Thanks @ahktenzero
Initial release
First release