@bleedingdev/modern-js-ultramodern-create 3.9.3-ultramodern.15 → 3.9.3-ultramodern.17

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.
package/README.md CHANGED
@@ -148,10 +148,23 @@ fatal. These official proxy commands run the provider's Effect-enabled
148
148
  binaries without changing the package store.
149
149
  The shared compiler resolver selects the provider's tsrs for generated React and
150
150
  Solid checks and Modern/Rspack builds, or Effect-Go on unsupported tsrs hosts.
151
- The installed typecheck command sets
152
- `TSRS_CHECKER_ASSIGNMENT` to the caller's explicit value or `locality` by default,
153
- and does not add `--checkers` or `--builders` in build mode. Octane apps retain
154
- `octane-tsc` for their native TS7 checker.
151
+ The installed typecheck command turns on the tsrs fast preset (`TSRS_FAST=1`)
152
+ and, in build mode, runs `--checkers` set to the core count minus 2, from 4 to 8.
153
+ On a 27-project workspace this cut check time by about 20% at about the same
154
+ peak memory, with identical diagnostics. Set `checkers: 4` to keep the fast
155
+ preset's memory saving (about 20%) instead. A project changes these defaults in its
156
+ root `package.json`:
157
+
158
+ ```json
159
+ { "ultramodern": { "typecheck": { "fast": true, "checkers": "auto", "builders": 4 } } }
160
+ ```
161
+
162
+ `checkers` takes `"auto"` or a positive integer; `builders` is unset by default,
163
+ which keeps tsrs's own count. `TSRS_FAST`, `ULTRAMODERN_TYPECHECK_CHECKERS` and
164
+ `ULTRAMODERN_TYPECHECK_BUILDERS` override the file, and `--checkers`,
165
+ `--builders` or `--singleThreaded` passed to the command override both. An
166
+ explicit `TSRS_CHECKER_ASSIGNMENT` is kept; with `fast: false` it defaults to
167
+ `locality`. Octane apps retain `octane-tsc` for their native TS7 checker.
155
168
  All renderer profiles retain exact stable `typescript@7.0.2` for metadata and
156
169
  tool dependencies. This is separate from tsrs's embedded TypeScript
157
170
  `7.1.0-beta`. Only these exact compiler releases and their declared native
@@ -32,10 +32,10 @@ const __rspack_default_export = [
32
32
  packageName: '@tanstack/redact',
33
33
  version: '0.2.1',
34
34
  path: 'patches/@tanstack__redact@0.2.1.patch',
35
- sha256: 'feb4fe5b8741475d8edfcb5f99675330b01f3512808563a60f16edd22e60f9fd',
35
+ sha256: 'b33e04434a8dd45c292a68b9c5d0bfe560f34bcf5517cfdeee39f10746ebd5bc',
36
36
  repository: false,
37
37
  workspace: null,
38
- reason: "Keep shipped source and dist behavior equivalent for streamed Suspense boundaries that stay inline when they complete before their bytes are written, tree-position useId, prefixed hexadecimal transport IDs, document-wide reveal registrations without changing upstream early-event capture or replay, stylesheet reveals that discard rejected segments, table fallback ranges and SVG/MathML integration points, deleted pending boundary ownership with subscription disposal and late-segment cleanup, Element-root metadata adoption with attempt-scoped claims and range-scoped inline lookup, and error-fallback bubbling with Suspense marker placement. Includes already-merged upstream root-transition, retained-subscriber, hydration/store, browser-text, and inline-metadata corrections from 89f2bfc, 2a14852, and 47f206e. Independent TanStack/redact SSR PRs remain pending. The tanstack-redact sidecar recipe reconstructs from this reviewed 0.2.1 source/dist correction and v1 stream marker; app-tools installs that signed sidecar through its exact npm:@bleedingdev/tanstack-redact@0.2.1 alias, so the patch is not projected into repository patchedDependencies. Generated workspaces remain patch-free."
38
+ reason: "Keep shipped source and dist behavior equivalent for streamed Suspense boundaries that stay inline when they complete before their bytes are written, tree-position useId, prefixed hexadecimal transport IDs, document-wide reveal registrations without changing upstream early-event capture or replay, stylesheet reveals that discard rejected segments, table fallback ranges and SVG/MathML integration points, deleted pending boundary ownership with subscription disposal and late-segment cleanup, Element-root metadata adoption with attempt-scoped claims and range-scoped inline lookup, error-fallback bubbling with Suspense marker placement, and synthetic events that copy non-enumerable Event fields such as the happy-dom type and target accessors (TanStack/redact#113). Includes already-merged upstream root-transition, retained-subscriber, hydration/store, browser-text, and inline-metadata corrections from 89f2bfc, 2a14852, and 47f206e. Independent TanStack/redact SSR PRs remain pending. The tanstack-redact sidecar recipe reconstructs @bleedingdev/tanstack-redact@0.2.2 from this reviewed 0.2.1 source/dist correction and v1 stream marker; app-tools installs the signed sidecar through its exact npm:@bleedingdev/tanstack-redact alias, so the patch is not projected into repository patchedDependencies. Generated workspaces remain patch-free."
39
39
  },
40
40
  {
41
41
  packageName: '@tanstack/router-core',
@@ -3,10 +3,10 @@ const patch_inventory = [
3
3
  packageName: '@tanstack/redact',
4
4
  version: '0.2.1',
5
5
  path: 'patches/@tanstack__redact@0.2.1.patch',
6
- sha256: 'feb4fe5b8741475d8edfcb5f99675330b01f3512808563a60f16edd22e60f9fd',
6
+ sha256: 'b33e04434a8dd45c292a68b9c5d0bfe560f34bcf5517cfdeee39f10746ebd5bc',
7
7
  repository: false,
8
8
  workspace: null,
9
- reason: "Keep shipped source and dist behavior equivalent for streamed Suspense boundaries that stay inline when they complete before their bytes are written, tree-position useId, prefixed hexadecimal transport IDs, document-wide reveal registrations without changing upstream early-event capture or replay, stylesheet reveals that discard rejected segments, table fallback ranges and SVG/MathML integration points, deleted pending boundary ownership with subscription disposal and late-segment cleanup, Element-root metadata adoption with attempt-scoped claims and range-scoped inline lookup, and error-fallback bubbling with Suspense marker placement. Includes already-merged upstream root-transition, retained-subscriber, hydration/store, browser-text, and inline-metadata corrections from 89f2bfc, 2a14852, and 47f206e. Independent TanStack/redact SSR PRs remain pending. The tanstack-redact sidecar recipe reconstructs from this reviewed 0.2.1 source/dist correction and v1 stream marker; app-tools installs that signed sidecar through its exact npm:@bleedingdev/tanstack-redact@0.2.1 alias, so the patch is not projected into repository patchedDependencies. Generated workspaces remain patch-free."
9
+ reason: "Keep shipped source and dist behavior equivalent for streamed Suspense boundaries that stay inline when they complete before their bytes are written, tree-position useId, prefixed hexadecimal transport IDs, document-wide reveal registrations without changing upstream early-event capture or replay, stylesheet reveals that discard rejected segments, table fallback ranges and SVG/MathML integration points, deleted pending boundary ownership with subscription disposal and late-segment cleanup, Element-root metadata adoption with attempt-scoped claims and range-scoped inline lookup, error-fallback bubbling with Suspense marker placement, and synthetic events that copy non-enumerable Event fields such as the happy-dom type and target accessors (TanStack/redact#113). Includes already-merged upstream root-transition, retained-subscriber, hydration/store, browser-text, and inline-metadata corrections from 89f2bfc, 2a14852, and 47f206e. Independent TanStack/redact SSR PRs remain pending. The tanstack-redact sidecar recipe reconstructs @bleedingdev/tanstack-redact@0.2.2 from this reviewed 0.2.1 source/dist correction and v1 stream marker; app-tools installs the signed sidecar through its exact npm:@bleedingdev/tanstack-redact alias, so the patch is not projected into repository patchedDependencies. Generated workspaces remain patch-free."
10
10
  },
11
11
  {
12
12
  packageName: '@tanstack/router-core',
@@ -4,10 +4,10 @@ const patch_inventory = [
4
4
  packageName: '@tanstack/redact',
5
5
  version: '0.2.1',
6
6
  path: 'patches/@tanstack__redact@0.2.1.patch',
7
- sha256: 'feb4fe5b8741475d8edfcb5f99675330b01f3512808563a60f16edd22e60f9fd',
7
+ sha256: 'b33e04434a8dd45c292a68b9c5d0bfe560f34bcf5517cfdeee39f10746ebd5bc',
8
8
  repository: false,
9
9
  workspace: null,
10
- reason: "Keep shipped source and dist behavior equivalent for streamed Suspense boundaries that stay inline when they complete before their bytes are written, tree-position useId, prefixed hexadecimal transport IDs, document-wide reveal registrations without changing upstream early-event capture or replay, stylesheet reveals that discard rejected segments, table fallback ranges and SVG/MathML integration points, deleted pending boundary ownership with subscription disposal and late-segment cleanup, Element-root metadata adoption with attempt-scoped claims and range-scoped inline lookup, and error-fallback bubbling with Suspense marker placement. Includes already-merged upstream root-transition, retained-subscriber, hydration/store, browser-text, and inline-metadata corrections from 89f2bfc, 2a14852, and 47f206e. Independent TanStack/redact SSR PRs remain pending. The tanstack-redact sidecar recipe reconstructs from this reviewed 0.2.1 source/dist correction and v1 stream marker; app-tools installs that signed sidecar through its exact npm:@bleedingdev/tanstack-redact@0.2.1 alias, so the patch is not projected into repository patchedDependencies. Generated workspaces remain patch-free."
10
+ reason: "Keep shipped source and dist behavior equivalent for streamed Suspense boundaries that stay inline when they complete before their bytes are written, tree-position useId, prefixed hexadecimal transport IDs, document-wide reveal registrations without changing upstream early-event capture or replay, stylesheet reveals that discard rejected segments, table fallback ranges and SVG/MathML integration points, deleted pending boundary ownership with subscription disposal and late-segment cleanup, Element-root metadata adoption with attempt-scoped claims and range-scoped inline lookup, error-fallback bubbling with Suspense marker placement, and synthetic events that copy non-enumerable Event fields such as the happy-dom type and target accessors (TanStack/redact#113). Includes already-merged upstream root-transition, retained-subscriber, hydration/store, browser-text, and inline-metadata corrections from 89f2bfc, 2a14852, and 47f206e. Independent TanStack/redact SSR PRs remain pending. The tanstack-redact sidecar recipe reconstructs @bleedingdev/tanstack-redact@0.2.2 from this reviewed 0.2.1 source/dist correction and v1 stream marker; app-tools installs the signed sidecar through its exact npm:@bleedingdev/tanstack-redact alias, so the patch is not projected into repository patchedDependencies. Generated workspaces remain patch-free."
11
11
  },
12
12
  {
13
13
  packageName: '@tanstack/router-core',
package/package.json CHANGED
@@ -26,7 +26,7 @@
26
26
  "engines": {
27
27
  "node": ">=26.12.0"
28
28
  },
29
- "version": "3.9.3-ultramodern.15",
29
+ "version": "3.9.3-ultramodern.17",
30
30
  "types": "./dist/types/index.d.ts",
31
31
  "main": "./dist/esm-node/index.js",
32
32
  "bin": {
@@ -86,22 +86,22 @@
86
86
  "@babel/core": "7.29.7",
87
87
  "@babel/parser": "^8.0.7",
88
88
  "@effect/tsgo": "0.63.0",
89
- "@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.9.3-ultramodern.15",
90
- "@modern-js/app-tools-extensions": "npm:@bleedingdev/modern-js-app-tools-extensions@3.9.3-ultramodern.15",
91
- "@modern-js/backend-federation-contracts": "npm:@bleedingdev/modern-js-backend-federation-contracts@3.9.3-ultramodern.15",
89
+ "@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.9.3-ultramodern.17",
90
+ "@modern-js/app-tools-extensions": "npm:@bleedingdev/modern-js-app-tools-extensions@3.9.3-ultramodern.17",
91
+ "@modern-js/backend-federation-contracts": "npm:@bleedingdev/modern-js-backend-federation-contracts@3.9.3-ultramodern.17",
92
92
  "@modern-js/codesmith": "2.6.9",
93
- "@modern-js/i18n-integration": "npm:@bleedingdev/modern-js-i18n-integration@3.9.3-ultramodern.15",
94
- "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.9.3-ultramodern.15",
95
- "@modern-js/plugin-bff-build-extensions": "npm:@bleedingdev/modern-js-plugin-bff-build-extensions@3.9.3-ultramodern.15",
96
- "@modern-js/plugin-i18n": "npm:@bleedingdev/modern-js-plugin-i18n@3.9.3-ultramodern.15",
97
- "@modern-js/plugin-tanstack": "npm:@bleedingdev/modern-js-plugin-tanstack@3.9.3-ultramodern.15",
98
- "@modern-js/renderer-core": "npm:@bleedingdev/modern-js-renderer-core@3.9.3-ultramodern.15",
99
- "@modern-js/renderer-octane": "npm:@bleedingdev/modern-js-renderer-octane@3.9.3-ultramodern.15",
100
- "@modern-js/renderer-solid": "npm:@bleedingdev/modern-js-renderer-solid@3.9.3-ultramodern.15",
101
- "@modern-js/runtime": "npm:@bleedingdev/modern-js-runtime@3.9.3-ultramodern.15",
102
- "@modern-js/runtime-renderer-extensions": "npm:@bleedingdev/modern-js-runtime-renderer-extensions@3.9.3-ultramodern.15",
103
- "@modern-js/ultramodern-app-tools": "npm:@bleedingdev/modern-js-ultramodern-app-tools@3.9.3-ultramodern.15",
104
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.3-ultramodern.15",
93
+ "@modern-js/i18n-integration": "npm:@bleedingdev/modern-js-i18n-integration@3.9.3-ultramodern.17",
94
+ "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.9.3-ultramodern.17",
95
+ "@modern-js/plugin-bff-build-extensions": "npm:@bleedingdev/modern-js-plugin-bff-build-extensions@3.9.3-ultramodern.17",
96
+ "@modern-js/plugin-i18n": "npm:@bleedingdev/modern-js-plugin-i18n@3.9.3-ultramodern.17",
97
+ "@modern-js/plugin-tanstack": "npm:@bleedingdev/modern-js-plugin-tanstack@3.9.3-ultramodern.17",
98
+ "@modern-js/renderer-core": "npm:@bleedingdev/modern-js-renderer-core@3.9.3-ultramodern.17",
99
+ "@modern-js/renderer-octane": "npm:@bleedingdev/modern-js-renderer-octane@3.9.3-ultramodern.17",
100
+ "@modern-js/renderer-solid": "npm:@bleedingdev/modern-js-renderer-solid@3.9.3-ultramodern.17",
101
+ "@modern-js/runtime": "npm:@bleedingdev/modern-js-runtime@3.9.3-ultramodern.17",
102
+ "@modern-js/runtime-renderer-extensions": "npm:@bleedingdev/modern-js-runtime-renderer-extensions@3.9.3-ultramodern.17",
103
+ "@modern-js/ultramodern-app-tools": "npm:@bleedingdev/modern-js-ultramodern-app-tools@3.9.3-ultramodern.17",
104
+ "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.3-ultramodern.17",
105
105
  "@module-federation/modern-js-v3": "npm:@bleedingdev/mf-modern-js-v3@2.9.4",
106
106
  "@rsbuild/plugin-tailwindcss": "2.0.3",
107
107
  "@typescript/native": "npm:typescript@7.0.2",
@@ -119,7 +119,7 @@
119
119
  "zephyr-rspack-plugin": "1.6.0"
120
120
  },
121
121
  "devDependencies": {
122
- "@modern-js/i18n-runtime-extensions": "npm:@bleedingdev/modern-js-i18n-runtime-extensions@3.9.3-ultramodern.15",
122
+ "@modern-js/i18n-runtime-extensions": "npm:@bleedingdev/modern-js-i18n-runtime-extensions@3.9.3-ultramodern.17",
123
123
  "@octanejs/rspack-plugin": "https://github.com/BleedingDev/octane/releases/download/ultramodern-octane-2383d2ab1e70/octanejs-rspack-plugin-0.2.4.tgz",
124
124
  "@rslib/core": "1.0.3",
125
125
  "@scripts/rstest-config": "2.66.0",
@@ -139,7 +139,7 @@
139
139
  "@effect/opentelemetry@4.0.7"
140
140
  ],
141
141
  "sourceName": "@modern-js/ultramodern-create",
142
- "frameworkVersion": "3.9.3-ultramodern.15"
142
+ "frameworkVersion": "3.9.3-ultramodern.17"
143
143
  },
144
144
  "scripts": {
145
145
  "build": "pnpm clean && rslib build -c rslib.config.mts",
@@ -54,252 +54,252 @@
54
54
  {
55
55
  "sourceName": "@modern-js/adapter-rstest",
56
56
  "targetName": "@bleedingdev/modern-js-adapter-rstest",
57
- "version": "3.9.3-ultramodern.15"
57
+ "version": "3.9.3-ultramodern.17"
58
58
  },
59
59
  {
60
60
  "sourceName": "@modern-js/app-tools",
61
61
  "targetName": "@bleedingdev/modern-js-app-tools",
62
- "version": "3.9.3-ultramodern.15"
62
+ "version": "3.9.3-ultramodern.17"
63
63
  },
64
64
  {
65
65
  "sourceName": "@modern-js/app-tools-extensions",
66
66
  "targetName": "@bleedingdev/modern-js-app-tools-extensions",
67
- "version": "3.9.3-ultramodern.15"
67
+ "version": "3.9.3-ultramodern.17"
68
68
  },
69
69
  {
70
70
  "sourceName": "@modern-js/backend-federation-contracts",
71
71
  "targetName": "@bleedingdev/modern-js-backend-federation-contracts",
72
- "version": "3.9.3-ultramodern.15"
72
+ "version": "3.9.3-ultramodern.17"
73
73
  },
74
74
  {
75
75
  "sourceName": "@modern-js/bff-core",
76
76
  "targetName": "@bleedingdev/modern-js-bff-core",
77
- "version": "3.9.3-ultramodern.15"
77
+ "version": "3.9.3-ultramodern.17"
78
78
  },
79
79
  {
80
80
  "sourceName": "@modern-js/bff-effect",
81
81
  "targetName": "@bleedingdev/modern-js-bff-effect",
82
- "version": "3.9.3-ultramodern.15"
82
+ "version": "3.9.3-ultramodern.17"
83
83
  },
84
84
  {
85
85
  "sourceName": "@modern-js/bff-runtime",
86
86
  "targetName": "@bleedingdev/modern-js-bff-runtime",
87
- "version": "3.9.3-ultramodern.15"
87
+ "version": "3.9.3-ultramodern.17"
88
88
  },
89
89
  {
90
90
  "sourceName": "@modern-js/boundary-debugger",
91
91
  "targetName": "@bleedingdev/modern-js-boundary-debugger",
92
- "version": "3.9.3-ultramodern.15"
92
+ "version": "3.9.3-ultramodern.17"
93
93
  },
94
94
  {
95
95
  "sourceName": "@modern-js/builder",
96
96
  "targetName": "@bleedingdev/modern-js-builder",
97
- "version": "3.9.3-ultramodern.15"
97
+ "version": "3.9.3-ultramodern.17"
98
98
  },
99
99
  {
100
100
  "sourceName": "@modern-js/code-tools",
101
101
  "targetName": "@bleedingdev/modern-js-code-tools",
102
- "version": "3.9.3-ultramodern.15"
102
+ "version": "3.9.3-ultramodern.17"
103
103
  },
104
104
  {
105
105
  "sourceName": "@modern-js/create-request",
106
106
  "targetName": "@bleedingdev/modern-js-create-request",
107
- "version": "3.9.3-ultramodern.15"
107
+ "version": "3.9.3-ultramodern.17"
108
108
  },
109
109
  {
110
110
  "sourceName": "@modern-js/federation-runtime",
111
111
  "targetName": "@bleedingdev/modern-js-federation-runtime",
112
- "version": "3.9.3-ultramodern.15"
112
+ "version": "3.9.3-ultramodern.17"
113
113
  },
114
114
  {
115
115
  "sourceName": "@modern-js/i18n-integration",
116
116
  "targetName": "@bleedingdev/modern-js-i18n-integration",
117
- "version": "3.9.3-ultramodern.15"
117
+ "version": "3.9.3-ultramodern.17"
118
118
  },
119
119
  {
120
120
  "sourceName": "@modern-js/i18n-runtime-extensions",
121
121
  "targetName": "@bleedingdev/modern-js-i18n-runtime-extensions",
122
- "version": "3.9.3-ultramodern.15"
122
+ "version": "3.9.3-ultramodern.17"
123
123
  },
124
124
  {
125
125
  "sourceName": "@modern-js/i18n-utils",
126
126
  "targetName": "@bleedingdev/modern-js-i18n-utils",
127
- "version": "3.9.3-ultramodern.15"
127
+ "version": "3.9.3-ultramodern.17"
128
128
  },
129
129
  {
130
130
  "sourceName": "@modern-js/image",
131
131
  "targetName": "@bleedingdev/modern-js-image",
132
- "version": "3.9.3-ultramodern.15"
132
+ "version": "3.9.3-ultramodern.17"
133
133
  },
134
134
  {
135
135
  "sourceName": "@modern-js/main-doc",
136
136
  "targetName": "@bleedingdev/modern-js-main-doc",
137
- "version": "3.9.3-ultramodern.15"
137
+ "version": "3.9.3-ultramodern.17"
138
138
  },
139
139
  {
140
140
  "sourceName": "@modern-js/plugin",
141
141
  "targetName": "@bleedingdev/modern-js-plugin",
142
- "version": "3.9.3-ultramodern.15"
142
+ "version": "3.9.3-ultramodern.17"
143
143
  },
144
144
  {
145
145
  "sourceName": "@modern-js/plugin-bff",
146
146
  "targetName": "@bleedingdev/modern-js-plugin-bff",
147
- "version": "3.9.3-ultramodern.15"
147
+ "version": "3.9.3-ultramodern.17"
148
148
  },
149
149
  {
150
150
  "sourceName": "@modern-js/plugin-bff-build-extensions",
151
151
  "targetName": "@bleedingdev/modern-js-plugin-bff-build-extensions",
152
- "version": "3.9.3-ultramodern.15"
152
+ "version": "3.9.3-ultramodern.17"
153
153
  },
154
154
  {
155
155
  "sourceName": "@modern-js/plugin-bff-extensions",
156
156
  "targetName": "@bleedingdev/modern-js-plugin-bff-extensions",
157
- "version": "3.9.3-ultramodern.15"
157
+ "version": "3.9.3-ultramodern.17"
158
158
  },
159
159
  {
160
160
  "sourceName": "@modern-js/plugin-data-loader",
161
161
  "targetName": "@bleedingdev/modern-js-plugin-data-loader",
162
- "version": "3.9.3-ultramodern.15"
162
+ "version": "3.9.3-ultramodern.17"
163
163
  },
164
164
  {
165
165
  "sourceName": "@modern-js/plugin-i18n",
166
166
  "targetName": "@bleedingdev/modern-js-plugin-i18n",
167
- "version": "3.9.3-ultramodern.15"
167
+ "version": "3.9.3-ultramodern.17"
168
168
  },
169
169
  {
170
170
  "sourceName": "@modern-js/plugin-polyfill",
171
171
  "targetName": "@bleedingdev/modern-js-plugin-polyfill",
172
- "version": "3.9.3-ultramodern.15"
172
+ "version": "3.9.3-ultramodern.17"
173
173
  },
174
174
  {
175
175
  "sourceName": "@modern-js/plugin-ssg",
176
176
  "targetName": "@bleedingdev/modern-js-plugin-ssg",
177
- "version": "3.9.3-ultramodern.15"
177
+ "version": "3.9.3-ultramodern.17"
178
178
  },
179
179
  {
180
180
  "sourceName": "@modern-js/plugin-styled-components",
181
181
  "targetName": "@bleedingdev/modern-js-plugin-styled-components",
182
- "version": "3.9.3-ultramodern.15"
182
+ "version": "3.9.3-ultramodern.17"
183
183
  },
184
184
  {
185
185
  "sourceName": "@modern-js/plugin-tanstack",
186
186
  "targetName": "@bleedingdev/modern-js-plugin-tanstack",
187
- "version": "3.9.3-ultramodern.15"
187
+ "version": "3.9.3-ultramodern.17"
188
188
  },
189
189
  {
190
190
  "sourceName": "@modern-js/prod-server",
191
191
  "targetName": "@bleedingdev/modern-js-prod-server",
192
- "version": "3.9.3-ultramodern.15"
192
+ "version": "3.9.3-ultramodern.17"
193
193
  },
194
194
  {
195
195
  "sourceName": "@modern-js/render",
196
196
  "targetName": "@bleedingdev/modern-js-render",
197
- "version": "3.9.3-ultramodern.15"
197
+ "version": "3.9.3-ultramodern.17"
198
198
  },
199
199
  {
200
200
  "sourceName": "@modern-js/renderer-core",
201
201
  "targetName": "@bleedingdev/modern-js-renderer-core",
202
- "version": "3.9.3-ultramodern.15"
202
+ "version": "3.9.3-ultramodern.17"
203
203
  },
204
204
  {
205
205
  "sourceName": "@modern-js/renderer-octane",
206
206
  "targetName": "@bleedingdev/modern-js-renderer-octane",
207
- "version": "3.9.3-ultramodern.15"
207
+ "version": "3.9.3-ultramodern.17"
208
208
  },
209
209
  {
210
210
  "sourceName": "@modern-js/renderer-solid",
211
211
  "targetName": "@bleedingdev/modern-js-renderer-solid",
212
- "version": "3.9.3-ultramodern.15"
212
+ "version": "3.9.3-ultramodern.17"
213
213
  },
214
214
  {
215
215
  "sourceName": "@modern-js/runtime",
216
216
  "targetName": "@bleedingdev/modern-js-runtime",
217
- "version": "3.9.3-ultramodern.15"
217
+ "version": "3.9.3-ultramodern.17"
218
218
  },
219
219
  {
220
220
  "sourceName": "@modern-js/runtime-extensions",
221
221
  "targetName": "@bleedingdev/modern-js-runtime-extensions",
222
- "version": "3.9.3-ultramodern.15"
222
+ "version": "3.9.3-ultramodern.17"
223
223
  },
224
224
  {
225
225
  "sourceName": "@modern-js/runtime-renderer-extensions",
226
226
  "targetName": "@bleedingdev/modern-js-runtime-renderer-extensions",
227
- "version": "3.9.3-ultramodern.15"
227
+ "version": "3.9.3-ultramodern.17"
228
228
  },
229
229
  {
230
230
  "sourceName": "@modern-js/runtime-utils",
231
231
  "targetName": "@bleedingdev/modern-js-runtime-utils",
232
- "version": "3.9.3-ultramodern.15"
232
+ "version": "3.9.3-ultramodern.17"
233
233
  },
234
234
  {
235
235
  "sourceName": "@modern-js/sandpack-react",
236
236
  "targetName": "@bleedingdev/modern-js-sandpack-react",
237
- "version": "3.9.3-ultramodern.15"
237
+ "version": "3.9.3-ultramodern.17"
238
238
  },
239
239
  {
240
240
  "sourceName": "@modern-js/server",
241
241
  "targetName": "@bleedingdev/modern-js-server",
242
- "version": "3.9.3-ultramodern.15"
242
+ "version": "3.9.3-ultramodern.17"
243
243
  },
244
244
  {
245
245
  "sourceName": "@modern-js/server-core",
246
246
  "targetName": "@bleedingdev/modern-js-server-core",
247
- "version": "3.9.3-ultramodern.15"
247
+ "version": "3.9.3-ultramodern.17"
248
248
  },
249
249
  {
250
250
  "sourceName": "@modern-js/server-runtime",
251
251
  "targetName": "@bleedingdev/modern-js-server-runtime",
252
- "version": "3.9.3-ultramodern.15"
252
+ "version": "3.9.3-ultramodern.17"
253
253
  },
254
254
  {
255
255
  "sourceName": "@modern-js/server-runtime-extensions",
256
256
  "targetName": "@bleedingdev/modern-js-server-runtime-extensions",
257
- "version": "3.9.3-ultramodern.15"
257
+ "version": "3.9.3-ultramodern.17"
258
258
  },
259
259
  {
260
260
  "sourceName": "@modern-js/server-utils",
261
261
  "targetName": "@bleedingdev/modern-js-server-utils",
262
- "version": "3.9.3-ultramodern.15"
262
+ "version": "3.9.3-ultramodern.17"
263
263
  },
264
264
  {
265
265
  "sourceName": "@modern-js/surface-resolution",
266
266
  "targetName": "@bleedingdev/modern-js-surface-resolution",
267
- "version": "3.9.3-ultramodern.15"
267
+ "version": "3.9.3-ultramodern.17"
268
268
  },
269
269
  {
270
270
  "sourceName": "@modern-js/tsconfig",
271
271
  "targetName": "@bleedingdev/modern-js-tsconfig",
272
- "version": "3.9.3-ultramodern.15"
272
+ "version": "3.9.3-ultramodern.17"
273
273
  },
274
274
  {
275
275
  "sourceName": "@modern-js/types",
276
276
  "targetName": "@bleedingdev/modern-js-types",
277
- "version": "3.9.3-ultramodern.15"
277
+ "version": "3.9.3-ultramodern.17"
278
278
  },
279
279
  {
280
280
  "sourceName": "@modern-js/ultramodern-app-tools",
281
281
  "targetName": "@bleedingdev/modern-js-ultramodern-app-tools",
282
- "version": "3.9.3-ultramodern.15"
282
+ "version": "3.9.3-ultramodern.17"
283
283
  },
284
284
  {
285
285
  "sourceName": "@modern-js/ultramodern-create",
286
286
  "targetName": "@bleedingdev/modern-js-ultramodern-create",
287
- "version": "3.9.3-ultramodern.15"
287
+ "version": "3.9.3-ultramodern.17"
288
288
  },
289
289
  {
290
290
  "sourceName": "@modern-js/ultramodern-sandpack-profile",
291
291
  "targetName": "@bleedingdev/modern-js-ultramodern-sandpack-profile",
292
- "version": "3.9.3-ultramodern.15"
292
+ "version": "3.9.3-ultramodern.17"
293
293
  },
294
294
  {
295
295
  "sourceName": "@modern-js/utils",
296
296
  "targetName": "@bleedingdev/modern-js-utils",
297
- "version": "3.9.3-ultramodern.15"
297
+ "version": "3.9.3-ultramodern.17"
298
298
  }
299
299
  ],
300
300
  "release": {
301
301
  "tag": "latest",
302
- "version": "3.9.3-ultramodern.15"
302
+ "version": "3.9.3-ultramodern.17"
303
303
  },
304
304
  "schema": "bleedingdev.ultramodern.release-cohort",
305
305
  "schemaVersion": 2,
@@ -382,7 +382,7 @@
382
382
  },
383
383
  {
384
384
  "name": "@bleedingdev/tanstack-redact",
385
- "version": "0.2.1"
385
+ "version": "0.2.2"
386
386
  },
387
387
  {
388
388
  "name": "@bleedingdev/ultracite",
@@ -390,7 +390,7 @@
390
390
  }
391
391
  ],
392
392
  "source": {
393
- "commit": "1aa11857b487fe5f2a01276dba717482e530d6ec",
393
+ "commit": "f8d8b5fd7f8653d4a8b63d627e419b23c7d17d50",
394
394
  "repository": "ultramodernjs/ultramodern.js"
395
395
  }
396
396
  }
@@ -103,8 +103,11 @@ separate matrix jobs so failures are isolated and parallelizable.
103
103
 
104
104
  `pnpm typecheck` runs the installed `ultramodern-create ultramodern typecheck`
105
105
  command over `tsconfig.json` project references. It uses the shared compiler
106
- resolver and defaults `TSRS_CHECKER_ASSIGNMENT` to `locality`, preserving an explicit
107
- caller setting, without custom `--checkers` or `--builders` flags in build mode.
106
+ resolver with the tsrs fast preset and, in build mode, `--checkers` set to the
107
+ core count minus 2, from 4 to 8. Change these defaults in this root
108
+ `package.json` under `"ultramodern": { "typecheck": { "fast", "checkers", "builders" } }`,
109
+ or for one run with `TSRS_FAST`, `ULTRAMODERN_TYPECHECK_CHECKERS` and
110
+ `ULTRAMODERN_TYPECHECK_BUILDERS`. Flags passed to the command win over both.
108
111
  The workspace pins `tsrs@0.20.1-ts7.1.0-beta` and `@effect/tsgo@0.63.0`.
109
112
  Postinstall runs `ultramodern-create ultramodern compiler-prepare` before skill
110
113
  setup. This uses installed tsrs platform metadata to run the official
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { spawnSync } from 'node:child_process';
4
- import { constants as osConstants } from 'node:os';
4
+ import { readFileSync } from 'node:fs';
5
+ import { availableParallelism, constants as osConstants } from 'node:os';
5
6
  import { dirname, join, resolve } from 'node:path';
6
7
  import { fileURLToPath, pathToFileURL } from 'node:url';
7
8
  import { resolveEffectTsgoCompiler } from '@modern-js/app-tools-extensions/config';
@@ -71,10 +72,141 @@ function readArgs() {
71
72
  };
72
73
  }
73
74
 
75
+ // Measured on a 27-project workspace on 10 cores, with identical diagnostics:
76
+ // the tsrs fast preset alone used about 20% less memory, and 8 checkers per
77
+ // project then cut check time by about 20% at the original peak memory.
78
+ // tsrs builds 4 projects at once, so more checkers oversubscribe the cores.
79
+ // Small machines keep tsrs's own 4.
80
+ const TYPECHECK_DEFAULTS = { fast: true, checkers: 'auto', builders: undefined };
81
+ const AUTO_BUILD_CHECKERS = { min: 4, max: 8, reservedCores: 2 };
82
+ const TYPECHECK_CONFIG_KEYS = Object.keys(TYPECHECK_DEFAULTS);
83
+
84
+ function parseFast(value, source) {
85
+ if (value === undefined || typeof value === 'boolean') return value;
86
+ if (value === '1' || value === 'true') return true;
87
+ if (value === '0' || value === 'false') return false;
88
+ fail(`${source} must be true or false (or 1 or 0), received ${JSON.stringify(value)}.`);
89
+ }
90
+
91
+ function parseCount(value, source, { allowAuto }) {
92
+ if (value === undefined || (allowAuto && value === 'auto')) return value;
93
+ const count = typeof value === 'string' && /^\d+$/u.test(value) ? Number(value) : value;
94
+ if (Number.isInteger(count) && count > 0) return count;
95
+ fail(
96
+ `${source} must be a positive integer${allowAuto ? ' or "auto"' : ''}, received ${JSON.stringify(value)}.`,
97
+ );
98
+ }
99
+
100
+ // The workspace root package.json owns project defaults:
101
+ // { "ultramodern": { "typecheck": { "fast": true, "checkers": "auto", "builders": 4 } } }
102
+ function readProjectTypecheckConfig() {
103
+ const manifestPath = join(workspaceRoot, 'package.json');
104
+ let manifest;
105
+ try {
106
+ manifest = JSON.parse(readFileSync(manifestPath, 'utf8'));
107
+ } catch (error) {
108
+ if (error?.code === 'ENOENT') return {};
109
+ fail(`Cannot read typecheck settings from ${manifestPath}: ${error.message}`);
110
+ }
111
+ const config = manifest?.ultramodern?.typecheck;
112
+ if (config === undefined) return {};
113
+ const source = `${manifestPath} "ultramodern.typecheck"`;
114
+ if (config === null || typeof config !== 'object' || Array.isArray(config)) {
115
+ fail(`${source} must be an object.`);
116
+ }
117
+ const unknown = Object.keys(config).filter(key => !TYPECHECK_CONFIG_KEYS.includes(key));
118
+ if (unknown.length > 0) {
119
+ fail(`${source} has unknown settings: ${unknown.join(', ')}. Use ${TYPECHECK_CONFIG_KEYS.join(', ')}.`);
120
+ }
121
+ if (config.fast !== undefined && typeof config.fast !== 'boolean') {
122
+ fail(`${source}.fast must be true or false, received ${JSON.stringify(config.fast)}.`);
123
+ }
124
+ return {
125
+ fast: config.fast,
126
+ checkers: parseCount(config.checkers, `${source}.checkers`, { allowAuto: true }),
127
+ builders: parseCount(config.builders, `${source}.builders`, { allowAuto: false }),
128
+ };
129
+ }
130
+
131
+ function nonEmptyEnvironment(name) {
132
+ const value = process.env[name]?.trim();
133
+ return value ? value : undefined;
134
+ }
135
+
136
+ // Precedence: compiler flags passed to this command, then environment
137
+ // variables, then the project's package.json, then the measured defaults.
138
+ function resolveTypecheckSettings() {
139
+ const project = readProjectTypecheckConfig();
140
+ return {
141
+ fast:
142
+ parseFast(nonEmptyEnvironment('TSRS_FAST'), 'TSRS_FAST') ??
143
+ project.fast ??
144
+ TYPECHECK_DEFAULTS.fast,
145
+ checkers:
146
+ parseCount(nonEmptyEnvironment('ULTRAMODERN_TYPECHECK_CHECKERS'), 'ULTRAMODERN_TYPECHECK_CHECKERS', {
147
+ allowAuto: true,
148
+ }) ??
149
+ project.checkers ??
150
+ TYPECHECK_DEFAULTS.checkers,
151
+ builders:
152
+ parseCount(nonEmptyEnvironment('ULTRAMODERN_TYPECHECK_BUILDERS'), 'ULTRAMODERN_TYPECHECK_BUILDERS', {
153
+ allowAuto: false,
154
+ }) ??
155
+ project.builders ??
156
+ TYPECHECK_DEFAULTS.builders,
157
+ };
158
+ }
159
+
160
+ function autoBuildCheckers() {
161
+ const { min, max, reservedCores } = AUTO_BUILD_CHECKERS;
162
+ return Math.min(max, Math.max(min, availableParallelism() - reservedCores));
163
+ }
164
+
165
+ function hasFlag(passthrough, flag) {
166
+ return passthrough.some(arg => arg === flag || arg.startsWith(`${flag}=`));
167
+ }
168
+
169
+ function performanceArgs(mode, passthrough, settings) {
170
+ const performance = [];
171
+ // "auto" leaves project mode to the fast preset, which sizes checkers per
172
+ // program. Build mode otherwise keeps 4 checkers per project.
173
+ const checkers =
174
+ settings.checkers === 'auto'
175
+ ? mode === 'build'
176
+ ? autoBuildCheckers()
177
+ : undefined
178
+ : settings.checkers;
179
+ if (checkers !== undefined && !hasFlag(passthrough, '--checkers') && !hasFlag(passthrough, '--singleThreaded')) {
180
+ performance.push('--checkers', String(checkers));
181
+ }
182
+ if (mode === 'build' && settings.builders !== undefined && !hasFlag(passthrough, '--builders')) {
183
+ performance.push('--builders', String(settings.builders));
184
+ }
185
+ return performance;
186
+ }
187
+
188
+ // Effect-Go accepts --checkers and --builders and ignores TSRS_* variables,
189
+ // so these settings stay valid on hosts without tsrs.
190
+ function compilerEnvironment(settings) {
191
+ const env = { ...process.env, TSRS_FAST: settings.fast ? '1' : '0' };
192
+ const assignment = nonEmptyEnvironment('TSRS_CHECKER_ASSIGNMENT');
193
+ if (assignment) {
194
+ env.TSRS_CHECKER_ASSIGNMENT = assignment;
195
+ } else if (settings.fast) {
196
+ // An explicit assignment would switch off the preset's work stealing.
197
+ delete env.TSRS_CHECKER_ASSIGNMENT;
198
+ } else {
199
+ env.TSRS_CHECKER_ASSIGNMENT = 'locality';
200
+ }
201
+ return env;
202
+ }
203
+
74
204
  const parsed = readArgs();
205
+ const settings = resolveTypecheckSettings();
75
206
  const tsgoBin = resolveEffectTsgoCompiler({
76
207
  from: pathToFileURL(join(workspaceRoot, 'package.json')),
77
208
  });
209
+ const performance = performanceArgs(parsed.mode, parsed.passthrough, settings);
78
210
 
79
211
  const tsgoArgs =
80
212
  parsed.mode === 'build'
@@ -84,6 +216,7 @@ const tsgoArgs =
84
216
  '--pretty',
85
217
  'false',
86
218
  '--stopBuildOnErrors',
219
+ ...performance,
87
220
  ...parsed.passthrough,
88
221
  ]
89
222
  : [
@@ -92,15 +225,13 @@ const tsgoArgs =
92
225
  ...(parsed.emit ? [] : ['--noEmit']),
93
226
  '--pretty',
94
227
  'false',
228
+ ...performance,
95
229
  ...parsed.passthrough,
96
230
  ];
97
231
 
98
232
  const result = spawnSync(tsgoBin, tsgoArgs, {
99
233
  stdio: 'inherit',
100
- env: {
101
- ...process.env,
102
- TSRS_CHECKER_ASSIGNMENT: process.env.TSRS_CHECKER_ASSIGNMENT || 'locality',
103
- },
234
+ env: compilerEnvironment(settings),
104
235
  });
105
236
 
106
237
  if (result.error) {