Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: ci
on: push

env:
NODE_VERSION: 22.9.0
PNPM_VERSION: 9
NODE_VERSION: 22.16.0
PNPM_VERSION: 10

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 22.9.0
nodejs 22.16.0
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Parallel Markets JavaScript Modules

![CI Status](https://github.com/parallel-markets/parallel-js/workflows/ci/badge.svg)
[![CI Status](https://github.com/parallel-markets/parallel-js/workflows/ci/badge.svg?branch=master)](https://github.com/parallel-markets/parallel-js/actions?query=branch%3Amaster+workflow%3Aci)

This repo contains a few packages to make integration with the [Parallel Markets JavaScript SDK](https://developer.parallelmarkets.com/docs/javascript) as easy as possible.

If you'd just like to load our SDK via a `<script>` tag, then the starter example on [developer.parallelmarkets.com](https://developer.parallelmarkets.com/docs/javascript) is the easiest way to get started.

There is also a "vanilla" loader for the SDK that allows you to load it in an async way. See the [@parallelmarkets/vanilla](https://www.npmjs.com/package/@parallelmarkets/vanilla) package for more details. There is a "webpack" example in the examples folder that loads the SDK using this method.
There is also a "vanilla" loader for the SDK that allows you to load it in an async way. See the [@parallelmarkets/vanilla](https://www.npmjs.com/package/@parallelmarkets/vanilla) package for more details. There is a "webpack" example in the examples folder that loads the SDK using this method.

If you use [React](https://reactjs.org), there is a [@parallelmarkets/react](https://www.npmjs.com/package/@parallelmarkets/react) library with components to display a button, determine status, and make API calls. There is a "react-webpack" example in the examples folder that loads the SDK using this method.
If you use [React](https://reactjs.org), there is a [@parallelmarkets/react](https://www.npmjs.com/package/@parallelmarkets/react) library with components to display a button, determine status, and make API calls. There is a "react-webpack" example in the examples folder that loads the SDK using this method.
2 changes: 1 addition & 1 deletion examples/react-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"html-webpack-plugin": "^5.6.0",
"webpack": "^5.90.3",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.2"
"webpack-dev-server": ">=5.2.1"
}
}
2 changes: 1 addition & 1 deletion examples/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"html-webpack-plugin": "^5.6.0",
"webpack": "^5.90.3",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.2"
"webpack-dev-server": ">=5.2.1"
}
}
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
"license": "MIT",
"homepage": "https://developer.parallelmarkets.com/docs/javascript",
"devDependencies": {
"eslint": "^9.12.0",
"eslint-config-prettier": "^9.1.0",
"eslint": "^9.27.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-n": "^17.11.1",
"eslint-plugin-promise": "^7.1.0",
"globals": "^15.11.0",
"eslint-plugin-n": "^17.18.0",
"eslint-plugin-promise": "^7.2.1",
"globals": "^16.2.0",
"jest": "^29.7.0",
"rollup": "^4.24.0"
"rollup": "^4.41.1",
"prettier": "^3.2.5"
}
}
6 changes: 5 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
"@babel/eslint-parser": "^7.24.1",
"@babel/plugin-syntax-jsx": "^7.24.1",
"@babel/preset-env": "^7.24.4",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.27.0",
"@parallelmarkets/vanilla": "workspace:*",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
Expand All @@ -56,6 +58,7 @@
"@testing-library/react": "^15.0.2",
"@types/node": "^20.12.7",
"@types/react": "^18.2.79",
"@typescript-eslint/parser": "^8.33.0",
"babel-jest": "^29.7.0",
"babel-preset-react-app": "^10.0.1",
"eslint-plugin-react": "^7.34.0",
Expand All @@ -65,7 +68,8 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tslib": "^2.6.2",
"typescript": "^5.4.5"
"typescript": "^5.4.5",
"typescript-eslint": "7.7.1"
},
"peerDependencies": {
"@parallelmarkets/vanilla": "workspace:*",
Expand Down
2 changes: 2 additions & 0 deletions packages/react/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"extends": "../../tsconfig.json",
"include": ["./src/*", "./src/**/*.ts"],
"exclude": ["*-test.js"],
"compilerOptions": {
"lib": ["ES2020", "DOM"],
"target": "ES2020",
Expand Down
3 changes: 3 additions & 0 deletions packages/vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,15 @@
"@babel/eslint-parser": "^7.24.1",
"@babel/preset-env": "^7.24.4",
"@babel/preset-typescript": "^7.24.1",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.27.0",
"@jest/globals": "^29.7.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-typescript": "^11.1.6",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.7",
"@typescript-eslint/parser": "^8.33.0",
"globals": "^15.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/vanilla/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"extends": "../../tsconfig.json",
"include": ["./src/*.ts"],
"exclude": ["*-test.js"],
"compilerOptions": {
"lib": ["ES2020", "DOM"],
"target": "ES2020",
Expand Down
Loading