From cdccf08a6b70be024e93069a73accca6944005ac Mon Sep 17 00:00:00 2001 From: Brian Muller Date: Thu, 2 May 2024 13:56:57 -0400 Subject: [PATCH] Fix unintentional function change in React package, release version 2.1.1 --- package.json | 2 +- packages/react/CHANGELOG.md | 6 ++++++ packages/react/package.json | 2 +- packages/react/src/index.tsx | 2 +- packages/vanilla/CHANGELOG.md | 6 ++++++ packages/vanilla/package.json | 2 +- 6 files changed, 16 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5bf15f6..0ac7def 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "parallelmarkets", "private": true, - "version": "2.1.0", + "version": "2.1.1", "description": "ParallelMarkets.com JavaScript SDK loading utility", "scripts": { "build": "pnpm --filter '@parallelmarkets/*' build", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 3ed3f32..93b100d 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## v2.1.1 (2024-05-02) + +### Fixed + +- A bug was fixed in our React package to ensure `getProfile` remains a function. + ## v2.1.0 (2024-04-26) ### Changed diff --git a/packages/react/package.json b/packages/react/package.json index 15f3d23..caeb793 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@parallelmarkets/react", - "version": "2.1.0", + "version": "2.1.1", "description": "ParallelMarkets.com React SDK", "author": "Parallel Markets (https://parallelmarkets.com)", "license": "MIT", diff --git a/packages/react/src/index.tsx b/packages/react/src/index.tsx index 95a4ec1..19a4230 100644 --- a/packages/react/src/index.tsx +++ b/packages/react/src/index.tsx @@ -85,7 +85,7 @@ export const useParallel = () => { parallel, error, loginStatus, - getProfile: new Promise(parallel.getProfile), + getProfile: () => new Promise(parallel.getProfile), login: parallel.login, logout: parallel.logout, } diff --git a/packages/vanilla/CHANGELOG.md b/packages/vanilla/CHANGELOG.md index b804bbe..0525579 100644 --- a/packages/vanilla/CHANGELOG.md +++ b/packages/vanilla/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## v2.1.1 (2024-05-02) + +### Fixed + +- A bug was fixed in our React package to ensure `getProfile` remains a function. + ## v2.1.0 (2024-04-26) ### Changed diff --git a/packages/vanilla/package.json b/packages/vanilla/package.json index 8dbc275..6ebe9c9 100644 --- a/packages/vanilla/package.json +++ b/packages/vanilla/package.json @@ -1,6 +1,6 @@ { "name": "@parallelmarkets/vanilla", - "version": "2.1.0", + "version": "2.1.1", "description": "ParallelMarkets.com JavaScript SDK loading utility", "author": "Parallel Markets (https://parallelmarkets.com)", "license": "MIT",