Skip to content

Commit 58de67b

Browse files
committed
Update dev-dependencies
1 parent b151a90 commit 58de67b

File tree

6 files changed

+22
-10
lines changed

6 files changed

+22
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ node_modules/
77
.DS_Store
88
react-markdown.min.js
99
yarn.lock
10+
!/test-types.d.ts

lib/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,11 @@ export function defaultUrlTransform(value) {
318318

319319
if (
320320
// If there is no protocol, it’s relative.
321-
colon < 0 ||
321+
colon === -1 ||
322322
// If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
323-
(slash > -1 && colon > slash) ||
324-
(questionMark > -1 && colon > questionMark) ||
325-
(numberSign > -1 && colon > numberSign) ||
323+
(slash !== -1 && colon > slash) ||
324+
(questionMark !== -1 && colon > questionMark) ||
325+
(numberSign !== -1 && colon > numberSign) ||
326326
// It is a protocol, it should be allowed.
327327
safeProtocol.test(value.slice(0, colon))
328328
) {

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,22 +94,22 @@
9494
},
9595
"devDependencies": {
9696
"@types/node": "^22.0.0",
97-
"@types/react": "^18.0.0",
98-
"@types/react-dom": "^18.0.0",
97+
"@types/react": "^19.0.0",
98+
"@types/react-dom": "^19.0.0",
9999
"c8": "^10.0.0",
100100
"esbuild": "^0.24.0",
101101
"eslint-plugin-react": "^7.0.0",
102102
"prettier": "^3.0.0",
103-
"react": "^18.0.0",
104-
"react-dom": "^18.0.0",
103+
"react": "^19.0.0",
104+
"react-dom": "^19.0.0",
105105
"rehype-raw": "^7.0.0",
106106
"remark-cli": "^12.0.0",
107107
"remark-gfm": "^4.0.0",
108108
"remark-preset-wooorm": "^10.0.0",
109109
"remark-toc": "^9.0.0",
110110
"type-coverage": "^2.0.0",
111111
"typescript": "^5.0.0",
112-
"xo": "^0.59.0"
112+
"xo": "^0.60.0"
113113
},
114114
"scripts": {
115115
"build": "tsc --build --clean && tsc --build && type-coverage",

test-types.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type {JSX as Jsx} from 'react/jsx-runtime'
2+
3+
declare global {
4+
namespace JSX {
5+
type ElementClass = Jsx.ElementClass
6+
type Element = Jsx.Element
7+
type IntrinsicElements = Jsx.IntrinsicElements
8+
}
9+
}

test-types.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// See `test-types.d.ts`.
2+
export {}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
"target": "es2022"
1414
},
1515
"exclude": ["coverage/", "node_modules/"],
16-
"include": ["**/*.js", "**/*.jsx", "lib/complex-types.d.ts"]
16+
"include": ["**/*.js", "**/*.jsx", "test-types.d.ts"]
1717
}

0 commit comments

Comments
 (0)