@bleedingdev/modern-js-server-runtime-extensions 3.8.3-ultramodern.5 → 3.9.0-ultramodern.1

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.
Files changed (27) hide show
  1. package/dist/types/backend-federation-security/node.d.ts +1 -1
  2. package/dist/types/contract-gate-snapshot-normalization.d.ts +1 -1
  3. package/dist/types/contract-gate-snapshot-store/file-store.d.ts +1 -1
  4. package/dist/types/contract-gate-snapshot-store/http-store.d.ts +1 -1
  5. package/dist/types/contract-gate-snapshot-store/index.d.ts +5 -5
  6. package/dist/types/contract-gate-snapshot-store/resolve.d.ts +1 -1
  7. package/dist/types/contractGateSnapshotObserver.d.ts +2 -2
  8. package/dist/types/index.d.ts +7 -7
  9. package/dist/types/module-federation-css/collector.d.ts +1 -1
  10. package/dist/types/module-federation-css/index.d.ts +8 -8
  11. package/dist/types/runtime-fallback-signal/index.d.ts +4 -4
  12. package/dist/types/runtime-fallback-signal/model.d.ts +1 -1
  13. package/dist/types/runtime-fallback-signal/resolver.d.ts +1 -1
  14. package/dist/types/runtime-fallback-signal/store.d.ts +1 -1
  15. package/dist/types/runtimeFallbackSignal.d.ts +1 -1
  16. package/dist/types/telemetry/exporters.d.ts +1 -1
  17. package/dist/types/telemetry/healthEvaluation.d.ts +2 -2
  18. package/dist/types/telemetry/healthMonitor.d.ts +2 -2
  19. package/dist/types/telemetry/healthSetup.d.ts +3 -3
  20. package/dist/types/telemetry/lifecycle.d.ts +2 -2
  21. package/dist/types/telemetry/metrics.d.ts +1 -1
  22. package/dist/types/telemetry/plugin.d.ts +3 -3
  23. package/dist/types/telemetry/registry.d.ts +2 -2
  24. package/dist/types/telemetry/runtimeEndpoints.d.ts +2 -2
  25. package/dist/types/telemetry.d.ts +1 -1
  26. package/dist/types/telemetryCore.d.ts +6 -6
  27. package/package.json +7 -7
@@ -1,3 +1,3 @@
1
- import { type BackendFederationCommonJsEvaluator, type BackendFederationEntryIntegrity } from './index';
1
+ import { type BackendFederationCommonJsEvaluator, type BackendFederationEntryIntegrity } from './index.js';
2
2
  export declare function createBackendFederationEntryIntegrity(value: string | Uint8Array): BackendFederationEntryIntegrity;
3
3
  export declare const evaluateNodeBackendFederationCommonJs: BackendFederationCommonJsEvaluator;
@@ -1,4 +1,4 @@
1
- import type { GateSnapshot } from './contract-gate-snapshot-store/types';
1
+ import type { GateSnapshot } from './contract-gate-snapshot-store/types.js';
2
2
  type NormalizedGate = {
3
3
  name: string;
4
4
  passed: boolean;
@@ -1,3 +1,3 @@
1
- import type { ContractGateSnapshotStore } from './types';
1
+ import type { ContractGateSnapshotStore } from './types.js';
2
2
  export declare const resolveContractGateSnapshotPath: (appDirectory: string, configuredPath: string | undefined) => string;
3
3
  export declare const createFileContractGateSnapshotStore: (gateSnapshotPath: string) => ContractGateSnapshotStore;
@@ -1,4 +1,4 @@
1
- import type { ContractGateSnapshotHttpStoreOptions, ContractGateSnapshotStore, ContractGateSnapshotStoreUserConfig } from './types';
1
+ import type { ContractGateSnapshotHttpStoreOptions, ContractGateSnapshotStore, ContractGateSnapshotStoreUserConfig } from './types.js';
2
2
  export declare const createHttpContractGateSnapshotStore: (options: ContractGateSnapshotHttpStoreOptions) => ContractGateSnapshotStore;
3
3
  export declare const tryResolveBuiltinSnapshotStore: (input: {
4
4
  stateStore: ContractGateSnapshotStoreUserConfig;
@@ -1,5 +1,5 @@
1
- export { createFileContractGateSnapshotStore, resolveContractGateSnapshotPath, } from './file-store';
2
- export { createHttpContractGateSnapshotStore } from './http-store';
3
- export { resolveContractGateSnapshotStore } from './resolve';
4
- export type { ContractGateSnapshotHttpStoreOptions, ContractGateSnapshotStore, ContractGateSnapshotStoreFactory, ContractGateSnapshotStoreFactoryContext, ContractGateSnapshotStoreModule, ContractGateSnapshotStoreUserConfig, GateSnapshot, GateSnapshotGateValue, } from './types';
5
- export { CONTRACT_GATE_SNAPSHOT_SCHEMA_VERSION, DEFAULT_CONTRACT_GATE_SNAPSHOT_PATH, } from './types';
1
+ export { createFileContractGateSnapshotStore, resolveContractGateSnapshotPath, } from './file-store.js';
2
+ export { createHttpContractGateSnapshotStore } from './http-store.js';
3
+ export { resolveContractGateSnapshotStore } from './resolve.js';
4
+ export type { ContractGateSnapshotHttpStoreOptions, ContractGateSnapshotStore, ContractGateSnapshotStoreFactory, ContractGateSnapshotStoreFactoryContext, ContractGateSnapshotStoreModule, ContractGateSnapshotStoreUserConfig, GateSnapshot, GateSnapshotGateValue, } from './types.js';
5
+ export { CONTRACT_GATE_SNAPSHOT_SCHEMA_VERSION, DEFAULT_CONTRACT_GATE_SNAPSHOT_PATH, } from './types.js';
@@ -1,4 +1,4 @@
1
- import type { ContractGateSnapshotStore, ContractGateSnapshotStoreUserConfig, GateSnapshot, LoggerLike } from './types';
1
+ import type { ContractGateSnapshotStore, ContractGateSnapshotStoreUserConfig, GateSnapshot, LoggerLike } from './types.js';
2
2
  export declare const isRecord: (value: unknown) => value is Record<string, unknown>;
3
3
  export declare const normalizeSnapshot: (snapshot: unknown) => GateSnapshot | undefined;
4
4
  export declare const resolveContractGateSnapshotStore: (input: {
@@ -1,5 +1,5 @@
1
- import type { ContractGateSnapshotStore } from './contract-gate-snapshot-store/types';
2
- import type { TelemetryHealthMonitor } from './telemetry/healthMonitor';
1
+ import type { ContractGateSnapshotStore } from './contract-gate-snapshot-store/types.js';
2
+ import type { TelemetryHealthMonitor } from './telemetry/healthMonitor.js';
3
3
  type LoggerLike = {
4
4
  info?: (message: string) => void;
5
5
  warn?: (message: string) => void;
@@ -1,7 +1,7 @@
1
- export { type BackendFederationCommonJsEvaluator, type BackendFederationEntryExports, type BackendFederationEntryIntegrity, type BackendFederationRemoteEntry, BackendFederationRemoteEntryError, type BackendFederationRemoteEntryErrorCode, type BackendFederationRemoteEntryExpectation, type BackendFederationRemoteEntryFetch, type BackendFederationRemoteEntryPolicy, type BackendFederationRemoteEntryVerification, type BackendFederationResourceFetch, type BackendFederationResourcePolicy, type BackendFederationResourceResponse, evaluateBackendFederationCommonJsEntry, type LoadBoundedBackendFederationResourceOptions, type LoadVerifiedBackendFederationEntryOptions, loadBoundedBackendFederationResource, loadVerifiedBackendFederationEntry, redactBackendFederationUrl, resolveBackendFederationRemoteEntryVerification, } from './backend-federation-security';
2
- export { ContractGateSnapshotObserver, type ContractGateSnapshotObserverOptions, } from './contractGateSnapshotObserver';
3
- export { DEFAULT_ENVIRONMENT_NAME, parseServerRuntimeExtensionsEnv, type ServerRuntimeExtensionsEnv, } from './env';
4
- export { getRequestPathname, injectMfAssetCacheHeadersPlugin, isMfManifestAsset, isMfRemoteEntryAsset, resolveMfAssetCacheHeaders, } from './mfCache';
5
- export { type CollectDirectRemoteModuleFederationCssOptions, collectDirectRemoteModuleFederationCss, collectDirectRemoteModuleFederationCssWithMeta, collectModuleFederationManifestCss, createModuleFederationCssCollector, injectModuleFederationCssPlugin, type ModuleFederationCssCollectorOptions, type ModuleFederationCssPluginOptions, type ModuleFederationManifest, type RemoteModuleFederationCssCollection, } from './module-federation-css';
6
- export { createDisposableServerRuntimeHandle, type DisposableServerRuntimeHandle, disposeServerRuntime, initializeDisposableServerRuntime, registerServerRuntimeDisposer, type ServerRuntimeHandle, } from './runtimeLifecycle';
7
- export { createOtlpTelemetryExporter, createRuntimeFallbackSignalRuntimeState, createRuntimeSignalError, createTelemetryAwareMetrics, createVictoriaMetricsTelemetryExporter, DEFAULT_RUNTIME_FALLBACK_SIGNAL_ENDPOINT, DEFAULT_RUNTIME_STATUS_ENDPOINT, enforceRuntimeFallbackSignalAuthToken, enforceRuntimeFallbackSignalTrustPolicy, getRuntimeSignalErrorStatusCode, hasEnabledTelemetryExporters, injectTelemetryPlugin, normalizeRequiredRuntimeFallbackSignalAuthConfig, normalizeRuntimeFallbackSignalAuthConfig, normalizeRuntimeFallbackTrustPolicy, type OtlpExporterOptions, parseRuntimeFallbackSignalPayloadFromRawBody, type RuntimeFallbackSignalAuthConfig, type RuntimeFallbackSignalRuntimeState, type RuntimeFallbackSignalSource, type RuntimeFallbackSignalTrustContext, type RuntimeFallbackSignalTrustPolicy, type RuntimeSignalError, type RuntimeSignalErrorCode, resolveRuntimeFallbackSignalEndpoint, resolveTelemetrySloOptions, type TelemetryContractGateStatus, type TelemetryEnvelope, type TelemetryExporter, type TelemetryHealthEvaluation, type TelemetryHealthFailure, type TelemetryHealthFailureReason, TelemetryHealthMonitor, type TelemetryHealthMonitorOptions, type TelemetryHealthState, type TelemetryHealthStatusSnapshot, type TelemetryHealthTransition, type TelemetryQueueStats, TelemetryRegistry, type TelemetryRegistryOptions, type TelemetrySignalType, type TelemetrySloAlert, TelemetryStartupHealthError, type VictoriaMetricsExporterOptions, } from './telemetry';
1
+ export { type BackendFederationCommonJsEvaluator, type BackendFederationEntryExports, type BackendFederationEntryIntegrity, type BackendFederationRemoteEntry, BackendFederationRemoteEntryError, type BackendFederationRemoteEntryErrorCode, type BackendFederationRemoteEntryExpectation, type BackendFederationRemoteEntryFetch, type BackendFederationRemoteEntryPolicy, type BackendFederationRemoteEntryVerification, type BackendFederationResourceFetch, type BackendFederationResourcePolicy, type BackendFederationResourceResponse, evaluateBackendFederationCommonJsEntry, type LoadBoundedBackendFederationResourceOptions, type LoadVerifiedBackendFederationEntryOptions, loadBoundedBackendFederationResource, loadVerifiedBackendFederationEntry, redactBackendFederationUrl, resolveBackendFederationRemoteEntryVerification, } from './backend-federation-security/index.js';
2
+ export { ContractGateSnapshotObserver, type ContractGateSnapshotObserverOptions, } from './contractGateSnapshotObserver.js';
3
+ export { DEFAULT_ENVIRONMENT_NAME, parseServerRuntimeExtensionsEnv, type ServerRuntimeExtensionsEnv, } from './env.js';
4
+ export { getRequestPathname, injectMfAssetCacheHeadersPlugin, isMfManifestAsset, isMfRemoteEntryAsset, resolveMfAssetCacheHeaders, } from './mfCache.js';
5
+ export { type CollectDirectRemoteModuleFederationCssOptions, collectDirectRemoteModuleFederationCss, collectDirectRemoteModuleFederationCssWithMeta, collectModuleFederationManifestCss, createModuleFederationCssCollector, injectModuleFederationCssPlugin, type ModuleFederationCssCollectorOptions, type ModuleFederationCssPluginOptions, type ModuleFederationManifest, type RemoteModuleFederationCssCollection, } from './module-federation-css/index.js';
6
+ export { createDisposableServerRuntimeHandle, type DisposableServerRuntimeHandle, disposeServerRuntime, initializeDisposableServerRuntime, registerServerRuntimeDisposer, type ServerRuntimeHandle, } from './runtimeLifecycle.js';
7
+ export { createOtlpTelemetryExporter, createRuntimeFallbackSignalRuntimeState, createRuntimeSignalError, createTelemetryAwareMetrics, createVictoriaMetricsTelemetryExporter, DEFAULT_RUNTIME_FALLBACK_SIGNAL_ENDPOINT, DEFAULT_RUNTIME_STATUS_ENDPOINT, enforceRuntimeFallbackSignalAuthToken, enforceRuntimeFallbackSignalTrustPolicy, getRuntimeSignalErrorStatusCode, hasEnabledTelemetryExporters, injectTelemetryPlugin, normalizeRequiredRuntimeFallbackSignalAuthConfig, normalizeRuntimeFallbackSignalAuthConfig, normalizeRuntimeFallbackTrustPolicy, type OtlpExporterOptions, parseRuntimeFallbackSignalPayloadFromRawBody, type RuntimeFallbackSignalAuthConfig, type RuntimeFallbackSignalRuntimeState, type RuntimeFallbackSignalSource, type RuntimeFallbackSignalTrustContext, type RuntimeFallbackSignalTrustPolicy, type RuntimeSignalError, type RuntimeSignalErrorCode, resolveRuntimeFallbackSignalEndpoint, resolveTelemetrySloOptions, type TelemetryContractGateStatus, type TelemetryEnvelope, type TelemetryExporter, type TelemetryHealthEvaluation, type TelemetryHealthFailure, type TelemetryHealthFailureReason, TelemetryHealthMonitor, type TelemetryHealthMonitorOptions, type TelemetryHealthState, type TelemetryHealthStatusSnapshot, type TelemetryHealthTransition, type TelemetryQueueStats, TelemetryRegistry, type TelemetryRegistryOptions, type TelemetrySignalType, type TelemetrySloAlert, TelemetryStartupHealthError, type VictoriaMetricsExporterOptions, } from './telemetry.js';
@@ -1,5 +1,5 @@
1
1
  import type { Monitors } from '@modern-js/types';
2
- import type { CollectDirectRemoteModuleFederationCssOptions } from './remote';
2
+ import type { CollectDirectRemoteModuleFederationCssOptions } from './remote.js';
3
3
  export type ModuleFederationCssCollectorOptions = CollectDirectRemoteModuleFederationCssOptions & {
4
4
  /**
5
5
  * How long a successful remote CSS collection may be served from cache.
@@ -1,8 +1,8 @@
1
- export type { ModuleFederationCssCollectorOptions } from './collector';
2
- export { createModuleFederationCssCollector } from './collector';
3
- export type { ModuleFederationManifest } from './manifest';
4
- export { collectModuleFederationManifestCss } from './manifest';
5
- export type { ModuleFederationCssPluginOptions } from './plugin';
6
- export { injectModuleFederationCssPlugin } from './plugin';
7
- export type { CollectDirectRemoteModuleFederationCssOptions, RemoteModuleFederationCssCollection, } from './remote';
8
- export { collectDirectRemoteModuleFederationCss, collectDirectRemoteModuleFederationCssWithMeta, } from './remote';
1
+ export type { ModuleFederationCssCollectorOptions } from './collector.js';
2
+ export { createModuleFederationCssCollector } from './collector.js';
3
+ export type { ModuleFederationManifest } from './manifest.js';
4
+ export { collectModuleFederationManifestCss } from './manifest.js';
5
+ export type { ModuleFederationCssPluginOptions } from './plugin.js';
6
+ export { injectModuleFederationCssPlugin } from './plugin.js';
7
+ export type { CollectDirectRemoteModuleFederationCssOptions, RemoteModuleFederationCssCollection, } from './remote.js';
8
+ export { collectDirectRemoteModuleFederationCss, collectDirectRemoteModuleFederationCssWithMeta, } from './remote.js';
@@ -1,4 +1,4 @@
1
- export type { RuntimeFallbackSignalAuthConfig, RuntimeFallbackSignalConfig, RuntimeFallbackSignalRuntimeState, RuntimeFallbackSignalSource, RuntimeFallbackSignalTrustContext, RuntimeFallbackSignalTrustPolicy, RuntimeSignalError, RuntimeSignalErrorCode, } from './model';
2
- export { createRuntimeSignalError, DEFAULT_RUNTIME_FALLBACK_FAILURE_HOLD_MS, DEFAULT_RUNTIME_FALLBACK_GATE_NAME, DEFAULT_RUNTIME_FALLBACK_MAX_BODY_BYTES, DEFAULT_RUNTIME_FALLBACK_SIGNAL_ENDPOINT, DEFAULT_RUNTIME_STATUS_ENDPOINT, getRuntimeSignalErrorStatusCode, parseRuntimeFallbackSignalPayload, parseRuntimeFallbackSignalPayloadFromRawBody, } from './model';
3
- export { enforceRuntimeFallbackSignalAuth, enforceRuntimeFallbackSignalAuthToken, enforceRuntimeFallbackSignalTrustPolicy, normalizeRequiredRuntimeFallbackSignalAuthConfig, normalizeRuntimeFallbackSignalAuthConfig, normalizeRuntimeFallbackTrustPolicy, resolveRuntimeFallbackSignalEndpoint, } from './resolver';
4
- export { createRuntimeFallbackSignalRuntimeState, persistRuntimeFallbackContractGate, } from './store';
1
+ export type { RuntimeFallbackSignalAuthConfig, RuntimeFallbackSignalConfig, RuntimeFallbackSignalRuntimeState, RuntimeFallbackSignalSource, RuntimeFallbackSignalTrustContext, RuntimeFallbackSignalTrustPolicy, RuntimeSignalError, RuntimeSignalErrorCode, } from './model.js';
2
+ export { createRuntimeSignalError, DEFAULT_RUNTIME_FALLBACK_FAILURE_HOLD_MS, DEFAULT_RUNTIME_FALLBACK_GATE_NAME, DEFAULT_RUNTIME_FALLBACK_MAX_BODY_BYTES, DEFAULT_RUNTIME_FALLBACK_SIGNAL_ENDPOINT, DEFAULT_RUNTIME_STATUS_ENDPOINT, getRuntimeSignalErrorStatusCode, parseRuntimeFallbackSignalPayload, parseRuntimeFallbackSignalPayloadFromRawBody, } from './model.js';
3
+ export { enforceRuntimeFallbackSignalAuth, enforceRuntimeFallbackSignalAuthToken, enforceRuntimeFallbackSignalTrustPolicy, normalizeRequiredRuntimeFallbackSignalAuthConfig, normalizeRuntimeFallbackSignalAuthConfig, normalizeRuntimeFallbackTrustPolicy, resolveRuntimeFallbackSignalEndpoint, } from './resolver.js';
4
+ export { createRuntimeFallbackSignalRuntimeState, persistRuntimeFallbackContractGate, } from './store.js';
@@ -1,5 +1,5 @@
1
1
  import type { Context, ServerEnv } from '@modern-js/server-core';
2
- import type { ContractGateSnapshotStore } from '../contract-gate-snapshot-store';
2
+ import type { ContractGateSnapshotStore } from '../contract-gate-snapshot-store/index.js';
3
3
  export declare const DEFAULT_RUNTIME_FALLBACK_SIGNAL_ENDPOINT = "/_modern/contract-gates/runtime-fallback";
4
4
  export declare const DEFAULT_RUNTIME_STATUS_ENDPOINT = "/_modern/runtime/status";
5
5
  export declare const DEFAULT_RUNTIME_FALLBACK_GATE_NAME = "runtime-mf-fallback-health";
@@ -1,5 +1,5 @@
1
1
  import type { Context, ServerEnv } from '@modern-js/server-core';
2
- import type { RuntimeFallbackSignalAuthConfig, RuntimeFallbackSignalConfig, RuntimeFallbackSignalSource, RuntimeFallbackSignalTrustContext, RuntimeFallbackSignalTrustPolicy } from './model';
2
+ import type { RuntimeFallbackSignalAuthConfig, RuntimeFallbackSignalConfig, RuntimeFallbackSignalSource, RuntimeFallbackSignalTrustContext, RuntimeFallbackSignalTrustPolicy } from './model.js';
3
3
  export declare function resolveRuntimeFallbackSignalEndpoint(configuredEndpoint?: string): string;
4
4
  export declare function normalizeRuntimeFallbackSignalAuthConfig(configured: {
5
5
  enabled?: boolean;
@@ -1,4 +1,4 @@
1
- import type { RuntimeFallbackSignalConfig, RuntimeFallbackSignalRuntimeState, RuntimeFallbackSignalTrustPolicy } from './model';
1
+ import type { RuntimeFallbackSignalConfig, RuntimeFallbackSignalRuntimeState, RuntimeFallbackSignalTrustPolicy } from './model.js';
2
2
  export declare function createRuntimeFallbackSignalRuntimeState(): RuntimeFallbackSignalRuntimeState;
3
3
  export declare function cleanupRuntimeFallbackSignalRuntimeState(now: number, runtimeState: RuntimeFallbackSignalRuntimeState, trustPolicy: RuntimeFallbackSignalTrustPolicy): void;
4
4
  export declare function persistRuntimeFallbackContractGate(payload: Record<string, unknown>, runtimeSignalConfig: RuntimeFallbackSignalConfig): Promise<void>;
@@ -1 +1 @@
1
- export * from './runtime-fallback-signal';
1
+ export * from './runtime-fallback-signal/index.js';
@@ -1,4 +1,4 @@
1
- import type { TelemetryExporter } from './envelope';
1
+ import type { TelemetryExporter } from './envelope.js';
2
2
  export interface OtlpExporterOptions {
3
3
  endpoint?: string;
4
4
  headers?: Record<string, string>;
@@ -1,5 +1,5 @@
1
- import type { TelemetryContractGateStatus, TelemetryHealthFailure } from './healthMonitor';
2
- import type { TelemetryQueueStats } from './registryTypes';
1
+ import type { TelemetryContractGateStatus, TelemetryHealthFailure } from './healthMonitor.js';
2
+ import type { TelemetryQueueStats } from './registryTypes.js';
3
3
  interface TelemetryHealthMetrics {
4
4
  queueStats: TelemetryQueueStats;
5
5
  unhealthyExporterCount: number;
@@ -1,5 +1,5 @@
1
- import type { TelemetryRegistry } from './registry';
2
- import type { TelemetryQueueStats } from './registryTypes';
1
+ import type { TelemetryRegistry } from './registry.js';
2
+ import type { TelemetryQueueStats } from './registryTypes.js';
3
3
  export type TelemetryHealthState = 'pending' | 'healthy' | 'unhealthy';
4
4
  export type TelemetryHealthTransition = 'none' | 'became_healthy' | 'became_unhealthy';
5
5
  export type TelemetryHealthFailureReason = 'queue_utilization' | 'queue_dropped' | 'unhealthy_exporter' | 'contract_gate_missing' | 'contract_gate_failed';
@@ -1,7 +1,7 @@
1
1
  import type { ServerTelemetryUserConfig } from '@modern-js/server-core';
2
- import { type ContractGateSnapshotStore } from '../contract-gate-snapshot-store';
3
- import { type RuntimeFallbackSignalAuthConfig, type RuntimeFallbackSignalConfig } from '../runtimeFallbackSignal';
4
- import { TelemetryHealthMonitor, TelemetryRegistry } from '../telemetryCore';
2
+ import { type ContractGateSnapshotStore } from '../contract-gate-snapshot-store/index.js';
3
+ import { type RuntimeFallbackSignalAuthConfig, type RuntimeFallbackSignalConfig } from '../runtimeFallbackSignal.js';
4
+ import { TelemetryHealthMonitor, TelemetryRegistry } from '../telemetryCore.js';
5
5
  type SetupTelemetryHealthMonitoringOptions = {
6
6
  registry: TelemetryRegistry;
7
7
  appDirectory: string;
@@ -1,6 +1,6 @@
1
1
  import type { ServerTelemetryUserConfig } from '@modern-js/server-core';
2
- import { type ContractGateSnapshotStore } from '../contract-gate-snapshot-store';
3
- import { TelemetryHealthMonitor, TelemetryRegistry } from '../telemetryCore';
2
+ import { type ContractGateSnapshotStore } from '../contract-gate-snapshot-store/index.js';
3
+ import { TelemetryHealthMonitor, TelemetryRegistry } from '../telemetryCore.js';
4
4
  type TelemetryLifecycleApi = {
5
5
  getServerContext: () => unknown;
6
6
  onPrepare: (prepare: () => Promise<void>) => void;
@@ -1,3 +1,3 @@
1
1
  import type { Metrics } from '@modern-js/types';
2
- import type { TelemetryRegistry } from './registry';
2
+ import type { TelemetryRegistry } from './registry.js';
3
3
  export declare const createTelemetryAwareMetrics: <T extends Metrics>(baseMetrics: T, registry: TelemetryRegistry) => T;
@@ -1,7 +1,7 @@
1
1
  import type { ServerPlugin, ServerTelemetryUserConfig } from '@modern-js/server-core';
2
- import { type TelemetryRegistryOptions } from '../telemetryCore';
3
- export { createRuntimeFallbackSignalRuntimeState, createRuntimeSignalError, DEFAULT_RUNTIME_FALLBACK_SIGNAL_ENDPOINT, DEFAULT_RUNTIME_STATUS_ENDPOINT, enforceRuntimeFallbackSignalAuthToken, enforceRuntimeFallbackSignalTrustPolicy, getRuntimeSignalErrorStatusCode, normalizeRequiredRuntimeFallbackSignalAuthConfig, normalizeRuntimeFallbackSignalAuthConfig, normalizeRuntimeFallbackTrustPolicy, parseRuntimeFallbackSignalPayloadFromRawBody, type RuntimeFallbackSignalAuthConfig, type RuntimeFallbackSignalRuntimeState, type RuntimeFallbackSignalSource, type RuntimeFallbackSignalTrustContext, type RuntimeFallbackSignalTrustPolicy, type RuntimeSignalError, type RuntimeSignalErrorCode, resolveRuntimeFallbackSignalEndpoint, } from '../runtimeFallbackSignal';
4
- export { createOtlpTelemetryExporter, createTelemetryAwareMetrics, createVictoriaMetricsTelemetryExporter, type OtlpExporterOptions, type TelemetryContractGateStatus, type TelemetryEnvelope, type TelemetryExporter, type TelemetryExporterHealthStatus, type TelemetryHealthEvaluation, type TelemetryHealthFailure, type TelemetryHealthFailureReason, TelemetryHealthMonitor, type TelemetryHealthMonitorOptions, type TelemetryHealthState, type TelemetryHealthStatusSnapshot, type TelemetryHealthTransition, type TelemetryQueueStats, TelemetryRegistry, type TelemetryRegistryOptions, type TelemetrySignalType, type TelemetrySloAlert, type TelemetrySloAlertType, TelemetryStartupHealthError, type VictoriaMetricsExporterOptions, } from '../telemetryCore';
2
+ import { type TelemetryRegistryOptions } from '../telemetryCore.js';
3
+ export { createRuntimeFallbackSignalRuntimeState, createRuntimeSignalError, DEFAULT_RUNTIME_FALLBACK_SIGNAL_ENDPOINT, DEFAULT_RUNTIME_STATUS_ENDPOINT, enforceRuntimeFallbackSignalAuthToken, enforceRuntimeFallbackSignalTrustPolicy, getRuntimeSignalErrorStatusCode, normalizeRequiredRuntimeFallbackSignalAuthConfig, normalizeRuntimeFallbackSignalAuthConfig, normalizeRuntimeFallbackTrustPolicy, parseRuntimeFallbackSignalPayloadFromRawBody, type RuntimeFallbackSignalAuthConfig, type RuntimeFallbackSignalRuntimeState, type RuntimeFallbackSignalSource, type RuntimeFallbackSignalTrustContext, type RuntimeFallbackSignalTrustPolicy, type RuntimeSignalError, type RuntimeSignalErrorCode, resolveRuntimeFallbackSignalEndpoint, } from '../runtimeFallbackSignal.js';
4
+ export { createOtlpTelemetryExporter, createTelemetryAwareMetrics, createVictoriaMetricsTelemetryExporter, type OtlpExporterOptions, type TelemetryContractGateStatus, type TelemetryEnvelope, type TelemetryExporter, type TelemetryExporterHealthStatus, type TelemetryHealthEvaluation, type TelemetryHealthFailure, type TelemetryHealthFailureReason, TelemetryHealthMonitor, type TelemetryHealthMonitorOptions, type TelemetryHealthState, type TelemetryHealthStatusSnapshot, type TelemetryHealthTransition, type TelemetryQueueStats, TelemetryRegistry, type TelemetryRegistryOptions, type TelemetrySignalType, type TelemetrySloAlert, type TelemetrySloAlertType, TelemetryStartupHealthError, type VictoriaMetricsExporterOptions, } from '../telemetryCore.js';
5
5
  export declare const hasEnabledTelemetryExporters: (config: ServerTelemetryUserConfig | undefined) => boolean;
6
6
  /**
7
7
  * Builds the registry SLO options from `server.telemetry.slo`, attaching a
@@ -1,5 +1,5 @@
1
- import { type TelemetryEnvelope, type TelemetryExporter } from './envelope';
2
- import { type TelemetryExporterHealthStatus, type TelemetryQueueStats, type TelemetryRegistryOptions } from './registryTypes';
1
+ import { type TelemetryEnvelope, type TelemetryExporter } from './envelope.js';
2
+ import { type TelemetryExporterHealthStatus, type TelemetryQueueStats, type TelemetryRegistryOptions } from './registryTypes.js';
3
3
  export declare class TelemetryRegistry {
4
4
  private readonly exporters;
5
5
  private readonly queue;
@@ -1,6 +1,6 @@
1
1
  import type { Context, ServerEnv } from '@modern-js/server-core';
2
- import { type RuntimeFallbackSignalAuthConfig, type RuntimeFallbackSignalConfig } from '../runtimeFallbackSignal';
3
- import type { TelemetryHealthMonitor, TelemetryRegistry } from '../telemetryCore';
2
+ import { type RuntimeFallbackSignalAuthConfig, type RuntimeFallbackSignalConfig } from '../runtimeFallbackSignal.js';
3
+ import type { TelemetryHealthMonitor, TelemetryRegistry } from '../telemetryCore.js';
4
4
  type RuntimeStatusMiddlewareOptions = {
5
5
  registry: TelemetryRegistry;
6
6
  healthMonitor?: TelemetryHealthMonitor;
@@ -1 +1 @@
1
- export * from './telemetry/plugin';
1
+ export * from './telemetry/plugin.js';
@@ -1,6 +1,6 @@
1
- export { type TelemetryEnvelope, type TelemetryExporter, type TelemetrySignalType, toTelemetryEnvelope, } from './telemetry/envelope';
2
- export { createOtlpTelemetryExporter, createVictoriaMetricsTelemetryExporter, maybeWarnLegacyOtlpEndpoint, type OtlpExporterOptions, type VictoriaMetricsExporterOptions, } from './telemetry/exporters';
3
- export { type TelemetryContractGateStatus, type TelemetryHealthEvaluation, type TelemetryHealthFailure, type TelemetryHealthFailureReason, TelemetryHealthMonitor, type TelemetryHealthMonitorOptions, type TelemetryHealthState, type TelemetryHealthStatusSnapshot, type TelemetryHealthTransition, } from './telemetry/healthMonitor';
4
- export { createTelemetryAwareMetrics } from './telemetry/metrics';
5
- export { TelemetryRegistry } from './telemetry/registry';
6
- export { type TelemetryExporterHealthStatus, type TelemetryQueueStats, type TelemetryRegistryOptions, type TelemetrySloAlert, type TelemetrySloAlertType, TelemetryStartupHealthError, } from './telemetry/registryTypes';
1
+ export { type TelemetryEnvelope, type TelemetryExporter, type TelemetrySignalType, toTelemetryEnvelope, } from './telemetry/envelope.js';
2
+ export { createOtlpTelemetryExporter, createVictoriaMetricsTelemetryExporter, maybeWarnLegacyOtlpEndpoint, type OtlpExporterOptions, type VictoriaMetricsExporterOptions, } from './telemetry/exporters.js';
3
+ export { type TelemetryContractGateStatus, type TelemetryHealthEvaluation, type TelemetryHealthFailure, type TelemetryHealthFailureReason, TelemetryHealthMonitor, type TelemetryHealthMonitorOptions, type TelemetryHealthState, type TelemetryHealthStatusSnapshot, type TelemetryHealthTransition, } from './telemetry/healthMonitor.js';
4
+ export { createTelemetryAwareMetrics } from './telemetry/metrics.js';
5
+ export { TelemetryRegistry } from './telemetry/registry.js';
6
+ export { type TelemetryExporterHealthStatus, type TelemetryQueueStats, type TelemetryRegistryOptions, type TelemetrySloAlert, type TelemetrySloAlertType, TelemetryStartupHealthError, } from './telemetry/registryTypes.js';
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "modern",
18
18
  "modern.js"
19
19
  ],
20
- "version": "3.8.3-ultramodern.5",
20
+ "version": "3.9.0-ultramodern.1",
21
21
  "types": "./dist/types/index.d.ts",
22
22
  "main": "./dist/cjs/index.js",
23
23
  "exports": {
@@ -80,15 +80,15 @@
80
80
  "node": ">=26.7.0"
81
81
  },
82
82
  "dependencies": {
83
- "@modern-js/create-request": "npm:@bleedingdev/modern-js-create-request@3.8.3-ultramodern.5",
84
- "@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.8.3-ultramodern.5",
85
- "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.8.3-ultramodern.5",
86
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.8.3-ultramodern.5",
83
+ "@modern-js/create-request": "npm:@bleedingdev/modern-js-create-request@3.9.0-ultramodern.1",
84
+ "@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.9.0-ultramodern.1",
85
+ "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.9.0-ultramodern.1",
86
+ "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.0-ultramodern.1",
87
87
  "@swc/helpers": "^0.5.23"
88
88
  },
89
89
  "devDependencies": {
90
- "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.8.3-ultramodern.5",
91
- "@rslib/core": "0.23.2",
90
+ "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.0-ultramodern.1",
91
+ "@rslib/core": "1.0.0",
92
92
  "@scripts/rstest-config": "2.66.0",
93
93
  "@types/node": "^26.2.0",
94
94
  "@typescript/native-preview": "7.0.0-dev.20260707.2"