Skip to content

Commit a7675bd

Browse files
committed
Update to rescript@10
1 parent 7973309 commit a7675bd

File tree

6 files changed

+29
-31
lines changed

6 files changed

+29
-31
lines changed

HISTORY.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# History
22

3-
## 4.0.0-beta.1
3+
## 5.0.0
4+
* **[ BREAKING ]** Update to `rescript@10`.
5+
* **[ BREAKING ]** Replace `bs-webapi` with `rescript-webapi`.
6+
7+
## 4.0.0
48
* **[ BREAKING ]** Switch to `@rescript/react`.
59
* **[ BREAKING ]** Update `bs-platform`.
610

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@ Drag & drop for [`@rescript/react`](https://reasonml.github.io/reason-react/).
2525

2626
```shell
2727
# yarn
28-
yarn add rescript-dnd
28+
yarn add rescript-dnd rescript-webapi
2929
# or npm
30-
npm install --save rescript-dnd
30+
npm install --save rescript-dnd rescript-webapi
3131
```
3232

3333
Then add it to `bsconfig.json`:
3434

3535
```json
3636
"bs-dependencies": [
37-
"rescript-dnd"
37+
"rescript-dnd",
38+
"rescript-webapi"
3839
]
3940
```
4041

docs/01-GettingStartedGuide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ let reducer = (state, action) =>
179179
}
180180
```
181181

182-
> `ArrayExt.reinsert` is not a part of the public API since usually in a real-world app reordering is handled differently. If you want to inspect it or use it in your own code, you can find its definition in the [examples](../examples/libs/ArrayExt.re).
182+
> `ArrayExt.reinsert` is not a part of the public API since usually in a real-world app reordering is handled differently. If you want to inspect it or use it in your own code, you can find its definition in the [examples](../examples/libs/ArrayExt.res).
183183
184184
Looks like we have everything in place. This is how the final module looks like:
185185

examples/libs/ArrayExt.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
let findIndexOf = (arr: array<'a>, x: 'a) =>
22
switch arr->Js.Array2.findIndex(x' => x' === x) {
3-
| -1 => failwith(j`Unable to find \`$(x)\` in array \`$(arr)\``)
3+
| -1 => failwith(`Unable to find \`$(x)\` in array \`$(arr)\``)
44
| _ as i => i
55
}
66

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"url": "https://github.com/shakacode/rescript-dnd"
4343
},
4444
"dependencies": {
45-
"rescript-logger": "2.0.2"
45+
"rescript-logger": "3.0.0"
4646
},
4747
"peerDependencies": {
4848
"@rescript/react": ">=0.10.3",
@@ -51,12 +51,12 @@
5151
"devDependencies": {
5252
"@rescript/react": ">=0.10.3",
5353
"autoprefixer": "9.8.6",
54-
"bs-webapi": "0.19.1",
5554
"bsb-js": "1.1.7",
5655
"parcel-bundler": "1.12.4",
5756
"react": "17.0.2",
5857
"react-dom": "17.0.2",
59-
"rescript": "9.1.4",
60-
"rescript-classnames": "6.0.0"
58+
"rescript": "10.0.1",
59+
"rescript-classnames": "6.0.0",
60+
"rescript-webapi": "0.6.1"
6161
}
6262
}

yarn.lock

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@
936936
"@parcel/utils" "^1.11.0"
937937
physical-cpu-count "^2.0.0"
938938

939-
"@rescript/[email protected]":
939+
"@rescript/react@>=0.10.3":
940940
version "0.10.3"
941941
resolved "https://registry.yarnpkg.com/@rescript/react/-/react-0.10.3.tgz#a2a8bed6b017940ec26c2154764b350f50348889"
942942
integrity sha512-Lf9rzrR3bQPKJjOK3PBRa/B3xrJ7CqQ1HYr9VHPVxJidarIJJFZBhj0Dg1uZURX+Wg/xiP0PHFxXmdj2bK8Vxw==
@@ -1342,18 +1342,6 @@ browserslist@^4.0.0, browserslist@^4.1.0, browserslist@^4.12.0, browserslist@^4.
13421342
escalade "^3.1.0"
13431343
node-releases "^1.1.61"
13441344

1345-
bs-fetch@^0.6.2:
1346-
version "0.6.2"
1347-
resolved "https://registry.yarnpkg.com/bs-fetch/-/bs-fetch-0.6.2.tgz#37d982e9f79b9bc44c23e87ae78ccbee1f869adf"
1348-
integrity sha512-VXEjp8kY3vHPckaoy3d96Bx0KYjJAPLNISBwfpwMN26K6DtuZYwI2HKhx7zeHBajz1bRArfx7O8OOLcdtujMvg==
1349-
1350-
1351-
version "0.19.1"
1352-
resolved "https://registry.yarnpkg.com/bs-webapi/-/bs-webapi-0.19.1.tgz#cae7d65fc43795376becc44b56f46d85e5b8e878"
1353-
integrity sha512-sRhkNdHFBxzoiLH+r8rhlW9XSafBbbGCkvsxtTJ1QMABEaHKj8TejwA7TuBZH2ZYL2ur3sk291ukkge5qFm3Uw==
1354-
dependencies:
1355-
bs-fetch "^0.6.2"
1356-
13571345
13581346
version "1.1.7"
13591347
resolved "https://registry.yarnpkg.com/bsb-js/-/bsb-js-1.1.7.tgz#12cc91e974f5896b3a2aa8358419d24e56f552c3"
@@ -4411,15 +4399,20 @@ [email protected]:
44114399
resolved "https://registry.yarnpkg.com/rescript-classnames/-/rescript-classnames-6.0.0.tgz#e833d9fc88e0e494c2ef39862721a80ab75fae32"
44124400
integrity sha512-hfOffijzIPnULtRZW3Kf0DCfCaw9lhGaMxf81WYlREieyBS2KNMcdI/8g5uSXFj0j4Ci21xkf70EFCKjuCTqpw==
44134401

4414-
4415-
version "2.0.2"
4416-
resolved "https://registry.yarnpkg.com/rescript-logger/-/rescript-logger-2.0.2.tgz#fdcd564f0c04310cb673f475d501072d371bdeed"
4417-
integrity sha512-jbml41IgTyuiA7jnEYUqFeAKWnXAnlg5INCOpRPvhu99cLKFyFLl2B4GO04jznEDOgcpisJmwjm4WhfwhZETsQ==
4402+
4403+
version "3.0.0"
4404+
resolved "https://registry.yarnpkg.com/rescript-logger/-/rescript-logger-3.0.0.tgz#db1144c10cf7b2201ddc7bfe3336517497eb5d96"
4405+
integrity sha512-XNrIs7K/0/mU+CR1dJf/kxDgswZYl5VgWB4ddjw46+lVagYjcWHK9obSV2vqDO9xjqTKDSli4CS2mvRC5C850w==
4406+
4407+
4408+
version "0.6.1"
4409+
resolved "https://registry.yarnpkg.com/rescript-webapi/-/rescript-webapi-0.6.1.tgz#b7e578c743b08e09f259938a6e9300c238020591"
4410+
integrity sha512-I/eeHOcsUfWbCf6u15zd+rKxMz9awSjjdRa8eFtl2X+HjDNs0mJxoC4uFFK9dIazYcmY2VpuK5TTpOPXvdkhDw==
44184411

4419-
rescript@9.1.4:
4420-
version "9.1.4"
4421-
resolved "https://registry.yarnpkg.com/rescript/-/rescript-9.1.4.tgz#1eb126f98d6c16942c0bf0df67c050198e580515"
4422-
integrity sha512-aXANK4IqecJzdnDpJUsU6pxMViCR5ogAxzuqS0mOr8TloMnzAjJFu63fjD6LCkWrKAhlMkFFzQvVQYaAaVkFXw==
4412+
rescript@10.0.1:
4413+
version "10.0.1"
4414+
resolved "https://registry.yarnpkg.com/rescript/-/rescript-10.0.1.tgz#5b2da8a8bcfb994bed1eb24820bf10cfb9d8c440"
4415+
integrity sha512-XwO1GPDtoEU4H03xQE5bp0/qtSVR6YLaJRPxWKrfFgKc+LI36ODOCie7o9UJfgzQdoMYkkZyiTGZ4N9OQEaiUw==
44234416

44244417
resolve-from@^3.0.0:
44254418
version "3.0.0"

0 commit comments

Comments
 (0)