Skip to content

Commit

Permalink
add deprecation notes
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Jan 9, 2025
1 parent 0757a05 commit e0f0bc2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/uploadthing/src/_internal/shared-schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ export class UploadedFileData extends FileUploadDataWithCustomId.extend<Uploaded
)({
key: S.String,
url: S.String,
/**
* @deprecated
* This field is now an alias for `url`.
* This field will be removed in uploadthing v9.
*/
appUrl: S.String,
fileHash: S.String,
}) {}
Expand Down
5 changes: 5 additions & 0 deletions packages/uploadthing/src/_internal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ export type UTEvents = {
*/
export type UploadPutResult<TServerOutput = unknown> = {
url: string;
/**
* @deprecated
* This field is now an alias for `url`.
* This field will be removed in uploadthing v9.
*/
appUrl: string;
fileHash: string;
serverData: TServerOutput;
Expand Down

0 comments on commit e0f0bc2

Please sign in to comment.