@danielx/civet 0.4.19-pre.12 → 0.4.19-pre.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 -1
- package/dist/browser.js +403 -285
- package/dist/main.js +403 -285
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -111,7 +111,7 @@ Civet.
|
|
|
111
111
|
- `for from` (use JS `for of`, `"civet coffeeCompat"`, or `"civet coffeeForLoops"`)
|
|
112
112
|
- `for own of` (use JS `for in` and check manually, switch to `Map#keys/values/entries`, or use `Object.create(null)`, or `"civet coffeeCompat"`, or `"civet coffeeForLoops"`)
|
|
113
113
|
- `for ... when <condition>` (use `continue if exp` inside loop, `"civet coffeeCompat"`, or `"civet coffeeForLoops"`)
|
|
114
|
-
- `and=`, `or=` (don't mix and match words and symbols)
|
|
114
|
+
- `and=`, `or=` (don't mix and match words and symbols, or use `"civet coffeeCompat"`, or `"civet coffeeWordAssignment"`)
|
|
115
115
|
- `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)
|
|
116
116
|
- `a of b` (use `a in b` matching JS, or `"civet coffeeCompat"`, or `"civet coffeeOf"`)
|
|
117
117
|
- Iteration expression results
|
|
@@ -249,6 +249,7 @@ coffeeInterpolation (`"a string with #{myVar}"`)
|
|
|
249
249
|
coffeeIsnt (`isnt` -> `!==`)
|
|
250
250
|
coffeeNot (`not` -> "!") (currently doesn't support `not instanceof`, `not of`)
|
|
251
251
|
coffeeOf (`a of b` -> `a in b`, `a in b` -> `b.indexOf(a) >= 0`, `a not in b` -> `b.indexOf(a) < 0`)
|
|
252
|
+
coffeeWordAssignment (Allow `and=`, `or=`)
|
|
252
253
|
```
|
|
253
254
|
|
|
254
255
|
You can use these with `"civet coffeeCompat"` to opt in to all or use them bit by bit with `"civet coffeeComment coffeeEq coffeeInterpolation"`.
|