@calcit/procs 0.11.8 → 0.12.1
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/.gitattributes +1 -1
- package/.yarn/install-state.gz +0 -0
- package/build.rs +229 -11
- package/editing-history/2026-0305-0042-type-inference-argtypes-and-core-hints.md +54 -0
- package/editing-history/2026-0305-0115-calcit-core-generic-refinements.md +57 -0
- package/editing-history/2026-0305-1930-schema-migration-cr-edit.md +30 -0
- package/editing-history/2026-0305-1939-query-schema-adaptation.md +42 -0
- package/editing-history/2026-0306-0120-schema-hint-migration-batch.md +38 -0
- package/editing-history/2026-0306-1416-core-macro-schema-migration.md +20 -0
- package/editing-history/2026-0306-1552-core-schema-and-hintfn-migration.md +63 -0
- package/editing-history/2026-0306-1936-schema-normalization-and-preprocess-preload.md +12 -0
- package/editing-history/2026-0307-0000-migrate-hint-fn-to-schema.md +29 -0
- package/editing-history/2026-0307-0000-remove-enum-prototype-field.md +43 -0
- package/editing-history/2026-0307-0000-schema-args-type-enforcement.md +66 -0
- package/editing-history/2026-0307-0142-unit-type-and-builtin-schemas.md +82 -0
- package/editing-history/2026-0307-1302-calcit-agent-docs-update.md +32 -0
- package/editing-history/2026-0307-1652-decouple-snapshot-schema-to-calcit-type.md +112 -0
- package/editing-history/2026-0307-1821-snapshot-schema-validation.md +6 -0
- package/editing-history/2026-0307-1959-schema-def-kind-arity-validation.md +96 -0
- package/editing-history/2026-0308-0031-schema-generics-quote-normalization.md +35 -0
- package/editing-history/2026-0308-1905-schema-typeref-and-assert-migration.md +34 -0
- package/editing-history/2026-0308-2033-schema-wrapper-migration.md +45 -0
- package/editing-history/2026-0308-2315-late-schema-cleanup-and-warning-compat.md +27 -0
- package/editing-history/2026-0310-1040-edit-schema-primitive-tag-support.md +42 -0
- package/editing-history/202603091753-schema-type-fail-tests.md +17 -0
- package/editing-history/202603091819-add-test-fail-script.md +5 -0
- package/editing-history/202603091944-split-type-fail-tests.md +8 -0
- package/lib/package.json +3 -2
- package/package.json +3 -2
- /package/editing-history/{2026-0304-generics-fn-typevar-identity.md → 2026-0304-0000-generics-fn-typevar-identity.md} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# split type-fail tests into separate file
|
|
2
|
+
|
|
3
|
+
- 将 `src/bin/cr.rs` 中与 `type-fail` fixture 相关的 helper 和测试拆分到独立文件 `src/bin/cr_type_fail_tests.rs`。
|
|
4
|
+
- 在 `src/bin/cr.rs` 顶部通过 `#[cfg(test)] mod cr_type_fail_tests;` 挂载测试模块。
|
|
5
|
+
- 保留 `cr.rs` 中的通用 schema/type 覆盖测试,减少主文件体积。
|
|
6
|
+
- 验证通过:
|
|
7
|
+
- `cargo test -q --bin cr`
|
|
8
|
+
- `yarn test-fail`
|
package/lib/package.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@calcit/procs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"main": "./lib/calcit.procs.mjs",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@types/node": "^25.0.9",
|
|
7
7
|
"typescript": "^5.9.3"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"compile": "rm -
|
|
10
|
+
"compile": "rm -rf lib && tsc",
|
|
11
11
|
"procs-link": "ln -sfn ../../ node_modules/@calcit/procs",
|
|
12
12
|
"cp-mac": "cargo build --release && rm -rfv builds/* && node scripts/cp-version.js && scp builds/* rsync-user@calcit-lang.org:/web-assets/repo/calcit-lang/binaries/macos/",
|
|
13
13
|
"eval": "cargo run --bin cr -- eval",
|
|
14
14
|
"fmt-rs": "cargo fmt --all",
|
|
15
15
|
"lint-rs": "cargo clippy --all-targets -- -D warnings",
|
|
16
16
|
"test-rs": "cargo test -q",
|
|
17
|
+
"test-fail": "cargo test -q --bin cr type_fail_",
|
|
17
18
|
"test-snippets": "cargo test -q snippets::tests",
|
|
18
19
|
"bench-recur-smoke": "cargo run --bin cr -- calcit/test.cirru -1 js && node --input-type=module -e \"import { test_loop } from './js-out/test-recursion.main.mjs'; const n=3000; const t0=process.hrtime.bigint(); for(let i=0;i<n;i++) test_loop(); const dt=Number(process.hrtime.bigint()-t0)/1e6; console.log('test_loop_ms='+dt.toFixed(3));\"",
|
|
19
20
|
"check-smooth": "yarn fmt-rs && yarn lint-rs && yarn test-rs && yarn check-all",
|
package/package.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@calcit/procs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"main": "./lib/calcit.procs.mjs",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@types/node": "^25.0.9",
|
|
7
7
|
"typescript": "^5.9.3"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"compile": "rm -
|
|
10
|
+
"compile": "rm -rf lib && tsc",
|
|
11
11
|
"procs-link": "ln -sfn ../../ node_modules/@calcit/procs",
|
|
12
12
|
"cp-mac": "cargo build --release && rm -rfv builds/* && node scripts/cp-version.js && scp builds/* rsync-user@calcit-lang.org:/web-assets/repo/calcit-lang/binaries/macos/",
|
|
13
13
|
"eval": "cargo run --bin cr -- eval",
|
|
14
14
|
"fmt-rs": "cargo fmt --all",
|
|
15
15
|
"lint-rs": "cargo clippy --all-targets -- -D warnings",
|
|
16
16
|
"test-rs": "cargo test -q",
|
|
17
|
+
"test-fail": "cargo test -q --bin cr type_fail_",
|
|
17
18
|
"test-snippets": "cargo test -q snippets::tests",
|
|
18
19
|
"bench-recur-smoke": "cargo run --bin cr -- calcit/test.cirru -1 js && node --input-type=module -e \"import { test_loop } from './js-out/test-recursion.main.mjs'; const n=3000; const t0=process.hrtime.bigint(); for(let i=0;i<n;i++) test_loop(); const dt=Number(process.hrtime.bigint()-t0)/1e6; console.log('test_loop_ms='+dt.toFixed(3));\"",
|
|
19
20
|
"check-smooth": "yarn fmt-rs && yarn lint-rs && yarn test-rs && yarn check-all",
|