@softarc/native-federation-orchestrator 4.0.0-RC1 → 4.0.0-RC3
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/fesm2022/@softarc/native-federation-orchestrator.mjs +221 -47
- package/fesm2022/@softarc/native-federation-orchestrator.mjs.map +4 -4
- package/fesm2022/options.mjs +8 -2
- package/fesm2022/options.mjs.map +2 -2
- package/package.json +1 -6
- package/quickstart.mjs +13 -13
- package/types/lib/1.domain/externals/chunks.contract.d.ts +3 -0
- package/types/lib/1.domain/externals/version.contract.d.ts +2 -0
- package/types/lib/1.domain/remote-entry/remote-entry.contract.d.ts +1 -18
- package/types/lib/2.app/config/import-map.contract.d.ts +1 -0
- package/types/lib/2.app/config/log.contract.d.ts +2 -0
- package/types/lib/2.app/driving-ports/driving.contract.d.ts +4 -0
- package/types/lib/2.app/driving-ports/for-shared-chunks-storage.port.d.ts +6 -0
- package/types/lib/2.app/driving-ports/for-sse.port.d.ts +4 -0
- package/types/lib/2.app/driving-ports/index.d.ts +1 -0
- package/types/lib/2.app/flows/dynamic-init/convert-to-import-map.d.ts +2 -1
- package/types/lib/2.app/flows/dynamic-init/get-remote-entry.d.ts +1 -1
- package/types/lib/2.app/flows/dynamic-init/update-cache.d.ts +1 -1
- package/types/lib/2.app/flows/init/commit-changes.d.ts +1 -1
- package/types/lib/2.app/flows/init/generate-import-map.d.ts +1 -1
- package/types/lib/2.app/flows/init/get-remote-entries.d.ts +1 -1
- package/types/lib/2.app/flows/init/process-remote-entries.d.ts +1 -1
- package/types/lib/3.adapters/browser/sse-handler.d.ts +13 -0
- package/types/lib/3.adapters/storage/chunk.repository.d.ts +4 -0
- package/types/lib/4.config/logging/log.config.d.ts +1 -1
|
@@ -5,4 +5,5 @@ export * from './for-providing-remote-entries.port';
|
|
|
5
5
|
export * from './for-remote-info-storage.port';
|
|
6
6
|
export * from './for-scoped-externals-storage.port';
|
|
7
7
|
export * from './for-shared-externals-storage.port';
|
|
8
|
+
export * from './for-sse.port';
|
|
8
9
|
export * from './driving.contract';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { LoggingConfig } from '../../config/log.contract';
|
|
2
2
|
import type { ForConvertingToImportMap } from '../../driver-ports/dynamic-init/for-converting-to-import-map';
|
|
3
|
-
|
|
3
|
+
import type { DrivingContract } from '../../../sdk.index';
|
|
4
|
+
export declare function createConvertToImportMap({ log }: LoggingConfig, ports: Pick<DrivingContract, 'sharedChunksRepo'>): ForConvertingToImportMap;
|
|
@@ -2,4 +2,4 @@ import type { DrivingContract } from '../../driving-ports/driving.contract';
|
|
|
2
2
|
import type { LoggingConfig } from '../../config/log.contract';
|
|
3
3
|
import type { ModeConfig } from '../../config/mode.contract';
|
|
4
4
|
import type { ForGettingRemoteEntry } from '../../driver-ports/dynamic-init/for-getting-remote-entry.port';
|
|
5
|
-
export declare function createGetRemoteEntry(config: LoggingConfig & ModeConfig, ports: Pick<DrivingContract, 'remoteEntryProvider' | 'remoteInfoRepo'>): ForGettingRemoteEntry;
|
|
5
|
+
export declare function createGetRemoteEntry(config: LoggingConfig & ModeConfig, ports: Pick<DrivingContract, 'remoteEntryProvider' | 'remoteInfoRepo' | 'sse'>): ForGettingRemoteEntry;
|
|
@@ -2,4 +2,4 @@ import type { ForUpdatingCache } from '../../driver-ports/dynamic-init/for-updat
|
|
|
2
2
|
import type { DrivingContract } from '../../driving-ports/driving.contract';
|
|
3
3
|
import type { LoggingConfig } from '../../config/log.contract';
|
|
4
4
|
import type { ModeConfig } from '../../config/mode.contract';
|
|
5
|
-
export declare function createUpdateCache(config: LoggingConfig & ModeConfig, ports: Pick<DrivingContract, 'remoteInfoRepo' | 'sharedExternalsRepo' | 'scopedExternalsRepo' | 'versionCheck'>): ForUpdatingCache;
|
|
5
|
+
export declare function createUpdateCache(config: LoggingConfig & ModeConfig, ports: Pick<DrivingContract, 'remoteInfoRepo' | 'sharedExternalsRepo' | 'scopedExternalsRepo' | 'sharedChunksRepo' | 'versionCheck'>): ForUpdatingCache;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DrivingContract } from '../../driving-ports/driving.contract';
|
|
2
2
|
import type { ForCommittingChanges } from '../../driver-ports/init/for-committing-changes.port';
|
|
3
3
|
import type { LoggingConfig } from '../../config';
|
|
4
|
-
export declare function createCommitChanges(config: LoggingConfig, ports: Pick<DrivingContract, 'remoteInfoRepo' | 'scopedExternalsRepo' | 'sharedExternalsRepo' | 'browser'>): ForCommittingChanges;
|
|
4
|
+
export declare function createCommitChanges(config: LoggingConfig, ports: Pick<DrivingContract, 'remoteInfoRepo' | 'scopedExternalsRepo' | 'sharedExternalsRepo' | 'sharedChunksRepo' | 'browser'>): ForCommittingChanges;
|
|
@@ -2,4 +2,4 @@ import type { ForGeneratingImportMap } from '../../driver-ports/init/for-generat
|
|
|
2
2
|
import type { DrivingContract } from '../../driving-ports/driving.contract';
|
|
3
3
|
import type { LoggingConfig } from '../../config/log.contract';
|
|
4
4
|
import type { ModeConfig } from '../../config/mode.contract';
|
|
5
|
-
export declare function createGenerateImportMap(config: LoggingConfig & ModeConfig, ports: Pick<DrivingContract, 'remoteInfoRepo' | 'scopedExternalsRepo' | 'sharedExternalsRepo'>): ForGeneratingImportMap;
|
|
5
|
+
export declare function createGenerateImportMap(config: LoggingConfig & ModeConfig, ports: Pick<DrivingContract, 'remoteInfoRepo' | 'scopedExternalsRepo' | 'sharedChunksRepo' | 'sharedExternalsRepo'>): ForGeneratingImportMap;
|
|
@@ -3,4 +3,4 @@ import type { DrivingContract } from '../../driving-ports/driving.contract';
|
|
|
3
3
|
import type { LoggingConfig } from '../../config/log.contract';
|
|
4
4
|
import type { ModeConfig } from '../../config/mode.contract';
|
|
5
5
|
import type { HostConfig } from '../../config/host.contract';
|
|
6
|
-
export declare function createGetRemoteEntries(config: LoggingConfig & ModeConfig & HostConfig, ports: Pick<DrivingContract, 'remoteEntryProvider' | 'manifestProvider' | 'remoteInfoRepo'>): ForGettingRemoteEntries;
|
|
6
|
+
export declare function createGetRemoteEntries(config: LoggingConfig & ModeConfig & HostConfig, ports: Pick<DrivingContract, 'remoteEntryProvider' | 'manifestProvider' | 'remoteInfoRepo' | 'sse'>): ForGettingRemoteEntries;
|
|
@@ -2,4 +2,4 @@ import type { ForProcessingRemoteEntries } from '../../driver-ports/init/for-pro
|
|
|
2
2
|
import type { DrivingContract } from '../../driving-ports/driving.contract';
|
|
3
3
|
import type { LoggingConfig } from '../../config/log.contract';
|
|
4
4
|
import type { ModeConfig } from '../../config/mode.contract';
|
|
5
|
-
export declare function createProcessRemoteEntries(config: LoggingConfig & ModeConfig, ports: Pick<DrivingContract, 'remoteInfoRepo' | 'sharedExternalsRepo' | 'scopedExternalsRepo' | 'versionCheck'>): ForProcessingRemoteEntries;
|
|
5
|
+
export declare function createProcessRemoteEntries(config: LoggingConfig & ModeConfig, ports: Pick<DrivingContract, 'remoteInfoRepo' | 'sharedExternalsRepo' | 'scopedExternalsRepo' | 'sharedChunksRepo' | 'versionCheck'>): ForProcessingRemoteEntries;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ImportMapConfig } from '../../2.app/config/import-map.contract';
|
|
2
|
+
import type { ForSSE } from '../../2.app/driving-ports/for-sse.port';
|
|
3
|
+
import type { LoggingConfig } from '../../options.index';
|
|
4
|
+
/**
|
|
5
|
+
* Watches for federation build completion events and automatically reloads the page.
|
|
6
|
+
*
|
|
7
|
+
* This function establishes a Server-Sent Events (SSE) connection to listen for
|
|
8
|
+
* 'federation-rebuild-complete' notifications. When a build completes successfully,
|
|
9
|
+
* it triggers a page reload to reflect the latest changes.
|
|
10
|
+
* @param endpoint - The SSE endpoint URL to watch for build notifications.
|
|
11
|
+
*/
|
|
12
|
+
declare const createSSEHandler: (config: ImportMapConfig & LoggingConfig) => ForSSE;
|
|
13
|
+
export { createSSEHandler };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { StorageConfig } from '../../2.app/config/storage.contract';
|
|
2
|
+
import type { ForSharedChunksStorage } from '../../2.app/driving-ports/for-shared-chunks-storage.port';
|
|
3
|
+
declare const createChunkRepository: (config: StorageConfig) => ForSharedChunksStorage;
|
|
4
|
+
export { createChunkRepository };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { LoggingConfig, LoggingOptions } from '../../2.app/config/log.contract';
|
|
2
|
-
export declare const createLogConfig: ({ logger, logLevel }: LoggingOptions) => LoggingConfig;
|
|
2
|
+
export declare const createLogConfig: ({ logger, logLevel, sse }: LoggingOptions) => LoggingConfig;
|