coffee-react
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -39,3 +39,3 @@ // Generated by CoffeeScript 1.8.0 | ||
err = _error; | ||
throw helpers.updateSyntaxError(err, input, filename); | ||
throw helpers.updateSyntaxError(err, stripped, filename); | ||
} | ||
@@ -42,0 +42,0 @@ return answer; |
@@ -12,3 +12,3 @@ { | ||
"author": "James Friend", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"licenses": [ | ||
@@ -46,5 +46,4 @@ { | ||
"tap": "^0.4.9", | ||
"object.assign": "^0.5.0", | ||
"react": "^0.12.0" | ||
"react": "0.12.1" | ||
} | ||
} |
@@ -56,2 +56,9 @@ # Coffee-React | ||
``` | ||
#### Version compatibility | ||
- 2.1.x - React 0.12.1 | ||
- 2.x - React 0.12 | ||
- 1.x - React 0.11.2 | ||
- 0.x - React 0.11 and below | ||
### Usage | ||
@@ -108,6 +115,4 @@ | ||
extraProps = color: 'red', speed: 'fast' | ||
React.createElement(React.DOM.div, Object.assign({"color": "blue"}, extraProps) | ||
React.createElement(React.DOM.div, React.__spread({"color": "blue"}, extraProps) | ||
``` | ||
If you use this syntax in your code, be sure to include a shim for `Object.assign` for browsers/environments which don't yet support it (basically all of them). | ||
[es6-shim](https://github.com/es-shims/es6-shim) and [object.assign](https://www.npmjs.org/package/object.assign) are two possible choices. | ||
@@ -114,0 +119,0 @@ ### Breaking Changes in 1.0 |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
3
139
27038
1