Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unintentional function change in React package, release version 2.1.1 #25

Merged
merged 2 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 (#25)

## 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 (#25)

## 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