Skip to content

Commit 23ef089

Browse files
authored
Merge pull request #261 from calcit-lang/node-22
js syntax to fix node 22
2 parents f686ee5 + 04a6427 commit 23ef089

File tree

7 files changed

+16
-9
lines changed

7 files changed

+16
-9
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "calcit"
3-
version = "0.9.8"
3+
version = "0.9.9"
44
authors = ["jiyinyiyong <jiyinyiyong@gmail.com>"]
55
edition = "2024"
66
license = "MIT"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Read more in [Respo Calcit Workflow](https://github.com/calcit-lang/respo-calcit
100100

101101
```cirru
102102
{}
103-
:calcit-version |0.9.8
103+
:calcit-version |0.9.9
104104
:dependencies $ {}
105105
|calcit-lang/memof |0.0.11
106106
|calcit-lang/lilac |main

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@calcit/procs",
3-
"version": "0.9.8",
3+
"version": "0.9.9",
44
"main": "./lib/calcit.procs.mjs",
55
"devDependencies": {
66
"@types/node": "^22.10.7",

src/bin/cr.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,20 @@ use calcit::{
2626
fn main() -> Result<(), String> {
2727
builtins::effects::init_effects_states();
2828

29-
// get dirty functions injected
30-
#[cfg(not(target_arch = "wasm32"))]
31-
injection::inject_platform_apis();
3229

3330
let cli_args: ToplevelCalcit = argh::from_env();
3431

3532
let mut eval_once = cli_args.once;
3633
let assets_watch = cli_args.watch_dir.to_owned();
3734

3835
println!("calcit version: {}", cli_args::CALCIT_VERSION);
36+
if cli_args.version {
37+
return Ok(());
38+
}
39+
40+
// get dirty functions injected
41+
#[cfg(not(target_arch = "wasm32"))]
42+
injection::inject_platform_apis();
3943

4044
let core_snapshot = calcit::load_core_snapshot()?;
4145

src/cli_args.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ pub struct ToplevelCalcit {
3737
/// input source file, defaults to "compact.cirru"
3838
#[argh(positional, default = "String::from(\"compact.cirru\")")]
3939
pub input: String,
40+
/// print version only
41+
#[argh(switch)]
42+
pub version: bool,
4043
}
4144

4245
#[derive(FromArgs, PartialEq, Debug, Clone)]

ts-src/calcit.procs.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import pkg from "./package.json" assert { type: "json" };
1+
import pkg from "./package.json" with { type: "json" };
22

33
export const calcit_version = pkg.version;
44
export const calcit_package_json = pkg;

0 commit comments

Comments
 (0)