@bleedingdev/modern-js-server-runtime-extensions 3.9.0-ultramodern.6 → 3.9.0-ultramodern.7

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/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "modern",
18
18
  "modern.js"
19
19
  ],
20
- "version": "3.9.0-ultramodern.6",
20
+ "version": "3.9.0-ultramodern.7",
21
21
  "types": "./dist/types/index.d.ts",
22
22
  "main": "./dist/cjs/index.js",
23
23
  "exports": {
@@ -197,19 +197,19 @@
197
197
  "node": ">=26.7.0"
198
198
  },
199
199
  "dependencies": {
200
- "@modern-js/create-request": "npm:@bleedingdev/modern-js-create-request@3.9.0-ultramodern.6",
201
- "@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.9.0-ultramodern.6",
202
- "@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.9.0-ultramodern.6",
203
- "@modern-js/runtime-extensions": "npm:@bleedingdev/modern-js-runtime-extensions@3.9.0-ultramodern.6",
204
- "@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.9.0-ultramodern.6",
205
- "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.9.0-ultramodern.6",
206
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.0-ultramodern.6",
200
+ "@modern-js/create-request": "npm:@bleedingdev/modern-js-create-request@3.9.0-ultramodern.7",
201
+ "@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.9.0-ultramodern.7",
202
+ "@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.9.0-ultramodern.7",
203
+ "@modern-js/runtime-extensions": "npm:@bleedingdev/modern-js-runtime-extensions@3.9.0-ultramodern.7",
204
+ "@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.9.0-ultramodern.7",
205
+ "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.9.0-ultramodern.7",
206
+ "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.0-ultramodern.7",
207
207
  "@swc/helpers": "^0.5.23",
208
208
  "reflect-metadata": "^0.2.2"
209
209
  },
210
210
  "devDependencies": {
211
- "@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.9.0-ultramodern.6",
212
- "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.0-ultramodern.6",
211
+ "@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.9.0-ultramodern.7",
212
+ "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.0-ultramodern.7",
213
213
  "@rslib/core": "1.0.0",
214
214
  "@scripts/rstest-config": "2.66.0",
215
215
  "@types/node": "^26.4.1",
@@ -131,24 +131,6 @@ const withNodeEnv = <T>(nodeEnv: string | undefined, callback: () => T): T => {
131
131
  }
132
132
  };
133
133
 
134
- const denialReasonCoverage: Record<CrossProjectPolicyViolationReason, true> = {
135
- invalid_envelope: true,
136
- invalid_operation_context_details: true,
137
- missing_envelope: true,
138
- missing_operation_context: true,
139
- missing_operation_context_details: true,
140
- missing_operation_schema_hash: true,
141
- missing_operation_version: true,
142
- missing_request_id: true,
143
- namespace_not_allowed: true,
144
- operation_context_details_request_id_mismatch: true,
145
- operation_context_mismatch: true,
146
- operation_schema_hash_mismatch: true,
147
- operation_version_mismatch: true,
148
- producer_identity_mismatch: true,
149
- unknown_operation_contract: true,
150
- };
151
-
152
134
  const policyMatrix = [
153
135
  {
154
136
  name: 'allow: full valid context with verified namespace and contract',
@@ -452,25 +434,6 @@ const policyMatrix = [
452
434
  ] satisfies PolicyMatrixScenario[];
453
435
 
454
436
  describe('cross-project policy matrix', () => {
455
- test('covers every current denial reason', () => {
456
- const expectedReasons = Object.keys(denialReasonCoverage).sort();
457
- const coveredReasons = [
458
- ...new Set(
459
- policyMatrix.flatMap(scenario =>
460
- scenario.expected.kind === 'deny' ? [scenario.expected.reason] : [],
461
- ),
462
- ),
463
- ].sort();
464
-
465
- expect(coveredReasons).toEqual(expectedReasons);
466
- });
467
-
468
- test('has unique scenario names', () => {
469
- const names = policyMatrix.map(scenario => scenario.name);
470
-
471
- expect(new Set(names).size).toBe(names.length);
472
- });
473
-
474
437
  for (const scenario of policyMatrix) {
475
438
  test(scenario.name, () => {
476
439
  const violation = withNodeEnv(scenario.nodeEnv, () =>