@danielx/civet 0.4.30 → 0.4.32
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 +3 -1
- package/dist/browser.js +169 -126
- package/dist/main.js +169 -126
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -120,7 +120,8 @@ Civet.
|
|
|
120
120
|
- `a ? b` (use `a ?? b`, though it doesn't check for undeclared variables, `"civet coffeeCompat"`, or `"civet coffeeBinaryExistential"` enables this at the cost of losing JS ternary operator)
|
|
121
121
|
- `a of b` (use `a in b` matching JS, or `"civet coffeeCompat"`, or `"civet coffeeOf"`)
|
|
122
122
|
- Backtick embedded JS (replaced by template literals)
|
|
123
|
-
- Will
|
|
123
|
+
- Will add later
|
|
124
|
+
- `a %% b` -> `(a % b + b) % b`
|
|
124
125
|
- Conditional assignment `a?[x] = 3` -> `a ? a[x] = 3 : undefined`
|
|
125
126
|
- Multiple slice assignment `otherNumbers[0...] = numbers[3..6] = [-3, -4, -5, -6]`
|
|
126
127
|
|
|
@@ -209,6 +210,7 @@ Things Added that CoffeeScript didn't
|
|
|
209
210
|
- function call `x.map &.callback a, b` -> `x.map($ => $.callback(a, b))`
|
|
210
211
|
- unary operators `x.map !!&`, -> `x.map($ => !!$)`
|
|
211
212
|
- binary operators `x.map &+1` -> `x.map($ => $+1)`
|
|
213
|
+
- Flagging shorthand [from LiveScript](https://livescript.net/#literals) `{+debug, -live}` -> `{debug: true, live: false}`
|
|
212
214
|
- Indentation JSX: instead of explicitly closing `<tag>`s or `<>`s,
|
|
213
215
|
you can indent the children and Civet will close your tags for you
|
|
214
216
|
- CoffeeScript improvements
|