Skip to content

Upgrading ipx 0.5 to 0.6

Breaking0.5.8 → 0.6.7Breaking1New5Fixed6

BreakingUpgrade verdict

1 breaking change.

  • Improved handlers and format support.
1 item needs code or config changes

Installs 118 packages in all (was 123).

Breaking1
Improved handlers and format support.

Generated by DepDelta from published .d.ts files. Not mixed with prose notes.

  • removed: property ImageMeta._mimeType: string
  • removed: property ImageMeta._type: string
  • changed: type IPX = (id: string, opts?: IPXInputOptions) => { src: () => Promise<SourceData>; data: () => Promise<Buffer>; meta: () => Promise<ImageMeta> } → type IPX = (id: string, opts?: IPXInputOptions) => { src: () => Promise<SourceData>; data: () => Promise<{ data: Buffer; meta: ImageMeta; format: string }> }
  • added: function handleRequest(req: IPXHRequest, ipx: IPX): Promise<IPXHResponse>
  • added: interface IPXHRequest
  • added: interface IPXHResponse
  • added: property IPXHRequest.headers?: Record<string, string>
  • added: property IPXHRequest.url: string
  • added: property IPXHResponse.body: any
  • added: property IPXHResponse.headers: Record<string, string>
  • added: property IPXHResponse.statusCode: number
  • added: property IPXHResponse.statusMessage: string
  • added: property IPXOptions.alias: Record<string, string>