@danielx/civet 0.4.11 → 0.4.13
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 +2 -0
- package/dist/browser.js +482 -439
- package/dist/esm.mjs +1 -1
- package/dist/main.js +482 -439
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -198,10 +198,12 @@ Things Added that CoffeeScript didn't
|
|
|
198
198
|
Things Changed from ES6
|
|
199
199
|
---
|
|
200
200
|
|
|
201
|
+
- Implicit returns
|
|
201
202
|
- Disallow no parens on single argument arrow function. `x => ...` must become `(x) => ...`
|
|
202
203
|
The reasoning is `x -> ...` => `x(function() ...)` in CoffeeScript and having `->` and `=>`
|
|
203
204
|
behave more differently than they already do is bad. Passing an anonymous function to an
|
|
204
205
|
application without parens is also convenient.
|
|
206
|
+
- `for(i of x) ...` defaults to const declaration -> `for(const i of x) ...`
|
|
205
207
|
- Disallow comma operator in conditionals.
|
|
206
208
|
- Comma operator in case/when becomes multiple conditions.
|
|
207
209
|
- When exponent follows a dot it is treated as a property access since we simplified `1.toString()` -> `1..toString()` and an exponent
|