Skip to content

Commit

Permalink
trivial syntax updates; tag 0.16.11
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Aug 31, 2024
1 parent d6929fc commit ec41fdc
Show file tree
Hide file tree
Showing 6 changed files with 134 additions and 129 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ jobs:
node-version: 20
cache: yarn

- uses: calcit-lang/[email protected]
with:
version: '0.9.4'
- uses: calcit-lang/[email protected]

- name: "load deps"
run: caps --ci && yarn
Expand Down
34 changes: 20 additions & 14 deletions calcit.cirru

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions compact.cirru
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{} (:package |respo)
:configs $ {} (:init-fn |respo.main/main!) (:reload-fn |respo.main/reload!) (:version |0.16.10)
:configs $ {} (:init-fn |respo.main/main!) (:reload-fn |respo.main/reload!) (:version |0.16.11)
:modules $ [] |memof/ |lilac/ |calcit-test/
:entries $ {}
:files $ {}
Expand Down Expand Up @@ -651,15 +651,15 @@
; assert
str "|For rendering lists, please use list-> , got: " $ to-lispy-string children
and
> (count children) 0
&> (count children) 0
not $ any? list? children
let
attrs $ pick-attrs props
styles $ ->
either (:style props) ({})
.to-list
either (&map:get props :style) ({})
&map:to-list
sort $ fn (x y)
&compare (first x) (first y)
&compare (nth x 0) (nth y 0)
event $ pick-event props
children-nodes $ -> children
map-indexed $ fn (idx item) (confirm-child item) ([] idx item)
Expand Down Expand Up @@ -2016,20 +2016,20 @@
:code $ quote
defn pick-attrs (props)
if (nil? props) ([])
-> props (dissoc :on) (dissoc :event) (dissoc :style) (.to-list)
-> props (&map:dissoc :on) (&map:dissoc :event) (&map:dissoc :style) (&map:to-list)
filter $ fn (pair)
let
k $ nth pair 0
v $ nth pair 1
not $ starts-with? (turn-string k) "\"on-"
sort $ fn (x y)
&compare (first x) (first y)
&compare (nth x 0) (nth y 0)
|pick-event $ %{} :CodeEntry (:doc |)
:code $ quote
defn pick-event (props)
if (nil? props) ({})
merge
either (:on props) ({})
either (&map:get props :on) ({})
-> props $ map-kv
fn (k v)
if
Expand Down
1 change: 1 addition & 0 deletions deps.cirru
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{}
:calcit-version |0.9.5
:dependencies $ {}
|calcit-lang/memof |main
|calcit-lang/lilac |main
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "0.16.10",
"version": "0.16.11",
"dependencies": {
"@calcit/procs": "0.9.4"
"@calcit/procs": "0.9.5"
},
"scripts": {
"test": "cr --once --emit-js --init-fn=respo.test.main/main! && node test.mjs"
Expand Down
Loading

0 comments on commit ec41fdc

Please sign in to comment.