Since you are interested in what happens next, in case, you work for a for-profit company that benefits from using the project, please consider supporting it on https://opencollective.com/jss.
- [react-jss] add properly react default props types calculation (cssinjs#1353)
- [jss, react-jss] TS fixes, allow autocomplete for CSS rules 1352
- [react-jss] TS fixes 1310
- [jss] TS fixes 1318
- [examples] Convert plugin examples to codesandbox 1316
- [jss-plugin-rule-value-function] Fixed missing dependency to tiny-warning 1315
- [jss-plugin-vendor-prefixer] Correct prefixing of writing-mode property 1326
- [jss, react-jss] revert
getDynamicStyles
migration introduced in 10.1.0
- [jss] Fix multiple .addRule calls with font-face (1280)
- [jss] Allow a Comment node as insertion point (1284)
- [jss-plugin-rule-value-function] Add warning when using a function value inside a function rule (1285)
- [react-jss] Typescript support for createUseStyles theme (1294)
- [jss, react-jss] -
getDynamicStyles
utility function was originally exposed fromjss
package, but I don't think it was used externally, so I moved it toreact-jss
package and made it internal. If you have been using it as public API let me know, we will have to revert the change. - [examples] Migrate examples to monorepo (1306)
- [jss-plugin-default-unit] Allow options to pass function transforms in (1292)
- [react-jss] Add type alias for
WithStyles
(1254) - [react-jss] Fix ts typings for hook, created common interface for options (1266)
- [react-jss] Revert strict style types for ts, since it's a breaking change and needs much more work done upfront (1270)
- [css-jss] Add TypeScript type definitions (1247)
- [react-jss] Accept options.generateId in useStyles() and withStyles() as an option (1263)
- [jss] Fix
create
definitions to allowminify: boolean
(1218) - [jss] Fix
Name
Typescript constraint (1218)
- [jss] Fix breaking change that was introduced in
10.0.1
(1252)
- [jss-plugin-vendor-prefixer] Upgrade css-vendor package to v2.0.7 (1208)
- [jss] Fix
sheet.addRule()
support for duplicate rule names (1242) - [react-jss] Fix function values support inside of nested media queries when component is a list item (1242)
A higher level overview of v10 release.
- [react-jss] A new hooks-based API has been released and became the new default way to use JSS with React.
- [jss] Keyframe IDs are now scoped by default.
- [jss] Function values, function rules and observables apply plugins by default now, which means they can support all kinds of syntaxes: e.g. fallbacks, media queries, nesting, global styles.
- [jss] Houdini Typed CSSOM Values are supported now.
- [all] Each package supports ESM modules import, also possible directly from https://unpkg.com/.
- [all] Added TypeScript type definitions to this repository.
For more details please read the rest of the changelog.
- [react-jss] Add fallback for
Number.MIN_SAFE_INTEGER
, because not supported by IE <= 11 (1197) - [jss-plugin-vendor-prefixer] Fix
fallbacks
syntax support regression (1198)
- [jss] Fix dynamic rule updating after sheet re-attach in IE (1194)
- [ci] Fix browsers.json, bump suported ios Safari to 10.3.
- [jss] Fix dynamic rule updating after sheet re-attach (1190)
- [jss-plugin-nested] Better warning text (1170)
- [react-jss] Improve TypeScript definitions and add missing definition for
createUseStyles
(1155) - [jss-plugin-default-unit] Consistent usage of the CSS browser API (1168)
- [react-jss] Update dynamic nested rules need (#1144)
- [react-jss] withStyles shouldn't attach() on SSR (#1149, #1157)
- [jss] Improve treeshaking for webpack by not using
global
. (#1153)
- [jss] SheetsRegistry.toString(options) will now return all sheets by default, no matter detached or attached. You can specify which one you want by using the option
registry.toString({attached: true})
(1140)
- [react-jss] SSR for the hooks based API will now work with the registry as expected (1140)
- [react-jss] When id options passed to JssProvider, we need to create a new
generateId
function (#1147)
- [react-jss] Document
id
prop for JssProvider, add "Class name generator options" to the docs. (#1147) - [react-jss] Use component name or displayName as a class name prefix also in production by default (#1147)
- [jss-plugin-vendor-prefixer] Upgrade css-vendor package to v2.0.5 (#1142)
- [css-jss] Slows down in benchmark after 10k rules (#1137)
- [react-jss] Experimental styled API got some fixes and many more tests (#1118)
- [react-jss] New experimental styled API (undocumented intentionally)(#1094)
- [react-jss] JSX pragma for css prop (undocumented intentionally)(#1130)
- [css-jss] New experimental css() API (undocumented intentionally)(#1129)
- [jss] After attempting to insert an invalid rule, JSS is now able to insert a valid one (#1123)
- [react-jss] Fix TS type optional
theming
property (#1121) - [react-jss] Export useTheme in TypeScript declaration (#1124)
- [react-jss] New hooks based API is out. HOC based API is deprecated. It will stay in v10 but will be removed in v11. (#1089)
- [jss] Add option for opt-in minification of class names. (#1075)
- [jss-plugin-expand] Fix attributes spread for
border-bottom
,border-top
,border-left
andborder-right
(#1083) - [jss-plugin-props-sort] Fix sorting in Node 11 (#1084)
- [jss] Fix escaping keyframes names (#1100)
- [jss-plugin-camel-case] Fix some IE 11 regression (#1065)
- [jss-vendor-prefixer] Fix value prefixing, in particular
position: sticky
(#1068)
- [jss] Add support for multiple referenced keyframes (#1063)
- [jss] Fix SSR aggregation regression (#1064)
- [react-jss] Replace spaces inside the display name with hyphens (#1049)
- [jss] Remove VirtualRenderer and the option
virtual: true
. Now to simulate a non-browser environment, passcreate({Renderer: null})
when creating a Jss instance. - [react-jss] Add dynamic rules to the static sheet (#1048)
- [jss] Fix using function values with scoped keyframes (#1043)
- [jss] Fix removing styles from function rules (#1046)
- [jss] Fix dynamic values inside of @global plugin (#664)
- [all] All packages except of react-jss can now be used as ESM modules directly from unpkg.com (1029)
- [jss] Improve TS typings (#973)
- [jss] Simplify cloneStyle function (#1003)
- [jss] Use WeakMap inside SheetsManager (#1019)
- [internal] Improve publish script for creating github release (#999)
- [react-jss] Warn about themed styles misuse (#1006)
- [jss-starter-kit] Fix react-jss exports and add missing jss exports (#1001)
- [jss-plugin-camel-case] Fix hyphenating css variables (#1017)
- [all] Move jss dependencies to normal dependencies instead of peer and dev dependencies (#993)
- [internal] Upgrade lerna (#992)
- [react-jss] Move @types/react to dev dependencies (#990)
- [react-jss] Upgrade theming package to v3.0.3 (#994)
- [docs] Fix demo links for jss-plugin-extend (#992)
- [internal] Add script for building readme for packages (#996)
- [all] Fix npm repo urls (#983)
- [jss] Declare ES classes as TypeScript classes instead of interfaces (#971)
- [all] Remove warning from production (#980)
- [react-jss] Move JssContext to new React Context, deprecate the
sheetOptions
prop on the JssProvider and support amedia
prop (#924) - [react-jss] Remove inject option (#934)
- [react-jss] Extend classes instead of overwriting theme (#946)
- [react-jss] Add forwardRef support (#943)
- [react-jss] Upgrade to theming version 3 (#942)
- [jss] Fix IE 11 injection order
Republish of alpha 5 with properly building the code.
- [jss] Fix warning dependency
- [all] Fix peer dependencies warnings (#957)
- [all] Use smaller version of the warning package (#953)
- [all] Improve documentation (#958)
- [internal] Upgrade lerna (#962)
- [all] Fix building packages
- [internal] Fix changelog.md
- [jss] Fix class name white space escaping in dev mode (938)
- [jss] Fix multiple cases where linking CSS rules didn't work (#815, #710, #664)
- [jss] Fix sheet ordering when the last sheet was the last sibling in the head element (#819)
- [jss-plugin-syntax-nested] Fix referencing rules inside media queries (#900)
- [jss-plugin-syntax-global] Fix TypeError: Cannot read property '@global' of undefined (#905)
- [jss-starter-kit] Introduce
jss-starter-kit.bundle.js
, which packages all the other libraries into one import for playgrounds like Codepen. (#936) - [jss] Add support for Typed CSSOM values (#882)
- [jss] Function values and function rules support now fallbacks, media queries, nesting, global styles (#682)
- [react-jss] Remove old lifecycle hooks (#834)
- [react-jss] Add flow types (#818)
- [all] Migrate to a monorepo using yarn workspaces and lerna (#729)
- [all] Add TypeScript definitions to all packages (#889)
- [jss] Observables, function values and rules are now standalone packages, not part of the core. They are still part of the default preset though.
- [jss] Function values, rules and observables apply plugins by default now, which means they can support all plugin defined syntaxes, but they are also slower by default. To speed them up use
sheet.update(data, {process: false})
for fn values/rules andjss.use(pluginObservable({process: false}))
when setting up observables plugin. (#682) - [jss] Rule @keyframes has now scoped name by default, which means that you can access it using
$ref
from the same sheet and generate global one as before using@global
rule (#346). - [jss] Add scoped keyframes support (#346)
- [jss|react-jss] Options
createGenerateClassName
andgenerateClassName
are renamed tocreateGenerateId
andgenerateId
because the same function is now used to scope @keyframes rules. - [react-jss] Drop support for older React versions, require v16.3 or higher (#868, #851)