Skip to content

Commit

Permalink
RxJS
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela committed May 5, 2021
1 parent dfd159e commit 227d3ae
Show file tree
Hide file tree
Showing 22 changed files with 204 additions and 132 deletions.
2 changes: 1 addition & 1 deletion config/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function eachFile(dir: string, callback: (
) => any) {
const promises: Promise<any>[] = [];

return new Promise((resolve, reject) => {
return new Promise<void>((resolve, reject) => {
glob(`${dir}/**/*.js`, (error, files) => {
if (error) return reject(error);

Expand Down

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

24 changes: 19 additions & 5 deletions examples/bundling/no-tree-shaking/rollup-ac3/package-lock.json

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

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

22 changes: 22 additions & 0 deletions examples/bundling/tree-shaking/rollup-ac3/package-lock.json

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

97 changes: 66 additions & 31 deletions package-lock.json

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

9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,16 @@
},
"dependencies": {
"@graphql-typed-document-node/core": "^3.0.0",
"@types/zen-observable": "^0.8.0",
"@wry/context": "^0.6.0",
"@wry/equality": "^0.4.0",
"fast-json-stable-stringify": "^2.0.0",
"graphql-tag": "^2.12.0",
"hoist-non-react-statics": "^3.3.2",
"optimism": "^0.15.0",
"prop-types": "^15.7.2",
"symbol-observable": "^2.0.0",
"rxjs": "^7.0.0",
"ts-invariant": "^0.7.0",
"tslib": "^1.10.0",
"zen-observable": "^0.8.14"
"tslib": "^2.2.0"
},
"devDependencies": {
"@babel/parser": "7.14.0",
Expand Down Expand Up @@ -121,12 +119,11 @@
"rimraf": "3.0.2",
"rollup": "1.31.1",
"rollup-plugin-terser": "7.0.2",
"rxjs": "6.6.7",
"subscriptions-transport-ws": "0.9.18",
"terser": "5.7.0",
"ts-jest": "26.5.5",
"ts-node": "8.10.2",
"typescript": "3.9.9",
"typescript": "4.2.4",
"wait-for-observables": "^1.0.3"
},
"publishConfig": {
Expand Down
3 changes: 2 additions & 1 deletion src/__tests__/ApolloClient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import gql from 'graphql-tag';
import { of } from 'rxjs';

import {
ApolloClient,
Expand Down Expand Up @@ -1185,7 +1186,7 @@ describe('ApolloClient', () => {
},
};
const link = new ApolloLink(() => {
return Observable.of({ data });
return of({ data });
});
function newClient() {
return new ApolloClient({
Expand Down
2 changes: 1 addition & 1 deletion src/cache/inmemory/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export type OptimisticStoreItem = {
export type ReadQueryOptions = {
store: NormalizedCache;
query: DocumentNode;
variables?: Object;
variables?: object;
previousResult?: any;
rootId?: string;
config?: ApolloReducerConfig;
Expand Down
Loading

0 comments on commit 227d3ae

Please sign in to comment.