@mastra/cloudflare-d1 1.0.0 → 1.0.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/dist/index.js CHANGED
@@ -1841,27 +1841,24 @@ var WorkflowsStorageD1 = class extends WorkflowsStorage {
1841
1841
  super();
1842
1842
  this.#db = new D1DB(resolveD1Config(config));
1843
1843
  }
1844
+ supportsConcurrentUpdates() {
1845
+ return false;
1846
+ }
1844
1847
  async init() {
1845
1848
  await this.#db.createTable({ tableName: TABLE_WORKFLOW_SNAPSHOT, schema: TABLE_SCHEMAS[TABLE_WORKFLOW_SNAPSHOT] });
1846
1849
  }
1847
1850
  async dangerouslyClearAll() {
1848
1851
  await this.#db.clearTable({ tableName: TABLE_WORKFLOW_SNAPSHOT });
1849
1852
  }
1850
- updateWorkflowResults({
1851
- // workflowName,
1852
- // runId,
1853
- // stepId,
1854
- // result,
1855
- // requestContext,
1856
- }) {
1857
- throw new Error("Method not implemented.");
1853
+ async updateWorkflowResults(_args) {
1854
+ throw new Error(
1855
+ "updateWorkflowResults is not implemented for Cloudflare D1 storage. D1 does not support atomic read-modify-write operations needed for concurrent workflow updates."
1856
+ );
1858
1857
  }
1859
- updateWorkflowState({
1860
- // workflowName,
1861
- // runId,
1862
- // opts,
1863
- }) {
1864
- throw new Error("Method not implemented.");
1858
+ async updateWorkflowState(_args) {
1859
+ throw new Error(
1860
+ "updateWorkflowState is not implemented for Cloudflare D1 storage. D1 does not support atomic read-modify-write operations needed for concurrent workflow updates."
1861
+ );
1865
1862
  }
1866
1863
  async persistWorkflowSnapshot({
1867
1864
  workflowName,