@apollo-elements/fast
Advanced tools
Comparing version 2.0.1-next.0 to 2.1.0
@@ -1,2 +0,1 @@ | ||
/// <reference types="zen-observable" /> | ||
import type { ComponentDocument, Data, FetchMoreParams, MaybeTDN, MaybeVariables, NextFetchPolicyFunction, Variables } from '@apollo-elements/core/types'; | ||
@@ -149,3 +148,3 @@ import type * as C from '@apollo/client/core'; | ||
*/ | ||
subscribe(params?: Partial<C.WatchQueryOptions<Variables<D, V>, Data<D>>>): ZenObservable.Subscription; | ||
subscribe(params?: Partial<C.WatchQueryOptions<Variables<D, V>, Data<D>>>): C.ObservableSubscription; | ||
/** | ||
@@ -152,0 +151,0 @@ * Lets you pass a GraphQL subscription and updateQuery function |
import { __decorate } from "tslib"; | ||
import * as C from '@apollo/client/core'; | ||
import { makeClient, nextNAsync } from '@apollo-elements/test'; | ||
import { makeClient } from '@apollo-elements/test'; | ||
import { fixture, expect } from '@open-wc/testing'; | ||
@@ -95,3 +94,3 @@ import { unsafeStatic, html as h } from 'lit/static-html.js'; | ||
}); | ||
beforeEach(() => spy(C.ObservableQuery.prototype, 'reobserve')); | ||
beforeEach(() => spy(element.controller, 'refetch')); | ||
beforeEach(() => { | ||
@@ -103,15 +102,17 @@ clock = useFakeTimers(); | ||
var _a, _b; | ||
(_b = (_a = C.ObservableQuery.prototype.reobserve).restore) === null || _b === void 0 ? void 0 : _b.call(_a); | ||
(_b = (_a = element.controller.refetch).restore) === null || _b === void 0 ? void 0 : _b.call(_a); | ||
}); | ||
describe('calling startPolling(1000)', function () { | ||
beforeEach(function startPolling() { element.startPolling(1000); }); | ||
beforeEach(() => nextNAsync(clock, 3)); | ||
beforeEach(() => { | ||
clock.tick(3500); | ||
}); | ||
it('refetches', function () { | ||
expect(C.ObservableQuery.prototype.reobserve).to.have.been.calledThrice; | ||
expect(element.controller.refetch).to.have.been.calledThrice; | ||
}); | ||
describe('then stopPolling', function () { | ||
beforeEach(function stopPolling() { element.stopPolling(); }); | ||
beforeEach(() => nextNAsync(clock, 5)); | ||
beforeEach(() => { clock.tick(3500); }); | ||
it('stops calling refetch', function () { | ||
expect(C.ObservableQuery.prototype.reobserve).to.have.been.calledThrice; | ||
expect(element.controller.refetch).to.have.been.calledThrice; | ||
}); | ||
@@ -118,0 +119,0 @@ }); |
{ | ||
"name": "@apollo-elements/fast", | ||
"version": "2.0.1-next.0", | ||
"version": "2.1.0", | ||
"description": "π©βππ FastElements for Apollo GraphQL ππ¨βπ", | ||
@@ -71,8 +71,8 @@ "main": "index.js", | ||
"dependencies": { | ||
"@apollo-elements/core": "^1.0.1-next.0", | ||
"@apollo-elements/mixins": "^4.0.1-next.0", | ||
"@microsoft/fast-element": "^1.4.0", | ||
"tslib": "^2.3.0" | ||
"@apollo-elements/core": "^1.1.0", | ||
"@apollo-elements/mixins": "^4.1.0", | ||
"@microsoft/fast-element": "^1.6.2", | ||
"tslib": "^2.3.1" | ||
}, | ||
"customElements": "custom-elements.json" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
271651
Updated@apollo-elements/core@^1.1.0
Updatedtslib@^2.3.1