Skip to content

Commit eaa54cc

Browse files
authored
feat(): update dependencies, remove dependabot (#295)
1 parent fa8df6b commit eaa54cc

6 files changed

Lines changed: 241 additions & 168 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bun 1.1.27
1+
bun 1.1.33

bun.lockb

2.1 KB
Binary file not shown.

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010
},
1111
"description": "A React component which can parse JSX and output rendered React Components",
1212
"devDependencies": {
13-
"@happy-dom/global-registrator": "^14.12.3",
14-
"@types/acorn": "^4.0.6",
13+
"@happy-dom/global-registrator": "^15.7.4",
14+
"@types/acorn": "^6.0.0",
1515
"@types/bun": "^1.1.6",
16-
"@typescript-eslint/eslint-plugin": "^7.15.0",
17-
"@typescript-eslint/parser": "^7.15.0",
16+
"@typescript-eslint/eslint-plugin": "^8.0.0",
17+
"@typescript-eslint/parser": "^8.0.0",
1818
"basis": "github:TroyAlford/basis#v1.1.0",
19-
"concurrently": "^8.2.2",
19+
"concurrently": "^9.0.1",
2020
"cross-env": "^7.0.3",
21-
"eslint": "^8.57.0",
21+
"eslint": "8.57.1",
2222
"eslint-config-airbnb": "^19.0.4",
23-
"eslint-plugin-import": "^2.29.1",
23+
"eslint-plugin-import": "2.31.0",
2424
"eslint-plugin-jsx-a11y": "^6.9.0",
25-
"eslint-plugin-react": "^7.34.3",
25+
"eslint-plugin-react": "7.37.2",
2626
"mkdirp": "^3.0.1",
2727
"react": "^18.3.1",
2828
"react-dom": "^18.3.1",
@@ -56,13 +56,13 @@
5656
"scripts": {
5757
"build": "bun build:types && bun build:code",
5858
"build:code": "bun build --target=browser --outfile=./dist/react-jsx-parser.min.js ./source/index.ts --external react --external react-dom",
59-
"build:types": "bun run tsc -p ./tsconfig.json -d --emitDeclarationOnly",
59+
"build:types": "bun run tsc -p ./tsconfig.json -d --emitDeclarationOnly --preserveWatchOutput",
6060
"develop": "NODE_ENV=production concurrently -n build,ts,demo -c green,cyan,yellow \"bun build:code --watch\" \"bun build:types --watch\" \"bun serve\"",
6161
"lint": "bun eslint --ext .js,.ts,.tsx source/",
6262
"prebuild": "mkdirp ./dist && rm -rf ./dist/*",
63-
"serve": "bun serve --port=8080 --open",
63+
"serve": "bun ./demo/server.ts",
6464
"test": "bun lint && bun test"
6565
},
6666
"types": "dist/index.d.ts",
67-
"version": "2.2.0"
67+
"version": "2.2.1"
6868
}

source/components/JsxParser.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export default class JsxParser extends React.Component<TProps> {
308308
let member
309309
try {
310310
member = object[property]
311-
} catch (error) {
311+
} catch {
312312
this.props.onError!(new Error(`The property '${property}' could not be resolved on the object '${object}'.`))
313313
return undefined
314314
}

0 commit comments

Comments
 (0)