Skip to content

Commit 60f4d7a

Browse files
authored
chore: add deprecation warning related to Pinpoint end of support in v5 (#14709)
* chore: add deprecation warning related to Pinpoint end of support * fix: pin @babel/preset-env to 7.17.10 for Babel 7.17.x compatibility * fix: update bundle size limits
1 parent 61814a0 commit 60f4d7a

File tree

23 files changed

+823
-335
lines changed

23 files changed

+823
-335
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"devDependencies": {
6464
"@babel/cli": "7.17.0",
6565
"@babel/core": "7.17.2",
66-
"@babel/preset-env": "^7.0.0",
66+
"@babel/preset-env": "7.17.10",
6767
"@babel/preset-react": "^7.0.0",
6868
"@size-limit/dual-publish": "^8.1.0",
6969
"@size-limit/file": "^8.1.0",

packages/analytics/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@
6666
"name": "Analytics (Pinpoint)",
6767
"path": "./lib-esm/index.js",
6868
"import": "{ Amplify, Analytics, AWSPinpointProvider }",
69-
"limit": "31.20 kB"
69+
"limit": "31.45 kB"
7070
},
7171
{
7272
"name": "Analytics (Kinesis)",
7373
"path": "./lib-esm/index.js",
7474
"import": "{ Amplify, Analytics, AWSKinesisProvider }",
75-
"limit": "60.70 kB"
75+
"limit": "60.95 kB"
7676
}
7777
],
7878
"jest": {

packages/analytics/src/Analytics.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,12 @@ export class AnalyticsClass {
254254
return this._sendEvent(params);
255255
}
256256

257+
/**
258+
* Update endpoint attributes
259+
* @param attrs - Endpoint attributes
260+
* @param provider - Provider name
261+
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
262+
*/
257263
public async updateEndpoint(
258264
attrs: { [key: string]: any },
259265
provider?: string

packages/analytics/src/Providers/AWSPinpointProvider.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ const FLUSH_INTERVAL = 5 * 1000; // 5s
6565
const RESEND_LIMIT = 5;
6666

6767
// params: { event: {name: , .... }, timeStamp, config, resendLimits }
68+
/**
69+
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
70+
*/
6871
export class AWSPinpointProvider implements AnalyticsProvider {
6972
static category = 'Analytics';
7073
static providerName = 'AWSPinpoint';
@@ -91,13 +94,15 @@ export class AWSPinpointProvider implements AnalyticsProvider {
9194

9295
/**
9396
* get the category of the plugin
97+
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
9498
*/
9599
getCategory(): string {
96100
return AWSPinpointProvider.category;
97101
}
98102

99103
/**
100104
* get provider name of the plugin
105+
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
101106
*/
102107
getProviderName(): string {
103108
return AWSPinpointProvider.providerName;
@@ -106,6 +111,7 @@ export class AWSPinpointProvider implements AnalyticsProvider {
106111
/**
107112
* configure the plugin
108113
* @param {Object} config - configuration
114+
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
109115
*/
110116
public configure(config): object {
111117
logger.debug('configure Analytics', config);
@@ -140,6 +146,7 @@ export class AWSPinpointProvider implements AnalyticsProvider {
140146
/**
141147
* record an event
142148
* @param {Object} params - the params of an event
149+
* @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.
143150
*/
144151
public async record(params: EventParams, handlers: PromiseHandlers) {
145152
logger.debug('_public record', params);

packages/api-graphql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"name": "API (GraphQL client)",
6767
"path": "./lib-esm/index.js",
6868
"import": "{ Amplify, GraphQLAPI }",
69-
"limit": "97.30 kB"
69+
"limit": "97.60 kB"
7070
}
7171
],
7272
"jest": {

packages/api-rest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"name": "API (rest client)",
6060
"path": "./lib-esm/index.js",
6161
"import": "{ Amplify, RestAPI }",
62-
"limit": "39.10 kB"
62+
"limit": "39.40 kB"
6363
}
6464
],
6565
"jest": {

packages/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"name": "API (top-level class)",
6969
"path": "./lib-esm/index.js",
7070
"import": "{ Amplify, API }",
71-
"limit": "98.10 kB"
71+
"limit": "98.35 kB"
7272
}
7373
],
7474
"jest": {

packages/auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"name": "Auth (top-level class)",
6161
"path": "./lib-esm/index.js",
6262
"import": "{ Amplify, Auth }",
63-
"limit": "56.00 kB"
63+
"limit": "56.20 kB"
6464
}
6565
],
6666
"jest": {

packages/cache/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"name": "Cache (default browser storage)",
5757
"path": "./lib-esm/index.js",
5858
"import": "{ Cache }",
59-
"limit": "4 kB"
59+
"limit": "4.2 kB"
6060
},
6161
{
6262
"name": "Cache (in-memory)",

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"name": "Core (ServiceWorker)",
8181
"path": "./lib-esm/index.js",
8282
"import": "{ ServiceWorker }",
83-
"limit": "2.4 kB"
83+
"limit": "2.65 kB"
8484
},
8585
{
8686
"name": "Core (Hub)",
@@ -92,7 +92,7 @@
9292
"name": "Core (I18n)",
9393
"path": "./lib-esm/index.js",
9494
"import": "{ I18n }",
95-
"limit": "2.12 kB"
95+
"limit": "2.40 kB"
9696
},
9797
{
9898
"name": "Core (Logger)",
@@ -104,7 +104,7 @@
104104
"name": "Core (Credentials)",
105105
"path": "./lib-esm/index.js",
106106
"import": "{ Credentials }",
107-
"limit": "13.35 kB"
107+
"limit": "13.60 kB"
108108
},
109109
{
110110
"name": "Core (Signer)",

0 commit comments

Comments
 (0)