@danielx/civet 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -94,6 +94,7 @@ Things Kept from CoffeeScript
94
94
  - Postfix `if/unless`
95
95
  - Block Strings `"""` / `'''`
96
96
  - `#{exp}` interpolation in `"""` strings
97
+ - Multiple `case`/`when` expressions
97
98
  - JSX 😿
98
99
  - TODO
99
100
  - [ ] Chained comparisons
@@ -104,7 +105,7 @@ Things Removed from CoffeeScript
104
105
  - `on/yes/off/no` (use `true/false`)
105
106
  - `isnt` (use `!==`)
106
107
  - `not` (use `!`)
107
- - `do` keyword (replaced with JS `do`)
108
+ - `do` keyword (replaced with JS `do`, invoke using existing `(-> ...)()` syntax)
108
109
  - `for from` (use JS `for of`)
109
110
  - `and=`, `or=` (don't mix and match words and symbols)
110
111
  - Array slices `list[0...2]` (use `list.slice(0, 2)`)
@@ -186,6 +187,8 @@ Things Changed from ES6
186
187
  The reasoning is `x -> ...` => `x(function() ...)` in CoffeeScript and having `->` and `=>`
187
188
  behave more differently than they already do is bad. Passing an anonymous function to an
188
189
  application without parens is also convenient.
190
+ - Disallow comma operator in conditionals.
191
+ - Comma operator in case/when becomes multiple conditions.
189
192
 
190
193
  Using Civet in your Node.js Environment
191
194
  ---