From f2a31b1f4a91ba16b40b30c609dbf5434f8274e3 Mon Sep 17 00:00:00 2001 From: Cristiano Calcagno Date: Fri, 21 Oct 2022 11:21:46 +0200 Subject: [PATCH] Tests: use @rescript/react version 0.11.0-rc.2 --- analysis/tests/package-lock.json | 18 +++++++++--------- analysis/tests/package.json | 2 +- analysis/tests/src/expected/Div.res.txt | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/analysis/tests/package-lock.json b/analysis/tests/package-lock.json index f17e6ff13..4d641e49d 100644 --- a/analysis/tests/package-lock.json +++ b/analysis/tests/package-lock.json @@ -8,17 +8,17 @@ "rescript": "^10.1.0-rc.2" }, "devDependencies": { - "@rescript/react": "^0.11.0-alpha.1" + "@rescript/react": "^0.11.0-rc.2" } }, "node_modules/@rescript/react": { - "version": "0.11.0-alpha.1", - "resolved": "https://registry.npmjs.org/@rescript/react/-/react-0.11.0-alpha.1.tgz", - "integrity": "sha512-9JN9+K1MFrVIMncAJlCM5MjENP/MfPZxXmIKAD31cAYoDPAeSzYn/+theay93B/BsF71tSw8UUKQEgG8MB6e/g==", + "version": "0.11.0-rc.2", + "resolved": "https://registry.npmjs.org/@rescript/react/-/react-0.11.0-rc.2.tgz", + "integrity": "sha512-G0E6yzRJR5PVTGObuvqQzk7SAiqrXC+AVuhNkPQwE+RTKkfJCBlhNupk1HmncEh/vhmz4VOGsN7I8cRVyv5cvA==", "dev": true, "peerDependencies": { - "react": ">=18.2.0", - "react-dom": ">=18.2.0" + "react": ">=18.0.0", + "react-dom": ">=18.0.0" } }, "node_modules/js-tokens": { @@ -93,9 +93,9 @@ }, "dependencies": { "@rescript/react": { - "version": "0.11.0-alpha.1", - "resolved": "https://registry.npmjs.org/@rescript/react/-/react-0.11.0-alpha.1.tgz", - "integrity": "sha512-9JN9+K1MFrVIMncAJlCM5MjENP/MfPZxXmIKAD31cAYoDPAeSzYn/+theay93B/BsF71tSw8UUKQEgG8MB6e/g==", + "version": "0.11.0-rc.2", + "resolved": "https://registry.npmjs.org/@rescript/react/-/react-0.11.0-rc.2.tgz", + "integrity": "sha512-G0E6yzRJR5PVTGObuvqQzk7SAiqrXC+AVuhNkPQwE+RTKkfJCBlhNupk1HmncEh/vhmz4VOGsN7I8cRVyv5cvA==", "dev": true, "requires": {} }, diff --git a/analysis/tests/package.json b/analysis/tests/package.json index 979331309..cbb7a3e09 100644 --- a/analysis/tests/package.json +++ b/analysis/tests/package.json @@ -5,7 +5,7 @@ }, "private": true, "devDependencies": { - "@rescript/react": "^0.11.0-alpha.1" + "@rescript/react": "^0.11.0-rc.2" }, "dependencies": { "rescript": "^10.1.0-rc.2" diff --git a/analysis/tests/src/expected/Div.res.txt b/analysis/tests/src/expected/Div.res.txt index 530a94e2b..84813e372 100644 --- a/analysis/tests/src/expected/Div.res.txt +++ b/analysis/tests/src/expected/Div.res.txt @@ -1,6 +1,6 @@ Hover src/Div.res 0:10 getLocItem #3: heuristic for
-{"contents": "```rescript\n(\n string,\n ~props: ReactDOMRe.domProps=?,\n array,\n) => React.element\n```\n\n\n```\n \n```\n```rescript\ntype ReactDOMRe.domProps = ReactDOM.Props.domProps\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22ReactDOMRe.res%22%2C57%2C2%5D)\n\n---\n\n\n\n```\n \n```\n```rescript\ntype React.element = Jsx.element\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C0%2C0%5D)\n\n---\n"} +{"contents": "```rescript\n(\n string,\n ~props: ReactDOM_V3.domProps=?,\n array,\n) => React.element\n```\n\n\n```\n \n```\n```rescript\ntype ReactDOM_V3.domProps = Props.domProps\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22ReactDOM_V3.res%22%2C57%2C2%5D)\n\n---\n\n\n\n```\n \n```\n```rescript\ntype React.element = Jsx.element\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C0%2C0%5D)\n\n---\n"} Complete src/Div.res 3:17 posCursor:[3:17] posNoWhite:[3:16] Found expr:[3:4->3:17]