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

feat(): update dependencies, remove dependabot #295

Merged
merged 12 commits into from
Oct 30, 2024
7 changes: 0 additions & 7 deletions .github/dependabot.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bun 1.1.27
bun 1.1.33
Binary file modified bun.lockb
Binary file not shown.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
},
"description": "A React component which can parse JSX and output rendered React Components",
"devDependencies": {
"@happy-dom/global-registrator": "^14.12.3",
"@types/acorn": "^4.0.6",
"@happy-dom/global-registrator": "^15.7.4",
"@types/acorn": "^6.0.0",
"@types/bun": "^1.1.6",
"@typescript-eslint/eslint-plugin": "^7.15.0",
"@typescript-eslint/parser": "^7.15.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"basis": "github:TroyAlford/basis#v1.1.0",
"concurrently": "^8.2.2",
"concurrently": "^9.0.1",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint": "8.57.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react": "7.37.2",
"mkdirp": "^3.0.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down Expand Up @@ -56,13 +56,13 @@
"scripts": {
"build": "bun build:types && bun build:code",
"build:code": "bun build --target=browser --outfile=./dist/react-jsx-parser.min.js ./source/index.ts --external react --external react-dom",
"build:types": "bun run tsc -p ./tsconfig.json -d --emitDeclarationOnly",
"build:types": "bun run tsc -p ./tsconfig.json -d --emitDeclarationOnly --preserveWatchOutput",
"develop": "NODE_ENV=production concurrently -n build,ts,demo -c green,cyan,yellow \"bun build:code --watch\" \"bun build:types --watch\" \"bun serve\"",
"lint": "bun eslint --ext .js,.ts,.tsx source/",
"prebuild": "mkdirp ./dist && rm -rf ./dist/*",
"serve": "bun serve --port=8080 --open",
"serve": "bun ./demo/server.ts",
"test": "bun lint && bun test"
},
"types": "dist/index.d.ts",
"version": "2.2.0"
"version": "2.2.1"
}
2 changes: 1 addition & 1 deletion source/components/JsxParser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export default class JsxParser extends React.Component<TProps> {
let member
try {
member = object[property]
} catch (error) {
} catch {
this.props.onError!(new Error(`The property '${property}' could not be resolved on the object '${object}'.`))
return undefined
}
Expand Down
Loading