Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/empty-fishes-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fleek-platform/cli": patch
---

change link in `ipfs add` command to w3s.link
5 changes: 5 additions & 0 deletions .changeset/strange-boxes-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fleek-platform/cli": minor
---

Legacy site deployment upload was replaced by new SDK client
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fleek-platform/cli",
"version": "3.8.3",
"version": "3.9.4",
"bin": {
"fleek": "bin/index.js"
},
Expand Down Expand Up @@ -69,11 +69,11 @@
"@biomejs/biome": "^1.8.3",
"@changesets/cli": "^2.27.6",
"@fleek-platform/errors": "^2.7.0",
"@fleek-platform/sdk": "^3.5.4",
"@fleek-platform/sdk": "^3.7.2",
"@fleek-platform/tester": "^2.12.1",
"@fleek-platform/utils-gateways": "^0.1.12",
"@fleek-platform/utils-github": "^0.1.0",
"@fleek-platform/utils-ipfs": "^0.4.4",
"@fleek-platform/utils-ipfs": "^0.4.5",
"@fleek-platform/utils-ipns": "^0.1.13",
"@fleek-platform/utils-validation": "^2.4.0",
"@tsconfig/node16": "^16.1.3",
Expand Down
20 changes: 10 additions & 10 deletions pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions src/commands/ipfs/add.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import fs from 'node:fs';

import {
getFleekXyzIpfsGatewayUrl,
getPrivateIpfsGatewayUrl,
getWeb3IpfsGatewayUrl,
} from '@fleek-platform/utils-ipfs';

import { output } from '../../cli';
Expand Down Expand Up @@ -47,7 +47,7 @@ const addAction: SdkGuardedFunction<AddActionArgs> = async ({ sdk, args }) => {

if (privateGatewayDomains.length === 0) {
output.hint(`${t('getFileFromPubAddr')}:`);
output.link(getFleekXyzIpfsGatewayUrl(hash));
output.link(getWeb3IpfsGatewayUrl(hash));

return;
}
Expand Down
3 changes: 1 addition & 2 deletions src/commands/sites/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ const deployAction: SdkGuardedFunction<DeployActionArgs> = async ({

const uploadResults = await sdk.ipfs().addSitesToIpfs(siteConfig.distDir, {
wrapWithDirectory: true,
// We must pass plain object instead of URLSearchParams because of ipfs-http-client bug
searchParams: { site_id: site.id } as unknown as URLSearchParams,
siteId: site.id,
});

const root = uploadResults.pop();
Expand Down
4 changes: 2 additions & 2 deletions src/commands/storage/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { promises as fs, existsSync } from 'node:fs';
import { basename } from 'node:path';

import {
getFleekXyzIpfsGatewayUrl,
getPrivateIpfsGatewayUrl,
getWeb3IpfsGatewayUrl,
} from '@fleek-platform/utils-ipfs';
import cliProgress from 'cli-progress';
import { filesFromPaths } from 'files-from-path';
Expand Down Expand Up @@ -73,7 +73,7 @@ export const addStorageAction: SdkGuardedFunction<

if (privateGatewayDomains.length === 0) {
output.log(t('visitViaGateway'));
output.link(getFleekXyzIpfsGatewayUrl(hash));
output.link(getWeb3IpfsGatewayUrl(hash));

return;
}
Expand Down