Skip to content

Commit

Permalink
remove hyphenation from the core
Browse files Browse the repository at this point in the history
  • Loading branch information
kof committed Feb 8, 2018
1 parent 602e325 commit 39bec21
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 32 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 9.8.0 / 2018-02-08

* Remove hyphenation from the core, moved it to jss-camel-case. Now any function values and `rule.prop()` will get hyphenation automatically.

## 9.7.0 / 2018-01-06

* Allow function values return falsy values in order to remove a property.
Expand Down
17 changes: 13 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"flow-copy-source": "^1.1.0",
"json-loader": "^0.5.4",
"jss-cache": "^2.0.0",
"jss-camel-case": "^5.0.0",
"jss-camel-case": "^6.1.0",
"jss-compose": "^4.0.0",
"jss-default-unit": "^7.0.0",
"jss-expand": "^4.0.0",
Expand Down
3 changes: 1 addition & 2 deletions src/plugins/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import RuleList from '../RuleList'
import StyleRule from '../rules/StyleRule'
import type {Rule, JssStyle, RuleOptions} from '../types'
import kebabCase from '../utils/kebabCase'
import createRule from '../utils/createRule'

// A symbol replacement.
Expand Down Expand Up @@ -32,7 +31,7 @@ export default {
const value = style[prop]
if (typeof value !== 'function') continue
delete style[prop]
fn[kebabCase(prop)] = value
fn[prop] = value
}
rule = ((rule: any): StyleRuleWithFunctionValues)
rule[fnValuesNs] = fn
Expand Down
4 changes: 0 additions & 4 deletions src/utils/kebabCase.js

This file was deleted.

1 change: 0 additions & 1 deletion tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@ import './unit/getDynamicStyles'
import './unit/cloneStyle'
import './unit/SheetsManager'
import './unit/createGenerateClassName'
import './unit/kebabCase'
import './unit/escape'
import './unit/Jss'
20 changes: 0 additions & 20 deletions tests/unit/kebabCase.js

This file was deleted.

0 comments on commit 39bec21

Please sign in to comment.