@bleedingdev/modern-js-utils 3.8.3-ultramodern.6 → 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.
- package/dist/esm/compiled.mjs +1 -1
- package/dist/types/cli/common.d.ts +2 -2
- package/dist/types/cli/constants.d.ts +1 -1
- package/dist/types/cli/get/index.d.ts +2 -2
- package/dist/types/cli/index.d.ts +24 -24
- package/dist/types/cli/is/index.d.ts +4 -4
- package/dist/types/cli/watch.d.ts +1 -1
- package/dist/types/compiled.d.ts +26 -26
- package/dist/types/index.d.ts +3 -3
- package/dist/types/universal/backend-federation-contract/build-artifact.d.ts +1 -1
- package/dist/types/universal/backend-federation-contract/delivery-unit.d.ts +2 -2
- package/dist/types/universal/backend-federation-contract/index.d.ts +7 -7
- package/dist/types/universal/backend-federation-contract/metadata.d.ts +1 -1
- package/dist/types/universal/backend-federation-contract/types.d.ts +1 -1
- package/dist/types/universal/backend-federation-contract/validation-core.d.ts +1 -1
- package/dist/types/universal/index.d.ts +4 -4
- package/dist/types/universal/surface-resolution/env-static-provider.d.ts +1 -1
- package/dist/types/universal/surface-resolution/index.d.ts +4 -4
- package/dist/types/universal/surface-resolution/types.d.ts +2 -2
- package/dist/types/universal/surface-resolution/validation.d.ts +2 -2
- package/package.json +3 -3
- package/rslib.config.mts +5 -4
- /package/dist/esm/{rslib-runtime.mjs → rslib-runtime~1.mjs} +0 -0
package/dist/esm/compiled.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import { Import } from "./import.mjs";
|
|
3
|
-
import { __webpack_require__ } from "./rslib-runtime.mjs";
|
|
3
|
+
import { __webpack_require__ } from "./rslib-runtime~1.mjs";
|
|
4
4
|
import chokidar from "../compiled/chokidar/index.js";
|
|
5
5
|
import signale from "../compiled/signale/index.js";
|
|
6
6
|
import * as __rspack_external__compiled_js_yaml_index_mjs_019e8284 from "../compiled/js-yaml/index.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import debug from '../../compiled/debug';
|
|
2
|
-
export { wait } from '../universal/wait';
|
|
1
|
+
import debug from '../../compiled/debug/index.js';
|
|
2
|
+
export { wait } from '../universal/wait.js';
|
|
3
3
|
/**
|
|
4
4
|
* Create debug function with unified namespace prefix.
|
|
5
5
|
* @param scope - Custom module name of your debug function.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { InternalPlugins } from '@modern-js/types';
|
|
2
|
-
export { DEFAULT_ENTRY_NAME, MAIN_ENTRY_NAME, NESTED_ROUTE_SPEC_FILE, ROUTE_SPEC_FILE, SERVER_BUNDLE_DIRECTORY, SERVER_PLUGIN_BFF, SERVER_PLUGIN_POLYFILL, SERVER_RENDER_FUNCTION_NAME, } from '../universal/constants';
|
|
2
|
+
export { DEFAULT_ENTRY_NAME, MAIN_ENTRY_NAME, NESTED_ROUTE_SPEC_FILE, ROUTE_SPEC_FILE, SERVER_BUNDLE_DIRECTORY, SERVER_PLUGIN_BFF, SERVER_PLUGIN_POLYFILL, SERVER_RENDER_FUNCTION_NAME, } from '../universal/constants.js';
|
|
3
3
|
export declare const JS_EXTENSIONS: string[];
|
|
4
4
|
/**
|
|
5
5
|
* server side bundles directory, which relative to dist.
|
|
@@ -7,5 +7,5 @@ export declare const getServerConfig: (appDirectory: string, configFile: string)
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const getMeta: (metaName?: string) => string;
|
|
9
9
|
export declare const getTargetDir: (from: string, baseDir: string, targetBaseDir: string) => string;
|
|
10
|
-
export * from './config';
|
|
11
|
-
export * from './data';
|
|
10
|
+
export * from './config.js';
|
|
11
|
+
export * from './data.js';
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export * from './alias';
|
|
2
|
-
export * from './applyOptionsChain';
|
|
3
|
-
export * from './commands';
|
|
4
|
-
export * from './common';
|
|
5
|
-
export * from './config';
|
|
6
|
-
export * from './constants';
|
|
7
|
-
export * from './ensure';
|
|
8
|
-
export * from './fs';
|
|
9
|
-
export * from './get';
|
|
10
|
-
export * from './is';
|
|
11
|
-
export * from './logger';
|
|
12
|
-
export * from './modulePath';
|
|
13
|
-
export * from './monorepo';
|
|
14
|
-
export * from './package';
|
|
15
|
-
export * from './path';
|
|
16
|
-
export * from './port';
|
|
17
|
-
export * from './prettyInstructions';
|
|
18
|
-
export * from './require';
|
|
19
|
-
export * from './route';
|
|
20
|
-
export * from './routeComponentFiles';
|
|
21
|
-
export * from './runtimeExports';
|
|
22
|
-
export * from './tsconfig';
|
|
23
|
-
export * from './version';
|
|
24
|
-
export * from './watch';
|
|
1
|
+
export * from './alias.js';
|
|
2
|
+
export * from './applyOptionsChain.js';
|
|
3
|
+
export * from './commands.js';
|
|
4
|
+
export * from './common.js';
|
|
5
|
+
export * from './config.js';
|
|
6
|
+
export * from './constants.js';
|
|
7
|
+
export * from './ensure.js';
|
|
8
|
+
export * from './fs.js';
|
|
9
|
+
export * from './get/index.js';
|
|
10
|
+
export * from './is/index.js';
|
|
11
|
+
export * from './logger.js';
|
|
12
|
+
export * from './modulePath.js';
|
|
13
|
+
export * from './monorepo.js';
|
|
14
|
+
export * from './package.js';
|
|
15
|
+
export * from './path.js';
|
|
16
|
+
export * from './port.js';
|
|
17
|
+
export * from './prettyInstructions.js';
|
|
18
|
+
export * from './require.js';
|
|
19
|
+
export * from './route.js';
|
|
20
|
+
export * from './routeComponentFiles.js';
|
|
21
|
+
export * from './runtimeExports.js';
|
|
22
|
+
export * from './tsconfig.js';
|
|
23
|
+
export * from './version.js';
|
|
24
|
+
export * from './watch.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './config';
|
|
2
|
-
export * from './env';
|
|
3
|
-
export * from './project';
|
|
4
|
-
export * from './type';
|
|
1
|
+
export * from './config.js';
|
|
2
|
+
export * from './env.js';
|
|
3
|
+
export * from './project.js';
|
|
4
|
+
export * from './type.js';
|
|
@@ -4,5 +4,5 @@ type RunTaskType = (option: {
|
|
|
4
4
|
changedFilePath: string;
|
|
5
5
|
changeType: WatchChangeTypeValueT;
|
|
6
6
|
}) => void | Promise<void>;
|
|
7
|
-
export declare const watch: (watchDir: string | string[], runTask: RunTaskType, ignored?: (string | RegExp)[]) => import("
|
|
7
|
+
export declare const watch: (watchDir: string | string[], runTask: RunTaskType, ignored?: (string | RegExp)[]) => import("../index.js").FSWatcher;
|
|
8
8
|
export {};
|
package/dist/types/compiled.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
export { default as address } from '../compiled/address';
|
|
2
|
-
export { default as browserslist } from '../compiled/browserslist';
|
|
3
|
-
export { default as chalk } from '../compiled/chalk';
|
|
2
|
+
export { default as browserslist } from '../compiled/browserslist/index.js';
|
|
3
|
+
export { default as chalk } from '../compiled/chalk/index.js';
|
|
4
4
|
export { Command, program } from '../compiled/commander';
|
|
5
|
-
export { default as debug } from '../compiled/debug';
|
|
5
|
+
export { default as debug } from '../compiled/debug/index.js';
|
|
6
6
|
export { default as dotenv } from '../compiled/dotenv';
|
|
7
|
-
export { default as dotenvExpand } from '../compiled/dotenv-expand';
|
|
8
|
-
export { default as execa } from '../compiled/execa';
|
|
7
|
+
export { default as dotenvExpand } from '../compiled/dotenv-expand/index.js';
|
|
8
|
+
export { default as execa } from '../compiled/execa/index.js';
|
|
9
9
|
export { default as fastGlob } from '../compiled/fast-glob';
|
|
10
10
|
export { default as filesize } from '../compiled/filesize';
|
|
11
|
-
export { default as fs } from '../compiled/fs-extra';
|
|
12
|
-
export { default as glob } from '../compiled/glob';
|
|
13
|
-
export { default as globby } from '../compiled/globby';
|
|
14
|
-
export { default as gzipSize } from '../compiled/gzip-size';
|
|
15
|
-
export * as yaml from '../compiled/js-yaml';
|
|
11
|
+
export { default as fs } from '../compiled/fs-extra/index.js';
|
|
12
|
+
export { default as glob } from '../compiled/glob/index.js';
|
|
13
|
+
export { default as globby } from '../compiled/globby/index.js';
|
|
14
|
+
export { default as gzipSize } from '../compiled/gzip-size/index.js';
|
|
15
|
+
export * as yaml from '../compiled/js-yaml/index.js';
|
|
16
16
|
export { default as json5 } from '../compiled/json5';
|
|
17
|
-
export { default as lodash } from '../compiled/lodash';
|
|
18
|
-
export { default as minimist } from '../compiled/minimist';
|
|
19
|
-
export { nanoid } from '../compiled/nanoid';
|
|
20
|
-
export { default as ora } from '../compiled/ora';
|
|
17
|
+
export { default as lodash } from '../compiled/lodash/index.js';
|
|
18
|
+
export { default as minimist } from '../compiled/minimist/index.js';
|
|
19
|
+
export { nanoid } from '../compiled/nanoid/index.js';
|
|
20
|
+
export { default as ora } from '../compiled/ora/index.js';
|
|
21
21
|
export { default as pkgUp } from '../compiled/pkg-up/index.js';
|
|
22
|
-
export { default as semver } from '../compiled/semver';
|
|
23
|
-
export { default as signale } from '../compiled/signale';
|
|
24
|
-
export { default as slash } from '../compiled/slash';
|
|
25
|
-
export { default as stripAnsi } from '../compiled/strip-ansi';
|
|
22
|
+
export { default as semver } from '../compiled/semver/index.js';
|
|
23
|
+
export { default as signale } from '../compiled/signale/index.js';
|
|
24
|
+
export { default as slash } from '../compiled/slash/index.js';
|
|
25
|
+
export { default as stripAnsi } from '../compiled/strip-ansi/index.js';
|
|
26
26
|
export { default as upath } from '../compiled/upath';
|
|
27
|
-
export { default as urlJoin } from '../compiled/url-join';
|
|
28
|
-
import _signale from '../compiled/signale';
|
|
27
|
+
export { default as urlJoin } from '../compiled/url-join/index.js';
|
|
28
|
+
import _signale from '../compiled/signale/index.js';
|
|
29
29
|
export declare const Signale: _signale.SignaleConstructor;
|
|
30
30
|
export type { FSWatcher, WatchOptions } from '../compiled/chokidar';
|
|
31
|
-
export type { ExecaError } from '../compiled/execa';
|
|
32
|
-
export type { IOptions as GlobOptions } from '../compiled/glob';
|
|
33
|
-
export type { GlobbyOptions } from '../compiled/globby';
|
|
34
|
-
export type { SignaleOptions } from '../compiled/signale';
|
|
35
|
-
export declare const mime: typeof import('../compiled/mime-types');
|
|
31
|
+
export type { ExecaError } from '../compiled/execa/index.js';
|
|
32
|
+
export type { IOptions as GlobOptions } from '../compiled/glob/index.js';
|
|
33
|
+
export type { GlobbyOptions } from '../compiled/globby/index.js';
|
|
34
|
+
export type { SignaleOptions } from '../compiled/signale/index.js';
|
|
35
|
+
export declare const mime: typeof import('../compiled/mime-types/index.js');
|
|
36
36
|
export declare const chokidar: typeof import('../compiled/chokidar');
|
|
37
|
-
export declare const inquirer: typeof import('../compiled/inquirer');
|
|
37
|
+
export declare const inquirer: typeof import('../compiled/inquirer/index.js');
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './cli';
|
|
2
|
-
export * from './compiled';
|
|
3
|
-
export * from './import';
|
|
1
|
+
export * from './cli/index.js';
|
|
2
|
+
export * from './compiled.js';
|
|
3
|
+
export * from './import.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BackendFederationContractValidationResult, DeliveryUnitRecord, UltramodernBuildArtifact } from './types';
|
|
1
|
+
import type { BackendFederationContractValidationResult, DeliveryUnitRecord, UltramodernBuildArtifact } from './types.js';
|
|
2
2
|
export declare const createUltramodernBuildArtifact: (record: DeliveryUnitRecord) => UltramodernBuildArtifact;
|
|
3
3
|
export declare const validateUltramodernBuildArtifact: (value: unknown, path?: string) => BackendFederationContractValidationResult;
|
|
4
4
|
export declare const isUltramodernBuildArtifact: (value: unknown) => value is UltramodernBuildArtifact;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DeliveryUnitIdentityField } from './constants';
|
|
2
|
-
import type { BackendFederationContractValidationError, BackendFederationContractValidationResult, DeliveryUnitContractBlock, DeliveryUnitIdentity, DeliveryUnitRecord, ValidateDeliveryUnitIdentityOptions } from './types';
|
|
1
|
+
import type { DeliveryUnitIdentityField } from './constants.js';
|
|
2
|
+
import type { BackendFederationContractValidationError, BackendFederationContractValidationResult, DeliveryUnitContractBlock, DeliveryUnitIdentity, DeliveryUnitRecord, ValidateDeliveryUnitIdentityOptions } from './types.js';
|
|
3
3
|
export declare const deliveryUnitIdentityFieldValue: (value: unknown, field: DeliveryUnitIdentityField, options?: Pick<ValidateDeliveryUnitIdentityOptions, 'allowBuildAlias'>) => string | undefined;
|
|
4
4
|
export declare const validateDeliveryUnitIdentity: (value: unknown, options?: ValidateDeliveryUnitIdentityOptions) => BackendFederationContractValidationResult;
|
|
5
5
|
export declare const validateDeliveryUnitContractBlock: (value: unknown, options?: ValidateDeliveryUnitIdentityOptions) => BackendFederationContractValidationResult;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { createUltramodernBuildArtifact, isUltramodernBuildArtifact, stampUltramodernBuildArtifactIdentity, stampUltramodernBuildArtifactSourceRevision, validateUltramodernBuildArtifact, } from './build-artifact';
|
|
2
|
-
export type { DeliveryUnitIdentityField } from './constants';
|
|
3
|
-
export { BACKEND_FEDERATION_CONTRACT_VERSION, BACKEND_FEDERATION_EFFECT_EXPOSE, BACKEND_FEDERATION_MANIFEST_FILE, BACKEND_FEDERATION_NODE_ADAPTER_VERSION, BACKEND_FEDERATION_REMOTE_ENTRY_FILE, DELIVERY_UNIT_DEPLOY_PROFILE, DELIVERY_UNIT_IDENTITY_FIELDS, DELIVERY_UNIT_KIND, DELIVERY_UNIT_SCHEMA_VERSION, ULTRAMODERN_BUILD_ARTIFACT_FILE, ULTRAMODERN_BUILD_ARTIFACT_PATH, ULTRAMODERN_BUILD_MODULE_FILE, ULTRAMODERN_BUILD_MODULE_PATH, } from './constants';
|
|
4
|
-
export { deliveryUnitContractBlock, deliveryUnitIdentityFieldValue, toDeliveryUnitIdentity, validateDeliveryUnitContractBlock, validateDeliveryUnitIdentity, validateDeliveryUnitRecord, } from './delivery-unit';
|
|
5
|
-
export { backendFederationExposeNames, backendFederationMetadata, backendFederationVersionBoundary, toBackendFederationExposeNames, validateBackendFederationManifest, validateBackendFederationMetadata, } from './metadata';
|
|
6
|
-
export type { BackendFederationContractValidationError, BackendFederationContractValidationResult, DeliveryUnitContractBlock, DeliveryUnitIdentity, DeliveryUnitRecord, UltramodernBuildArtifact, UltramodernBuildDeliveryUnit, UltramodernBuildSurface, ValidateBackendFederationManifestOptions, ValidateBackendFederationMetadataOptions, ValidateDeliveryUnitIdentityOptions, } from './types';
|
|
7
|
-
export { formatBackendFederationValidationErrors, nonEmptyString, } from './validation-core';
|
|
1
|
+
export { createUltramodernBuildArtifact, isUltramodernBuildArtifact, stampUltramodernBuildArtifactIdentity, stampUltramodernBuildArtifactSourceRevision, validateUltramodernBuildArtifact, } from './build-artifact.js';
|
|
2
|
+
export type { DeliveryUnitIdentityField } from './constants.js';
|
|
3
|
+
export { BACKEND_FEDERATION_CONTRACT_VERSION, BACKEND_FEDERATION_EFFECT_EXPOSE, BACKEND_FEDERATION_MANIFEST_FILE, BACKEND_FEDERATION_NODE_ADAPTER_VERSION, BACKEND_FEDERATION_REMOTE_ENTRY_FILE, DELIVERY_UNIT_DEPLOY_PROFILE, DELIVERY_UNIT_IDENTITY_FIELDS, DELIVERY_UNIT_KIND, DELIVERY_UNIT_SCHEMA_VERSION, ULTRAMODERN_BUILD_ARTIFACT_FILE, ULTRAMODERN_BUILD_ARTIFACT_PATH, ULTRAMODERN_BUILD_MODULE_FILE, ULTRAMODERN_BUILD_MODULE_PATH, } from './constants.js';
|
|
4
|
+
export { deliveryUnitContractBlock, deliveryUnitIdentityFieldValue, toDeliveryUnitIdentity, validateDeliveryUnitContractBlock, validateDeliveryUnitIdentity, validateDeliveryUnitRecord, } from './delivery-unit.js';
|
|
5
|
+
export { backendFederationExposeNames, backendFederationMetadata, backendFederationVersionBoundary, toBackendFederationExposeNames, validateBackendFederationManifest, validateBackendFederationMetadata, } from './metadata.js';
|
|
6
|
+
export type { BackendFederationContractValidationError, BackendFederationContractValidationResult, DeliveryUnitContractBlock, DeliveryUnitIdentity, DeliveryUnitRecord, UltramodernBuildArtifact, UltramodernBuildDeliveryUnit, UltramodernBuildSurface, ValidateBackendFederationManifestOptions, ValidateBackendFederationMetadataOptions, ValidateDeliveryUnitIdentityOptions, } from './types.js';
|
|
7
|
+
export { formatBackendFederationValidationErrors, nonEmptyString, } from './validation-core.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BackendFederationContractValidationResult, ValidateBackendFederationManifestOptions, ValidateBackendFederationMetadataOptions } from './types';
|
|
1
|
+
import type { BackendFederationContractValidationResult, ValidateBackendFederationManifestOptions, ValidateBackendFederationMetadataOptions } from './types.js';
|
|
2
2
|
export declare const toBackendFederationExposeNames: (value: unknown) => string[];
|
|
3
3
|
export declare const backendFederationExposeNames: (value: unknown) => string[];
|
|
4
4
|
export declare const backendFederationMetadata: (value: unknown) => Record<string, unknown> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DELIVERY_UNIT_DEPLOY_PROFILE, DELIVERY_UNIT_KIND, DELIVERY_UNIT_SCHEMA_VERSION } from './constants';
|
|
1
|
+
import type { DELIVERY_UNIT_DEPLOY_PROFILE, DELIVERY_UNIT_KIND, DELIVERY_UNIT_SCHEMA_VERSION } from './constants.js';
|
|
2
2
|
export type DeliveryUnitIdentity = {
|
|
3
3
|
unitId: string;
|
|
4
4
|
buildMarker: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BackendFederationContractValidationError, BackendFederationContractValidationResult } from './types';
|
|
1
|
+
import type { BackendFederationContractValidationError, BackendFederationContractValidationResult } from './types.js';
|
|
2
2
|
export declare const isRecord: (value: unknown) => value is Record<string, unknown>;
|
|
3
3
|
export declare const nonEmptyString: (value: unknown) => string | undefined;
|
|
4
4
|
export declare const validationResult: (errors: BackendFederationContractValidationError[]) => BackendFederationContractValidationResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './backend-federation-contract';
|
|
2
|
-
export { cutNameByHyphen } from './path';
|
|
3
|
-
export * from './surface-resolution';
|
|
4
|
-
export * from './wait';
|
|
1
|
+
export * from './backend-federation-contract/index.js';
|
|
2
|
+
export { cutNameByHyphen } from './path.js';
|
|
3
|
+
export * from './surface-resolution/index.js';
|
|
4
|
+
export * from './wait.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EnvironmentId, ResolvedSurfaceKind, SurfaceResolutionProvider } from './types';
|
|
1
|
+
import type { EnvironmentId, ResolvedSurfaceKind, SurfaceResolutionProvider } from './types.js';
|
|
2
2
|
export type EnvRecord = Record<string, string | undefined>;
|
|
3
3
|
/** Which platforms a surface publishes, plus their static (non-env) inputs. */
|
|
4
4
|
export type EnvStaticSurfacePlatforms = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createEnvStaticSurfaceResolutionProvider, DEFAULT_LOCAL_ENVIRONMENTS, ENV_STATIC_PROVIDER_NAME, type EnvRecord, type EnvStaticIdentityVerification, type EnvStaticMajorConfig, type EnvStaticProviderOptions, type EnvStaticSurfaceConfig, type EnvStaticSurfacePlatforms, type EnvStaticUnitConfig, } from './env-static-provider';
|
|
2
|
-
export { formatSurfaceRef, type ParsedSurfaceRef, parseSurfaceRef, type SurfaceRefParseError, type SurfaceRefParseResult, validateSurfaceRef, } from './surface-ref';
|
|
3
|
-
export type { CompatibilityStatus, CompatibilityVerdict, DiscoveryError, DiscoveryErrorCode, DiscoveryResult, EnvironmentId, ResolvedDeliveryUnit, ResolvedSurface, ResolvedSurfaceKind, ResolvedSurfaceLocation, ResolvedSurfaceLocationPlatform, SurfaceResolutionProvider, } from './types';
|
|
4
|
-
export { createDiscoveryError, type ExpectedDeliveryUnitIdentity, matchDeliveryUnitIdentity, type ResolvedDeliveryUnitIssue, type ResolvedDeliveryUnitValidationResult, selectResolvedSurface, validateResolvedDeliveryUnit, } from './validation';
|
|
1
|
+
export { createEnvStaticSurfaceResolutionProvider, DEFAULT_LOCAL_ENVIRONMENTS, ENV_STATIC_PROVIDER_NAME, type EnvRecord, type EnvStaticIdentityVerification, type EnvStaticMajorConfig, type EnvStaticProviderOptions, type EnvStaticSurfaceConfig, type EnvStaticSurfacePlatforms, type EnvStaticUnitConfig, } from './env-static-provider.js';
|
|
2
|
+
export { formatSurfaceRef, type ParsedSurfaceRef, parseSurfaceRef, type SurfaceRefParseError, type SurfaceRefParseResult, validateSurfaceRef, } from './surface-ref.js';
|
|
3
|
+
export type { CompatibilityStatus, CompatibilityVerdict, DiscoveryError, DiscoveryErrorCode, DiscoveryResult, EnvironmentId, ResolvedDeliveryUnit, ResolvedSurface, ResolvedSurfaceKind, ResolvedSurfaceLocation, ResolvedSurfaceLocationPlatform, SurfaceResolutionProvider, } from './types.js';
|
|
4
|
+
export { createDiscoveryError, type ExpectedDeliveryUnitIdentity, matchDeliveryUnitIdentity, type ResolvedDeliveryUnitIssue, type ResolvedDeliveryUnitValidationResult, selectResolvedSurface, validateResolvedDeliveryUnit, } from './validation.js';
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* carries no marker of its own, so mixing locations from two build markers is
|
|
13
13
|
* structurally unrepresentable.
|
|
14
14
|
*/
|
|
15
|
-
import type { DeliveryUnitIdentity } from '../backend-federation-contract/types';
|
|
16
|
-
import type { ParsedSurfaceRef } from './surface-ref';
|
|
15
|
+
import type { DeliveryUnitIdentity } from '../backend-federation-contract/types.js';
|
|
16
|
+
import type { ParsedSurfaceRef } from './surface-ref.js';
|
|
17
17
|
export type ResolvedSurfaceLocationPlatform = 'browser-mf-manifest' | 'node-mf-manifest' | 'http-api' | 'cloudflare-service-binding';
|
|
18
18
|
/**
|
|
19
19
|
* One platform address for a surface, discriminated on `platform` so each
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* (MV-G25c). Runtime checks for records that crossed a serialization boundary;
|
|
4
4
|
* within TypeScript the atomicity invariant is already structural.
|
|
5
5
|
*/
|
|
6
|
-
import { type ParsedSurfaceRef } from './surface-ref';
|
|
7
|
-
import type { DiscoveryError, DiscoveryErrorCode, ResolvedDeliveryUnit, ResolvedSurface } from './types';
|
|
6
|
+
import { type ParsedSurfaceRef } from './surface-ref.js';
|
|
7
|
+
import type { DiscoveryError, DiscoveryErrorCode, ResolvedDeliveryUnit, ResolvedSurface } from './types.js';
|
|
8
8
|
export type ResolvedDeliveryUnitIssue = {
|
|
9
9
|
path: string;
|
|
10
10
|
message: string;
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.
|
|
20
|
+
"version": "3.9.0-ultramodern.1",
|
|
21
21
|
"types": "./dist/types/index.d.ts",
|
|
22
22
|
"main": "./dist/cjs/index.js",
|
|
23
23
|
"module": "./dist/esm/index.mjs",
|
|
@@ -187,8 +187,8 @@
|
|
|
187
187
|
"rslog": "^2.1.3"
|
|
188
188
|
},
|
|
189
189
|
"devDependencies": {
|
|
190
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.
|
|
191
|
-
"@rslib/core": "0.
|
|
190
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.0-ultramodern.1",
|
|
191
|
+
"@rslib/core": "1.0.0",
|
|
192
192
|
"@scripts/rstest-config": "2.66.0",
|
|
193
193
|
"@types/node": "^26.2.0",
|
|
194
194
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
package/rslib.config.mts
CHANGED
|
@@ -104,7 +104,7 @@ for (const item of dependencies) {
|
|
|
104
104
|
|
|
105
105
|
// externalize pre-bundled dependencies
|
|
106
106
|
const createExternals =
|
|
107
|
-
(type
|
|
107
|
+
(type?: string, noESM = false): Rspack.ExternalItem =>
|
|
108
108
|
({ request }, callback) => {
|
|
109
109
|
const entries = Object.entries(externalsMap);
|
|
110
110
|
if (request) {
|
|
@@ -116,20 +116,21 @@ const createExternals =
|
|
|
116
116
|
}
|
|
117
117
|
if (regex.test(request)) {
|
|
118
118
|
const index = esm && !noESM ? 'index.mjs' : 'index.js';
|
|
119
|
-
|
|
119
|
+
const external = `${request}/${index}`;
|
|
120
|
+
return callback(undefined, type ? `${type} ${external}` : external);
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
callback();
|
|
124
125
|
};
|
|
125
126
|
|
|
126
|
-
const lib: RslibConfig['lib'] = rslibConfig.lib
|
|
127
|
+
const lib: RslibConfig['lib'] = rslibConfig.lib?.map(config => {
|
|
127
128
|
if (config.format === 'esm') {
|
|
128
129
|
return {
|
|
129
130
|
...config,
|
|
130
131
|
output: {
|
|
131
132
|
...config.output,
|
|
132
|
-
externals: [createExternals(
|
|
133
|
+
externals: [createExternals()],
|
|
133
134
|
},
|
|
134
135
|
};
|
|
135
136
|
}
|
|
File without changes
|