From 3b2b66a94c9e07270ba4bac40e13d669a9c998cb Mon Sep 17 00:00:00 2001 From: fetsorn Date: Wed, 10 Aug 2022 16:57:16 +0400 Subject: [PATCH] remove ws plugin from default client config --- packages/js/client/package.json | 1 - packages/js/client/src/__tests__/core/plugin-wrapper.spec.ts | 1 - packages/js/client/src/__tests__/core/sanity.spec.ts | 1 - packages/js/client/src/default-client-config.ts | 5 ----- .../plugins/ws/src/__tests__/e2e/integration/polywrap.yaml | 4 +++- .../__tests__/e2e/{schema.graphql => memory.schema.graphql} | 0 6 files changed, 3 insertions(+), 9 deletions(-) rename packages/js/plugins/ws/src/__tests__/e2e/{schema.graphql => memory.schema.graphql} (100%) diff --git a/packages/js/client/package.json b/packages/js/client/package.json index 565903b595..caefa1e0e1 100644 --- a/packages/js/client/package.json +++ b/packages/js/client/package.json @@ -38,7 +38,6 @@ "@polywrap/tracing-js": "0.3.0", "@polywrap/uts46-plugin-js": "0.3.0", "@polywrap/wrap-manifest-types-js": "0.3.0", - "@polywrap/ws-plugin-js": "0.3.0", "graphql": "15.5.0", "js-yaml": "3.14.0", "uuid": "8.3.2" diff --git a/packages/js/client/src/__tests__/core/plugin-wrapper.spec.ts b/packages/js/client/src/__tests__/core/plugin-wrapper.spec.ts index 36dc611871..ab0b8efb35 100644 --- a/packages/js/client/src/__tests__/core/plugin-wrapper.spec.ts +++ b/packages/js/client/src/__tests__/core/plugin-wrapper.spec.ts @@ -15,7 +15,6 @@ const defaultPlugins = [ "wrap://ens/fs.polywrap.eth", "wrap://ens/fs-resolver.polywrap.eth", "wrap://ens/ipfs-resolver.polywrap.eth", - "wrap://ens/ws.polywrap.eth", ]; describe("plugin-wrapper", () => { diff --git a/packages/js/client/src/__tests__/core/sanity.spec.ts b/packages/js/client/src/__tests__/core/sanity.spec.ts index 147b05d4c4..f67fbcdbe2 100644 --- a/packages/js/client/src/__tests__/core/sanity.spec.ts +++ b/packages/js/client/src/__tests__/core/sanity.spec.ts @@ -20,7 +20,6 @@ describe("sanity", () => { new Uri("wrap://ens/fs.polywrap.eth"), new Uri("wrap://ens/fs-resolver.polywrap.eth"), new Uri("wrap://ens/ipfs-resolver.polywrap.eth"), - new Uri("wrap://ens/ws.polywrap.eth"), ]); expect(client.getInterfaces()).toStrictEqual([ { diff --git a/packages/js/client/src/default-client-config.ts b/packages/js/client/src/default-client-config.ts index 2e2b4e8d79..ca82bd7bbf 100644 --- a/packages/js/client/src/default-client-config.ts +++ b/packages/js/client/src/default-client-config.ts @@ -22,7 +22,6 @@ import { fileSystemPlugin } from "@polywrap/fs-plugin-js"; import { uts46Plugin } from "@polywrap/uts46-plugin-js"; import { sha3Plugin } from "@polywrap/sha3-plugin-js"; import { loggerPlugin } from "@polywrap/logger-plugin-js"; -import { wsPlugin } from "@polywrap/ws-plugin-js"; import { Tracer } from "@polywrap/tracing-js"; import { fileSystemResolverPlugin } from "@polywrap/fs-resolver-plugin-js"; @@ -91,10 +90,6 @@ export const getDefaultClientConfig = Tracer.traceFunc( uri: new Uri("wrap://ens/ipfs-resolver.polywrap.eth"), plugin: ipfsResolverPlugin({}), }, - { - uri: new Uri("wrap://ens/ws.polywrap.eth"), - plugin: wsPlugin({}), - }, ], interfaces: [ { diff --git a/packages/js/plugins/ws/src/__tests__/e2e/integration/polywrap.yaml b/packages/js/plugins/ws/src/__tests__/e2e/integration/polywrap.yaml index 0a424b87d0..05af1c4af3 100644 --- a/packages/js/plugins/ws/src/__tests__/e2e/integration/polywrap.yaml +++ b/packages/js/plugins/ws/src/__tests__/e2e/integration/polywrap.yaml @@ -6,4 +6,6 @@ schema: ./schema.graphql module: ./src/index.ts import_redirects: - uri: "wrap://ens/memory.polywrap.eth" - schema: "../schema.graphql" + schema: "../memory.schema.graphql" + - uri: "wrap://ens/ws.polywrap.eth" + schema: "../../../schema.graphql" diff --git a/packages/js/plugins/ws/src/__tests__/e2e/schema.graphql b/packages/js/plugins/ws/src/__tests__/e2e/memory.schema.graphql similarity index 100% rename from packages/js/plugins/ws/src/__tests__/e2e/schema.graphql rename to packages/js/plugins/ws/src/__tests__/e2e/memory.schema.graphql