- #55 -
link
/style
tags no longer migrated todocument.head
Breaking Changes
- Versions of React prior to
16.8.0
(aka, when hooks were introduced) are no longer supported - Specific ES2015 features are now expected
String.prototype.trimEnd()
Object.assign()
Style
no longer has the staticsetGlobalOptions
method applied (use the dedicated import)isCompressed
has been deprecated, as it is no longer supported bystylis
Enhancements
- Rewritten in TypeScript with exposed types, as requested in #49
- Updated to support React 18, as requested in #53
- Updated
stylis
to latest version, which has significantly better performance
- #34 -
process
is not defined for some build environments
- #38 - Another another fix for deprecated lifecycle methods, this time due to a lack of React 17 support
- #30 - Another fix for deprecated lifecycle methods (moving to normal prefixed version instead of
getSnapshotBeforeUpdate
)
- #26 - Fix React version check for deprecated lifecycle methods
- README fixes
- Rewritten using
stylis
for both footprint and performance
Style
is now a named export instead of the default export- Names of props have changed
doNotPrefix
=>isPrefixed
(but inverse, naturally)
- CSS now offers nesting via use of
&
reference, for simplified declaration of styles isCompressed
prop will enable aggressive CSS compression
- Use
prop-types
package instead ofReact.PropTypes
for React 16 support - Move
react
topeerDependencies
- Remove
moize
dependency for simple memoization
- Add
autoprefixerOptions
as both instance and global option (provides custom configuration of interal prefixing viaautoprefixer
) - thanks @oasisvali
- Add complete test coverage
- Support SSR by not assigning blob support until componentWillMount (will attempt until
hasBlobSupport
is true, so both server and client calls will run)
- Add caching to prevent duplicate tags from being added to head
- Add
setGlobalOptions
method to apply props globally for all instanes
- Add
hasSourceMap
prop, which will render a<link>
viaBlob
rather than a<style>
tag to have better source mapping
- Fix
doNotPrefix
not moving the<style>
tag to the bottom ofdocument.head
- Initial commit, with various README fixes