Skip to content

Commit

Permalink
docs: updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ncpa0cpl committed Sep 5, 2023
1 parent 88220e5 commit 1a4fafa
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## 3.1.3 (September 5, 2023)

### BREAKING CHANGES

- #### fix: removed prop types exports ([#193](https://github.com/ncpa0/jsxte/pull/193))

Exports of all tags prop types were removed, instead those are available via the `JSXTE` global namespace.

### Bug Fixes

- #### fix: as attribute typing for link tag ([#193](https://github.com/ncpa0/jsxte/pull/193))

Added missing property from the `<link>` tag's prop type, the `as` attribute.

## 3.1.2 (August 27, 2023)

### Bug Fixes
Expand Down Expand Up @@ -28,19 +42,19 @@

- #### feat: optimized the code (for..let loops over for..of, faster string join algo, etc.) ([#184](https://github.com/ncpa0/jsxte/pull/184))

Added code optimizations:
1. Instead of `for..of` loops that rely on iterators used the good ol' `for..let i = 0;` loops which are much faster
2. Replaced all usages of `String.join()` with a much faster custom implementation
3. Reduced the amount of needless object instantiations, (there were some places where a new object or array was created for convenience reasons, but was not really necessary) - this should slightly reduce the required GC time for cases where a lot of JSX is being processed.
Added code optimizations:

1. Instead of `for..of` loops that rely on iterators used the good ol' `for..let i = 0;` loops which are much faster
2. Replaced all usages of `String.join()` with a much faster custom implementation
3. Reduced the amount of needless object instantiations, (there were some places where a new object or array was created for convenience reasons, but was not really necessary) - this should slightly reduce the required GC time for cases where a lot of JSX is being processed.
4. JSX Elements props and children are made immutable up-front via `Object.freeze`

- #### feat: improvements to the `renderToStringTemplateTag` ([#183](https://github.com/ncpa0/jsxte/pull/183))

Multiple improvements to the render function for string template tags:
- New `<Interpolate>` and `<InterpolateTag>` components. Contents of those will be interpolated into the string template as is for Interpolate, and as a rendered tag for InterpolateTag (see JSDoc comments on those for more details.
- Falsy values passed to the attributes will prevent those attributes from being added at all, while truthy values will cause those attributes to be added with their names as values.
Multiple improvements to the render function for string template tags:

- New `<Interpolate>` and `<InterpolateTag>` components. Contents of those will be interpolated into the string template as is for Interpolate, and as a rendered tag for InterpolateTag (see JSDoc comments on those for more details.
- Falsy values passed to the attributes will prevent those attributes from being added at all, while truthy values will cause those attributes to be added with their names as values.
- Caching mechanism to allow for the same input to provide the exact same TemplateStringArray reference to the tag on every call.

## 3.0.1 (August 19, 2023)
Expand Down

0 comments on commit 1a4fafa

Please sign in to comment.