Skip to content

Commit 7f1e247

Browse files
committed
Document SSR removal release impact
1 parent 24fd4ae commit 7f1e247

4 files changed

Lines changed: 13 additions & 5 deletions

File tree

.changeset/remove-ssr-streaming.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"rescript-relay-router": major
3+
---
4+
5+
Migrate the package to ReScript 12/Rewatch and remove the unused SSR streaming stack.
6+
7+
Projects must use ReScript 12, regenerate router output, and no longer import the removed `./server` package export or SSR streaming helpers. Removed APIs include the server Vite plugin, manifest transform, `RelayRouter.Manifest`, `RelayRouter.PreloadInsertingStream`, and the SSR preload insertion utilities.

packages/rescript-relay-router/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ A router designed for scale, performance and ergonomics. Tailored for usage with
2020
The router requires the following:
2121

2222
- `rescript@>=12.0.0`
23-
- `vite` for your project setup, `>2.8.0`.
23+
- `react@>=18.2.0`
24+
- `vite@>=4.4.9` for your project setup.
2425
- [`build: { target: "esnext" }`](https://vitejs.dev/config/#build-target) in your `vite.config.js`.
2526
- `"type": "module"` in your `package.json`, meaning you need to run in es modules mode.
2627
- Your Relay config named `relay.config.cjs`.
2728
- Preferably `yarn` for everything to work smoothly.
28-
- `rescript-relay@>=1.1.0`
29+
- `rescript-relay@>=3.0.0`
2930

3031
Install the router and initialize it:
3132

@@ -40,7 +41,7 @@ yarn rescript-relay-router init
4041
yarn rescript-relay-router generate -scaffold-renderers
4142
```
4243

43-
This will create all necessary assets to get started. Now, add the router to your `bsconfig.json`:
44+
This will create all necessary assets to get started. Now, add the router to your `rescript.json`:
4445

4546
```json
4647
"dependencies": [

packages/rescript-relay-router/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"bin": "cli/RescriptRelayRouterCli.bundle.mjs",
4242
"peerDependencies": {
4343
"@rescript/react": ">=0.13.0",
44-
"react": ">=19.2.0",
44+
"react": ">=18.2.0",
4545
"rescript-relay": ">=3.0.0",
4646
"vite": ">=4.4.9"
4747
},

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5706,7 +5706,7 @@ __metadata:
57065706
vscode-jsonrpc: ^5.0.1
57075707
peerDependencies:
57085708
"@rescript/react": ">=0.13.0"
5709-
react: ">=19.2.0"
5709+
react: ">=18.2.0"
57105710
rescript-relay: ">=3.0.0"
57115711
vite: ">=4.4.9"
57125712
bin:

0 commit comments

Comments
 (0)