Skip to content

Commit

Permalink
chore: updated all dependencies to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
danestves committed Nov 5, 2024
1 parent 82a5096 commit 747ce01
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 131 deletions.
8 changes: 5 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.2/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"nursery": {
"noUnusedImports": "error",
"correctness": {
"noUnusedImports": "error"
},
"style": {
"useImportType": "error"
}
}
Expand Down
Binary file modified bun.lockb
Binary file not shown.
232 changes: 114 additions & 118 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,120 +1,116 @@
{
"name": "headless-currency-input",
"version": "1.1.0",
"description": "Headless Currency Input is a component to format currency input in an elegant way.",
"keywords": [
"react",
"currency",
"input",
"mask",
"format",
"number",
"money",
"currency-input",
"currency-mask",
"currency-format",
"currency-number",
"currency-money",
"react-currency-input",
"react-currency-mask",
"react-currency-format",
"react-currency-number",
"react-currency-money"
],
"repository": {
"type": "git",
"url": "https://github.com/danestves/headless-currency-input"
},
"license": "MIT",
"author": {
"name": "Daniel Esteves",
"email": "[email protected]",
"url": "https://danestves.com"
},
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"main": "dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"commit": "cz",
"dev": "concurrently \"bun run build --watch\" \"bun run test\" ",
"lint": "biome lint .",
"lint:fix": "bun run lint --apply && biome format --write .",
"prepare": "husky install",
"test": "vitest run",
"test:ci": "vitest run --coverage",
"test:ui": "vitest --ui",
"test:watch": "vitest",
"typecheck": "tsc"
},
"lint-staged": {
"**.{js|ts|cjs|mjs|d.cts|d.mts|jsx|tsx|json|jsonc}": [
"biome check --files-ignore-unknown=true",
"biome check --apply --no-errors-on-unmatched",
"biome check --apply --organize-imports-enabled=false --no-errors-on-unmatched",
"biome check --apply-unsafe --no-errors-on-unmatched",
"biome format --write --no-errors-on-unmatched",
"biome lint --apply --no-errors-on-unmatched"
],
"*": [
"biome check --no-errors-on-unmatched --files-ignore-unknown=true"
]
},
"config": {
"commitizen": {
"path": "./node_modules/@ryansonshine/cz-conventional-changelog"
}
},
"resolutions": {
"glob-parent": ">=5.1.2",
"parse-url": ">=8.1.0",
"semver": ">=7.5.2",
"trim": ">=0.0.3",
"trim-newlines": ">=3.0.1",
"yaml": ">=2.2.2"
},
"dependencies": {
"@react-aria/utils": "3.23.0",
"@sumup/intl": "1.6.0",
"react-number-format": "5.3.1"
},
"devDependencies": {
"@biomejs/biome": "1.5.2",
"@commitlint/cli": "18.4.4",
"@commitlint/config-conventional": "18.4.4",
"@ryansonshine/commitizen": "4.2.8",
"@ryansonshine/cz-conventional-changelog": "3.3.4",
"@testing-library/jest-dom": "6.2.0",
"@testing-library/react": "14.1.2",
"@types/node": "20.11.5",
"@types/react": "18.2.48",
"@types/react-dom": "18.2.18",
"@vitejs/plugin-react": "4.2.1",
"@vitest/coverage-v8": "1.2.1",
"@vitest/ui": "1.2.1",
"concurrently": "8.2.2",
"husky": "8.0.3",
"jsdom": "23.2.0",
"lint-staged": "15.2.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"tsup": "8.0.1",
"typescript": "5.3.3",
"vitest": "1.2.1"
},
"peerDependencies": {
"react": ">=17",
"react-dom": ">=17"
},
"engines": {
"node": ">=18.0.0"
}
"name": "headless-currency-input",
"version": "1.1.0",
"description": "Headless Currency Input is a component to format currency input in an elegant way.",
"keywords": [
"react",
"currency",
"input",
"mask",
"format",
"number",
"money",
"currency-input",
"currency-mask",
"currency-format",
"currency-number",
"currency-money",
"react-currency-input",
"react-currency-mask",
"react-currency-format",
"react-currency-number",
"react-currency-money"
],
"repository": {
"type": "git",
"url": "https://github.com/danestves/headless-currency-input"
},
"license": "MIT",
"author": {
"name": "Daniel Esteves",
"email": "[email protected]",
"url": "https://danestves.com"
},
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"main": "dist/index.js",
"types": "./dist/index.d.ts",
"files": ["dist"],
"scripts": {
"build": "tsup",
"commit": "cz",
"dev": "concurrently \"bun run build --watch\" \"bun run test\" ",
"lint": "biome lint .",
"lint:fix": "bun run lint --write && biome format --write .",
"prepare": "husky install",
"test": "vitest run",
"test:ci": "vitest run --coverage",
"test:ui": "vitest --ui",
"test:watch": "vitest",
"typecheck": "tsc"
},
"lint-staged": {
"**.{js|ts|cjs|mjs|d.cts|d.mts|jsx|tsx|json|jsonc}": [
"biome check --files-ignore-unknown=true",
"biome check --apply --no-errors-on-unmatched",
"biome check --apply --organize-imports-enabled=false --no-errors-on-unmatched",
"biome check --apply-unsafe --no-errors-on-unmatched",
"biome format --write --no-errors-on-unmatched",
"biome lint --apply --no-errors-on-unmatched"
],
"*": ["biome check --no-errors-on-unmatched --files-ignore-unknown=true"]
},
"config": {
"commitizen": {
"path": "./node_modules/@ryansonshine/cz-conventional-changelog"
}
},
"resolutions": {
"glob-parent": ">=5.1.2",
"parse-url": ">=8.1.0",
"semver": ">=7.5.2",
"trim": ">=0.0.3",
"trim-newlines": ">=3.0.1",
"yaml": ">=2.2.2"
},
"dependencies": {
"@react-aria/utils": "3.25.3",
"@sumup/intl": "1.6.0",
"react-number-format": "5.4.2"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@commitlint/cli": "19.5.0",
"@commitlint/config-conventional": "19.5.0",
"@ryansonshine/commitizen": "4.2.8",
"@ryansonshine/cz-conventional-changelog": "3.3.4",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "16.0.1",
"@types/node": "20.11.5",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@vitejs/plugin-react": "4.3.3",
"@vitest/coverage-v8": "2.1.4",
"@vitest/ui": "2.1.4",
"concurrently": "9.1.0",
"husky": "9.1.6",
"jsdom": "25.0.1",
"lint-staged": "15.2.10",
"react": "18.3.1",
"react-dom": "18.3.1",
"tsup": "8.3.5",
"typescript": "5.6.3",
"vitest": "2.1.4"
},
"peerDependencies": {
"react": ">=17",
"react-dom": ">=17"
},
"engines": {
"node": ">=18.0.0"
}
}
2 changes: 1 addition & 1 deletion src/currency-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function RenderCurrencyInput(

function onValueChange(values: NumberFormatValues, sourceInfo: SourceInfo) {
const val = minimumFractionDigits
? (parseFloat(values.value) / divideBy).toFixed(minimumFractionDigits)
? (Number.parseFloat(values.value) / divideBy).toFixed(minimumFractionDigits)
: values.value;
const floatVal = values.floatValue && minimumFractionDigits ? values.floatValue / divideBy : values.floatValue;

Expand Down
18 changes: 9 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"compilerOptions": {
"esModuleInterop": true,
"jsx": "react-jsx",
"module": "ESNext",
"moduleResolution": "Bundler",
"skipLibCheck": true,
"strict": true,
"noEmit": true
}
"compilerOptions": {
"esModuleInterop": true,
"jsx": "react-jsx",
"module": "ESNext",
"moduleResolution": "Bundler",
"skipLibCheck": true,
"strict": true,
"noEmit": true
}
}

0 comments on commit 747ce01

Please sign in to comment.