Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: v0.1.47 #77

Merged
merged 2 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@
"peerDependencies": {
"typescript": "^5.6.2"
},
"version": "0.1.46"
"version": "0.1.47"
}
2 changes: 1 addition & 1 deletion src/checkVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 5 additions & 2 deletions src/lib/buy/index.tsx
Original file line number Diff line number Diff line change
@@ -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:[email protected]";
import duration from "npm:[email protected]/plugin/duration.js";
import relativeTime from "npm:[email protected]/plugin/relativeTime.js";
Expand Down Expand Up @@ -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,
Expand Down