Skip to content

Commit

Permalink
replace @joshmossas/ofetch with latest ofetch version
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmossas committed Oct 8, 2024
1 parent ff85a7d commit 1e7c77b
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 79 deletions.
2 changes: 1 addition & 1 deletion languages/ts/ts-client/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export default defineBuildConfig({
clean: true,
declaration: true,
failOnWarn: true,
externals: ["ofetch", "@joshmossas/ofetch", "@arrirpc/schema"],
externals: ["ofetch", "@arrirpc/schema"],
});
2 changes: 1 addition & 1 deletion languages/ts/ts-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@arrirpc/schema": "workspace:*",
"@joshmossas/ofetch": "^1.4.0",
"ofetch": "^1.4.1",
"event-source-plus": "^0.1.5",
"ws": "^8.18.0"
},
Expand Down
2 changes: 1 addition & 1 deletion languages/ts/ts-client/src/request.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { serializeSmallString } from "@arrirpc/schema";
import { FetchError, ofetch } from "@joshmossas/ofetch";
import { EventSourcePlusOptions, type HttpMethod } from "event-source-plus";
import { FetchError, ofetch } from "ofetch";

import { ArriErrorInstance, isArriError } from "./errors";
import { getHeaders } from "./utils";
Expand Down
84 changes: 15 additions & 69 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/clients/ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"dependencies": {
"@arrirpc/client": "workspace:*",
"@arrirpc/schema": "workspace:*",
"@joshmossas/ofetch": "^1.4.0"
"ofetch": "^1.4.1"
}
}
2 changes: 1 addition & 1 deletion tests/clients/ts/testClient.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ArriErrorInstance } from "@arrirpc/client";
import { ofetch } from "@joshmossas/ofetch";
import { randomUUID } from "crypto";
import { ofetch } from "ofetch";
import { expect, test } from "vitest";

import {
Expand Down
4 changes: 2 additions & 2 deletions tooling/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"@arrirpc/codegen-utils": "workspace:*",
"@arrirpc/schema": "workspace:*",
"@joshmossas/listhen": "^1.11.1",
"@joshmossas/ofetch": "^1.4.0",
"ofetch": "^1.4.1",
"c12": "^2.0.1",
"chokidar": "^3.6.0",
"chokidar": "^4.0.1",
"citty": "^0.1.6",
"consola": "^3.2.3",
"degit": "^2.8.4",
Expand Down
2 changes: 1 addition & 1 deletion tooling/cli/src/commands/codegen.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import fs from "node:fs";

import { type AppDefinition, isAppDefinition } from "@arrirpc/codegen-utils";
import { ofetch } from "@joshmossas/ofetch";
import { loadConfig } from "c12";
import { watch } from "chokidar";
import { defineCommand } from "citty";
import { ofetch } from "ofetch";
import path from "pathe";

import { logger } from "../common";
Expand Down
2 changes: 1 addition & 1 deletion tooling/cli/src/commands/use.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { a } from "@arrirpc/schema";
import { ofetch } from "@joshmossas/ofetch";
import { defineCommand } from "citty";
import consola from "consola";
import { readFile, writeFile } from "fs/promises";
import { ofetch } from "ofetch";
import path from "pathe";

import { getArriPackageMetadata } from "../common";
Expand Down
2 changes: 1 addition & 1 deletion tooling/cli/src/common.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { a, ValidationError } from "@arrirpc/schema";
import { ofetch } from "@joshmossas/ofetch";
import { createConsola } from "consola";
import { ofetch } from "ofetch";
import path from "pathe";

export const logger = createConsola().withTag("arri");
Expand Down

0 comments on commit 1e7c77b

Please sign in to comment.