Skip to content

Commit

Permalink
Fix unintentional function change in React package, release version 2…
Browse files Browse the repository at this point in the history
….1.1
  • Loading branch information
bmuller committed May 2, 2024
1 parent 7d8a54d commit cdccf08
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const useParallel = () => {
parallel,
error,
loginStatus,
getProfile: new Promise<ProfileApiResponse>(parallel.getProfile),
getProfile: () => new Promise<ProfileApiResponse>(parallel.getProfile),
login: parallel.login,
logout: parallel.logout,
}
Expand Down
6 changes: 6 additions & 0 deletions packages/vanilla/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/vanilla/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit cdccf08

Please sign in to comment.