Skip to content

Commit f740390

Browse files
committed
Update to ReScript 12
1 parent c8c3d05 commit f740390

26 files changed

Lines changed: 722 additions & 619 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ src/legacy/*.bs.js
1919

2020
# React
2121
!/src/react/*.js
22+
# ReScript
23+
lib/

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
> - :house: [Internal]
1111
> - :nail_care: [Polish]
1212
13+
## 0.15.0-alpha.1
14+
15+
#### :boom: [Breaking Change]
16+
17+
- Upgrade to ReScript 12.0.0
18+
1319
## 0.14.0
1420

1521
#### :nail_care: Polish
@@ -149,7 +155,6 @@ No changes compared to rc.3.
149155
- Removed the deprecation attribute from apis of the new jsx transform (introduced in React v17).
150156

151157
- New version requirements:
152-
153158
- ReScript compiler V10.1+
154159
- ReactJS v18.2.0+
155160

@@ -175,14 +180,12 @@ For history on previous evolution of the code, check out the original [reason-re
175180
- **IMPORTANT:** Currently, old third-party packages that are still dependent on `reason-react` will not mix with other `@rescript/react` based code due to a build system problem. Which means that every third-party dependency needs to be upgraded to `@rescript/react` first to make it compatible. See [this forum discussion](https://forum.rescript-lang.org/t/discussion-reason-react-rescript-react-migration-path/1086) for more details.
176181

177182
- Removed legacy modules ("record api"):
178-
179183
- `ReasonReactCompat`
180184
- `ReactDOMServerRe`
181185
- `ReactEventRe`
182186
- `ReasonReactOptimizedCreateClass`
183187

184188
- Renamed existing modules:
185-
186189
- `ReasonReactErrorBoundary` -> `RescriptReactErrorBoundary`
187190
- `ReasonReactRouter` -> `RescriptReactRouter`
188191
- (Note: Usually the two only valid styles would be `ReScript` or `rescript`, the latter being the version for technical writing. We are using `Rescript` here, since it is essentially the capitalized version of `rescript`)

package-lock.json

Lines changed: 194 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@
2828
},
2929
"homepage": "https://rescript-lang.org/docs/react/latest/introduction",
3030
"devDependencies": {
31-
"react": "^19.1.0",
32-
"react-dom": "^19.1.0",
33-
"rescript": "^11.0.0"
31+
"react": "^19.2.3",
32+
"react-dom": "^19.2.3",
33+
"rescript": "^12.1.0"
3434
},
3535
"peerDependencies": {
3636
"react": ">=19.0.0",
3737
"react-dom": ">=19.0.0"
38+
},
39+
"dependencies": {
40+
"@rescript/runtime": ">=12.0.0"
3841
}
3942
}

rescript.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
"version": 4,
55
"mode": "classic"
66
},
7-
"sources": [{ "dir": "src", "subdirs": true }],
8-
"package-specs": [{ "module": "commonjs", "in-source": true }],
9-
"suffix": ".bs.js",
10-
"bs-dev-dependencies": [],
11-
"bsc-flags": []
7+
"sources": [{ "dir": "src" }],
8+
"package-specs": [{ "module": "esmodule", "in-source": true }],
9+
"suffix": ".res.js"
1210
}

src/React.bs.js

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

0 commit comments

Comments
 (0)