@apollo-elements/fast
Advanced tools
Comparing version 1.2.0-alpha.1 to 1.2.0-alpha.2
@@ -29,3 +29,3 @@ /// <reference types="zen-observable" /> | ||
variablesChanged(variables: import("@apollo-elements/interfaces").Variables<D_1, V_1>): void; | ||
refetch(variables: import("@apollo-elements/interfaces").Variables<D_1, V_1>): void | Promise<import("@apollo/client/core").ApolloQueryResult<import("@apollo-elements/interfaces").Data<D_1>>>; | ||
refetch(variables: import("@apollo-elements/interfaces").Variables<D_1, V_1>): Promise<import("@apollo/client/core").ApolloQueryResult<import("@apollo-elements/interfaces").Data<D_1>>>; | ||
canSubscribe(options?: Partial<import("@apollo/client/core").SubscriptionOptions<import("@apollo-elements/interfaces").Variables<D_1, V_1> | null, import("@apollo-elements/interfaces").Data<D_1>>> | undefined): boolean; | ||
@@ -32,0 +32,0 @@ shouldSubscribe(options?: Partial<import("@apollo/client/core").SubscriptionOptions<import("@apollo-elements/interfaces").Variables<D_1, V_1>, import("@apollo-elements/interfaces").Data<D_1>>> | undefined): boolean; |
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.2.0-alpha.2](https://github.com/apollo-elements/apollo-elements/compare/@apollo-elements/fast@1.2.0-alpha.0...@apollo-elements/fast@1.2.0-alpha.2) (2020-12-21) | ||
### Features | ||
* support for TypedDocumentNode ([d39ca4e](https://github.com/apollo-elements/apollo-elements/commit/d39ca4e0094220cfceba97b9bfe59ed078045560)) | ||
# [1.2.0-alpha.1](https://github.com/apollo-elements/apollo-elements/compare/@apollo-elements/fast@1.2.0-alpha.0...@apollo-elements/fast@1.2.0-alpha.1) (2020-12-05) | ||
@@ -8,0 +19,0 @@ |
@@ -15,10 +15,5 @@ { | ||
{ | ||
"name": "context", | ||
"description": "Context to be passed to link execution chain.", | ||
"type": "Record<string, unknown> | undefined" | ||
}, | ||
{ | ||
"name": "data", | ||
"description": "Latest data", | ||
"type": "TData | null" | ||
"description": "data", | ||
"type": "Data<D> | null" | ||
}, | ||
@@ -28,3 +23,3 @@ { | ||
"description": "Operation variables", | ||
"type": "TVariables" | ||
"type": "Variables<D, V>" | ||
}, | ||
@@ -48,2 +43,7 @@ { | ||
{ | ||
"name": "context", | ||
"description": "Context to be passed to link execution chain.", | ||
"type": "Record<string, unknown> | undefined" | ||
}, | ||
{ | ||
"name": "client", | ||
@@ -57,3 +57,3 @@ "description": "The Apollo Client instance.", | ||
"description": "GraphQL operation document i.e. query, subscription, or mutation.\nMust be a parsed GraphQL DocumentNode, so use `graphql-tag`.\nIf unset, the element can derive the document from the first\nlight-DOM `<script type=\"application/graphql\">` child.", | ||
"type": "DocumentNode | null" | ||
"type": "DocumentNode | ComponentDocument<D> | null" | ||
} | ||
@@ -80,8 +80,19 @@ ], | ||
"description": "The mutation.", | ||
"type": "DocumentNode" | ||
"type": "DocumentNode | ComponentDocument<D> | null" | ||
}, | ||
{ | ||
"name": "refetchQueries", | ||
"description": "As an attribute, can be a string of comma-separated query names\n```html\n<mutation-element refetch-queries=\"QueryA, QueryB,QueryC\"></mutation-element>\n```\nAs a property, you can pass any legal `refetchQueries` value.", | ||
"type": "RefetchQueryDescription | ((result: FetchResult<Data<D>, Record<string, any>, Record<string, any>>) => RefetchQueryDescription) | null" | ||
}, | ||
{ | ||
"name": "called", | ||
"description": "Whether the mutation has been fired", | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
{ | ||
"name": "optimisticResponse", | ||
"description": "An object that represents the result of this mutation that\nwill be optimistically stored before the server has actually returned a\nresult.\n\nThis is most often used for optimistic UI, where we want to be able to see\nthe result of a mutation immediately, and update the UI later if any errors\nappear.", | ||
"type": "TData | ((vars: TVariables) => TData) | undefined" | ||
"type": "Data<D> | ((vars: Variables<D, V>) => Data<D>) | undefined" | ||
}, | ||
@@ -99,7 +110,2 @@ { | ||
{ | ||
"name": "refetchQueries", | ||
"description": "As an attribute, can be a string of comma-separated query names\n```html\n<mutation-element refetch-queries=\"QueryA, QueryB,QueryC\"></mutation-element>\n```\nAs a property, you can pass any legal `refetchQueries` value.", | ||
"type": "RefetchQueryDescription | ((result: FetchResult<TData, Record<string, any>, Record<string, any>>) => RefetchQueryDescription) | null | undefined" | ||
}, | ||
{ | ||
"name": "awaitRefetchQueries", | ||
@@ -110,8 +116,2 @@ "description": "Queries refetched as part of refetchQueries are handled asynchronously,\nand are not waited on before the mutation is completed (resolved).\nSetting this to true will make sure refetched queries are completed\nbefore the mutation is considered done. false by default.", | ||
{ | ||
"name": "called", | ||
"description": "Whether the mutation has been fired", | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
{ | ||
"name": "ignoreResults", | ||
@@ -128,10 +128,5 @@ "description": "If true, the returned data property will not update with the mutation result.", | ||
{ | ||
"name": "context", | ||
"description": "Context to be passed to link execution chain.", | ||
"type": "Record<string, unknown> | undefined" | ||
}, | ||
{ | ||
"name": "data", | ||
"description": "Latest mutation data.", | ||
"type": "TData | null" | ||
"description": "Latest mutation", | ||
"type": "Data<D> | null" | ||
}, | ||
@@ -141,3 +136,3 @@ { | ||
"description": "An object that maps from the name of a variable as used in the mutation GraphQL document to that variable's value.", | ||
"type": "TVariables | null", | ||
"type": "Variables<D, V> | null", | ||
"default": "\"\"" | ||
@@ -162,2 +157,7 @@ }, | ||
{ | ||
"name": "context", | ||
"description": "Context to be passed to link execution chain.", | ||
"type": "Record<string, unknown> | undefined" | ||
}, | ||
{ | ||
"name": "client", | ||
@@ -171,3 +171,3 @@ "description": "The Apollo Client instance.", | ||
"description": "GraphQL operation document i.e. query, subscription, or mutation.\nMust be a parsed GraphQL DocumentNode, so use `graphql-tag`.\nIf unset, the element can derive the document from the first\nlight-DOM `<script type=\"application/graphql\">` child.", | ||
"type": "DocumentNode | null" | ||
"type": "DocumentNode | ComponentDocument<D> | null" | ||
} | ||
@@ -202,3 +202,3 @@ ], | ||
"description": "A GraphQL document containing a single query.", | ||
"type": "DocumentNode | null" | ||
"type": "DocumentNode | ComponentDocument<D> | null" | ||
}, | ||
@@ -221,2 +221,6 @@ { | ||
{ | ||
"name": "refetchQueries", | ||
"type": "RefetchQueryDescription | ((result: FetchResult<Data<D>, Record<string, any>, Record<string, any>>) => RefetchQueryDescription) | null" | ||
}, | ||
{ | ||
"name": "returnPartialData", | ||
@@ -240,3 +244,3 @@ "description": "Opt into receiving partial results from the cache for queries\nthat are not fully satisfied by the cache.", | ||
"description": "The Apollo ObservableQuery watching this element's query.", | ||
"type": "ObservableQuery<TData, TVariables> | undefined" | ||
"type": "ObservableQuery<Data<D>, Variables<D, V>> | undefined" | ||
}, | ||
@@ -246,3 +250,3 @@ { | ||
"description": "Exposes the [`ObservableQuery#setOptions`](https://www.apollographql.com/docs/react/api/apollo-client.html#ObservableQuery.setOptions) method.", | ||
"type": "Partial<WatchQueryOptions<TVariables, TData>> | null" | ||
"type": "Partial<WatchQueryOptions<Variables<D, V>, Data<D>>> | null" | ||
}, | ||
@@ -276,10 +280,5 @@ { | ||
{ | ||
"name": "context", | ||
"description": "Context to be passed to link execution chain.", | ||
"type": "Record<string, unknown> | undefined" | ||
}, | ||
{ | ||
"name": "data", | ||
"description": "Latest query data.", | ||
"type": "TData | null" | ||
"type": "Data<D> | null" | ||
}, | ||
@@ -289,3 +288,3 @@ { | ||
"description": "An object map from variable name to variable value, where the variables are used within the GraphQL query.", | ||
"type": "TVariables | null" | ||
"type": "Variables<D, V> | null" | ||
}, | ||
@@ -308,2 +307,7 @@ { | ||
{ | ||
"name": "context", | ||
"description": "Context to be passed to link execution chain.", | ||
"type": "Record<string, unknown> | undefined" | ||
}, | ||
{ | ||
"name": "client", | ||
@@ -317,3 +321,3 @@ "description": "The Apollo Client instance.", | ||
"description": "GraphQL operation document i.e. query, subscription, or mutation.\nMust be a parsed GraphQL DocumentNode, so use `graphql-tag`.\nIf unset, the element can derive the document from the first\nlight-DOM `<script type=\"application/graphql\">` child.", | ||
"type": "DocumentNode | null" | ||
"type": "DocumentNode | ComponentDocument<D> | null" | ||
} | ||
@@ -346,2 +350,7 @@ ], | ||
{ | ||
"name": "subscription", | ||
"description": "A GraphQL document containing a single subscription.", | ||
"type": "DocumentNode | ComponentDocument<D> | null" | ||
}, | ||
{ | ||
"name": "fetchPolicy", | ||
@@ -364,3 +373,3 @@ "description": "Specifies the FetchPolicy to be used for this subscription.", | ||
"description": "Observable watching this element's subscription.", | ||
"type": "Observable<FetchResult<TData, Record<string, any>, Record<string, any>>> | undefined" | ||
"type": "Observable<FetchResult<Data<D>, Record<string, any>, Record<string, any>>> | undefined" | ||
}, | ||
@@ -373,7 +382,2 @@ { | ||
{ | ||
"name": "subscription", | ||
"description": "A GraphQL document containing a single subscription.", | ||
"type": "DocumentNode | null" | ||
}, | ||
{ | ||
"name": "notifyOnNetworkStatusChange", | ||
@@ -401,10 +405,5 @@ "description": "Whether or not updates to the network status should trigger next on the observer of this subscription.", | ||
{ | ||
"name": "context", | ||
"description": "Context to be passed to link execution chain.", | ||
"type": "Record<string, unknown> | undefined" | ||
}, | ||
{ | ||
"name": "data", | ||
"description": "Latest data", | ||
"type": "TData | null" | ||
"description": "data", | ||
"type": "Data<D> | null" | ||
}, | ||
@@ -414,3 +413,3 @@ { | ||
"description": "An object map from variable name to variable value, where the variables are used within the GraphQL subscription.", | ||
"type": "TVariables | null" | ||
"type": "Variables<D, V> | null" | ||
}, | ||
@@ -433,2 +432,7 @@ { | ||
{ | ||
"name": "context", | ||
"description": "Context to be passed to link execution chain.", | ||
"type": "Record<string, unknown> | undefined" | ||
}, | ||
{ | ||
"name": "client", | ||
@@ -442,3 +446,3 @@ "description": "The Apollo Client instance.", | ||
"description": "GraphQL operation document i.e. query, subscription, or mutation.\nMust be a parsed GraphQL DocumentNode, so use `graphql-tag`.\nIf unset, the element can derive the document from the first\nlight-DOM `<script type=\"application/graphql\">` child.", | ||
"type": "DocumentNode | null" | ||
"type": "DocumentNode | ComponentDocument<D> | null" | ||
} | ||
@@ -445,0 +449,0 @@ ], |
{ | ||
"name": "@apollo-elements/fast", | ||
"version": "1.2.0-alpha.1", | ||
"version": "1.2.0-alpha.2", | ||
"description": "π©βππ FastElements for Apollo GraphQL ππ¨βπ", | ||
@@ -57,7 +57,7 @@ "main": "index.js", | ||
"dependencies": { | ||
"@apollo-elements/mixins": "^3.4.0-alpha.1", | ||
"@apollo-elements/mixins": "^3.4.0-alpha.2", | ||
"@microsoft/fast-element": "^0.18.0", | ||
"tslib": "^2.0.3" | ||
}, | ||
"gitHead": "20383fd2003cf7fec69965500b33e5ec9828e332" | ||
"gitHead": "af13339031be09f464fed1958224a44043d971a3" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
235344
3195