@bleedingdev/modern-js-create 3.2.0-ultramodern.72 → 3.2.0-ultramodern.73
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/dist/index.js +19 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -983,8 +983,8 @@ function createRootPackageJson(scope, packageSource, remotes = []) {
|
|
|
983
983
|
build: `${remoteBuildPrefix}pnpm --filter "./apps/shell-super-app" run build && pnpm ultramodern:assert-mf-types`,
|
|
984
984
|
format: "oxfmt . '!repos/**'",
|
|
985
985
|
'format:check': "oxfmt --check . '!repos/**'",
|
|
986
|
-
lint: 'oxlint
|
|
987
|
-
'lint:fix': 'oxlint
|
|
986
|
+
lint: 'oxlint .',
|
|
987
|
+
'lint:fix': 'oxlint . --fix',
|
|
988
988
|
typecheck: `pnpm -r --filter "@${scope}/*" typecheck`,
|
|
989
989
|
'cloudflare:build': `${remoteCloudflareBuildPrefix}pnpm --filter "./apps/shell-super-app" run cloudflare:build && pnpm ultramodern:assert-mf-types`,
|
|
990
990
|
'cloudflare:deploy': `${remoteCloudflareDeployPrefix}pnpm --filter "./apps/shell-super-app" run cloudflare:deploy`,
|
|
@@ -1151,10 +1151,7 @@ function createPackageTsConfig(packageDir, includeApi = false) {
|
|
|
1151
1151
|
if (includeApi) include.push('api', 'shared');
|
|
1152
1152
|
return {
|
|
1153
1153
|
extends: `${relativeRootFor(packageDir)}/tsconfig.base.json`,
|
|
1154
|
-
include
|
|
1155
|
-
exclude: [
|
|
1156
|
-
'src/modern-tanstack'
|
|
1157
|
-
]
|
|
1154
|
+
include
|
|
1158
1155
|
};
|
|
1159
1156
|
}
|
|
1160
1157
|
function createAppPackage(scope, app, packageSource, enableTailwind, remotes = []) {
|
|
@@ -5085,6 +5082,7 @@ async function fetchText(url) {
|
|
|
5085
5082
|
status: response.status,
|
|
5086
5083
|
accessControlAllowOrigin: response.headers.get('access-control-allow-origin'),
|
|
5087
5084
|
contentType: response.headers.get('content-type'),
|
|
5085
|
+
link: response.headers.get('link'),
|
|
5088
5086
|
body: await response.text(),
|
|
5089
5087
|
};
|
|
5090
5088
|
}
|
|
@@ -5179,6 +5177,21 @@ async function validateApp(app, publicUrl) {
|
|
|
5179
5177
|
expectedAppId && ssr.body.includes(\`data-app-id="\${expectedAppId}"\`),
|
|
5180
5178
|
\`\${app.id} SSR response is missing CSS root marker \${cssRootSelector}\`,
|
|
5181
5179
|
);
|
|
5180
|
+
const cssPreloadLinkHeader = ssr.link ?? '';
|
|
5181
|
+
evidence.assertions.push({
|
|
5182
|
+
type: 'css-preload-link-header',
|
|
5183
|
+
actual: cssPreloadLinkHeader,
|
|
5184
|
+
status:
|
|
5185
|
+
cssPreloadLinkHeader.includes('rel=preload') &&
|
|
5186
|
+
cssPreloadLinkHeader.includes('as=style')
|
|
5187
|
+
? 'pass'
|
|
5188
|
+
: 'fail',
|
|
5189
|
+
});
|
|
5190
|
+
assert(
|
|
5191
|
+
cssPreloadLinkHeader.includes('rel=preload') &&
|
|
5192
|
+
cssPreloadLinkHeader.includes('as=style'),
|
|
5193
|
+
\`\${app.id} SSR response is missing CSS preload Link headers\`,
|
|
5194
|
+
);
|
|
5182
5195
|
|
|
5183
5196
|
const manifestRoute = routes.mfManifest ?? '/mf-manifest.json';
|
|
5184
5197
|
const manifest = await fetchText(joinUrl(publicUrl, manifestRoute));
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20"
|
|
23
23
|
},
|
|
24
|
-
"version": "3.2.0-ultramodern.
|
|
24
|
+
"version": "3.2.0-ultramodern.73",
|
|
25
25
|
"types": "./dist/types/index.d.ts",
|
|
26
26
|
"main": "./dist/index.js",
|
|
27
27
|
"bin": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@types/node": "^25.9.1",
|
|
42
42
|
"@typescript/native-preview": "7.0.0-dev.20260527.2",
|
|
43
43
|
"tsx": "^4.22.3",
|
|
44
|
-
"@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.
|
|
44
|
+
"@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.73"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -54,6 +54,6 @@
|
|
|
54
54
|
"start": "node ./dist/index.js"
|
|
55
55
|
},
|
|
56
56
|
"ultramodern": {
|
|
57
|
-
"frameworkVersion": "3.2.0-ultramodern.
|
|
57
|
+
"frameworkVersion": "3.2.0-ultramodern.73"
|
|
58
58
|
}
|
|
59
59
|
}
|