Skip to content

[Feature] pollForProcessingImage, Util v4 #51

@colbyfayock

Description

@colbyfayock

Is your feature request related to a problem? Please describe.

pollForProcessingImage now returns an object instead of a simple boolean. This would be considered a breaking change as the error handling may rely on that falsy response.

export interface PollForProcessingImageResponse {
  status: number;
  success: boolean;
  error?: string;
}

https://github.com/cloudinary-community/cloudinary-util/pull/213/files#diff-77ed4ecc8d07c6f02f55f6988e3c43916f9bbeea319039f9594b01820ce844f4R163-R167

the goal of that work is to provide additional context of an error, so for instance, you can log the error in development context, like this:

cloudinary-community/next-cloudinary#553

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions