From 0ca2668e263de2b12cf3029012c4479f3d7f9a51 Mon Sep 17 00:00:00 2001 From: John Pham Date: Thu, 20 Feb 2025 15:14:41 -0800 Subject: [PATCH 1/2] release: v0.1.47 --- package.json | 4 ++-- src/checkVersion.ts | 2 +- src/lib/buy/index.tsx | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 6540102..641f3ee 100644 --- a/package.json +++ b/package.json @@ -48,5 +48,5 @@ "peerDependencies": { "typescript": "^5.6.2" }, - "version": "0.1.46" -} + "version": "0.1.47" +} \ No newline at end of file diff --git a/src/checkVersion.ts b/src/checkVersion.ts index df0e9ac..7fd0c5a 100644 --- a/src/checkVersion.ts +++ b/src/checkVersion.ts @@ -10,7 +10,7 @@ import semver from "semver"; import pkg from "../package.json" with { type: "json" }; const CACHE_FILE = join(homedir(), ".sfcompute", "version-cache"); -const CACHE_TTL = 7 * 24 * 60 * 60 * 1000; // 1 week in milliseconds +const CACHE_TTL = 1 * 60 * 60 * 1000; // 1 hour in milliseconds interface VersionCache { version: string; diff --git a/src/lib/buy/index.tsx b/src/lib/buy/index.tsx index 863e5c6..f928470 100644 --- a/src/lib/buy/index.tsx +++ b/src/lib/buy/index.tsx @@ -1,9 +1,9 @@ -import { parseDate } from "chrono-node"; import { type Command, Option } from "@commander-js/extra-typings"; -import { clearInterval, setInterval, setTimeout } from "node:timers"; +import { parseDate } from "chrono-node"; import { Box, render, Text, useApp } from "ink"; import Spinner from "ink-spinner"; import ms from "ms"; +import { clearInterval, setInterval, setTimeout } from "node:timers"; import dayjs from "npm:dayjs@1.11.13"; import duration from "npm:dayjs@1.11.13/plugin/duration.js"; import relativeTime from "npm:dayjs@1.11.13/plugin/relativeTime.js"; @@ -546,6 +546,9 @@ export async function placeBuyOrder(options: { end_at: roundEndDate(options.endsAt).toISOString(), price: options.totalPriceInCents, colocate_with: options.colocateWith, + flags: { + ioc: true, + }, } as const; const { data, error, response } = await api.POST("/v0/orders", { body, From 4b3a364db0f15b6fe705f9865d99c60f1ebb4f4d Mon Sep 17 00:00:00 2001 From: John Pham Date: Thu, 20 Feb 2025 15:16:15 -0800 Subject: [PATCH 2/2] lint --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 641f3ee..ba9e857 100644 --- a/package.json +++ b/package.json @@ -49,4 +49,4 @@ "typescript": "^5.6.2" }, "version": "0.1.47" -} \ No newline at end of file +}