@aws-amplify/api 5.4.25 → 5.4.26
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/lib/API.d.ts +8 -0
- package/lib/API.js +8 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/index.d.ts +10 -0
- package/lib-esm/API.d.ts +8 -0
- package/lib-esm/API.js +8 -0
- package/lib-esm/tsconfig.tsbuildinfo +1 -1
- package/lib-esm/types/index.d.ts +10 -0
- package/package.json +4 -4
- package/src/API.ts +8 -0
- package/src/types/index.ts +10 -0
package/lib-esm/types/index.d.ts
CHANGED
|
@@ -5,9 +5,19 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export { graphqlOperation, GraphQLAuthError, GraphQLResult, GRAPHQL_AUTH_MODE, } from '@aws-amplify/api-graphql';
|
|
7
7
|
declare const queryType: unique symbol;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
10
|
+
* See the migration guide:
|
|
11
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
12
|
+
*/
|
|
8
13
|
export type GraphQLQuery<T> = T & {
|
|
9
14
|
readonly [queryType]: 'query';
|
|
10
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
18
|
+
* See the migration guide:
|
|
19
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
20
|
+
*/
|
|
11
21
|
export type GraphQLSubscription<T> = T & {
|
|
12
22
|
readonly [queryType]: 'subscription';
|
|
13
23
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/api",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.26",
|
|
4
4
|
"description": "Api category of aws-amplify",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"internals"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@aws-amplify/api-graphql": "3.4.
|
|
63
|
-
"@aws-amplify/api-rest": "3.5.
|
|
62
|
+
"@aws-amplify/api-graphql": "3.4.32",
|
|
63
|
+
"@aws-amplify/api-rest": "3.5.22",
|
|
64
64
|
"tslib": "^1.8.0"
|
|
65
65
|
},
|
|
66
66
|
"size-limit": [
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"lib-esm"
|
|
120
120
|
]
|
|
121
121
|
},
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "d0b923913b92145813d1470bfbdc9b4dfa915c20"
|
|
123
123
|
}
|
package/src/API.ts
CHANGED
|
@@ -12,6 +12,9 @@ const logger = new Logger('API');
|
|
|
12
12
|
* @deprecated
|
|
13
13
|
* Use RestApi or GraphQLAPI to reduce your application bundle size
|
|
14
14
|
* Export Cloud Logic APIs
|
|
15
|
+
* Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
16
|
+
* See the migration guide:
|
|
17
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
15
18
|
*/
|
|
16
19
|
export class APIClass extends InternalAPIClass {
|
|
17
20
|
public getModuleName() {
|
|
@@ -44,5 +47,10 @@ export class APIClass extends InternalAPIClass {
|
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
49
|
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
52
|
+
* See the migration guide:
|
|
53
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
54
|
+
*/
|
|
47
55
|
export const API = new APIClass(null);
|
|
48
56
|
Amplify.register(API);
|
package/src/types/index.ts
CHANGED
|
@@ -16,7 +16,17 @@ export {
|
|
|
16
16
|
// Opaque type used for determining the graphql query type
|
|
17
17
|
declare const queryType: unique symbol;
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
21
|
+
* See the migration guide:
|
|
22
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
23
|
+
*/
|
|
19
24
|
export type GraphQLQuery<T> = T & { readonly [queryType]: 'query' };
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
27
|
+
* See the migration guide:
|
|
28
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
29
|
+
*/
|
|
20
30
|
export type GraphQLSubscription<T> = T & {
|
|
21
31
|
readonly [queryType]: 'subscription';
|
|
22
32
|
};
|