PinataCloud/ipfs-gateway-tools

v1.2.0 breaking change in convertToDesiredGateway

Closed this issue · 0 comments

cnasc commented

The following code produces different results between v1.1.6 and v1.2.0:

const url = 'ipfs://QmXuEFJVjQrHX7GRWY2WnbUP59re3WsyDLZoKqXvRPSxBY/705';
const desiredGatewayPrefix = 'https://something.mypinata.cloud';

ipfsGatewayTools.convertToDesiredGateway(
  url,
  desiredGatewayPrefix,
);
/**
 * v1.1.6 => 'https://something.mypinata.cloud/ipfs/QmXuEFJVjQrHX7GRWY2WnbUP59re3WsyDLZoKqXvRPSxBY/705'
 * v1.2.0 => 'https://something.mypinata.cloud/ipfs/QmXuEFJVjQrHX7GRWY2WnbUP59re3WsyDLZoKqXvRPSxBY'
 */