@calcit/procs 0.8.28 → 0.8.30

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.
@@ -1184,8 +1184,7 @@ export let _$n_js_object = (...xs) => {
1184
1184
  return ret;
1185
1185
  };
1186
1186
  export let _$o__$o_ = (tagName, ...extra) => {
1187
- let klass = new CalcitRecord(newTag("base-class"), [], []);
1188
- return new CalcitTuple(tagName, extra, klass);
1187
+ return new CalcitTuple(tagName, extra, null);
1189
1188
  };
1190
1189
  export let _PCT__$o__$o_ = (klass, tag, ...extra) => {
1191
1190
  return new CalcitTuple(tag, extra, klass);
package/lib/js-tuple.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import { _$n__$e_, toString } from "./calcit-data.mjs";
2
+ import { CalcitRecord } from "./js-record.mjs";
2
3
  export class CalcitTuple {
3
4
  constructor(tagName, extra, klass) {
4
5
  this.tag = tagName;
@@ -56,6 +57,12 @@ export class CalcitTuple {
56
57
  }
57
58
  content += toString(args[i], false, disableJsDataWarning);
58
59
  }
59
- return `(:: ${content})`;
60
+ if (this.klass instanceof CalcitRecord) {
61
+ console.log("CLASS", this.klass);
62
+ return `(%:: ${content} (:class ${this.klass.name.value}))`;
63
+ }
64
+ else {
65
+ return `(:: ${content})`;
66
+ }
60
67
  }
61
68
  }
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.8.28",
3
+ "version": "0.8.30",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
6
  "@types/node": "^20.11.8",
@@ -13,7 +13,8 @@
13
13
  "eval": "cargo run --bin cr -- -e",
14
14
  "try-rs": "cargo run --bin cr -- calcit/test.cirru -1",
15
15
  "try-js-brk": "cargo run --bin cr -- calcit/test.cirru --emit-js -1 && node --inspect-brk js-out/main.mjs",
16
- "try-js": "cargo run --bin cr -- calcit/test.cirru --emit-js -1 && node js-out/main.mjs"
16
+ "try-js": "cargo run --bin cr -- calcit/test.cirru --emit-js -1 && node js-out/main.mjs",
17
+ "try-ir": "cargo run --bin cr -- calcit/test.cirru --emit-ir -1"
17
18
  },
18
19
  "repository": {
19
20
  "type": "git",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.8.28",
3
+ "version": "0.8.30",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
6
  "@types/node": "^20.11.8",
@@ -13,7 +13,8 @@
13
13
  "eval": "cargo run --bin cr -- -e",
14
14
  "try-rs": "cargo run --bin cr -- calcit/test.cirru -1",
15
15
  "try-js-brk": "cargo run --bin cr -- calcit/test.cirru --emit-js -1 && node --inspect-brk js-out/main.mjs",
16
- "try-js": "cargo run --bin cr -- calcit/test.cirru --emit-js -1 && node js-out/main.mjs"
16
+ "try-js": "cargo run --bin cr -- calcit/test.cirru --emit-js -1 && node js-out/main.mjs",
17
+ "try-ir": "cargo run --bin cr -- calcit/test.cirru --emit-ir -1"
17
18
  },
18
19
  "repository": {
19
20
  "type": "git",
@@ -1,3 +1,3 @@
1
1
 
2
2
  [toolchain]
3
- channel = "nightly"
3
+ channel = "stable"
@@ -1283,8 +1283,7 @@ export let _$n_js_object = (...xs: CalcitValue[]): Record<string, CalcitValue> =
1283
1283
  };
1284
1284
 
1285
1285
  export let _$o__$o_ = (tagName: CalcitValue, ...extra: CalcitValue[]): CalcitTuple => {
1286
- let klass = new CalcitRecord(newTag("base-class"), [], []);
1287
- return new CalcitTuple(tagName, extra, klass);
1286
+ return new CalcitTuple(tagName, extra, null);
1288
1287
  };
1289
1288
 
1290
1289
  export let _PCT__$o__$o_ = (klass: CalcitRecord, tag: CalcitValue, ...extra: CalcitValue[]): CalcitTuple => {
@@ -61,6 +61,11 @@ export class CalcitTuple {
61
61
  }
62
62
  content += toString(args[i], false, disableJsDataWarning);
63
63
  }
64
- return `(:: ${content})`;
64
+ if (this.klass instanceof CalcitRecord) {
65
+ console.log("CLASS", this.klass);
66
+ return `(%:: ${content} (:class ${this.klass.name.value}))`;
67
+ } else {
68
+ return `(:: ${content})`;
69
+ }
65
70
  }
66
71
  }