From a444d57f67ca83341b222dc0b81b1b6f80a79d5e Mon Sep 17 00:00:00 2001 From: box chong Date: Fri, 20 Mar 2020 18:52:48 +0800 Subject: [PATCH 01/25] fix: windows import error --- packages/aws-appsync-subscription-link/src/utils/retry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-appsync-subscription-link/src/utils/retry.ts b/packages/aws-appsync-subscription-link/src/utils/retry.ts index 93a0741c..3b3a8e13 100644 --- a/packages/aws-appsync-subscription-link/src/utils/retry.ts +++ b/packages/aws-appsync-subscription-link/src/utils/retry.ts @@ -1,4 +1,4 @@ -import { rootLogger } from "."; +import { rootLogger } from "./"; import { DelayFunction } from "../types"; const logger = rootLogger.extend("retry"); From 685e9c4615fc8ad1a883910af9ad1b6b38b7eef1 Mon Sep 17 00:00:00 2001 From: boxcc Date: Tue, 24 Mar 2020 15:48:44 +0800 Subject: [PATCH 02/25] fix: Typescript: Spread types error --- packages/aws-appsync/src/link/offline-link.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-appsync/src/link/offline-link.ts b/packages/aws-appsync/src/link/offline-link.ts index 48a8fc74..8d822e29 100644 --- a/packages/aws-appsync/src/link/offline-link.ts +++ b/packages/aws-appsync/src/link/offline-link.ts @@ -417,7 +417,7 @@ const idsMapReducer = (state = {}, action, dataIdFromObject) => { return { ...state, - ...entries, + ...entries as object, }; case actions.COMMIT: const { remainingMutations } = action; From e69732ff50eb0c223b43952c315c14385b86f6e8 Mon Sep 17 00:00:00 2001 From: boxcc Date: Tue, 24 Mar 2020 15:49:42 +0800 Subject: [PATCH 03/25] chore: add yarn.lock in gitgnore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index ba28bbba..a2725c8b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ lib *.tgz lerna-debug.log .npmrc +yarn.lock From fba7b90826136693a05218d125df911401388cdf Mon Sep 17 00:00:00 2001 From: boxcc Date: Tue, 24 Mar 2020 17:09:54 +0800 Subject: [PATCH 04/25] chore: change package name --- packages/aws-appsync-react/package.json | 2 +- packages/aws-appsync-subscription-link/package.json | 2 +- packages/aws-appsync/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/aws-appsync-react/package.json b/packages/aws-appsync-react/package.json index f7c6ab26..6a30a244 100644 --- a/packages/aws-appsync-react/package.json +++ b/packages/aws-appsync-react/package.json @@ -1,5 +1,5 @@ { - "name": "aws-appsync-react", + "name": "@boxcc/aws-appsync-react", "version": "3.0.2", "main": "lib/index.js", "license": "Apache-2.0", diff --git a/packages/aws-appsync-subscription-link/package.json b/packages/aws-appsync-subscription-link/package.json index 80289bcd..0ac6f132 100644 --- a/packages/aws-appsync-subscription-link/package.json +++ b/packages/aws-appsync-subscription-link/package.json @@ -1,5 +1,5 @@ { - "name": "aws-appsync-subscription-link", + "name": "@boxcc/aws-appsync-subscription-link", "version": "2.0.1", "main": "lib/index.js", "license": "Apache-2.0", diff --git a/packages/aws-appsync/package.json b/packages/aws-appsync/package.json index f11f47f2..2520ff3d 100644 --- a/packages/aws-appsync/package.json +++ b/packages/aws-appsync/package.json @@ -1,5 +1,5 @@ { - "name": "aws-appsync", + "name": "@boxcc/aws-appsync", "version": "3.0.2", "main": "lib/index.js", "license": "Apache-2.0", From 7c127bbf185e25f6752add5883943bc23f917c90 Mon Sep 17 00:00:00 2001 From: boxcc Date: Tue, 24 Mar 2020 17:33:48 +0800 Subject: [PATCH 05/25] Publish - @boxcc/aws-appsync-react@3.0.3 - @boxcc/aws-appsync-subscription-link@2.0.2 - @boxcc/aws-appsync@3.0.3 --- packages/aws-appsync-react/package.json | 2 +- packages/aws-appsync-subscription-link/package.json | 2 +- packages/aws-appsync/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/aws-appsync-react/package.json b/packages/aws-appsync-react/package.json index 6a30a244..8ab5c3f3 100644 --- a/packages/aws-appsync-react/package.json +++ b/packages/aws-appsync-react/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-react", - "version": "3.0.2", + "version": "3.0.3", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript - React and React Native components", diff --git a/packages/aws-appsync-subscription-link/package.json b/packages/aws-appsync-subscription-link/package.json index 0ac6f132..4c291e22 100644 --- a/packages/aws-appsync-subscription-link/package.json +++ b/packages/aws-appsync-subscription-link/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-subscription-link", - "version": "2.0.1", + "version": "2.0.2", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript", diff --git a/packages/aws-appsync/package.json b/packages/aws-appsync/package.json index 2520ff3d..9e02b453 100644 --- a/packages/aws-appsync/package.json +++ b/packages/aws-appsync/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync", - "version": "3.0.2", + "version": "3.0.3", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript", From d50bbb8c0e0266900a57101a93cd0e29af2cb9a2 Mon Sep 17 00:00:00 2001 From: boxcc Date: Tue, 24 Mar 2020 17:53:23 +0800 Subject: [PATCH 06/25] build: change dep package --- packages/aws-appsync/package.json | 2 +- packages/aws-appsync/src/client.ts | 2 +- packages/aws-appsync/src/deltaSync.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/aws-appsync/package.json b/packages/aws-appsync/package.json index 9e02b453..c3730597 100644 --- a/packages/aws-appsync/package.json +++ b/packages/aws-appsync/package.json @@ -27,7 +27,7 @@ "apollo-link-http": "1.3.1", "apollo-link-retry": "2.2.5", "aws-appsync-auth-link": "^2.0.1", - "aws-appsync-subscription-link": "^2.0.1", + "@boxcc/aws-appsync-subscription-link": "^2.0.2", "aws-sdk": "2.518.0", "debug": "2.6.9", "graphql": "0.13.0", diff --git a/packages/aws-appsync/src/client.ts b/packages/aws-appsync/src/client.ts index 26c4b2d4..7f488353 100644 --- a/packages/aws-appsync/src/client.ts +++ b/packages/aws-appsync/src/client.ts @@ -19,7 +19,7 @@ import { import { createStore, StoreOptions, DEFAULT_KEY_PREFIX } from './store'; import { ApolloCache } from 'apollo-cache'; import { AuthOptions, AuthLink, AUTH_TYPE } from 'aws-appsync-auth-link'; -import { createSubscriptionHandshakeLink } from 'aws-appsync-subscription-link'; +import { createSubscriptionHandshakeLink } from '@boxcc/aws-appsync-subscription-link'; import { Credentials, CredentialsOptions } from 'aws-sdk/lib/credentials'; import { OperationDefinitionNode, DocumentNode } from 'graphql'; import { passthroughLink } from './utils'; diff --git a/packages/aws-appsync/src/deltaSync.ts b/packages/aws-appsync/src/deltaSync.ts index 9220e5aa..a42a209d 100644 --- a/packages/aws-appsync/src/deltaSync.ts +++ b/packages/aws-appsync/src/deltaSync.ts @@ -18,7 +18,7 @@ import { SKIP_RETRY_KEY } from "./link/retry-link"; import { DocumentNode, print, OperationDefinitionNode, FieldNode, ExecutionResult } from "graphql"; import { getOpTypeFromOperationName, CacheOperationTypes, getUpdater, QueryWithVariables } from "./helpers/offline"; import { boundSaveSnapshot, replaceUsingMap, EnqueuedMutationEffect, offlineEffectConfig as mutationsConfig } from "./link/offline-link"; -import { CONTROL_EVENTS_KEY } from "aws-appsync-subscription-link"; +import { CONTROL_EVENTS_KEY } from "@boxcc/aws-appsync-subscription-link"; const logger = rootLogger.extend('deltasync'); From 58f4971b4afd358ab36c8dbf9306c777ebe4c0b2 Mon Sep 17 00:00:00 2001 From: boxcc Date: Tue, 24 Mar 2020 18:05:51 +0800 Subject: [PATCH 07/25] Publish - @boxcc/aws-appsync@3.0.4 --- packages/aws-appsync/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/aws-appsync/package.json b/packages/aws-appsync/package.json index c3730597..cf019279 100644 --- a/packages/aws-appsync/package.json +++ b/packages/aws-appsync/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync", - "version": "3.0.3", + "version": "3.0.4", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript", @@ -19,6 +19,7 @@ "test-watch": "jest --watch" }, "dependencies": { + "@boxcc/aws-appsync-subscription-link": "^2.0.2", "@redux-offline/redux-offline": "2.5.2-native.0", "apollo-cache-inmemory": "1.3.12", "apollo-client": "2.4.6", @@ -27,7 +28,6 @@ "apollo-link-http": "1.3.1", "apollo-link-retry": "2.2.5", "aws-appsync-auth-link": "^2.0.1", - "@boxcc/aws-appsync-subscription-link": "^2.0.2", "aws-sdk": "2.518.0", "debug": "2.6.9", "graphql": "0.13.0", From 5f74cd1116a16927e931a97028f4e3b3d5b222aa Mon Sep 17 00:00:00 2001 From: boxcc Date: Fri, 10 Apr 2020 22:32:40 +0800 Subject: [PATCH 08/25] build: change dep --- packages/aws-appsync-react/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-appsync-react/package.json b/packages/aws-appsync-react/package.json index 8ab5c3f3..63dee412 100644 --- a/packages/aws-appsync-react/package.json +++ b/packages/aws-appsync-react/package.json @@ -21,7 +21,7 @@ }, "peerDependencies": { "@react-native-community/netinfo": "4.x.x", - "aws-appsync": "3.x.x", + "@boxcc/aws-appsync": "3.x.x", "react": "0.14.x || 15.* || ^15.0.0 || ^16.0.0", "react-apollo": "2.x" }, From 8f84d0eee4d63e57da840a25ac03558c57d4ffb3 Mon Sep 17 00:00:00 2001 From: boxcc Date: Fri, 10 Apr 2020 22:36:43 +0800 Subject: [PATCH 09/25] Publish - @boxcc/aws-appsync-react@3.0.4 --- packages/aws-appsync-react/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/aws-appsync-react/package.json b/packages/aws-appsync-react/package.json index 63dee412..3a61dbca 100644 --- a/packages/aws-appsync-react/package.json +++ b/packages/aws-appsync-react/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-react", - "version": "3.0.3", + "version": "3.0.4", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript - React and React Native components", @@ -20,8 +20,8 @@ "prop-types": "^15.6.0" }, "peerDependencies": { - "@react-native-community/netinfo": "4.x.x", "@boxcc/aws-appsync": "3.x.x", + "@react-native-community/netinfo": "4.x.x", "react": "0.14.x || 15.* || ^15.0.0 || ^16.0.0", "react-apollo": "2.x" }, From 1f034a7e87d2e8e6e94d4e5a759542ad318ed6e0 Mon Sep 17 00:00:00 2001 From: boxcc Date: Fri, 10 Apr 2020 22:42:08 +0800 Subject: [PATCH 10/25] fix: dep error --- packages/aws-appsync-react/src/offline-helpers.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-appsync-react/src/offline-helpers.tsx b/packages/aws-appsync-react/src/offline-helpers.tsx index 1b0c638e..f6de6390 100644 --- a/packages/aws-appsync-react/src/offline-helpers.tsx +++ b/packages/aws-appsync-react/src/offline-helpers.tsx @@ -5,7 +5,7 @@ import { resultKeyNameFromField } from 'apollo-utilities'; import { DocumentNode, OperationDefinitionNode, FieldNode } from 'graphql'; import { graphql, OptionProps, MutationOpts } from 'react-apollo'; -import { buildMutation, CacheOperationTypes, CacheUpdatesOptions } from 'aws-appsync'; +import { buildMutation, CacheOperationTypes, CacheUpdatesOptions } from '@boxcc/aws-appsync'; export const graphqlMutation = ( mutation: DocumentNode, From 26c15d9013783cf4b14aba0e280fe2e48e1cdc38 Mon Sep 17 00:00:00 2001 From: boxcc Date: Fri, 10 Apr 2020 22:47:57 +0800 Subject: [PATCH 11/25] fix: package name --- packages/aws-appsync-react/package.json | 2 +- packages/aws-appsync-react/src/rehydrated-rn.tsx | 2 +- packages/aws-appsync-react/src/rehydrated.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/aws-appsync-react/package.json b/packages/aws-appsync-react/package.json index 3a61dbca..eb2dc32b 100644 --- a/packages/aws-appsync-react/package.json +++ b/packages/aws-appsync-react/package.json @@ -29,7 +29,7 @@ "@react-native-community/netinfo": "^4.1.3", "@types/graphql": "0.12.4", "@types/react": "^16.0.25", - "aws-appsync": "^3.0.2", + "@boxcc/aws-appsync": "^3.0.2", "react": "^16.1.1", "react-apollo": "^2.1.9", "react-native": "^0.50.3", diff --git a/packages/aws-appsync-react/src/rehydrated-rn.tsx b/packages/aws-appsync-react/src/rehydrated-rn.tsx index 74e0ab38..0c35aff7 100644 --- a/packages/aws-appsync-react/src/rehydrated-rn.tsx +++ b/packages/aws-appsync-react/src/rehydrated-rn.tsx @@ -7,7 +7,7 @@ import { View, Text, StyleSheet, ViewPropTypes } from "react-native"; import NetInfo from '@react-native-community/netinfo'; import * as PropTypes from 'prop-types'; -import AWSAppSyncClient from 'aws-appsync'; +import AWSAppSyncClient from '@boxcc/aws-appsync'; import { RehydratedState } from './index' export interface RehydrateProps { diff --git a/packages/aws-appsync-react/src/rehydrated.tsx b/packages/aws-appsync-react/src/rehydrated.tsx index 37a6699d..95e92303 100644 --- a/packages/aws-appsync-react/src/rehydrated.tsx +++ b/packages/aws-appsync-react/src/rehydrated.tsx @@ -5,7 +5,7 @@ import * as React from 'react'; import * as PropTypes from 'prop-types'; -import AWSAppSyncClient from 'aws-appsync'; +import AWSAppSyncClient from '@boxcc/aws-appsync'; import { RehydratedState } from './index'; export interface RehydrateProps { From 547ca6479dab90647182b976f51d8669aee018f8 Mon Sep 17 00:00:00 2001 From: boxcc Date: Fri, 10 Apr 2020 22:49:48 +0800 Subject: [PATCH 12/25] Publish - @boxcc/aws-appsync-react@3.0.5 --- packages/aws-appsync-react/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/aws-appsync-react/package.json b/packages/aws-appsync-react/package.json index eb2dc32b..1869ab7f 100644 --- a/packages/aws-appsync-react/package.json +++ b/packages/aws-appsync-react/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-react", - "version": "3.0.4", + "version": "3.0.5", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript - React and React Native components", @@ -26,10 +26,10 @@ "react-apollo": "2.x" }, "devDependencies": { + "@boxcc/aws-appsync": "^3.0.2", "@react-native-community/netinfo": "^4.1.3", "@types/graphql": "0.12.4", "@types/react": "^16.0.25", - "@boxcc/aws-appsync": "^3.0.2", "react": "^16.1.1", "react-apollo": "^2.1.9", "react-native": "^0.50.3", From a131e982c1f5b3d4758fde5ee09ddc86b9597521 Mon Sep 17 00:00:00 2001 From: boxcc Date: Thu, 23 Apr 2020 19:42:58 +0800 Subject: [PATCH 13/25] Publish - @boxcc/aws-appsync-auth-link@2.0.3 - @boxcc/aws-appsync-react@3.0.6 - @boxcc/aws-appsync-subscription-link@2.0.3 - @boxcc/aws-appsync@3.0.5 --- packages/aws-appsync-auth-link/package.json | 2 +- packages/aws-appsync-react/package.json | 4 ++-- packages/aws-appsync-subscription-link/package.json | 4 ++-- packages/aws-appsync/package.json | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/aws-appsync-auth-link/package.json b/packages/aws-appsync-auth-link/package.json index 71761610..03975d2c 100644 --- a/packages/aws-appsync-auth-link/package.json +++ b/packages/aws-appsync-auth-link/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-auth-link", - "version": "2.0.2", + "version": "2.0.3", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync Auth Link for JavaScript", diff --git a/packages/aws-appsync-react/package.json b/packages/aws-appsync-react/package.json index 4f9cdb2d..aa98afff 100644 --- a/packages/aws-appsync-react/package.json +++ b/packages/aws-appsync-react/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-react", - "version": "3.0.5", + "version": "3.0.6", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript - React and React Native components", @@ -27,7 +27,7 @@ "react-apollo": "2.x" }, "devDependencies": { - "@boxcc/aws-appsync": "^3.0.2", + "@boxcc/aws-appsync": "^3.0.5", "@react-native-community/netinfo": "^4.1.3", "@types/react": "^16.0.25", "react": "^16.1.1", diff --git a/packages/aws-appsync-subscription-link/package.json b/packages/aws-appsync-subscription-link/package.json index 526b0b71..da7783e1 100644 --- a/packages/aws-appsync-subscription-link/package.json +++ b/packages/aws-appsync-subscription-link/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-subscription-link", - "version": "2.0.2", + "version": "2.0.3", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript", @@ -19,11 +19,11 @@ "test-watch": "jest --watch" }, "dependencies": { + "@boxcc/aws-appsync-auth-link": "^2.0.3", "apollo-link": "^1.2.3", "apollo-link-context": "^1.0.9", "apollo-link-http": "^1.3.1", "apollo-link-retry": "^2.2.5", - "@boxcc/aws-appsync-auth-link": "^2.0.2", "debug": "2.6.9", "url": "^0.11.0" }, diff --git a/packages/aws-appsync/package.json b/packages/aws-appsync/package.json index a72fb8ed..c49f70a4 100644 --- a/packages/aws-appsync/package.json +++ b/packages/aws-appsync/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync", - "version": "3.0.4", + "version": "3.0.5", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript", @@ -19,7 +19,8 @@ "test-watch": "jest --watch" }, "dependencies": { - "@boxcc/aws-appsync-subscription-link": "^2.0.2", + "@boxcc/aws-appsync-auth-link": "^2.0.3", + "@boxcc/aws-appsync-subscription-link": "^2.0.3", "@redux-offline/redux-offline": "2.5.2", "apollo-cache-inmemory": "1.3.12", "apollo-client": "2.4.6", @@ -27,7 +28,6 @@ "apollo-link-context": "1.0.9", "apollo-link-http": "1.3.1", "apollo-link-retry": "2.2.5", - "@boxcc/aws-appsync-auth-link": "^2.0.2", "aws-sdk": "2.518.0", "debug": "2.6.9", "graphql": "0.13.0", From e767080ed87d36ae3ab5276cc20218693bc6ca3b Mon Sep 17 00:00:00 2001 From: boxcc Date: Thu, 23 Apr 2020 19:59:21 +0800 Subject: [PATCH 14/25] chore: update changelog --- packages/aws-appsync-auth-link/CHANGELOG.md | 2 +- packages/aws-appsync-react/CHANGELOG.md | 2 +- packages/aws-appsync-subscription-link/CHANGELOG.md | 2 +- packages/aws-appsync/CHANGELOG.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/aws-appsync-auth-link/CHANGELOG.md b/packages/aws-appsync-auth-link/CHANGELOG.md index a7047c25..3e122f36 100644 --- a/packages/aws-appsync-auth-link/CHANGELOG.md +++ b/packages/aws-appsync-auth-link/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -All notable changes to this project will be documented in this file. +All notable changes to this project will be documented in this file.1 See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/packages/aws-appsync-react/CHANGELOG.md b/packages/aws-appsync-react/CHANGELOG.md index 1ac7f824..a43fa109 100644 --- a/packages/aws-appsync-react/CHANGELOG.md +++ b/packages/aws-appsync-react/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -All notable changes to this project will be documented in this file. +All notable changes to this project will be documented in this file.1 See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/packages/aws-appsync-subscription-link/CHANGELOG.md b/packages/aws-appsync-subscription-link/CHANGELOG.md index 17b3e5b7..93130b28 100644 --- a/packages/aws-appsync-subscription-link/CHANGELOG.md +++ b/packages/aws-appsync-subscription-link/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -All notable changes to this project will be documented in this file. +All notable changes to this project will be documented in this file.1 See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. diff --git a/packages/aws-appsync/CHANGELOG.md b/packages/aws-appsync/CHANGELOG.md index e3ae2a8f..ecbe0391 100644 --- a/packages/aws-appsync/CHANGELOG.md +++ b/packages/aws-appsync/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -All notable changes to this project will be documented in this file. +All notable changes to this project will be documented in this file.1 See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. From 5d4d4177db2056bcfcd36832674ee29ca666bf12 Mon Sep 17 00:00:00 2001 From: boxcc Date: Thu, 23 Apr 2020 20:00:21 +0800 Subject: [PATCH 15/25] Publish - @boxcc/aws-appsync-auth-link@2.0.4 - @boxcc/aws-appsync-react@3.0.7 - @boxcc/aws-appsync-subscription-link@2.0.4 - @boxcc/aws-appsync@3.0.6 --- packages/aws-appsync-auth-link/package.json | 2 +- packages/aws-appsync-react/package.json | 4 ++-- packages/aws-appsync-subscription-link/package.json | 4 ++-- packages/aws-appsync/package.json | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/aws-appsync-auth-link/package.json b/packages/aws-appsync-auth-link/package.json index 03975d2c..a258f63b 100644 --- a/packages/aws-appsync-auth-link/package.json +++ b/packages/aws-appsync-auth-link/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-auth-link", - "version": "2.0.3", + "version": "2.0.4", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync Auth Link for JavaScript", diff --git a/packages/aws-appsync-react/package.json b/packages/aws-appsync-react/package.json index aa98afff..256166af 100644 --- a/packages/aws-appsync-react/package.json +++ b/packages/aws-appsync-react/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-react", - "version": "3.0.6", + "version": "3.0.7", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript - React and React Native components", @@ -27,7 +27,7 @@ "react-apollo": "2.x" }, "devDependencies": { - "@boxcc/aws-appsync": "^3.0.5", + "@boxcc/aws-appsync": "^3.0.6", "@react-native-community/netinfo": "^4.1.3", "@types/react": "^16.0.25", "react": "^16.1.1", diff --git a/packages/aws-appsync-subscription-link/package.json b/packages/aws-appsync-subscription-link/package.json index da7783e1..6d2787ac 100644 --- a/packages/aws-appsync-subscription-link/package.json +++ b/packages/aws-appsync-subscription-link/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-subscription-link", - "version": "2.0.3", + "version": "2.0.4", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript", @@ -19,7 +19,7 @@ "test-watch": "jest --watch" }, "dependencies": { - "@boxcc/aws-appsync-auth-link": "^2.0.3", + "@boxcc/aws-appsync-auth-link": "^2.0.4", "apollo-link": "^1.2.3", "apollo-link-context": "^1.0.9", "apollo-link-http": "^1.3.1", diff --git a/packages/aws-appsync/package.json b/packages/aws-appsync/package.json index c49f70a4..d849a3c7 100644 --- a/packages/aws-appsync/package.json +++ b/packages/aws-appsync/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync", - "version": "3.0.5", + "version": "3.0.6", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript", @@ -19,8 +19,8 @@ "test-watch": "jest --watch" }, "dependencies": { - "@boxcc/aws-appsync-auth-link": "^2.0.3", - "@boxcc/aws-appsync-subscription-link": "^2.0.3", + "@boxcc/aws-appsync-auth-link": "^2.0.4", + "@boxcc/aws-appsync-subscription-link": "^2.0.4", "@redux-offline/redux-offline": "2.5.2", "apollo-cache-inmemory": "1.3.12", "apollo-client": "2.4.6", From a44fca67b44be47fcd46a0dcc7a5b66ffb04a050 Mon Sep 17 00:00:00 2001 From: boxcc Date: Fri, 24 Apr 2020 09:28:07 +0800 Subject: [PATCH 16/25] chore: update package version --- packages/aws-appsync/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-appsync/package.json b/packages/aws-appsync/package.json index d849a3c7..09967838 100644 --- a/packages/aws-appsync/package.json +++ b/packages/aws-appsync/package.json @@ -21,7 +21,7 @@ "dependencies": { "@boxcc/aws-appsync-auth-link": "^2.0.4", "@boxcc/aws-appsync-subscription-link": "^2.0.4", - "@redux-offline/redux-offline": "2.5.2", + "@redux-offline/redux-offline": "2.5.2-native.3", "apollo-cache-inmemory": "1.3.12", "apollo-client": "2.4.6", "apollo-link": "1.2.3", From c74e39632d298961f48473e8202f3ad394293d73 Mon Sep 17 00:00:00 2001 From: boxcc Date: Fri, 24 Apr 2020 09:29:16 +0800 Subject: [PATCH 17/25] Publish - @boxcc/aws-appsync-react@3.0.8 - @boxcc/aws-appsync@3.0.7 --- packages/aws-appsync-react/package.json | 4 ++-- packages/aws-appsync/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/aws-appsync-react/package.json b/packages/aws-appsync-react/package.json index 256166af..bf4a8c72 100644 --- a/packages/aws-appsync-react/package.json +++ b/packages/aws-appsync-react/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-react", - "version": "3.0.7", + "version": "3.0.8", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript - React and React Native components", @@ -27,7 +27,7 @@ "react-apollo": "2.x" }, "devDependencies": { - "@boxcc/aws-appsync": "^3.0.6", + "@boxcc/aws-appsync": "^3.0.7", "@react-native-community/netinfo": "^4.1.3", "@types/react": "^16.0.25", "react": "^16.1.1", diff --git a/packages/aws-appsync/package.json b/packages/aws-appsync/package.json index 09967838..43279935 100644 --- a/packages/aws-appsync/package.json +++ b/packages/aws-appsync/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync", - "version": "3.0.6", + "version": "3.0.7", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript", From 4345a1effbc6ac8b080192c883f963dd4b3065da Mon Sep 17 00:00:00 2001 From: boxcc Date: Fri, 31 Jul 2020 13:49:02 +0800 Subject: [PATCH 18/25] feat: Updated link packages to use Apollo 3 #561 --- packages/aws-appsync-auth-link/package.json | 4 ++-- packages/aws-appsync-auth-link/src/auth-link.ts | 4 +--- .../link/realtime-subscription-handshake-link-test.ts | 2 +- packages/aws-appsync-subscription-link/package.json | 11 +++++------ packages/aws-appsync-subscription-link/src/index.ts | 3 +-- .../src/non-terminating-http-link.ts | 4 ++-- .../src/non-terminating-link.ts | 4 ++-- .../src/realtime-subscription-handshake-link.ts | 2 +- .../src/subscription-handshake-link.ts | 3 +-- 9 files changed, 16 insertions(+), 21 deletions(-) diff --git a/packages/aws-appsync-auth-link/package.json b/packages/aws-appsync-auth-link/package.json index a258f63b..7287daa2 100644 --- a/packages/aws-appsync-auth-link/package.json +++ b/packages/aws-appsync-auth-link/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-auth-link", - "version": "2.0.4", + "version": "3.0.0", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync Auth Link for JavaScript", @@ -19,7 +19,7 @@ "test-watch": "jest --watch" }, "dependencies": { - "apollo-link": "^1.2.3", + "@apollo/client": "^3.1.1", "aws-sdk": "^2.518.0", "debug": "2.6.9" } diff --git a/packages/aws-appsync-auth-link/src/auth-link.ts b/packages/aws-appsync-auth-link/src/auth-link.ts index 326239dd..d1a70b07 100644 --- a/packages/aws-appsync-auth-link/src/auth-link.ts +++ b/packages/aws-appsync-auth-link/src/auth-link.ts @@ -2,9 +2,7 @@ * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ -import { Observable, Operation, NextLink } from 'apollo-link'; -import { ApolloLink } from 'apollo-link'; -import { ExecutionResult } from 'graphql'; +import { ApolloLink, Observable } from '@apollo/client'; import { print } from 'graphql/language/printer'; import { Signer } from './signer'; diff --git a/packages/aws-appsync-subscription-link/__tests__/link/realtime-subscription-handshake-link-test.ts b/packages/aws-appsync-subscription-link/__tests__/link/realtime-subscription-handshake-link-test.ts index 6267d7c4..32a6a334 100644 --- a/packages/aws-appsync-subscription-link/__tests__/link/realtime-subscription-handshake-link-test.ts +++ b/packages/aws-appsync-subscription-link/__tests__/link/realtime-subscription-handshake-link-test.ts @@ -1,5 +1,5 @@ import { AUTH_TYPE } from "@boxcc/aws-appsync-auth-link"; -import { execute } from "apollo-link"; +import { execute } from "@apollo/client"; import gql from 'graphql-tag'; import { AppSyncRealTimeSubscriptionHandshakeLink } from '../../src/realtime-subscription-handshake-link'; diff --git a/packages/aws-appsync-subscription-link/package.json b/packages/aws-appsync-subscription-link/package.json index 7d7d8b17..e3054e74 100644 --- a/packages/aws-appsync-subscription-link/package.json +++ b/packages/aws-appsync-subscription-link/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-subscription-link", - "version": "2.2.0", + "version": "3.0.0", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript", @@ -20,10 +20,9 @@ }, "dependencies": { "@boxcc/aws-appsync-auth-link": "^2.0.4", - "apollo-link": "^1.2.3", - "apollo-link-context": "^1.0.9", - "apollo-link-http": "^1.3.1", - "apollo-link-retry": "^2.2.5", + "@apollo/client": "^3.1.1", + "@apollo/link-context": "^2.0.0-beta.3", + "@apollo/link-retry": "^2.0.0-beta.3", "debug": "2.6.9", "url": "^0.11.0" }, @@ -31,6 +30,6 @@ "@redux-offline/redux-offline": "2.5.2-native.0" }, "peerDependencies": { - "apollo-client": "2.x" + "@apollo/client": "3.x" } } diff --git a/packages/aws-appsync-subscription-link/src/index.ts b/packages/aws-appsync-subscription-link/src/index.ts index 7790ac1c..fb5cb922 100644 --- a/packages/aws-appsync-subscription-link/src/index.ts +++ b/packages/aws-appsync-subscription-link/src/index.ts @@ -2,8 +2,7 @@ import { SubscriptionHandshakeLink, CONTROL_EVENTS_KEY } from "./subscription-handshake-link"; -import { ApolloLink, Observable } from "apollo-link"; -import { createHttpLink } from "apollo-link-http"; +import { ApolloLink, Observable, createHttpLink } from "@apollo/client"; import { getMainDefinition } from "apollo-utilities"; import { NonTerminatingLink } from "./non-terminating-link"; import { OperationDefinitionNode } from "graphql"; diff --git a/packages/aws-appsync-subscription-link/src/non-terminating-http-link.ts b/packages/aws-appsync-subscription-link/src/non-terminating-http-link.ts index 80b6ddec..3fbc55e2 100644 --- a/packages/aws-appsync-subscription-link/src/non-terminating-http-link.ts +++ b/packages/aws-appsync-subscription-link/src/non-terminating-http-link.ts @@ -2,11 +2,11 @@ * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ -import { createHttpLink, FetchOptions } from 'apollo-link-http'; +import { createHttpLink, HttpOptions } from '@apollo/client'; import { NonTerminatingLink } from './non-terminating-link'; export class NonTerminatingHttpLink extends NonTerminatingLink { - constructor(contextKey: string, options: FetchOptions) { + constructor(contextKey: string, options: HttpOptions) { const link = createHttpLink(options); super(contextKey, { link }); diff --git a/packages/aws-appsync-subscription-link/src/non-terminating-link.ts b/packages/aws-appsync-subscription-link/src/non-terminating-link.ts index da9f21ff..caf9fbcc 100644 --- a/packages/aws-appsync-subscription-link/src/non-terminating-link.ts +++ b/packages/aws-appsync-subscription-link/src/non-terminating-link.ts @@ -2,8 +2,8 @@ * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ -import { ApolloLink, NextLink } from 'apollo-link'; -import { setContext } from 'apollo-link-context'; +import { ApolloLink, NextLink } from '@apollo/client'; +import { setContext } from '@apollo/link-context'; export class NonTerminatingLink extends ApolloLink { diff --git a/packages/aws-appsync-subscription-link/src/realtime-subscription-handshake-link.ts b/packages/aws-appsync-subscription-link/src/realtime-subscription-handshake-link.ts index a627e1f2..3584e8e0 100644 --- a/packages/aws-appsync-subscription-link/src/realtime-subscription-handshake-link.ts +++ b/packages/aws-appsync-subscription-link/src/realtime-subscription-handshake-link.ts @@ -2,7 +2,7 @@ * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ -import { ApolloLink, Observable, Operation, FetchResult } from "apollo-link"; +import { ApolloLink, Observable, Operation, FetchResult } from "@apollo/client"; import { rootLogger } from "./utils"; diff --git a/packages/aws-appsync-subscription-link/src/subscription-handshake-link.ts b/packages/aws-appsync-subscription-link/src/subscription-handshake-link.ts index 64d52873..8e57fdc2 100644 --- a/packages/aws-appsync-subscription-link/src/subscription-handshake-link.ts +++ b/packages/aws-appsync-subscription-link/src/subscription-handshake-link.ts @@ -2,11 +2,10 @@ * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ -import { ApolloLink, Observable, Operation, FetchResult } from "apollo-link"; +import { ApolloLink, Observable, Operation, FetchResult, ApolloError } from "@apollo/client"; import { rootLogger } from "./utils"; import * as Paho from './vendor/paho-mqtt'; -import { ApolloError } from "apollo-client"; import { FieldNode } from "graphql"; import { getMainDefinition } from "apollo-utilities"; From 2ddfcb1a8735c91f38b790fe70fccaf777fff55d Mon Sep 17 00:00:00 2001 From: boxcc Date: Fri, 31 Jul 2020 14:01:46 +0800 Subject: [PATCH 19/25] fix: some typescript error --- packages/aws-appsync-subscription-link/src/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/aws-appsync-subscription-link/src/index.ts b/packages/aws-appsync-subscription-link/src/index.ts index fb5cb922..00e142a7 100644 --- a/packages/aws-appsync-subscription-link/src/index.ts +++ b/packages/aws-appsync-subscription-link/src/index.ts @@ -2,7 +2,7 @@ import { SubscriptionHandshakeLink, CONTROL_EVENTS_KEY } from "./subscription-handshake-link"; -import { ApolloLink, Observable, createHttpLink } from "@apollo/client"; +import { ApolloLink, Observable, createHttpLink } from "@apollo/client"; import { getMainDefinition } from "apollo-utilities"; import { NonTerminatingLink } from "./non-terminating-link"; import { OperationDefinitionNode } from "graphql"; @@ -30,7 +30,7 @@ function createSubscriptionHandshakeLink( resultsFetcherLink = theResultsFetcherLink || createHttpLink({ uri: infoOrUrl }); subscriptionLinks = ApolloLink.from([ - new NonTerminatingLink("controlMessages", { + (new NonTerminatingLink("controlMessages", { link: new ApolloLink( (operation, _forward) => new Observable(observer => { @@ -47,14 +47,14 @@ function createSubscriptionHandshakeLink( return () => {}; }) ) - }), - new NonTerminatingLink("subsInfo", { link: resultsFetcherLink }), - new SubscriptionHandshakeLink("subsInfo") + }) as unknown) as ApolloLink, + (new NonTerminatingLink("subsInfo", { link: resultsFetcherLink }) as unknown) as ApolloLink, + (new SubscriptionHandshakeLink("subsInfo") as unknown) as ApolloLink ]); } else { const { url } = infoOrUrl; resultsFetcherLink = theResultsFetcherLink || createHttpLink({ uri: url }); - subscriptionLinks = new AppSyncRealTimeSubscriptionHandshakeLink(infoOrUrl); + subscriptionLinks = new AppSyncRealTimeSubscriptionHandshakeLink(infoOrUrl) as unknown as ApolloLink; } return ApolloLink.split( From 4307763211df51882f599527e41e9aa5e07ec8c3 Mon Sep 17 00:00:00 2001 From: boxcc Date: Fri, 31 Jul 2020 14:04:17 +0800 Subject: [PATCH 20/25] Publish - @boxcc/aws-appsync-auth-link@3.0.1 - @boxcc/aws-appsync-react@4.0.1 - @boxcc/aws-appsync-subscription-link@3.0.1 - @boxcc/aws-appsync@4.0.1 --- packages/aws-appsync-auth-link/package.json | 2 +- packages/aws-appsync-react/package.json | 4 ++-- packages/aws-appsync-subscription-link/package.json | 4 ++-- packages/aws-appsync/package.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/aws-appsync-auth-link/package.json b/packages/aws-appsync-auth-link/package.json index 7287daa2..e08d64fd 100644 --- a/packages/aws-appsync-auth-link/package.json +++ b/packages/aws-appsync-auth-link/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-auth-link", - "version": "3.0.0", + "version": "3.0.1", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync Auth Link for JavaScript", diff --git a/packages/aws-appsync-react/package.json b/packages/aws-appsync-react/package.json index 06ad38e3..7a42dbd6 100644 --- a/packages/aws-appsync-react/package.json +++ b/packages/aws-appsync-react/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-react", - "version": "4.0.0", + "version": "4.0.1", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript - React and React Native components", @@ -27,7 +27,7 @@ "react-apollo": "2.x" }, "devDependencies": { - "@boxcc/aws-appsync": "^4.0.0", + "@boxcc/aws-appsync": "^4.0.1", "@react-native-community/netinfo": "^5.0.0", "@types/react": "^16.0.25", "react": "^16.1.1", diff --git a/packages/aws-appsync-subscription-link/package.json b/packages/aws-appsync-subscription-link/package.json index e3054e74..ff1fc6a7 100644 --- a/packages/aws-appsync-subscription-link/package.json +++ b/packages/aws-appsync-subscription-link/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-subscription-link", - "version": "3.0.0", + "version": "3.0.1", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript", @@ -19,10 +19,10 @@ "test-watch": "jest --watch" }, "dependencies": { - "@boxcc/aws-appsync-auth-link": "^2.0.4", "@apollo/client": "^3.1.1", "@apollo/link-context": "^2.0.0-beta.3", "@apollo/link-retry": "^2.0.0-beta.3", + "@boxcc/aws-appsync-auth-link": "^2.0.4", "debug": "2.6.9", "url": "^0.11.0" }, diff --git a/packages/aws-appsync/package.json b/packages/aws-appsync/package.json index 2e404b97..3cba21cf 100644 --- a/packages/aws-appsync/package.json +++ b/packages/aws-appsync/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync", - "version": "4.0.0", + "version": "4.0.1", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript", From c01f92542b70e4499bca9d8183350e33d72b78a9 Mon Sep 17 00:00:00 2001 From: boxcc Date: Fri, 31 Jul 2020 14:05:28 +0800 Subject: [PATCH 21/25] build: add gitHead --- packages/aws-appsync-auth-link/package.json | 3 ++- packages/aws-appsync-react/package.json | 3 ++- packages/aws-appsync-subscription-link/package.json | 3 ++- packages/aws-appsync/package.json | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/aws-appsync-auth-link/package.json b/packages/aws-appsync-auth-link/package.json index e08d64fd..38b73dec 100644 --- a/packages/aws-appsync-auth-link/package.json +++ b/packages/aws-appsync-auth-link/package.json @@ -22,5 +22,6 @@ "@apollo/client": "^3.1.1", "aws-sdk": "^2.518.0", "debug": "2.6.9" - } + }, + "gitHead": "4307763211df51882f599527e41e9aa5e07ec8c3" } diff --git a/packages/aws-appsync-react/package.json b/packages/aws-appsync-react/package.json index 7a42dbd6..c2e39ab7 100644 --- a/packages/aws-appsync-react/package.json +++ b/packages/aws-appsync-react/package.json @@ -37,5 +37,6 @@ }, "react-native": { "./lib/rehydrated": "./lib/rehydrated-rn" - } + }, + "gitHead": "4307763211df51882f599527e41e9aa5e07ec8c3" } diff --git a/packages/aws-appsync-subscription-link/package.json b/packages/aws-appsync-subscription-link/package.json index ff1fc6a7..f55faa71 100644 --- a/packages/aws-appsync-subscription-link/package.json +++ b/packages/aws-appsync-subscription-link/package.json @@ -31,5 +31,6 @@ }, "peerDependencies": { "@apollo/client": "3.x" - } + }, + "gitHead": "4307763211df51882f599527e41e9aa5e07ec8c3" } diff --git a/packages/aws-appsync/package.json b/packages/aws-appsync/package.json index 3cba21cf..447ff632 100644 --- a/packages/aws-appsync/package.json +++ b/packages/aws-appsync/package.json @@ -40,5 +40,6 @@ "peerDependencies": { "@react-native-community/async-storage": "^1.11.0", "@react-native-community/netinfo": "^5.0.0" - } + }, + "gitHead": "4307763211df51882f599527e41e9aa5e07ec8c3" } From 7d635c5153b8a5ab4c034d8ed762c3cc1ef92ea2 Mon Sep 17 00:00:00 2001 From: boxcc Date: Fri, 31 Jul 2020 14:07:32 +0800 Subject: [PATCH 22/25] Publish - @boxcc/aws-appsync-auth-link@3.0.2-alpha.0 - @boxcc/aws-appsync-react@4.0.2 - @boxcc/aws-appsync-subscription-link@3.0.2 - @boxcc/aws-appsync@4.0.2 --- packages/aws-appsync-auth-link/package.json | 2 +- packages/aws-appsync-react/package.json | 4 ++-- packages/aws-appsync-subscription-link/package.json | 2 +- packages/aws-appsync/package.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/aws-appsync-auth-link/package.json b/packages/aws-appsync-auth-link/package.json index 38b73dec..2a2fc97a 100644 --- a/packages/aws-appsync-auth-link/package.json +++ b/packages/aws-appsync-auth-link/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-auth-link", - "version": "3.0.1", + "version": "3.0.2-alpha.0", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync Auth Link for JavaScript", diff --git a/packages/aws-appsync-react/package.json b/packages/aws-appsync-react/package.json index c2e39ab7..2722313d 100644 --- a/packages/aws-appsync-react/package.json +++ b/packages/aws-appsync-react/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-react", - "version": "4.0.1", + "version": "4.0.2", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript - React and React Native components", @@ -27,7 +27,7 @@ "react-apollo": "2.x" }, "devDependencies": { - "@boxcc/aws-appsync": "^4.0.1", + "@boxcc/aws-appsync": "^4.0.2", "@react-native-community/netinfo": "^5.0.0", "@types/react": "^16.0.25", "react": "^16.1.1", diff --git a/packages/aws-appsync-subscription-link/package.json b/packages/aws-appsync-subscription-link/package.json index f55faa71..46942e91 100644 --- a/packages/aws-appsync-subscription-link/package.json +++ b/packages/aws-appsync-subscription-link/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-subscription-link", - "version": "3.0.1", + "version": "3.0.2", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript", diff --git a/packages/aws-appsync/package.json b/packages/aws-appsync/package.json index 447ff632..fb0c9d6f 100644 --- a/packages/aws-appsync/package.json +++ b/packages/aws-appsync/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync", - "version": "4.0.1", + "version": "4.0.2", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync SDK for JavaScript", From 0d8505728d2ccf0d96221c926d4751ccb5607f0d Mon Sep 17 00:00:00 2001 From: boxcc Date: Fri, 31 Jul 2020 14:13:50 +0800 Subject: [PATCH 23/25] chore: remove space --- packages/aws-appsync-auth-link/src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/aws-appsync-auth-link/src/index.ts b/packages/aws-appsync-auth-link/src/index.ts index 1eb7624c..71cf2b98 100644 --- a/packages/aws-appsync-auth-link/src/index.ts +++ b/packages/aws-appsync-auth-link/src/index.ts @@ -1,6 +1,5 @@ import { AuthLink, AuthOptions, AUTH_TYPE, USER_AGENT_HEADER, USER_AGENT } from './auth-link'; - export const createAuthLink = ({ url, region, auth }: { url: string, region: string, auth: AuthOptions }) => new AuthLink({ url, region, auth }); export { AuthLink, AuthOptions, AUTH_TYPE, USER_AGENT_HEADER, USER_AGENT }; From 2721094894ee0109d6bd5a2d692880cd73204d68 Mon Sep 17 00:00:00 2001 From: boxcc Date: Fri, 31 Jul 2020 14:14:20 +0800 Subject: [PATCH 24/25] Publish - @boxcc/aws-appsync-auth-link@3.0.2 --- packages/aws-appsync-auth-link/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-appsync-auth-link/package.json b/packages/aws-appsync-auth-link/package.json index 2a2fc97a..f9e7f58e 100644 --- a/packages/aws-appsync-auth-link/package.json +++ b/packages/aws-appsync-auth-link/package.json @@ -1,6 +1,6 @@ { "name": "@boxcc/aws-appsync-auth-link", - "version": "3.0.2-alpha.0", + "version": "3.0.2", "main": "lib/index.js", "license": "Apache-2.0", "description": "AWS Mobile AppSync Auth Link for JavaScript", From 818346de33e15b634b96969449223fde9dff8950 Mon Sep 17 00:00:00 2001 From: boxcc Date: Fri, 31 Jul 2020 14:18:56 +0800 Subject: [PATCH 25/25] chore: update package version --- packages/aws-appsync-subscription-link/package.json | 2 +- packages/aws-appsync/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/aws-appsync-subscription-link/package.json b/packages/aws-appsync-subscription-link/package.json index 46942e91..214dc183 100644 --- a/packages/aws-appsync-subscription-link/package.json +++ b/packages/aws-appsync-subscription-link/package.json @@ -22,7 +22,7 @@ "@apollo/client": "^3.1.1", "@apollo/link-context": "^2.0.0-beta.3", "@apollo/link-retry": "^2.0.0-beta.3", - "@boxcc/aws-appsync-auth-link": "^2.0.4", + "@boxcc/aws-appsync-auth-link": "^3.0.2", "debug": "2.6.9", "url": "^0.11.0" }, diff --git a/packages/aws-appsync/package.json b/packages/aws-appsync/package.json index fb0c9d6f..bfefaab4 100644 --- a/packages/aws-appsync/package.json +++ b/packages/aws-appsync/package.json @@ -19,8 +19,8 @@ "test-watch": "jest --watch" }, "dependencies": { - "@boxcc/aws-appsync-auth-link": "^2.0.4", - "@boxcc/aws-appsync-subscription-link": "^2.0.4", + "@boxcc/aws-appsync-auth-link": "^3.0.2", + "@boxcc/aws-appsync-subscription-link": "^3.0.2", "@redux-offline/redux-offline": "2.5.2-native.3", "apollo-cache-inmemory": "1.3.12", "apollo-client": "2.4.6",