diff --git a/docs/api/functions/aws_amplify.api.events.closeAll.html b/docs/api/functions/aws_amplify.api.events.closeAll.html index cf81536db15..5123c908faf 100644 --- a/docs/api/functions/aws_amplify.api.events.closeAll.html +++ b/docs/api/functions/aws_amplify.api.events.closeAll.html @@ -1,2 +1,8 @@ closeAll | Amplify JS API Documentation -
  • Returns void

\ No newline at end of file +
  • Experimental

    API may change in future versions

    +

    Close WebSocket connection, disconnect listeners and reconnect observers

    +

    Returns Promise<void>

    void on success

    +

    Example

    await events.closeAll()
    +
    +

    Throws

    on error

    +
\ No newline at end of file diff --git a/docs/api/modules/_aws_amplify_adapter_nextjs.html b/docs/api/modules/_aws_amplify_adapter_nextjs.html index ceaadfb75bd..1bd10844925 100644 --- a/docs/api/modules/_aws_amplify_adapter_nextjs.html +++ b/docs/api/modules/_aws_amplify_adapter_nextjs.html @@ -1,5 +1,5 @@ -@aws-amplify/adapter-nextjs - v1.2.26 | Amplify JS API Documentation -

Module @aws-amplify/adapter-nextjs - v1.2.26

This package contains the AWS Amplify Next.js Adapter. For more information on using Next.js in your application please reference the Amplify Dev Center.

+@aws-amplify/adapter-nextjs - v1.2.28 | Amplify JS API Documentation +

Module @aws-amplify/adapter-nextjs - v1.2.28

This package contains the AWS Amplify Next.js Adapter. For more information on using Next.js in your application please reference the Amplify Dev Center.

Index

Modules

api index utils diff --git a/docs/api/modules/_aws_amplify_datastore_storage_adapter.html b/docs/api/modules/_aws_amplify_datastore_storage_adapter.html index 6e0bf8c3c8b..41f76bb6b1c 100644 --- a/docs/api/modules/_aws_amplify_datastore_storage_adapter.html +++ b/docs/api/modules/_aws_amplify_datastore_storage_adapter.html @@ -1,5 +1,5 @@ -@aws-amplify/datastore-storage-adapter - v2.1.58 | Amplify JS API Documentation -

Module @aws-amplify/datastore-storage-adapter - v2.1.58

This package contains the AWS Amplify DataStore storage adapter. For more information on using the DataStore storage adapter in your application please reference the Amplify Dev Center.

+@aws-amplify/datastore-storage-adapter - v2.1.60 | Amplify JS API Documentation +

Module @aws-amplify/datastore-storage-adapter - v2.1.60

This package contains the AWS Amplify DataStore storage adapter. For more information on using the DataStore storage adapter in your application please reference the Amplify Dev Center.

Index

Modules

ExpoSQLiteAdapter/ExpoSQLiteAdapter SQLiteAdapter/SQLiteAdapter index diff --git a/docs/api/modules/_aws_amplify_geo.html b/docs/api/modules/_aws_amplify_geo.html index 5fd4253860e..72c076940ee 100644 --- a/docs/api/modules/_aws_amplify_geo.html +++ b/docs/api/modules/_aws_amplify_geo.html @@ -1,5 +1,5 @@ -@aws-amplify/geo - v3.0.56 | Amplify JS API Documentation -

Module @aws-amplify/geo - v3.0.56

This package contains the AWS Amplify Geo category. For more information on using Geo in your application please reference the Amplify Dev Center.

+@aws-amplify/geo - v3.0.58 | Amplify JS API Documentation +

Module @aws-amplify/geo - v3.0.58

This package contains the AWS Amplify Geo category. For more information on using Geo in your application please reference the Amplify Dev Center.

Index

Modules

\ No newline at end of file diff --git a/docs/api/modules/_aws_amplify_interactions.html b/docs/api/modules/_aws_amplify_interactions.html index 4eee4562580..8fe216185a7 100644 --- a/docs/api/modules/_aws_amplify_interactions.html +++ b/docs/api/modules/_aws_amplify_interactions.html @@ -1,5 +1,5 @@ -@aws-amplify/interactions - v6.0.55 | Amplify JS API Documentation -

Module @aws-amplify/interactions - v6.0.55

This package contains the AWS Amplify Interactions category. For more information on using Interactions in your application please reference the Amplify Dev Center.

+@aws-amplify/interactions - v6.0.57 | Amplify JS API Documentation +

Module @aws-amplify/interactions - v6.0.57

This package contains the AWS Amplify Interactions category. For more information on using Interactions in your application please reference the Amplify Dev Center.

Index

Modules

index lex-v1 lex-v2 diff --git a/docs/api/modules/_aws_amplify_predictions.html b/docs/api/modules/_aws_amplify_predictions.html index 261a1d51319..f80a61b8614 100644 --- a/docs/api/modules/_aws_amplify_predictions.html +++ b/docs/api/modules/_aws_amplify_predictions.html @@ -1,5 +1,5 @@ -@aws-amplify/predictions - v6.1.31 | Amplify JS API Documentation -

Module @aws-amplify/predictions - v6.1.31

This package contains the AWS Amplify Predictions category. For more information on using Predictions in your application please reference the Amplify Dev Center.

+@aws-amplify/predictions - v6.1.33 | Amplify JS API Documentation +

Module @aws-amplify/predictions - v6.1.33

This package contains the AWS Amplify Predictions category. For more information on using Predictions in your application please reference the Amplify Dev Center.

Index

Modules

Interfaces

IdentifyEntitiesInput IdentifyEntitiesOutput diff --git a/docs/api/modules/_aws_amplify_pubsub.html b/docs/api/modules/_aws_amplify_pubsub.html index 93afe0854c0..c184e6047d9 100644 --- a/docs/api/modules/_aws_amplify_pubsub.html +++ b/docs/api/modules/_aws_amplify_pubsub.html @@ -1,5 +1,5 @@ -@aws-amplify/pubsub - v6.1.31 | Amplify JS API Documentation -

Module @aws-amplify/pubsub - v6.1.31

This package contains the AWS Amplify PubSub category. For more information on using PubSub in your application please reference the Amplify Dev Center.

+@aws-amplify/pubsub - v6.1.33 | Amplify JS API Documentation +

Module @aws-amplify/pubsub - v6.1.33

This package contains the AWS Amplify PubSub category. For more information on using PubSub in your application please reference the Amplify Dev Center.

Index

Modules

clients/iot clients/mqtt index diff --git a/docs/api/modules/aws_amplify.html b/docs/api/modules/aws_amplify.html index 8920ff975e0..d9f234194a5 100644 --- a/docs/api/modules/aws_amplify.html +++ b/docs/api/modules/aws_amplify.html @@ -1,5 +1,5 @@ -aws-amplify - v6.8.0 | Amplify JS API Documentation -

Module aws-amplify - v6.8.0

AWS Amplify Package - aws-amplify

AWS Amplify is a JavaScript library for frontend and mobile developers building cloud-enabled applications. The library is a declarative interface across different categories of operations in order to make common tasks easier to add into your application. The default implementation works with Amazon Web Services (AWS) resources but is designed to be open and pluggable for usage with other cloud services that wish to provide an implementation or custom backends.

+aws-amplify - v6.8.2 | Amplify JS API Documentation +

Module aws-amplify - v6.8.2

AWS Amplify Package - aws-amplify

AWS Amplify is a JavaScript library for frontend and mobile developers building cloud-enabled applications. The library is a declarative interface across different categories of operations in order to make common tasks easier to add into your application. The default implementation works with Amazon Web Services (AWS) resources but is designed to be open and pluggable for usage with other cloud services that wish to provide an implementation or custom backends.

Documentation is available here.

Index

Modules

adapter-core analytics diff --git a/packages/adapter-nextjs/CHANGELOG.md b/packages/adapter-nextjs/CHANGELOG.md index 063570cf9b0..76e5eb6f3b2 100644 --- a/packages/adapter-nextjs/CHANGELOG.md +++ b/packages/adapter-nextjs/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.28](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/adapter-nextjs@1.2.27...@aws-amplify/adapter-nextjs@1.2.28) (2024-11-13) + +**Note:** Version bump only for package @aws-amplify/adapter-nextjs + +## [1.2.27](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/adapter-nextjs@1.2.26...@aws-amplify/adapter-nextjs@1.2.27) (2024-11-12) + +**Note:** Version bump only for package @aws-amplify/adapter-nextjs + ## [1.2.26](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/adapter-nextjs@1.2.25...@aws-amplify/adapter-nextjs@1.2.26) (2024-10-31) **Note:** Version bump only for package @aws-amplify/adapter-nextjs diff --git a/packages/adapter-nextjs/package.json b/packages/adapter-nextjs/package.json index 90bff64d807..e03f22a86d5 100644 --- a/packages/adapter-nextjs/package.json +++ b/packages/adapter-nextjs/package.json @@ -1,7 +1,7 @@ { "author": "Amazon Web Services", "name": "@aws-amplify/adapter-nextjs", - "version": "1.2.26", + "version": "1.2.28", "description": "The adapter for the supporting of using Amplify APIs in Next.js.", "peerDependencies": { "aws-amplify": "^6.0.7", @@ -16,7 +16,7 @@ "@types/node": "^20.3.1", "@types/react": "^18.2.13", "@types/react-dom": "^18.2.6", - "aws-amplify": "6.8.0", + "aws-amplify": "6.8.2", "jest-fetch-mock": "3.0.3", "next": ">= 13.5.0 < 15.0.0", "typescript": "5.0.2" diff --git a/packages/analytics/CHANGELOG.md b/packages/analytics/CHANGELOG.md index 59d4407226e..bd5c316ce8f 100644 --- a/packages/analytics/CHANGELOG.md +++ b/packages/analytics/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.0.58](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@7.0.57...@aws-amplify/analytics@7.0.58) (2024-11-13) + +**Note:** Version bump only for package @aws-amplify/analytics + +## [7.0.57](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@7.0.56...@aws-amplify/analytics@7.0.57) (2024-11-12) + +**Note:** Version bump only for package @aws-amplify/analytics + ## [7.0.56](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@7.0.55...@aws-amplify/analytics@7.0.56) (2024-10-31) **Note:** Version bump only for package @aws-amplify/analytics diff --git a/packages/analytics/package.json b/packages/analytics/package.json index 1594730cf8a..d1841990828 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/analytics", - "version": "7.0.56", + "version": "7.0.58", "description": "Analytics category of aws-amplify", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -103,7 +103,7 @@ "@aws-amplify/core": "^6.1.0" }, "devDependencies": { - "@aws-amplify/core": "6.5.1", + "@aws-amplify/core": "6.5.3", "@aws-amplify/react-native": "1.1.6", "@aws-sdk/types": "3.398.0", "typescript": "5.0.2" diff --git a/packages/api-graphql/CHANGELOG.md b/packages/api-graphql/CHANGELOG.md index 18087e6f6f1..db3c781dbbd 100644 --- a/packages/api-graphql/CHANGELOG.md +++ b/packages/api-graphql/CHANGELOG.md @@ -3,6 +3,21 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.6.1](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@4.6.0...@aws-amplify/api-graphql@4.6.1) (2024-11-13) + +**Note:** Version bump only for package @aws-amplify/api-graphql + +# [4.6.0](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@4.5.1...@aws-amplify/api-graphql@4.6.0) (2024-11-12) + +### Bug Fixes + +- **api-graphql:** close WS on events.closeAll ([#13989](https://github.com/aws-amplify/amplify-js/issues/13989)) ([168ecff](https://github.com/aws-amplify/amplify-js/commit/168ecff80ede7c92a2a443471061237f250b1fcd)) +- **api-graphql:** events ws connect sig ([#14003](https://github.com/aws-amplify/amplify-js/issues/14003)) ([4606279](https://github.com/aws-amplify/amplify-js/commit/460627966350c67db890dd908e882885e93624a7)) + +### Features + +- **api-graphql:** return entire payload in callback ([#13980](https://github.com/aws-amplify/amplify-js/issues/13980)) ([d6eede3](https://github.com/aws-amplify/amplify-js/commit/d6eede3a68df1e6c49927e62ce0b73d6db615a8a)) + ## [4.5.1](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@4.5.0...@aws-amplify/api-graphql@4.5.1) (2024-10-31) **Note:** Version bump only for package @aws-amplify/api-graphql diff --git a/packages/api-graphql/__tests__/AWSAppSyncEventProvider.test.ts b/packages/api-graphql/__tests__/AWSAppSyncEventProvider.test.ts index fbb865be862..a8c29a63e87 100644 --- a/packages/api-graphql/__tests__/AWSAppSyncEventProvider.test.ts +++ b/packages/api-graphql/__tests__/AWSAppSyncEventProvider.test.ts @@ -205,6 +205,43 @@ describe('AppSyncEventProvider', () => { event: JSON.parse(event), }); }); + + test('socket is disconnected after .close() is called', async () => { + expect.assertions(2); + const mockNext = jest.fn(); + + const observer = provider.subscribe({ + appSyncGraphqlEndpoint: 'ws://localhost:8080', + }); + + const event = JSON.stringify({ some: 'data' }); + + observer.subscribe({ + next: mockNext, + error: () => {}, + }); + + await fakeWebSocketInterface?.standardConnectionHandshake(); + await fakeWebSocketInterface?.startAckMessage({ + connectionTimeoutMs: 100, + }); + await fakeWebSocketInterface?.sendDataMessage({ + id: fakeWebSocketInterface?.webSocket.subscriptionId, + type: MESSAGE_TYPES.DATA, + event, + }); + + // events callback returns entire message contents + expect(mockNext).toHaveBeenCalledWith({ + id: fakeWebSocketInterface?.webSocket.subscriptionId, + type: MESSAGE_TYPES.DATA, + event: JSON.parse(event), + }); + + await provider.close(); + + expect(fakeWebSocketInterface.hasClosed).resolves.toBeUndefined(); + }); }); }); }); diff --git a/packages/api-graphql/__tests__/helpers.ts b/packages/api-graphql/__tests__/helpers.ts index ac26232dd90..424fc4e3129 100644 --- a/packages/api-graphql/__tests__/helpers.ts +++ b/packages/api-graphql/__tests__/helpers.ts @@ -258,9 +258,8 @@ export class FakeWebSocketInterface { /** * Run a command and resolve to allow internal behavior to execute */ - async runAndResolve(fn) { + async runAndResolve(fn: Function) { await fn(); - await Promise.resolve(); } /** @@ -310,6 +309,10 @@ class FakeWebSocket implements WebSocket { close(code?: number, reason?: string): void { const closeResolver = this.closeResolverFcn(); if (closeResolver) closeResolver(Promise.resolve(undefined)); + + try { + this.onclose(new CloseEvent('', {})); + } catch {} } send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void { const parsedInput = JSON.parse(String(data)); diff --git a/packages/api-graphql/package.json b/packages/api-graphql/package.json index 1d1486a9c16..aec2e00ff54 100644 --- a/packages/api-graphql/package.json +++ b/packages/api-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/api-graphql", - "version": "4.5.1", + "version": "4.6.1", "description": "Api-graphql category of aws-amplify", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -84,8 +84,8 @@ "server" ], "dependencies": { - "@aws-amplify/api-rest": "4.0.56", - "@aws-amplify/core": "6.5.1", + "@aws-amplify/api-rest": "4.0.58", + "@aws-amplify/core": "6.5.3", "@aws-amplify/data-schema": "^1.7.0", "@aws-sdk/types": "3.387.0", "graphql": "15.8.0", diff --git a/packages/api-graphql/src/Providers/AWSAppSyncEventsProvider/index.ts b/packages/api-graphql/src/Providers/AWSAppSyncEventsProvider/index.ts index eff48289acc..214de3b92f4 100644 --- a/packages/api-graphql/src/Providers/AWSAppSyncEventsProvider/index.ts +++ b/packages/api-graphql/src/Providers/AWSAppSyncEventsProvider/index.ts @@ -43,10 +43,15 @@ interface DataResponse { const PROVIDER_NAME = 'AWSAppSyncEventsProvider'; const WS_PROTOCOL_NAME = 'aws-appsync-event-ws'; +const CONNECT_URI = ''; // events does not expect a connect uri export class AWSAppSyncEventProvider extends AWSWebSocketProvider { constructor() { - super({ providerName: PROVIDER_NAME, wsProtocolName: WS_PROTOCOL_NAME }); + super({ + providerName: PROVIDER_NAME, + wsProtocolName: WS_PROTOCOL_NAME, + connectUri: CONNECT_URI, + }); } getProviderName() { @@ -90,7 +95,6 @@ export class AWSAppSyncEventProvider extends AWSWebSocketProvider { appSyncGraphqlEndpoint, authenticationType, query, - variables, apiKey, region, } = options; @@ -100,7 +104,7 @@ export class AWSAppSyncEventProvider extends AWSWebSocketProvider { // events: [variables], // }; - const serializedData = JSON.stringify([variables]); + const serializedData = JSON.stringify({ channel: query }); const headers = { ...(await awsRealTimeHeaderBasedAuth({ diff --git a/packages/api-graphql/src/Providers/AWSAppSyncRealTimeProvider/index.ts b/packages/api-graphql/src/Providers/AWSAppSyncRealTimeProvider/index.ts index 2ba5968a890..084891b002b 100644 --- a/packages/api-graphql/src/Providers/AWSAppSyncRealTimeProvider/index.ts +++ b/packages/api-graphql/src/Providers/AWSAppSyncRealTimeProvider/index.ts @@ -42,10 +42,15 @@ interface DataPayload { const PROVIDER_NAME = 'AWSAppSyncRealTimeProvider'; const WS_PROTOCOL_NAME = 'graphql-ws'; +const CONNECT_URI = '/connect'; export class AWSAppSyncRealTimeProvider extends AWSWebSocketProvider { constructor() { - super({ providerName: PROVIDER_NAME, wsProtocolName: WS_PROTOCOL_NAME }); + super({ + providerName: PROVIDER_NAME, + wsProtocolName: WS_PROTOCOL_NAME, + connectUri: CONNECT_URI, + }); } getProviderName() { diff --git a/packages/api-graphql/src/Providers/AWSWebSocketProvider/index.ts b/packages/api-graphql/src/Providers/AWSWebSocketProvider/index.ts index 3553a008123..5d710e478bc 100644 --- a/packages/api-graphql/src/Providers/AWSWebSocketProvider/index.ts +++ b/packages/api-graphql/src/Providers/AWSWebSocketProvider/index.ts @@ -74,13 +74,14 @@ interface ParsedMessagePayload { interface AWSWebSocketProviderArgs { providerName: string; wsProtocolName: string; + connectUri: string; } export abstract class AWSWebSocketProvider { protected logger: ConsoleLogger; protected subscriptionObserverMap = new Map(); - private awsRealTimeSocket?: WebSocket; + protected awsRealTimeSocket?: WebSocket; private socketStatus: SOCKET_STATUS = SOCKET_STATUS.CLOSED; private keepAliveTimeoutId?: ReturnType; private keepAliveTimeout = DEFAULT_KEEP_ALIVE_TIMEOUT; @@ -91,10 +92,12 @@ export abstract class AWSWebSocketProvider { private readonly reconnectionMonitor = new ReconnectionMonitor(); private connectionStateMonitorSubscription: SubscriptionLike; private readonly wsProtocolName: string; + private readonly wsConnectUri: string; constructor(args: AWSWebSocketProviderArgs) { this.logger = new ConsoleLogger(args.providerName); this.wsProtocolName = args.wsProtocolName; + this.wsConnectUri = args.connectUri; this.connectionStateMonitorSubscription = this._startConnectionStateMonitoring(); @@ -112,6 +115,24 @@ export abstract class AWSWebSocketProvider { this.connectionStateMonitorSubscription.unsubscribe(); // Complete all reconnect observers this.reconnectionMonitor.close(); + + return new Promise((resolve, reject) => { + if (this.awsRealTimeSocket) { + this.awsRealTimeSocket.onclose = (_: CloseEvent) => { + this.subscriptionObserverMap = new Map(); + this.awsRealTimeSocket = undefined; + resolve(); + }; + + this.awsRealTimeSocket.onerror = (err: any) => { + reject(err); + }; + + this.awsRealTimeSocket.close(); + } else { + resolve(); + } + }); } subscribe( @@ -721,7 +742,7 @@ export abstract class AWSWebSocketProvider { const authHeader = await awsRealTimeHeaderBasedAuth({ authenticationType, payload: payloadString, - canonicalUri: '/connect', + canonicalUri: this.wsConnectUri, apiKey, appSyncGraphqlEndpoint, region, diff --git a/packages/api-graphql/src/internals/events/index.ts b/packages/api-graphql/src/internals/events/index.ts index 49860a92049..c1101111fd4 100644 --- a/packages/api-graphql/src/internals/events/index.ts +++ b/packages/api-graphql/src/internals/events/index.ts @@ -154,8 +154,19 @@ async function post( } } -function closeAll(): void { - eventProvider.close(); +/** + * @experimental API may change in future versions + * + * Close WebSocket connection, disconnect listeners and reconnect observers + * + * @example + * await events.closeAll() + * + * @returns void on success + * @throws on error + */ +async function closeAll(): Promise { + await eventProvider.close(); } export { connect, post, closeAll }; diff --git a/packages/api-rest/CHANGELOG.md b/packages/api-rest/CHANGELOG.md index b2554e6aa49..af0959cdb9e 100644 --- a/packages/api-rest/CHANGELOG.md +++ b/packages/api-rest/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.0.58](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-rest@4.0.57...@aws-amplify/api-rest@4.0.58) (2024-11-13) + +**Note:** Version bump only for package @aws-amplify/api-rest + +## [4.0.57](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-rest@4.0.56...@aws-amplify/api-rest@4.0.57) (2024-11-12) + +**Note:** Version bump only for package @aws-amplify/api-rest + ## [4.0.56](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-rest@4.0.55...@aws-amplify/api-rest@4.0.56) (2024-10-31) **Note:** Version bump only for package @aws-amplify/api-rest diff --git a/packages/api-rest/package.json b/packages/api-rest/package.json index 86e830d4964..1a444c119fc 100644 --- a/packages/api-rest/package.json +++ b/packages/api-rest/package.json @@ -1,7 +1,7 @@ { "name": "@aws-amplify/api-rest", "private": false, - "version": "4.0.56", + "version": "4.0.58", "description": "Api-rest category of aws-amplify", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -87,7 +87,7 @@ "@aws-amplify/core": "^6.1.0" }, "devDependencies": { - "@aws-amplify/core": "6.5.1", + "@aws-amplify/core": "6.5.3", "@aws-amplify/react-native": "1.1.6", "typescript": "5.0.2" }, diff --git a/packages/api/CHANGELOG.md b/packages/api/CHANGELOG.md index b5e582ce527..f6726327d0a 100644 --- a/packages/api/CHANGELOG.md +++ b/packages/api/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.1.3](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@6.1.2...@aws-amplify/api@6.1.3) (2024-11-13) + +**Note:** Version bump only for package @aws-amplify/api + +## [6.1.2](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@6.1.1...@aws-amplify/api@6.1.2) (2024-11-12) + +**Note:** Version bump only for package @aws-amplify/api + ## [6.1.1](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@6.1.0...@aws-amplify/api@6.1.1) (2024-10-31) **Note:** Version bump only for package @aws-amplify/api diff --git a/packages/api/package.json b/packages/api/package.json index 5a0d531c69f..5fe2429ee6f 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/api", - "version": "6.1.1", + "version": "6.1.3", "description": "Api category of aws-amplify", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -79,8 +79,8 @@ "server" ], "dependencies": { - "@aws-amplify/api-graphql": "4.5.1", - "@aws-amplify/api-rest": "4.0.56", + "@aws-amplify/api-graphql": "4.6.1", + "@aws-amplify/api-rest": "4.0.58", "tslib": "^2.5.0" } } diff --git a/packages/auth/CHANGELOG.md b/packages/auth/CHANGELOG.md index d63deebe930..cae4c9caec1 100644 --- a/packages/auth/CHANGELOG.md +++ b/packages/auth/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.6.2](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/auth@6.6.1...@aws-amplify/auth@6.6.2) (2024-11-13) + +**Note:** Version bump only for package @aws-amplify/auth + +## [6.6.1](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/auth@6.6.0...@aws-amplify/auth@6.6.1) (2024-11-12) + +**Note:** Version bump only for package @aws-amplify/auth + # [6.6.0](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/auth@6.5.5...@aws-amplify/auth@6.6.0) (2024-10-31) ### Features diff --git a/packages/auth/package.json b/packages/auth/package.json index 5f6dddb0958..42771efb06b 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/auth", - "version": "6.6.0", + "version": "6.6.2", "description": "Auth category of aws-amplify", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -97,7 +97,7 @@ "@aws-amplify/core": "^6.1.0" }, "devDependencies": { - "@aws-amplify/core": "6.5.1", + "@aws-amplify/core": "6.5.3", "@aws-amplify/react-native": "1.1.6", "@jest/test-sequencer": "^29.7.0", "typescript": "5.0.2" diff --git a/packages/aws-amplify/CHANGELOG.md b/packages/aws-amplify/CHANGELOG.md index 518fd1c590c..93361f07dab 100644 --- a/packages/aws-amplify/CHANGELOG.md +++ b/packages/aws-amplify/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.8.2](https://github.com/aws-amplify/amplify-js/compare/aws-amplify@6.8.1...aws-amplify@6.8.2) (2024-11-13) + +**Note:** Version bump only for package aws-amplify + +## [6.8.1](https://github.com/aws-amplify/amplify-js/compare/aws-amplify@6.8.0...aws-amplify@6.8.1) (2024-11-12) + +### Bug Fixes + +- **core:** Check for storage initialization errors ([#13938](https://github.com/aws-amplify/amplify-js/issues/13938)) ([0f50917](https://github.com/aws-amplify/amplify-js/commit/0f5091780046b9556b98300c29fb970a0358bd70)) + # [6.8.0](https://github.com/aws-amplify/amplify-js/compare/aws-amplify@6.7.0...aws-amplify@6.8.0) (2024-10-31) ### Features diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index e45fedb59ee..9c05b6b9f25 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -1,6 +1,6 @@ { "name": "aws-amplify", - "version": "6.8.0", + "version": "6.8.2", "description": "AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -276,13 +276,13 @@ "utils" ], "dependencies": { - "@aws-amplify/analytics": "7.0.56", - "@aws-amplify/api": "6.1.1", - "@aws-amplify/auth": "6.6.0", - "@aws-amplify/core": "6.5.1", - "@aws-amplify/datastore": "5.0.58", - "@aws-amplify/notifications": "2.0.56", - "@aws-amplify/storage": "6.6.14", + "@aws-amplify/analytics": "7.0.58", + "@aws-amplify/api": "6.1.3", + "@aws-amplify/auth": "6.6.2", + "@aws-amplify/core": "6.5.3", + "@aws-amplify/datastore": "5.0.60", + "@aws-amplify/notifications": "2.0.58", + "@aws-amplify/storage": "6.6.16", "tslib": "^2.5.0" }, "devDependencies": { @@ -293,7 +293,7 @@ "name": "[Analytics] record (Pinpoint)", "path": "./dist/esm/analytics/index.mjs", "import": "{ record }", - "limit": "17.41 kB" + "limit": "17.5 kB" }, { "name": "[Analytics] record (Kinesis)", @@ -317,7 +317,7 @@ "name": "[Analytics] identifyUser (Pinpoint)", "path": "./dist/esm/analytics/index.mjs", "import": "{ identifyUser }", - "limit": "15.91 kB" + "limit": "15.97 kB" }, { "name": "[Analytics] enable", @@ -497,7 +497,7 @@ "name": "[Storage] uploadData (S3)", "path": "./dist/esm/storage/index.mjs", "import": "{ uploadData }", - "limit": "20.08 kB" + "limit": "20.17 kB" } ] } diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 3008cb9c76c..4cf9badd0d1 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.5.3](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/core@6.5.2...@aws-amplify/core@6.5.3) (2024-11-13) + +**Note:** Version bump only for package @aws-amplify/core + +## [6.5.2](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/core@6.5.1...@aws-amplify/core@6.5.2) (2024-11-12) + +### Bug Fixes + +- **core:** Check for storage initialization errors ([#13938](https://github.com/aws-amplify/amplify-js/issues/13938)) ([0f50917](https://github.com/aws-amplify/amplify-js/commit/0f5091780046b9556b98300c29fb970a0358bd70)) + ## [6.5.1](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/core@6.5.0...@aws-amplify/core@6.5.1) (2024-10-31) **Note:** Version bump only for package @aws-amplify/core diff --git a/packages/core/__tests__/storage/DefaultStorage.test.ts b/packages/core/__tests__/storage/DefaultStorage.test.ts index 47214d899d7..519adb01af9 100644 --- a/packages/core/__tests__/storage/DefaultStorage.test.ts +++ b/packages/core/__tests__/storage/DefaultStorage.test.ts @@ -1,4 +1,5 @@ import { DefaultStorage } from '../../src/storage/DefaultStorage'; +import { InMemoryStorage } from '../../src/storage/InMemoryStorage'; const key = 'k'; const value = 'value'; @@ -35,4 +36,25 @@ describe('DefaultStorage', () => { await defaultStorage.clear(); expect(defaultStorage.getItem(key)).resolves.toBeNull(); }); + + it('should fall back to alternative storage when localStorage is not accessible', async () => { + // Mock window.localStorage to throw an error + const originalLocalStorage = window.localStorage; + + Object.defineProperty(window, 'localStorage', { + value: undefined, + writable: true, + }); + + // Create a new DefaultStorage instance to trigger the fallback + const fallbackStorage = new DefaultStorage(); + + // Verify that the storage still works as expected + expect(fallbackStorage.storage instanceof InMemoryStorage).toEqual(true); + + // Restore the original localStorage + Object.defineProperty(window, 'localStorage', { + value: originalLocalStorage, + }); + }); }); diff --git a/packages/core/__tests__/storage/SessionStorage.test.ts b/packages/core/__tests__/storage/SessionStorage.test.ts index df6116d823e..81545838f12 100644 --- a/packages/core/__tests__/storage/SessionStorage.test.ts +++ b/packages/core/__tests__/storage/SessionStorage.test.ts @@ -1,9 +1,10 @@ +import { InMemoryStorage } from '../../src/storage/InMemoryStorage'; import { SessionStorage } from '../../src/storage/SessionStorage'; const key = 'k'; const value = 'value'; -describe('sessionStorage', () => { +describe('SessionStorage', () => { let sessionStorage: SessionStorage; beforeEach(() => { @@ -37,4 +38,25 @@ describe('sessionStorage', () => { await sessionStorage.clear(); expect(await sessionStorage.getItem(key)).toBeNull(); }); + + it('should fall back to alternative storage when sessionStorage is not accessible', async () => { + // Mock window.sessionStorage to throw an error + const originalSessionStorage = window.sessionStorage; + + Object.defineProperty(window, 'sessionStorage', { + value: undefined, + writable: true, + }); + + // Create a new SessionStorage instance to trigger the fallback + const fallbackStorage = new SessionStorage(); + + // Verify that the storage still works as expected + expect(fallbackStorage.storage instanceof InMemoryStorage).toEqual(true); + + // Restore the original sessionStorage + Object.defineProperty(window, 'sessionStorage', { + value: originalSessionStorage, + }); + }); }); diff --git a/packages/core/metadata b/packages/core/metadata index b011e9b696b..852adf07360 100644 --- a/packages/core/metadata +++ b/packages/core/metadata @@ -1 +1 @@ -e9f965729 +f6727c6df diff --git a/packages/core/package.json b/packages/core/package.json index 1161de3d320..7cfe8932f22 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/core", - "version": "6.5.1", + "version": "6.5.3", "description": "Core category of aws-amplify", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -106,7 +106,7 @@ "name": "Cache (default browser storage)", "path": "./dist/esm/index.mjs", "import": "{ Cache }", - "limit": "3.3 kB" + "limit": "3.4 kB" } ], "exports": { diff --git a/packages/core/src/storage/utils.ts b/packages/core/src/storage/utils.ts index 527d91d7f4e..3d27578c839 100644 --- a/packages/core/src/storage/utils.ts +++ b/packages/core/src/storage/utils.ts @@ -1,22 +1,55 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 +import { ConsoleLogger } from '../Logger'; + import { InMemoryStorage } from './InMemoryStorage'; /** * @internal * @returns Either a reference to window.localStorage or an in-memory storage as fallback */ -export const getLocalStorageWithFallback = (): Storage => - typeof window !== 'undefined' && window.localStorage - ? window.localStorage - : new InMemoryStorage(); + +const logger = new ConsoleLogger('CoreStorageUtils'); + +export const getLocalStorageWithFallback = (): Storage => { + try { + // Attempt to use localStorage directly + if (typeof window !== 'undefined' && window.localStorage) { + return window.localStorage; + } + } catch (e) { + // Handle any errors related to localStorage access + logger.info( + 'localStorage not found. InMemoryStorage is used as a fallback.', + ); + } + + // Return in-memory storage as a fallback if localStorage is not accessible + return new InMemoryStorage(); +}; /** * @internal * @returns Either a reference to window.sessionStorage or an in-memory storage as fallback */ -export const getSessionStorageWithFallback = (): Storage => - typeof window !== 'undefined' && window.sessionStorage - ? window.sessionStorage - : new InMemoryStorage(); +export const getSessionStorageWithFallback = (): Storage => { + try { + // Attempt to use sessionStorage directly + if (typeof window !== 'undefined' && window.sessionStorage) { + // Verify we can actually use it by testing access + window.sessionStorage.getItem('test'); + + return window.sessionStorage; + } + + throw new Error('sessionStorage is not defined'); + } catch (e) { + // Handle any errors related to sessionStorage access + logger.info( + 'sessionStorage not found. InMemoryStorage is used as a fallback.', + ); + + return new InMemoryStorage(); + } +}; diff --git a/packages/datastore-storage-adapter/CHANGELOG.md b/packages/datastore-storage-adapter/CHANGELOG.md index e67ee0e1f48..f40c5d42bb2 100644 --- a/packages/datastore-storage-adapter/CHANGELOG.md +++ b/packages/datastore-storage-adapter/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.1.60](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore-storage-adapter@2.1.59...@aws-amplify/datastore-storage-adapter@2.1.60) (2024-11-13) + +**Note:** Version bump only for package @aws-amplify/datastore-storage-adapter + +## [2.1.59](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore-storage-adapter@2.1.58...@aws-amplify/datastore-storage-adapter@2.1.59) (2024-11-12) + +**Note:** Version bump only for package @aws-amplify/datastore-storage-adapter + ## [2.1.58](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore-storage-adapter@2.1.57...@aws-amplify/datastore-storage-adapter@2.1.58) (2024-10-31) **Note:** Version bump only for package @aws-amplify/datastore-storage-adapter diff --git a/packages/datastore-storage-adapter/package.json b/packages/datastore-storage-adapter/package.json index 931a82be895..ca17c163092 100644 --- a/packages/datastore-storage-adapter/package.json +++ b/packages/datastore-storage-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/datastore-storage-adapter", - "version": "2.1.58", + "version": "2.1.60", "description": "SQLite storage adapter for Amplify DataStore ", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -36,8 +36,8 @@ "@aws-amplify/core": "^6.1.0" }, "devDependencies": { - "@aws-amplify/core": "6.5.1", - "@aws-amplify/datastore": "5.0.58", + "@aws-amplify/core": "6.5.3", + "@aws-amplify/datastore": "5.0.60", "@types/react-native-sqlite-storage": "5.0.1", "expo-file-system": "13.1.4", "expo-sqlite": "10.1.0", diff --git a/packages/datastore/CHANGELOG.md b/packages/datastore/CHANGELOG.md index 2e7b6716df9..c265ab5711e 100644 --- a/packages/datastore/CHANGELOG.md +++ b/packages/datastore/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.0.60](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore@5.0.59...@aws-amplify/datastore@5.0.60) (2024-11-13) + +**Note:** Version bump only for package @aws-amplify/datastore + +## [5.0.59](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore@5.0.58...@aws-amplify/datastore@5.0.59) (2024-11-12) + +**Note:** Version bump only for package @aws-amplify/datastore + ## [5.0.58](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore@5.0.57...@aws-amplify/datastore@5.0.58) (2024-10-31) **Note:** Version bump only for package @aws-amplify/datastore diff --git a/packages/datastore/package.json b/packages/datastore/package.json index 5b4e7ec8a25..f7463e9fbee 100644 --- a/packages/datastore/package.json +++ b/packages/datastore/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/datastore", - "version": "5.0.58", + "version": "5.0.60", "description": "AppSyncLocal support for aws-amplify", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -44,7 +44,7 @@ "src" ], "dependencies": { - "@aws-amplify/api": "6.1.1", + "@aws-amplify/api": "6.1.3", "buffer": "4.9.2", "idb": "5.0.6", "immer": "9.0.6", @@ -55,7 +55,7 @@ "@aws-amplify/core": "^6.1.0" }, "devDependencies": { - "@aws-amplify/core": "6.5.1", + "@aws-amplify/core": "6.5.3", "@aws-amplify/react-native": "1.1.6", "@types/uuid-validate": "^0.0.1", "dexie": "3.2.2", diff --git a/packages/geo/CHANGELOG.md b/packages/geo/CHANGELOG.md index 86d06731bf0..4aa7b63e4dd 100644 --- a/packages/geo/CHANGELOG.md +++ b/packages/geo/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.0.58](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/geo@3.0.57...@aws-amplify/geo@3.0.58) (2024-11-13) + +**Note:** Version bump only for package @aws-amplify/geo + +## [3.0.57](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/geo@3.0.56...@aws-amplify/geo@3.0.57) (2024-11-12) + +**Note:** Version bump only for package @aws-amplify/geo + ## [3.0.56](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/geo@3.0.55...@aws-amplify/geo@3.0.56) (2024-10-31) **Note:** Version bump only for package @aws-amplify/geo diff --git a/packages/geo/package.json b/packages/geo/package.json index 564838fef30..84afbc1ed0e 100644 --- a/packages/geo/package.json +++ b/packages/geo/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/geo", - "version": "3.0.56", + "version": "3.0.58", "description": "Geo category for aws-amplify", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -76,7 +76,7 @@ "@aws-amplify/core": "^6.1.0" }, "devDependencies": { - "@aws-amplify/core": "6.5.1", + "@aws-amplify/core": "6.5.3", "typescript": "5.0.2" }, "size-limit": [ diff --git a/packages/interactions/CHANGELOG.md b/packages/interactions/CHANGELOG.md index 993850639b2..ba6198c37dd 100644 --- a/packages/interactions/CHANGELOG.md +++ b/packages/interactions/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.0.57](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/interactions@6.0.56...@aws-amplify/interactions@6.0.57) (2024-11-13) + +**Note:** Version bump only for package @aws-amplify/interactions + +## [6.0.56](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/interactions@6.0.55...@aws-amplify/interactions@6.0.56) (2024-11-12) + +**Note:** Version bump only for package @aws-amplify/interactions + ## [6.0.55](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/interactions@6.0.54...@aws-amplify/interactions@6.0.55) (2024-10-31) **Note:** Version bump only for package @aws-amplify/interactions diff --git a/packages/interactions/package.json b/packages/interactions/package.json index 02f0f5015b7..c6afad8222d 100644 --- a/packages/interactions/package.json +++ b/packages/interactions/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/interactions", - "version": "6.0.55", + "version": "6.0.57", "description": "Interactions category of aws-amplify", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -81,7 +81,7 @@ "uuid": "^9.0.0" }, "devDependencies": { - "@aws-amplify/core": "6.5.1", + "@aws-amplify/core": "6.5.3", "typescript": "^5.0.2" }, "size-limit": [ diff --git a/packages/notifications/CHANGELOG.md b/packages/notifications/CHANGELOG.md index 91e2e473fa9..8a53f7eb202 100644 --- a/packages/notifications/CHANGELOG.md +++ b/packages/notifications/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.0.58](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/notifications@2.0.57...@aws-amplify/notifications@2.0.58) (2024-11-13) + +**Note:** Version bump only for package @aws-amplify/notifications + +## [2.0.57](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/notifications@2.0.56...@aws-amplify/notifications@2.0.57) (2024-11-12) + +**Note:** Version bump only for package @aws-amplify/notifications + ## [2.0.56](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/notifications@2.0.55...@aws-amplify/notifications@2.0.56) (2024-10-31) **Note:** Version bump only for package @aws-amplify/notifications diff --git a/packages/notifications/package.json b/packages/notifications/package.json index 5354f3ae8ea..05430066a13 100644 --- a/packages/notifications/package.json +++ b/packages/notifications/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/notifications", - "version": "2.0.56", + "version": "2.0.58", "description": "Notifications category of aws-amplify", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -98,7 +98,7 @@ "@aws-amplify/core": "^6.1.0" }, "devDependencies": { - "@aws-amplify/core": "6.5.1", + "@aws-amplify/core": "6.5.3", "@aws-amplify/react-native": "1.1.6", "typescript": "5.0.2" } diff --git a/packages/predictions/CHANGELOG.md b/packages/predictions/CHANGELOG.md index 3973ef20838..0f3ab4a03d6 100644 --- a/packages/predictions/CHANGELOG.md +++ b/packages/predictions/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.1.33](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@6.1.32...@aws-amplify/predictions@6.1.33) (2024-11-13) + +**Note:** Version bump only for package @aws-amplify/predictions + +## [6.1.32](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@6.1.31...@aws-amplify/predictions@6.1.32) (2024-11-12) + +**Note:** Version bump only for package @aws-amplify/predictions + ## [6.1.31](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@6.1.30...@aws-amplify/predictions@6.1.31) (2024-10-31) **Note:** Version bump only for package @aws-amplify/predictions diff --git a/packages/predictions/package.json b/packages/predictions/package.json index 9ab00354ba6..c972b675e20 100644 --- a/packages/predictions/package.json +++ b/packages/predictions/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/predictions", - "version": "6.1.31", + "version": "6.1.33", "description": "Machine learning category of aws-amplify", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -43,7 +43,7 @@ "src" ], "dependencies": { - "@aws-amplify/storage": "6.6.14", + "@aws-amplify/storage": "6.6.16", "@aws-sdk/client-comprehend": "3.621.0", "@aws-sdk/client-polly": "3.621.0", "@aws-sdk/client-rekognition": "3.621.0", @@ -59,7 +59,7 @@ "@aws-amplify/core": "^6.1.0" }, "devDependencies": { - "@aws-amplify/core": "6.5.1", + "@aws-amplify/core": "6.5.3", "typescript": "5.0.2" }, "size-limit": [ diff --git a/packages/pubsub/CHANGELOG.md b/packages/pubsub/CHANGELOG.md index e1c4fe5410b..f197f2f5fd1 100644 --- a/packages/pubsub/CHANGELOG.md +++ b/packages/pubsub/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.1.33](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pubsub@6.1.32...@aws-amplify/pubsub@6.1.33) (2024-11-13) + +**Note:** Version bump only for package @aws-amplify/pubsub + +## [6.1.32](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pubsub@6.1.31...@aws-amplify/pubsub@6.1.32) (2024-11-12) + +**Note:** Version bump only for package @aws-amplify/pubsub + ## [6.1.31](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pubsub@6.1.30...@aws-amplify/pubsub@6.1.31) (2024-10-31) **Note:** Version bump only for package @aws-amplify/pubsub diff --git a/packages/pubsub/package.json b/packages/pubsub/package.json index 94864d07f32..3836690f391 100644 --- a/packages/pubsub/package.json +++ b/packages/pubsub/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/pubsub", - "version": "6.1.31", + "version": "6.1.33", "description": "Pubsub category of aws-amplify", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -73,7 +73,7 @@ "mqtt" ], "dependencies": { - "@aws-amplify/auth": "6.6.0", + "@aws-amplify/auth": "6.6.2", "buffer": "4.9.2", "graphql": "15.8.0", "rxjs": "^7.8.1", @@ -84,7 +84,7 @@ "@aws-amplify/core": "^6.1.0" }, "devDependencies": { - "@aws-amplify/core": "6.5.1", + "@aws-amplify/core": "6.5.3", "typescript": "5.0.2" }, "size-limit": [ diff --git a/packages/storage/CHANGELOG.md b/packages/storage/CHANGELOG.md index 9c46a215ee4..f5039e23a09 100644 --- a/packages/storage/CHANGELOG.md +++ b/packages/storage/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.6.16](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/storage@6.6.15...@aws-amplify/storage@6.6.16) (2024-11-13) + +**Note:** Version bump only for package @aws-amplify/storage + +## [6.6.15](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/storage@6.6.14...@aws-amplify/storage@6.6.15) (2024-11-12) + +**Note:** Version bump only for package @aws-amplify/storage + ## [6.6.14](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/storage@6.6.13...@aws-amplify/storage@6.6.14) (2024-10-31) **Note:** Version bump only for package @aws-amplify/storage diff --git a/packages/storage/package.json b/packages/storage/package.json index 9f8fc60e413..2243eed63d1 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/storage", - "version": "6.6.14", + "version": "6.6.16", "description": "Storage category of aws-amplify", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -101,7 +101,7 @@ "@aws-amplify/core": "^6.1.0" }, "devDependencies": { - "@aws-amplify/core": "6.5.1", + "@aws-amplify/core": "6.5.3", "@aws-amplify/react-native": "1.1.6", "typescript": "5.0.2" } diff --git a/scripts/tsc-compliance-test/CHANGELOG.md b/scripts/tsc-compliance-test/CHANGELOG.md index 864316eb13c..c4e7343b5e4 100644 --- a/scripts/tsc-compliance-test/CHANGELOG.md +++ b/scripts/tsc-compliance-test/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.63](https://github.com/aws-amplify/amplify-js/compare/tsc-compliance-test@0.1.62...tsc-compliance-test@0.1.63) (2024-11-13) + +**Note:** Version bump only for package tsc-compliance-test + +## [0.1.62](https://github.com/aws-amplify/amplify-js/compare/tsc-compliance-test@0.1.61...tsc-compliance-test@0.1.62) (2024-11-12) + +**Note:** Version bump only for package tsc-compliance-test + ## [0.1.61](https://github.com/aws-amplify/amplify-js/compare/tsc-compliance-test@0.1.60...tsc-compliance-test@0.1.61) (2024-10-31) **Note:** Version bump only for package tsc-compliance-test diff --git a/scripts/tsc-compliance-test/package.json b/scripts/tsc-compliance-test/package.json index 9211102a2a0..3d2f88e1a3a 100644 --- a/scripts/tsc-compliance-test/package.json +++ b/scripts/tsc-compliance-test/package.json @@ -1,11 +1,11 @@ { "name": "tsc-compliance-test", - "version": "0.1.61", + "version": "0.1.63", "license": "MIT", "private": true, "devDependencies": { "@types/node": "16.18.82", - "aws-amplify": "6.8.0", + "aws-amplify": "6.8.2", "typescript": "4.2.x" }, "scripts": {