better-convex 0.7.1 → 0.7.2

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.
@@ -1,6 +1,4 @@
1
1
  import { Ft as ConvexTableWithColumns, J as ConvexTextBuilderInitial, Z as ConvexNumberBuilderInitial, et as ConvexIdBuilderInitial, st as ConvexCustomBuilderInitial } from "../where-clause-compiler-CRP-i1Qa.js";
2
- import "../query-context-DGExXZIV.js";
3
- import "../orm/index.js";
4
2
  import * as convex_values0 from "convex/values";
5
3
  import { GenericId, Infer, Value } from "convex/values";
6
4
  import { DocumentByName, GenericDataModel, GenericDatabaseReader, GenericDatabaseWriter, TableNamesInDataModel } from "convex/server";
@@ -764,7 +764,7 @@ const adapterConfig = {
764
764
  return data;
765
765
  },
766
766
  customTransformOutput: ({ data, fieldAttributes }) => {
767
- if (data && fieldAttributes.type === "date") return new Date(data);
767
+ if (data && fieldAttributes.type === "date") return new Date(data).getTime();
768
768
  return data;
769
769
  }
770
770
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-convex",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Better Convex - React Query integration and CLI tools for Convex",
5
5
  "keywords": [
6
6
  "convex",