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
9 changes: 4 additions & 5 deletions .github/workflows/deploy-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8.x
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version-file: .nvmrc
cache: pnpm
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: pnpm install
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 8.x
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version-file: .nvmrc
cache: pnpm
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: pnpm install
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/deprecate-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
deprecate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
version: 8.x
- uses: actions/setup-node@v3
with:
node-version: 18.x
node-version-file: .nvmrc
cache: pnpm
registry-url: https://registry.npmjs.org
- run: pnpm deprecate $LIBRARY_NAME@${{ inputs.VERSION }} ${{ inputs.MESSAGE }}}
- run: pnpm deprecate $LIBRARY_NAME@${{ inputs.VERSION }} ${{ inputs.MESSAGE }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22 changes: 14 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
version: 8.x
- name: Checkout
uses: actions/checkout@v3
node-version-file: .nvmrc
cache: pnpm
- name: install dependencies
run: pnpm install
- name: run lint
Expand All @@ -21,15 +24,18 @@ jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
version: 8.x
- name: Checkout
uses: actions/checkout@v3
node-version-file: .nvmrc
cache: pnpm
- name: Cypress run
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
with:
config-file: cypress.json
install-command: pnpm install --frozen-lockfile
build: pnpm cy:prepare
command: pnpm cy:run
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ cypress/screenshots
cypress/snapshots/*
!cypress/snapshots/components
cypress/**/__diff_output__
.idea
.DS_Store
14 changes: 0 additions & 14 deletions .npmignore

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This library was made for building frontend interfaces on top of **[Mindee](http

## Compatibility

The React SDK is compatible with `React 16.8.0 +`
The React SDK is compatible with `React 18` and `React 19`, and requires `Node.js >= 22.13` to build.

## Installation and dependencies

Expand Down Expand Up @@ -101,7 +101,7 @@ React mindee supports all recent browsers and works where React works. However,
Feel free to use github to submit issues, pull requests or general feedback.
You can also visit [our website](https://mindee.com) or drop us an [email](mailto:contact@mindee.com).

Please read our [Contributing section](https://github.com/publicMindee/react-mindee-js/blob/master/CONTRIBUTING.md) before contributing.
Please read our [Contributing section](https://github.com/mindee/react-mindee-js/blob/master/CONTRIBUTING.md) before contributing.

## License

Expand Down
30 changes: 24 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,32 @@
"description": "Front-End Computer Vision SDK for React",
"author": "@mindee",
"license": "MIT",
"repository": "publicMindee/react-mindee-js",
"main": "dist/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/mindee/react-mindee-js.git"
},
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"default": "./dist/index.mjs"
},
"./package.json": "./package.json"
},
"files": [
"dist",
"LICENSE",
"README.md",
"CHANGELOG.md"
],
"engines": {
"node": ">=10",
"npm": ">=5"
"node": ">=22.13"
},
"packageManager": "pnpm@12.8.1",
"dependencies": {
"@types/utif": "^3.0.1",
"heic2any": "^0.0.4",
"konva": "^8.1.3",
"pdfjs-dist": "3.11.174",
Expand All @@ -29,6 +45,7 @@
"@types/node": "^20.3.3",
"@types/react": "^19.2.9",
"@types/react-dom": "^19.2.3",
"@types/utif": "^3.0.1",
"@types/uuid": "^8.3.1",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
Expand All @@ -50,7 +67,8 @@
"vite-tsconfig-paths": "^4.2.0"
},
"peerDependencies": {
"react": "^18 || ^19"
"react": "^18 || ^19",
"react-dom": "^18 || ^19"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
Expand Down
Loading
Loading