Skip to content

Commit

Permalink
feat: remove obsolete packages [fixes DXJ-462] (#337)
Browse files Browse the repository at this point in the history
* Remove api package

* Not publish interface package

* Refactoring of interface package

* Fix aqua imports

* Change impl of isFluencePeer

* Remove unused property
  • Loading branch information
Akim authored Sep 5, 2023
1 parent 18a972b commit e7e6176
Show file tree
Hide file tree
Showing 18 changed files with 587 additions and 1,333 deletions.
2 changes: 0 additions & 2 deletions .github/release-please/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
}
],
"packages": {
"packages/client/api": {},
"packages/core/js-client": {},
"packages/core/interfaces": {},
"packages/core/marine-worker": {}
}
}
4 changes: 1 addition & 3 deletions .github/release-please/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"packages/client/api": "0.13.1",
"packages/core/js-client": "0.1.1",
"packages/core/marine-worker": "0.3.0",
"packages/core/interfaces": "0.8.2"
"packages/core/marine-worker": "0.3.0"
}
3 changes: 1 addition & 2 deletions packages/@tests/aqua/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
"author": "Fluence Labs",
"license": "Apache-2.0",
"dependencies": {
"@fluencelabs/js-client.api": "workspace:^",
"@fluencelabs/js-client": "workspace:^",
"base64-js": "1.5.1"
},
"devDependencies": {
"@fluencelabs/cli": "0.3.9",
"@fluencelabs/cli": "0.7.2",
"@fluencelabs/registry": "0.8.2",
"@fluencelabs/aqua-lib": "0.6.0",
"@fluencelabs/trust-graph": "3.1.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/@tests/aqua/src/_aqua/smoke_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
* Aqua version: 0.10.2
*
*/
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client.api';
import type { IFluenceClient as IFluenceClient$$, CallParams as CallParams$$ } from '@fluencelabs/js-client';
import {
v5_callFunction as callFunction$$,
v5_registerService as registerService$$,
} from '@fluencelabs/js-client.api';
} from '@fluencelabs/js-client';



Expand Down
1 change: 0 additions & 1 deletion packages/@tests/smoke/web-cra-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"private": true,
"type": "module",
"dependencies": {
"@fluencelabs/js-client.api": "workspace:^",
"@test/aqua_for_test": "workspace:^",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "13.4.0",
Expand Down
22 changes: 0 additions & 22 deletions packages/client/api/.gitignore

This file was deleted.

160 changes: 0 additions & 160 deletions packages/client/api/CHANGELOG.md

This file was deleted.

16 changes: 0 additions & 16 deletions packages/client/api/README.md

This file was deleted.

33 changes: 0 additions & 33 deletions packages/client/api/dtsbundle.cjs

This file was deleted.

37 changes: 0 additions & 37 deletions packages/client/api/package.json

This file was deleted.

17 changes: 0 additions & 17 deletions packages/client/api/src/index.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/client/api/tsconfig.json

This file was deleted.

18 changes: 0 additions & 18 deletions packages/core/interfaces/src/fluenceClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,24 +146,6 @@ export interface IFluenceClient extends IFluenceInternalApi {
getRelayPeerId(): string;
}

/**
* For internal use. Checks if the object is a Fluence Peer
*/
export const asFluencePeer = (fluencePeerCandidate: unknown): IFluenceClient => {
if (isFluencePeer(fluencePeerCandidate)) {
return fluencePeerCandidate;
}

throw new Error(`Argument ${fluencePeerCandidate} is not a Fluence Peer`);
};

/**
* For internal use. Checks if the object is a Fluence Peer
*/
export const isFluencePeer = (fluencePeerCandidate: unknown): fluencePeerCandidate is IFluenceClient => {
if (fluencePeerCandidate && (fluencePeerCandidate as any).__isFluenceAwesome) {
return true;
}

return false;
};
2 changes: 1 addition & 1 deletion packages/core/js-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"license": "Apache-2.0",
"dependencies": {
"@chainsafe/libp2p-noise": "13.0.0",
"@fluencelabs/interfaces": "0.8.2",
"@fluencelabs/interfaces": "workspace:*",
"@libp2p/crypto": "2.0.3",
"@libp2p/interface": "0.1.2",
"@libp2p/mplex": "9.0.4",
Expand Down
Loading

0 comments on commit e7e6176

Please sign in to comment.