Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ jobs:
git diff --exit-code -- calcit.cirru
calcit calcit.cirru --check-only --all-defs
calcit calcit.cirru fix --workflow strict --verify --format json | jq -e '.data.workflow.status == "passed" and .diagnostics == []'
calcit calcit.cirru analyze weak-types --only dynamic-method --summary-only --format json | jq -e '.data.summary.findings == 0'
calcit calcit.cirru --check-only --ns app.main --ns app.http
calcit calcit.cirru analyze weak-types --only deprecated-call --summary-only
calcit calcit.cirru analyze quality --baseline config/calcit-quality.cirru
bash scripts/check-types.sh

- name: Build server bundle
run: |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ COS upload

### 使用者影响与开发

使用正式 Calcit/procs 0.40.0、Skir 0.0.40、Node 24 和 Yarn 4.18.0。
使用正式 Calcit/procs 0.41.0、Skir 0.0.40、Node 24 和 Yarn 4.18.0。
应用版本保持 0.0.9,不额外发模块 release。移除未被源码使用的 Lilac 依赖和 entry,
不混用旧 alpha、main/hash 依赖。应用继续接收 Skir 的真实 Request。

Expand All @@ -27,7 +27,7 @@ calcit calcit.cirru fix --workflow strict --verify
calcit calcit.cirru analyze weak-types --only dynamic-method --summary-only --format json | jq -e '.data.summary.findings == 0'
calcit calcit.cirru --check-only --ns app.main --ns app.http
calcit calcit.cirru analyze weak-types --only deprecated-call --summary-only
calcit calcit.cirru analyze quality --baseline config/calcit-quality.cirru
bash scripts/check-types.sh # requires jq
```

应用用具名联合类型描述 Skir 的同步 Map 和异步回调响应。COS SDK 失败时可以只传错误参数,成功时仍校验返回的 URL。
Expand Down
6 changes: 3 additions & 3 deletions calcit.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
:defs $ {} $ 'extract-body
%{} 'CodeEntry (:doc |)
:code $ quote $ defn extract-body (req cb)
collect-body-str req $ Option :some $ fn (text)
collect-body-str req $ Some $ fn (text)
hint-fn $ Fn String $ -> Unit
cb $ try-parse-cirru-edn-as text $ Map Tag String
, &unit
Expand Down Expand Up @@ -89,8 +89,8 @@
:features :js-ffi
'main! $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn main! ()
skir/create-server! on-request! $ Option :some $ {}
:port $ js/parseInt $ option:unwrap-or (get-env |PORT) |4000
skir/create-server! on-request! $ Some $ {}
:port $ js/parseInt $ .unwrap-or (get-env |PORT) |4000
, &unit
:examples $ []
:schema $ quote $ Fn (-> Unit) (:features :js-ffi)
Expand Down
14 changes: 0 additions & 14 deletions config/calcit-quality.cirru

This file was deleted.

2 changes: 1 addition & 1 deletion deps.cirru
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

{} (:calcit-version |0.40.0) (:version |0.0.9)
{} (:calcit-version |0.41.0) (:version |0.0.9)
:dependencies $ {}
|calcit-lang/skir |0.0.40
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"packageManager": "yarn@4.18.0",
"version": "0.0.9",
"dependencies": {
"@calcit/procs": "0.40.0",
"@calcit/procs": "0.41.0",
"cos-nodejs-sdk-v5": "^2.12.4"
}
}
13 changes: 13 additions & 0 deletions scripts/check-types.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."

calcit analyze weak-types --only coverage --coverage-level none,partial --summary-only --format json |
jq -e '.data.summary.definitions == 0'
calcit analyze weak-types \
--only schema-dynamic,unresolved-type-slot,code-dynamic,code-nil,unsafe-coerce,data-dynamic \
--summary-only --format json | jq -e '.data.summary.hits == 0'
calcit analyze weak-types --only deprecated-call --summary-only --format json |
jq -e '.data.summary.calls == 0'
calcit analyze weak-types --only dynamic-method --summary-only --format json |
jq -e '.data.summary.findings == 0'
10 changes: 5 additions & 5 deletions yarn.lock

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

Loading