aws-appsync-subscription-link 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ <a name="3.1.1"></a>
7
+ ## [3.1.1](https://github.com/awslabs/aws-mobile-appsync-sdk-js/compare/aws-appsync-subscription-link@3.1.0...aws-appsync-subscription-link@3.1.1) (2022-10-07)
8
+
9
+
10
+
11
+
12
+ **Note:** Version bump only for package aws-appsync-subscription-link
13
+
6
14
  <a name="3.1.0"></a>
7
15
  # [3.1.0](https://github.com/awslabs/aws-mobile-appsync-sdk-js/compare/aws-appsync-subscription-link@3.0.11...aws-appsync-subscription-link@3.1.0) (2022-06-24)
8
16
 
@@ -3,6 +3,7 @@
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
  import { ApolloLink, Observable, Operation, FetchResult } from "@apollo/client/core";
6
+ import * as ZenObservable from 'zen-observable-ts';
6
7
  declare type MqttConnectionInfo = {
7
8
  client: string;
8
9
  url: string;
@@ -14,7 +15,7 @@ export declare class SubscriptionHandshakeLink extends ApolloLink {
14
15
  private topicObservers;
15
16
  private clientObservers;
16
17
  constructor(subsInfoContextKey: any);
17
- request(operation: Operation): Observable<unknown>;
18
+ request(operation: Operation): Observable<FetchResult> | null;
18
19
  connectNewClients(connectionInfo: MqttConnectionInfo[], observer: ZenObservable.Observer<FetchResult>, operation: Operation): Promise<any[]>;
19
20
  connectNewClient(connectionInfo: MqttConnectionInfo, observer: ZenObservable.Observer<FetchResult>, selectionNames: string[]): Promise<any>;
20
21
  subscribeToTopics<T>(client: any, topics: string[], observer: ZenObservable.Observer<T>): Promise<unknown[]>;
@@ -1,4 +1,5 @@
1
1
  import { AuthOptions } from "aws-appsync-auth-link";
2
+ import * as ZenObservable from 'zen-observable-ts';
2
3
  export declare enum SUBSCRIPTION_STATUS {
3
4
  PENDING = 0,
4
5
  CONNECTED = 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aws-appsync-subscription-link",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "main": "lib/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "description": "AWS Mobile AppSync SDK for JavaScript",
@@ -21,7 +21,8 @@
21
21
  "dependencies": {
22
22
  "aws-appsync-auth-link": "^3.0.7",
23
23
  "debug": "2.6.9",
24
- "url": "^0.11.0"
24
+ "url": "^0.11.0",
25
+ "zen-observable-ts": "^1.2.5"
25
26
  },
26
27
  "devDependencies": {
27
28
  "@apollo/client": "^3.2.0",