@bleedingdev/modern-js-app-tools 3.8.1-ultramodern.5 → 3.8.2-ultramodern.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
Configure React Server Components (RSC).
|
|
7
7
|
|
|
8
8
|
:::warning UltraModern availability
|
|
9
|
-
RSC is not shipped
|
|
9
|
+
RSC is experimental, default-off, and unsupported for external consumers; it is not shipped in the current UltraModern company distribution. Release-cohort and clean-room release-acceptance tests verify that RSC runtimes are absent and cannot resolve, and the release cohort has no maintained `@bleedingdev/*` RSC runtime package; when enabled, the framework intentionally fails closed unless an application supplies the complete optional toolchain.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
The root-only `react-server-dom-rspack@0.0.3` patch backports Flight decoder security fixes for this repository's RSC tests; it is never copied into generated workspaces or published to consumers, so an app installing the upstream package receives unpatched bytes. [SyMind/react#1](https://github.com/SyMind/react/pull/1) merged on 2026-08-11; [BleedingDev/react#1](https://github.com/BleedingDev/react/pull/1) and [rspack#15144](https://github.com/web-infra-dev/rspack/issues/15144) remain open. npm still reports `react-server-dom-rspack` `latest` as `0.0.3`, with no patched consumer release, so the root-only patch remains necessary for this repository's RSC tests. This boundary is pending final owner ratification.
|
|
12
12
|
:::
|
|
13
13
|
|
|
14
14
|
```ts title="modern.config.ts"
|
|
@@ -18,9 +18,9 @@ Before starting, we recommend reading React's official [Server Components docume
|
|
|
18
18
|
## Quick Start
|
|
19
19
|
|
|
20
20
|
:::warning UltraModern availability
|
|
21
|
-
RSC is not shipped
|
|
21
|
+
RSC is experimental, default-off, and unsupported for external consumers; it is not shipped in the current UltraModern company distribution. Release-cohort and clean-room release-acceptance tests verify that RSC runtimes are absent and cannot resolve, and the release cohort has no maintained `@bleedingdev/*` RSC runtime package; when enabled, the framework intentionally fails closed unless an application supplies the complete optional toolchain.
|
|
22
22
|
|
|
23
|
-
The
|
|
23
|
+
The root-only `react-server-dom-rspack@0.0.3` patch backports Flight decoder security fixes for this repository's RSC tests; it is never copied into generated workspaces or published to consumers, so an app installing the upstream package receives unpatched bytes. [SyMind/react#1](https://github.com/SyMind/react/pull/1) merged on 2026-08-11; [BleedingDev/react#1](https://github.com/BleedingDev/react/pull/1) and [rspack#15144](https://github.com/web-infra-dev/rspack/issues/15144) remain open. npm still reports `react-server-dom-rspack` `latest` as `0.0.3`, with no patched consumer release, so the root-only patch remains necessary for this repository's RSC tests. This boundary is pending final owner ratification.
|
|
24
24
|
:::
|
|
25
25
|
|
|
26
26
|
Keep [`server.rsc`](/configure/app/server/rsc.md) set to `false`:
|
|
@@ -73,20 +73,22 @@ mise exec -- pnpm check
|
|
|
73
73
|
mise exec -- pnpm build
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
### Migrating
|
|
76
|
+
### Migrating localized Cloudflare SSR workspaces
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
Current cohorts localize Cloudflare SSR workspaces.
|
|
79
|
+
The framework moves bare locale-root redirects into the framework-owned
|
|
80
80
|
Cloudflare Worker entry and the i18n server runtime. A request for `/` is
|
|
81
81
|
redirected server-side with `302` to the negotiated locale path, for example
|
|
82
82
|
`/cs` for `Accept-Language: cs-CZ` or `/en` for English and fallback traffic.
|
|
83
83
|
|
|
84
84
|
Existing generated workspaces should upgrade the whole BleedingDev Modern
|
|
85
|
-
package cohort together
|
|
85
|
+
package cohort together. Resolve the current cohort version first, then run
|
|
86
|
+
the matching migration:
|
|
86
87
|
|
|
87
88
|
```bash
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
COHORT="$(npm view @bleedingdev/modern-js-create version)"
|
|
90
|
+
pnpm dlx "@bleedingdev/modern-js-create@$COHORT" ultramodern \
|
|
91
|
+
migrate-strict-effect --version "$COHORT"
|
|
90
92
|
pnpm install
|
|
91
93
|
pnpm check
|
|
92
94
|
pnpm build
|
|
@@ -109,22 +111,23 @@ Do not fix older root `404` responses by adding app-owned root route files,
|
|
|
109
111
|
client-side redirects, custom navigation wrappers, Cloudflare Worker
|
|
110
112
|
postprocessing, generated output edits, or local redirect shims. If `/` still
|
|
111
113
|
returns `404` after upgrading, confirm the production build log shows
|
|
112
|
-
`Modern.js Framework
|
|
114
|
+
`Modern.js Framework v<cohort-version>` for the cohort you migrated to and
|
|
115
|
+
redeploy the Worker.
|
|
113
116
|
|
|
114
|
-
Strict generated API migration
|
|
115
|
-
`
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
newer with `--ultramodern-package-version`.
|
|
117
|
+
Strict generated API migration is part of every current cohort: the direct
|
|
118
|
+
`api/index.ts` generator, generated `.mts` checks, the strict Oxlint boundary
|
|
119
|
+
rule set, Effect cohort overrides, and the strict Effect migration command.
|
|
120
|
+
Agents that cannot install the BleedingDev cohort yet should use the local
|
|
121
|
+
Modern.js workspace for migration validation; otherwise pin the target cohort
|
|
122
|
+
with `--ultramodern-package-version`.
|
|
121
123
|
|
|
122
124
|
Before hand-editing package aliases or generated metadata, run the framework
|
|
123
125
|
migration command from the target workspace:
|
|
124
126
|
|
|
125
127
|
```bash
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
COHORT="$(npm view @bleedingdev/modern-js-create version)"
|
|
129
|
+
pnpm dlx "@bleedingdev/modern-js-create@$COHORT" ultramodern \
|
|
130
|
+
migrate-strict-effect --version "$COHORT"
|
|
128
131
|
pnpm api:check
|
|
129
132
|
pnpm contract:check
|
|
130
133
|
```
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.8.
|
|
20
|
+
"version": "3.8.2-ultramodern.3",
|
|
21
21
|
"types": "./dist/types/index.d.ts",
|
|
22
22
|
"main": "./dist/cjs/index.js",
|
|
23
23
|
"exports": {
|
|
@@ -134,16 +134,16 @@
|
|
|
134
134
|
"@babel/traverse": "^8.0.0",
|
|
135
135
|
"@babel/types": "^8.0.0",
|
|
136
136
|
"@loadable/component": "5.16.7",
|
|
137
|
-
"@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.8.
|
|
138
|
-
"@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.8.
|
|
139
|
-
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.8.
|
|
140
|
-
"@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.8.
|
|
141
|
-
"@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.8.
|
|
142
|
-
"@modern-js/server": "npm:@bleedingdev/modern-js-server@3.8.
|
|
143
|
-
"@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.8.
|
|
144
|
-
"@modern-js/server-utils": "npm:@bleedingdev/modern-js-server-utils@3.8.
|
|
145
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.8.
|
|
146
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.8.
|
|
137
|
+
"@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.8.2-ultramodern.3",
|
|
138
|
+
"@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.8.2-ultramodern.3",
|
|
139
|
+
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.8.2-ultramodern.3",
|
|
140
|
+
"@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.8.2-ultramodern.3",
|
|
141
|
+
"@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.8.2-ultramodern.3",
|
|
142
|
+
"@modern-js/server": "npm:@bleedingdev/modern-js-server@3.8.2-ultramodern.3",
|
|
143
|
+
"@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.8.2-ultramodern.3",
|
|
144
|
+
"@modern-js/server-utils": "npm:@bleedingdev/modern-js-server-utils@3.8.2-ultramodern.3",
|
|
145
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.8.2-ultramodern.3",
|
|
146
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.8.2-ultramodern.3",
|
|
147
147
|
"@rsbuild/core": "2.1.5",
|
|
148
148
|
"@swc/core": "1.15.43",
|
|
149
149
|
"@swc/helpers": "^0.5.23",
|