@ronin/compiler 0.16.3 → 0.16.4

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/dist/index.d.ts CHANGED
@@ -371,7 +371,6 @@ type ObjectRow = Record<string, unknown>;
371
371
  type ResultRecord = Record<string, unknown> & {
372
372
  id: string;
373
373
  ronin: {
374
- locked: boolean;
375
374
  createdAt: string;
376
375
  createdBy: string | null;
377
376
  updatedAt: string;
package/dist/index.js CHANGED
@@ -1465,11 +1465,6 @@ var getSystemFields = (idPrefix) => [
1465
1465
  [QUERY_SYMBOLS.EXPRESSION]: `'${idPrefix}_' || lower(substr(hex(randomblob(12)), 1, 16))`
1466
1466
  }
1467
1467
  },
1468
- {
1469
- name: "RONIN - Locked",
1470
- type: "boolean",
1471
- slug: "ronin.locked"
1472
- },
1473
1468
  {
1474
1469
  name: "RONIN - Created At",
1475
1470
  type: "date",
@@ -2058,10 +2053,12 @@ var Transaction = class {
2058
2053
  const record = fields.reduce((acc, field, fieldIndex) => {
2059
2054
  let newSlug = field.mountingPath;
2060
2055
  let newValue = row[fieldIndex];
2061
- if (field.type === "json" || field.type === "blob") {
2062
- newValue = JSON.parse(newValue);
2063
- } else if (field.type === "boolean") {
2064
- newValue = Boolean(newValue);
2056
+ if (newValue !== null) {
2057
+ if (field.type === "json" || field.type === "blob") {
2058
+ newValue = JSON.parse(newValue);
2059
+ } else if (field.type === "boolean") {
2060
+ newValue = Boolean(newValue);
2061
+ }
2065
2062
  }
2066
2063
  if (isMeta && PLURAL_MODEL_ENTITIES_VALUES.includes(newSlug)) {
2067
2064
  newValue = newValue ? Object.entries(newValue).map(([slug, attributes]) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.16.3",
3
+ "version": "0.16.4",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {