graphql-request-appsync-iam 3.0.0 → 5.0.0

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
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [5.0.0](https://github.com/stevecaldwell77/graphql-request-appsync-iam-js/compare/v4.0.0...v5.0.0) (2026-02-06)
6
+
7
+ ### BREAKING CHANGES
8
+
9
+ - Upgraded @scaldwell77/aws-signed-fetch to v5, which updates all @smithy/ peer dependencies to their latest major versions (~4.12.0).
10
+
11
+ ## [4.0.0](https://github.com/stevecaldwell77/graphql-request-appsync-iam-js/compare/v3.0.0...v4.0.0) (2025-04-28)
12
+
13
+ ### BREAKING CHANGES
14
+
15
+ - Upgraded @scaldwell77/aws-signed-fetch to v4, which makes all AWS dependencies into peer dependencies.
16
+
5
17
  ## [3.0.0](https://github.com/stevecaldwell77/graphql-request-appsync-iam-js/compare/v2.2.0...v3.0.0) (2024-03-27)
6
18
 
7
19
  ### BREAKING CHANGES
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "graphql-request-appsync-iam",
3
3
  "description": "Extension of graphql-request that can be used to make calls to an AppSync API using IAM authorization.",
4
- "version": "3.0.0",
4
+ "version": "5.0.0",
5
5
  "ava": {
6
6
  "typescript": {
7
7
  "rewritePaths": {
@@ -11,13 +11,19 @@
11
11
  }
12
12
  },
13
13
  "dependencies": {
14
- "@scaldwell77/aws-signed-fetch": "^3.0.1",
14
+ "@scaldwell77/aws-signed-fetch": "^5.0.0",
15
15
  "graphql-request": "^6.1.0",
16
16
  "lodash-es": "^4.17.21"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@ava/typescript": "^4.1.0",
20
- "@aws-sdk/types": "^3.535.0",
20
+ "@aws-crypto/sha256-js": "^5.2.0",
21
+ "@aws-sdk/credential-provider-node": "^3.972.2",
22
+ "@aws-sdk/types": "^3.973.0",
23
+ "@smithy/config-resolver": "^4.4.6",
24
+ "@smithy/node-config-provider": "^4.3.8",
25
+ "@smithy/protocol-http": "^5.3.8",
26
+ "@smithy/signature-v4": "^5.3.8",
21
27
  "@types/lodash-es": "^4.17.12",
22
28
  "@types/node": "^20.11.30",
23
29
  "ava": "^6.1.2",
package/dist/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import type { AwsCredentialIdentity } from '@aws-sdk/types';
2
- import { GraphQLClient } from 'graphql-request';
3
- type Options = Omit<RequestInit & {
4
- awsCredentials?: AwsCredentialIdentity;
5
- awsRegion?: string;
6
- }, 'fetch'>;
7
- export declare const getGraphQLClient: (url: string, options?: Options) => GraphQLClient;
8
- export {};
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,KAAK,OAAO,GAAG,IAAI,CACf,WAAW,GAAG;IACV,cAAc,CAAC,EAAE,qBAAqB,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,EACD,OAAO,CACV,CAAC;AASF,eAAO,MAAM,gBAAgB,QACpB,MAAM,YACD,OAAO,KAClB,aAeF,CAAC"}
package/dist/index.js DELETED
@@ -1,26 +0,0 @@
1
- import { createSignedFetch } from '@scaldwell77/aws-signed-fetch';
2
- import { GraphQLClient } from 'graphql-request';
3
- import { omit } from 'lodash-es';
4
- // graphql-request is stricter about typing than fetch
5
- const transformMethod = (method) => {
6
- if (method === 'GET' || method === 'get')
7
- return 'GET';
8
- if (method === 'POST' || method === 'post')
9
- return 'POST';
10
- return undefined;
11
- };
12
- export const getGraphQLClient = (url, options) => {
13
- const clientOptions = omit(options, ['awsCredentials', 'awsRegion']);
14
- const fetch = createSignedFetch({
15
- service: 'appsync',
16
- awsCredentials: options?.awsCredentials,
17
- awsRegion: options?.awsRegion,
18
- });
19
- const client = new GraphQLClient(url, {
20
- ...clientOptions,
21
- method: transformMethod(clientOptions.method),
22
- fetch,
23
- });
24
- return client;
25
- };
26
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAUjC,sDAAsD;AACtD,MAAM,eAAe,GAAG,CAAC,MAAe,EAA8B,EAAE;IACpE,IAAI,MAAM,KAAK,KAAK,IAAI,MAAM,KAAK,KAAK;QAAE,OAAO,KAAK,CAAC;IACvD,IAAI,MAAM,KAAK,MAAM,IAAI,MAAM,KAAK,MAAM;QAAE,OAAO,MAAM,CAAC;IAC1D,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,GAAW,EACX,OAAiB,EACJ,EAAE;IACf,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC,CAAC;IACrE,MAAM,KAAK,GAAG,iBAAiB,CAAC;QAC5B,OAAO,EAAE,SAAS;QAClB,cAAc,EAAE,OAAO,EAAE,cAAc;QACvC,SAAS,EAAE,OAAO,EAAE,SAAS;KAChC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,GAAG,EAAE;QAClC,GAAG,aAAa;QAChB,MAAM,EAAE,eAAe,CAAC,aAAa,CAAC,MAAM,CAAC;QAC7C,KAAK;KACR,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC"}