Skip to content

Commit

Permalink
Merge pull request #151 from calcit-lang/record-with
Browse files Browse the repository at this point in the history
new feature record-with
  • Loading branch information
NoEgAm authored Jun 24, 2024
2 parents 57a9db0 + 03baa1d commit 5ace0e9
Show file tree
Hide file tree
Showing 5 changed files with 264 additions and 252 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

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

- name: "compiles to js"
run: >
Expand Down
6 changes: 6 additions & 0 deletions docs/apis.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -1783,6 +1783,12 @@
:desc "|create a prototype of record, first argument requires symbol value, with values in `nil`"
:snippets $ []
quote $ new-record :Person :name :age
{}
:name |record-with
:tags $ #{} :record :macro
:desc "|update record fields with new values, syntax in pairs"
:snippets $ []
quote $ record-with r (:f1 v1) (:f2 v2)
{}
:name |new-class-record
:tags $ #{} :record
Expand Down
6 changes: 6 additions & 0 deletions docs/internals.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,12 @@
:desc "|extend a record with a new class"
:snippets $ []
quote $ &record:with-class r class
{}
:name |&record:with
:tags $ #{} :record
:desc "|update record fields with new values, internal function"
:snippets $ []
quote $ &record:with r :f1 v1 :f2 v2
{}
:name |&display-stack
:tags $ #{} :debug
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"dependencies": {
"@calcit/procs": "^0.8.52",
"@calcit/procs": "^0.8.58",
"cirru-color": "^0.2.4",
"copy-text-to-clipboard": "^3.2.0",
"feather-icons": "^4.29.2"
},
"devDependencies": {
"bottom-tip": "^0.1.5",
"vite": "^5.2.11"
"vite": "^5.3.1"
},
"version": "0.0.1"
}
Loading

0 comments on commit 5ace0e9

Please sign in to comment.