Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,24 @@ name: Node.js CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
node-version: [24.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
- run: npm run test
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
- run: npm run test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ src/legacy/*.bs.js

# React
!/src/react/*.js
# ReScript
lib/
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
> - :house: [Internal]
> - :nail_care: [Polish]

## 0.15.0-alpha.1

#### :boom: [Breaking Change]

- Upgrade to ReScript 12.0.0

## 0.14.0

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

- New version requirements:

- ReScript compiler V10.1+
- ReactJS v18.2.0+

Expand All @@ -175,14 +180,12 @@ For history on previous evolution of the code, check out the original [reason-re
- **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.

- Removed legacy modules ("record api"):

- `ReasonReactCompat`
- `ReactDOMServerRe`
- `ReactEventRe`
- `ReasonReactOptimizedCreateClass`

- Renamed existing modules:

- `ReasonReactErrorBoundary` -> `RescriptReactErrorBoundary`
- `ReasonReactRouter` -> `RescriptReactRouter`
- (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`)
Expand Down
230 changes: 194 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@
},
"homepage": "https://rescript-lang.org/docs/react/latest/introduction",
"devDependencies": {
"react": "^19.1.0",
"react-dom": "^19.1.0",
"rescript": "^11.0.0"
"react": "^19.2.3",
"react-dom": "^19.2.3",
"rescript": "^12.1.0"
},
"peerDependencies": {
"react": ">=19.0.0",
"react-dom": ">=19.0.0"
},
"dependencies": {
"@rescript/runtime": ">=12.0.0"
}
}
8 changes: 3 additions & 5 deletions rescript.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"version": 4,
"mode": "classic"
},
"sources": [{ "dir": "src", "subdirs": true }],
"package-specs": [{ "module": "commonjs", "in-source": true }],
"suffix": ".bs.js",
"bs-dev-dependencies": [],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rescript-lang/rescript#8196 brought me here

"bsc-flags": []
"sources": [{ "dir": "src" }],
"package-specs": [{ "module": "esmodule", "in-source": true }],
"suffix": ".res.js"
}
Loading