DataFormsJS v4.0.0 Release Notes
Release Date: 2020-03-12 // about 4 years ago-
- 💥 Breaking Changes - Relatively minor but they are breaking so a new major release number is being used:
- Removed previously depreciated
PolyfillService
Component/Class. - Removed support for
I18n
without the use of afetch
polyfill for legacy browsers. - Both of these items are no longer needed due to creation of
jsxLoader.js
and for build toolscreate-react-app
, etc Polyfills can be bundled.
- Removed previously depreciated
jsxLoader.js
- General improvements for additional JSX Syntax- Fixed issue where links
https://
were being partially parsed as single-line comments inside of an element - Improved loop syntax elements needed to be enclosed in a
()
in certain situtations ```jsx
// Before {props.data && props.data.categories && props.data.categories.map(category => { return () })}
// After {props.data && props.data.categories && props.data.categories.map(category => { return })}
* Fixed issue where some characters such as '>' were being parsed within prop strings: ```jsx <InputFilter filter-selector="section.category ul > li" />
- Added
Array.prototype.find
to Polyfill Bundle for Legacy Browsers
- Fixed issue where links
➕ Added new JavaScript class
Cache
for simple state caching and re-use with React and Preact Apps.React
InputFilter
Component- Added a new
afterFilter
property to allow applications to define a custom events once data is filtered - Previously if using a label to show filter results from [filter-results-selector] both [filter-results-text-all] and [filter-results-text-filtered] were required; now only one property is required.
- Added a new
DataFormsJS Framework Object
DataFormsJS.js
- Added
app.settings.lazyLoadingViewSelector
to allow for loading screens between page views when usingapp.lazyLoad
. In most cases loading logic is used on actual page content however this helps with the user experince to indicate page change on slow mobile devices and scripts are being loaded. - Added
Array.prototype.find
to Polyfill Bundle for Legacy Browsers
- Added
- 💥 Breaking Changes - Relatively minor but they are breaking so a new major release number is being used: