@bleedingdev/modern-js-surface-resolution 3.9.0-ultramodern.18 → 3.9.0-ultramodern.20

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.
@@ -55,8 +55,7 @@ function createEnvContext(env, allowLocalFallback) {
55
55
  env,
56
56
  allowLocalFallback,
57
57
  cloudflareDeployEnabled: 'cloudflare' === env.MODERNJS_DEPLOY,
58
- workersDevSubdomain: envValue(env, 'ULTRAMODERN_CLOUDFLARE_WORKERS_DEV_SUBDOMAIN'),
59
- requireCloudflarePublicUrls: 'true' === env.ULTRAMODERN_CLOUDFLARE_REQUIRE_PUBLIC_URLS
58
+ workersDevSubdomain: envValue(env, 'ULTRAMODERN_CLOUDFLARE_WORKERS_DEV_SUBDOMAIN')
60
59
  };
61
60
  }
62
61
  function resolveBaseUrl(context, unit) {
@@ -70,13 +69,6 @@ function resolveBaseUrl(context, unit) {
70
69
  ok: true,
71
70
  baseUrl: `https://${unit.workerName}.${context.workersDevSubdomain}.workers.dev`
72
71
  };
73
- if (context.cloudflareDeployEnabled && context.requireCloudflarePublicUrls) return {
74
- ok: false,
75
- reason: `Cloudflare deploy requires ${publicUrlEnv} (or a configured manifest env / ULTRAMODERN_CLOUDFLARE_WORKERS_DEV_SUBDOMAIN with a worker name)`,
76
- details: {
77
- publicUrlEnv
78
- }
79
- };
80
72
  if (void 0 !== unit.port && context.allowLocalFallback) return {
81
73
  ok: true,
82
74
  baseUrl: `http://localhost:${unit.port}`
@@ -20,8 +20,7 @@ function createEnvContext(env, allowLocalFallback) {
20
20
  env,
21
21
  allowLocalFallback,
22
22
  cloudflareDeployEnabled: 'cloudflare' === env.MODERNJS_DEPLOY,
23
- workersDevSubdomain: envValue(env, 'ULTRAMODERN_CLOUDFLARE_WORKERS_DEV_SUBDOMAIN'),
24
- requireCloudflarePublicUrls: 'true' === env.ULTRAMODERN_CLOUDFLARE_REQUIRE_PUBLIC_URLS
23
+ workersDevSubdomain: envValue(env, 'ULTRAMODERN_CLOUDFLARE_WORKERS_DEV_SUBDOMAIN')
25
24
  };
26
25
  }
27
26
  function resolveBaseUrl(context, unit) {
@@ -35,13 +34,6 @@ function resolveBaseUrl(context, unit) {
35
34
  ok: true,
36
35
  baseUrl: `https://${unit.workerName}.${context.workersDevSubdomain}.workers.dev`
37
36
  };
38
- if (context.cloudflareDeployEnabled && context.requireCloudflarePublicUrls) return {
39
- ok: false,
40
- reason: `Cloudflare deploy requires ${publicUrlEnv} (or a configured manifest env / ULTRAMODERN_CLOUDFLARE_WORKERS_DEV_SUBDOMAIN with a worker name)`,
41
- details: {
42
- publicUrlEnv
43
- }
44
- };
45
37
  if (void 0 !== unit.port && context.allowLocalFallback) return {
46
38
  ok: true,
47
39
  baseUrl: `http://localhost:${unit.port}`
@@ -21,8 +21,7 @@ function createEnvContext(env, allowLocalFallback) {
21
21
  env,
22
22
  allowLocalFallback,
23
23
  cloudflareDeployEnabled: 'cloudflare' === env.MODERNJS_DEPLOY,
24
- workersDevSubdomain: envValue(env, 'ULTRAMODERN_CLOUDFLARE_WORKERS_DEV_SUBDOMAIN'),
25
- requireCloudflarePublicUrls: 'true' === env.ULTRAMODERN_CLOUDFLARE_REQUIRE_PUBLIC_URLS
24
+ workersDevSubdomain: envValue(env, 'ULTRAMODERN_CLOUDFLARE_WORKERS_DEV_SUBDOMAIN')
26
25
  };
27
26
  }
28
27
  function resolveBaseUrl(context, unit) {
@@ -36,13 +35,6 @@ function resolveBaseUrl(context, unit) {
36
35
  ok: true,
37
36
  baseUrl: `https://${unit.workerName}.${context.workersDevSubdomain}.workers.dev`
38
37
  };
39
- if (context.cloudflareDeployEnabled && context.requireCloudflarePublicUrls) return {
40
- ok: false,
41
- reason: `Cloudflare deploy requires ${publicUrlEnv} (or a configured manifest env / ULTRAMODERN_CLOUDFLARE_WORKERS_DEV_SUBDOMAIN with a worker name)`,
42
- details: {
43
- publicUrlEnv
44
- }
45
- };
46
38
  if (void 0 !== unit.port && context.allowLocalFallback) return {
47
39
  ok: true,
48
40
  baseUrl: `http://localhost:${unit.port}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bleedingdev/modern-js-surface-resolution",
3
- "version": "3.9.0-ultramodern.18",
3
+ "version": "3.9.0-ultramodern.20",
4
4
  "description": "Universal surface references, atomic discovery records, and environment-static resolution.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,10 +27,10 @@
27
27
  ],
28
28
  "sideEffects": false,
29
29
  "dependencies": {
30
- "@modern-js/backend-federation-contracts": "npm:@bleedingdev/modern-js-backend-federation-contracts@3.9.0-ultramodern.18"
30
+ "@modern-js/backend-federation-contracts": "npm:@bleedingdev/modern-js-backend-federation-contracts@3.9.0-ultramodern.20"
31
31
  },
32
32
  "devDependencies": {
33
- "@modern-js/tsconfig": "npm:@bleedingdev/modern-js-tsconfig@3.9.0-ultramodern.18",
33
+ "@modern-js/tsconfig": "npm:@bleedingdev/modern-js-tsconfig@3.9.0-ultramodern.20",
34
34
  "@rslib/core": "1.0.2",
35
35
  "@rstest/core": "0.11.12",
36
36
  "@scripts/rstest-config": "2.66.0",
@@ -192,7 +192,6 @@ type EnvContext = {
192
192
  env: EnvRecord;
193
193
  cloudflareDeployEnabled: boolean;
194
194
  workersDevSubdomain: string | undefined;
195
- requireCloudflarePublicUrls: boolean;
196
195
  /**
197
196
  * Whether localhost dev fallbacks may be used. True only in designated
198
197
  * local environments; everywhere else missing config fails closed.
@@ -212,8 +211,6 @@ function createEnvContext(
212
211
  env,
213
212
  'ULTRAMODERN_CLOUDFLARE_WORKERS_DEV_SUBDOMAIN',
214
213
  ),
215
- requireCloudflarePublicUrls:
216
- env.ULTRAMODERN_CLOUDFLARE_REQUIRE_PUBLIC_URLS === 'true',
217
214
  };
218
215
  }
219
216
 
@@ -242,14 +239,6 @@ function resolveBaseUrl(
242
239
  };
243
240
  }
244
241
 
245
- if (context.cloudflareDeployEnabled && context.requireCloudflarePublicUrls) {
246
- return {
247
- ok: false,
248
- reason: `Cloudflare deploy requires ${publicUrlEnv} (or a configured manifest env / ULTRAMODERN_CLOUDFLARE_WORKERS_DEV_SUBDOMAIN with a worker name)`,
249
- details: { publicUrlEnv },
250
- };
251
- }
252
-
253
242
  if (unit.port !== undefined && context.allowLocalFallback) {
254
243
  return { ok: true, baseUrl: `http://localhost:${unit.port}` };
255
244
  }