@ms-cloudpack/common-types 0.34.6 → 0.35.0

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.
@@ -1,7 +1,6 @@
1
1
  import type { ServerConfig } from './ServerConfig.js';
2
2
  import type { Features } from './allFeatures.js';
3
3
  import type { PackageSettings } from './PackageSettings.js';
4
- import type { RemoteCacheConfig } from './RemoteCacheConfig.js';
5
4
  import type { ShorthandRoute } from './Route.js';
6
5
  import type { TelemetryConfig } from './TelemetryConfig.js';
7
6
  import type { DefineFlags } from '@ms-cloudpack/common-types-browser';
@@ -63,11 +62,6 @@ export interface AppConfig {
63
62
  * @default "patches/*.patch"
64
63
  */
65
64
  patchFilesGlobPattern?: string;
66
- /**
67
- * Azure Blob Storage configuration for remote cache - uploading and downloading packages
68
- * via `cloudpack sync`. If this is not provided, the remote cache will not be used.
69
- */
70
- remoteCache?: RemoteCacheConfig;
71
65
  /**
72
66
  * Defines what routes to support from the app server, and which scripts will be loaded
73
67
  * for each.
@@ -1 +1 @@
1
- {"version":3,"file":"AppConfig.d.ts","sourceRoot":"","sources":["../src/AppConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;;;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;OAIG;IACH,KAAK,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACzD"}
@@ -1 +1 @@
1
- {"version":3,"file":"AppConfig.js","sourceRoot":"","sources":["../src/AppConfig.ts"],"names":[],"mappings":"","sourcesContent":["import type { ServerConfig } from './ServerConfig.js';\nimport type { Features } from './allFeatures.js';\nimport type { PackageSettings } from './PackageSettings.js';\nimport type { RemoteCacheConfig } from './RemoteCacheConfig.js';\nimport type { ShorthandRoute } from './Route.js';\nimport type { TelemetryConfig } from './TelemetryConfig.js';\nimport type { DefineFlags } from '@ms-cloudpack/common-types-browser';\nimport type { ModuleResolutionConfig } from './ModuleResolutionConfig.js';\n\n/**\n * Per-application user-provided configuration for Cloudpack.\n */\nexport interface AppConfig {\n /**\n * Extend the configuration from another file: either an import path or a relative path\n * (resolved from the config file's location). Relative paths or deep imports into another\n * package (without an exports map) must include the file extension.\n *\n * If an array, later files will take precedence when merging.\n * (The current file's config always takes precedence over any extended config.)\n *\n * Config merging approach:\n * - Objects will be deeply merged.\n * - Primitive values will be overwritten.\n * - Arrays will be overwritten, EXCEPT for `packageSettings`, which will be concatenated.\n */\n extends?: string | string[];\n\n /**\n * @deprecated - use \"server\" instead.\n */\n devServer?: ServerConfig;\n\n /**\n * Configuration for the dev server.\n */\n server?: ServerConfig;\n\n /**\n * Configuration for telemetry.\n */\n telemetry?: TelemetryConfig;\n\n /**\n * Enable additional Cloudpack features.\n */\n features?: Features;\n\n /**\n * Help message to display when Cloudpack starts up.\n */\n helpMessage?: string;\n\n /**\n * Settings to customize how packages are bundled.\n * Later settings in the array take precedence over earlier ones.\n */\n packageSettings?: PackageSettings[];\n\n /**\n * Commands to execute prior to Cloudpack bundling.\n * Each entry has a command and an array of arguments: `['command', ['arg1', 'arg2']]`.\n */\n dependsOn?: [string, string[]][];\n\n /**\n * Glob pattern to match `patch-package` patch files, relative to the project root\n * (usually the same as the repository root).\n *\n * Note that if you're using `yarn patch` (v2+), those patches will be handled automatically\n * (not by this glob pattern).\n * @default \"patches/*.patch\"\n */\n patchFilesGlobPattern?: string;\n\n /**\n * Azure Blob Storage configuration for remote cache - uploading and downloading packages\n * via `cloudpack sync`. If this is not provided, the remote cache will not be used.\n */\n remoteCache?: RemoteCacheConfig;\n\n /**\n * Defines what routes to support from the app server, and which scripts will be loaded\n * for each.\n */\n routes?: ShorthandRoute[];\n\n /**\n * Ignore these package names when calculating included and excluded dependencies.\n * This is mainly intended for helper packages such as `tslib`.\n *\n * Include `...` to merge with the default list (`tslib` and `@babel/runtime` as of writing).\n */\n neverExcludeDependencies?: string[];\n\n /**\n * Key value pairs of external bundler capabilities that can be enabled in the package settings.\n * - Key is the name of the capability, which will be used in `PackageSettings.bundlerCapabilities`.\n * - Value is the import specifier (local path or package name) for the capability module.\n */\n bundlerCapabilitiesRegistry?: Record<string, string>;\n\n /**\n * Key value pairs that will be used to define global variables in the runtime.\n */\n define?: DefineFlags;\n\n /**\n * Advanced use only: Override the bundler that's used by default (if a package's source type\n * doesn't indicate that a specific bundler should be used, and there are no applicable package\n * settings). This will **significantly** decrease performance and should only be modified if\n * `ori` is incompatible with your repo/build for some reason.\n *\n * In most cases, you should use `packageSettings` to change the bundler instead: for example,\n * if your repo's packages must be built with rspack/webpack to support some custom config,\n * use `packageSettings: [{ match: [\"@yourscope/*\", \"your-unscoped-package\"], bundler: \"rspack\" }]`.\n * @default 'ori'\n */\n defaultBundler?: string;\n\n /**\n * Configuration for module resolution, specifying where to look for modules.\n */\n resolve?: ModuleResolutionConfig;\n\n /**\n * Enables Relay support for generated artifacts.\n *\n * Note: Root directory will be resolved relative to the config directory.\n */\n relay?: { rootDir: string; artifactDirectory?: string };\n}\n"]}
1
+ {"version":3,"file":"AppConfig.js","sourceRoot":"","sources":["../src/AppConfig.ts"],"names":[],"mappings":"","sourcesContent":["import type { ServerConfig } from './ServerConfig.js';\nimport type { Features } from './allFeatures.js';\nimport type { PackageSettings } from './PackageSettings.js';\nimport type { ShorthandRoute } from './Route.js';\nimport type { TelemetryConfig } from './TelemetryConfig.js';\nimport type { DefineFlags } from '@ms-cloudpack/common-types-browser';\nimport type { ModuleResolutionConfig } from './ModuleResolutionConfig.js';\n\n/**\n * Per-application user-provided configuration for Cloudpack.\n */\nexport interface AppConfig {\n /**\n * Extend the configuration from another file: either an import path or a relative path\n * (resolved from the config file's location). Relative paths or deep imports into another\n * package (without an exports map) must include the file extension.\n *\n * If an array, later files will take precedence when merging.\n * (The current file's config always takes precedence over any extended config.)\n *\n * Config merging approach:\n * - Objects will be deeply merged.\n * - Primitive values will be overwritten.\n * - Arrays will be overwritten, EXCEPT for `packageSettings`, which will be concatenated.\n */\n extends?: string | string[];\n\n /**\n * @deprecated - use \"server\" instead.\n */\n devServer?: ServerConfig;\n\n /**\n * Configuration for the dev server.\n */\n server?: ServerConfig;\n\n /**\n * Configuration for telemetry.\n */\n telemetry?: TelemetryConfig;\n\n /**\n * Enable additional Cloudpack features.\n */\n features?: Features;\n\n /**\n * Help message to display when Cloudpack starts up.\n */\n helpMessage?: string;\n\n /**\n * Settings to customize how packages are bundled.\n * Later settings in the array take precedence over earlier ones.\n */\n packageSettings?: PackageSettings[];\n\n /**\n * Commands to execute prior to Cloudpack bundling.\n * Each entry has a command and an array of arguments: `['command', ['arg1', 'arg2']]`.\n */\n dependsOn?: [string, string[]][];\n\n /**\n * Glob pattern to match `patch-package` patch files, relative to the project root\n * (usually the same as the repository root).\n *\n * Note that if you're using `yarn patch` (v2+), those patches will be handled automatically\n * (not by this glob pattern).\n * @default \"patches/*.patch\"\n */\n patchFilesGlobPattern?: string;\n\n /**\n * Defines what routes to support from the app server, and which scripts will be loaded\n * for each.\n */\n routes?: ShorthandRoute[];\n\n /**\n * Ignore these package names when calculating included and excluded dependencies.\n * This is mainly intended for helper packages such as `tslib`.\n *\n * Include `...` to merge with the default list (`tslib` and `@babel/runtime` as of writing).\n */\n neverExcludeDependencies?: string[];\n\n /**\n * Key value pairs of external bundler capabilities that can be enabled in the package settings.\n * - Key is the name of the capability, which will be used in `PackageSettings.bundlerCapabilities`.\n * - Value is the import specifier (local path or package name) for the capability module.\n */\n bundlerCapabilitiesRegistry?: Record<string, string>;\n\n /**\n * Key value pairs that will be used to define global variables in the runtime.\n */\n define?: DefineFlags;\n\n /**\n * Advanced use only: Override the bundler that's used by default (if a package's source type\n * doesn't indicate that a specific bundler should be used, and there are no applicable package\n * settings). This will **significantly** decrease performance and should only be modified if\n * `ori` is incompatible with your repo/build for some reason.\n *\n * In most cases, you should use `packageSettings` to change the bundler instead: for example,\n * if your repo's packages must be built with rspack/webpack to support some custom config,\n * use `packageSettings: [{ match: [\"@yourscope/*\", \"your-unscoped-package\"], bundler: \"rspack\" }]`.\n * @default 'ori'\n */\n defaultBundler?: string;\n\n /**\n * Configuration for module resolution, specifying where to look for modules.\n */\n resolve?: ModuleResolutionConfig;\n\n /**\n * Enables Relay support for generated artifacts.\n *\n * Note: Root directory will be resolved relative to the config directory.\n */\n relay?: { rootDir: string; artifactDirectory?: string };\n}\n"]}
@@ -55,6 +55,4 @@ export type CloudpackConfig = Omit<AppConfig, 'routes' | 'server' | 'bundlerCapa
55
55
  generatedConfigPath?: string;
56
56
  };
57
57
  };
58
- /** Only include the properties that are needed for the link config to allow for a smaller zod output schema. */
59
- export type CloudpackLinkConfig = Pick<CloudpackConfig, 'generated' | 'packageSettings'>;
60
58
  //# sourceMappingURL=CloudpackConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CloudpackConfig.d.ts","sourceRoot":"","sources":["../src/CloudpackConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YA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,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;GAEG;AAEH,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,GAAG,QAAQ,GAAG,6BAA6B,CAAC,GAAG;IACnG;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,GAAG;QAAE,WAAW,CAAC,EAAE,WAAW,CAAA;KAAE,CAAC;IAEtE;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,SAAS,EAAE,eAAe,CAAC;IAE3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAE9C;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IAEjB;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAErD;;OAEG;IACH,WAAW,CAAC,EAAE;QACZ,sEAAsE;QACtE,cAAc,EAAE,MAAM,EAAE,CAAC;QACzB,oEAAoE;QACpE,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B,CAAC;CACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CloudpackConfig.js","sourceRoot":"","sources":["../src/CloudpackConfig.ts"],"names":[],"mappings":"","sourcesContent":["import type { GeneratedConfig } from './GeneratedConfig.js';\nimport type { AppConfig } from './AppConfig.js';\nimport type { BundleMode } from './BundleMode.js';\nimport type { Route } from './Route.js';\nimport type { ServerConfig } from './ServerConfig.js';\nimport type { HttpsConfig } from './HttpsConfig.js';\n\n/**\n * The merged result of user-provided and generated configuration for Cloudpack.\n */\n\nexport type CloudpackConfig = Omit<AppConfig, 'routes' | 'server' | 'bundlerCapabilitiesRegistry'> & {\n /**\n * The path to the app's package.\n */\n appPath: string;\n\n /**\n * Dev server settings.\n */\n server?: Omit<ServerConfig, 'routes'> & { parsedHttps?: HttpsConfig };\n\n /**\n * Mode to run the app in. This is set via the CLI and defaults to `'library'`.\n */\n mode: BundleMode;\n\n /**\n * If true, write `bundle-info.json`, `[bundler]-input.json`, and `[bundler]-output.json`\n * files to the output folder.\n */\n logBundleInfo?: boolean;\n\n /**\n * Generated config settings.\n */\n generated: GeneratedConfig;\n\n /**\n * An immutable snapshot of the generated config as it is when start or init commands first begin\n */\n generatedSnapshot?: Readonly<GeneratedConfig>;\n\n /**\n * Routes which have been expanded from shorthand entries.\n */\n routes?: Route[];\n\n /**\n * Key value pairs of external bundler capabilities that can be enabled in the package settings.\n * - Key is the name of the capability, which will be used in `PackageSettings.bundlerCapabilities`.\n * - Value is the absolute file URL of the capability implementation (resolved by `readAppConfig`).\n */\n bundlerCapabilitiesRegistry?: Record<string, string>;\n\n /**\n * Configuration file paths used during config resolution.\n */\n configPaths?: {\n /** Array of application configuration file paths that were loaded. */\n appConfigPaths: string[];\n /** Path to the generated configuration file, if one was created. */\n generatedConfigPath?: string;\n };\n};\n\n/** Only include the properties that are needed for the link config to allow for a smaller zod output schema. */\nexport type CloudpackLinkConfig = Pick<CloudpackConfig, 'generated' | 'packageSettings'>;\n"]}
1
+ {"version":3,"file":"CloudpackConfig.js","sourceRoot":"","sources":["../src/CloudpackConfig.ts"],"names":[],"mappings":"","sourcesContent":["import type { GeneratedConfig } from './GeneratedConfig.js';\nimport type { AppConfig } from './AppConfig.js';\nimport type { BundleMode } from './BundleMode.js';\nimport type { Route } from './Route.js';\nimport type { ServerConfig } from './ServerConfig.js';\nimport type { HttpsConfig } from './HttpsConfig.js';\n\n/**\n * The merged result of user-provided and generated configuration for Cloudpack.\n */\n\nexport type CloudpackConfig = Omit<AppConfig, 'routes' | 'server' | 'bundlerCapabilitiesRegistry'> & {\n /**\n * The path to the app's package.\n */\n appPath: string;\n\n /**\n * Dev server settings.\n */\n server?: Omit<ServerConfig, 'routes'> & { parsedHttps?: HttpsConfig };\n\n /**\n * Mode to run the app in. This is set via the CLI and defaults to `'library'`.\n */\n mode: BundleMode;\n\n /**\n * If true, write `bundle-info.json`, `[bundler]-input.json`, and `[bundler]-output.json`\n * files to the output folder.\n */\n logBundleInfo?: boolean;\n\n /**\n * Generated config settings.\n */\n generated: GeneratedConfig;\n\n /**\n * An immutable snapshot of the generated config as it is when start or init commands first begin\n */\n generatedSnapshot?: Readonly<GeneratedConfig>;\n\n /**\n * Routes which have been expanded from shorthand entries.\n */\n routes?: Route[];\n\n /**\n * Key value pairs of external bundler capabilities that can be enabled in the package settings.\n * - Key is the name of the capability, which will be used in `PackageSettings.bundlerCapabilities`.\n * - Value is the absolute file URL of the capability implementation (resolved by `readAppConfig`).\n */\n bundlerCapabilitiesRegistry?: Record<string, string>;\n\n /**\n * Configuration file paths used during config resolution.\n */\n configPaths?: {\n /** Array of application configuration file paths that were loaded. */\n appConfigPaths: string[];\n /** Path to the generated configuration file, if one was created. */\n generatedConfigPath?: string;\n };\n};\n"]}
@@ -7,9 +7,9 @@ export type LinkOptions = {
7
7
  *
8
8
  * - `allow-duplication` (default): allow multiple versions of the same package to exist in the
9
9
  * resolve map to satisfy semver.
10
- * - `force-host-version`: the package will be deduplicated to the version of the host package,
11
- * ignoring semver requirements.
12
- * - `force-remote-version`: the package will be deduplicated to the version of the remote package,
10
+ * - `force-host-version`: the package will be deduplicated host repo's version, ignoring
11
+ * semver requirements.
12
+ * - `force-remote-version`: the package will be deduplicated to the other repo's version,
13
13
  * ignoring semver requirements.
14
14
  *
15
15
  * Note: These settings only apply when the resolve strategy is set to the default `dedupe`.
@@ -1 +1 @@
1
- {"version":3,"file":"LinkOptions.js","sourceRoot":"","sources":["../src/LinkOptions.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Options for when a package is linked in the resolve map.\n */\nexport type LinkOptions = {\n /**\n * Controls the behavior of duplicated dependencies in the resolve map when running `cloudpack link`.\n *\n * - `allow-duplication` (default): allow multiple versions of the same package to exist in the\n * resolve map to satisfy semver.\n * - `force-host-version`: the package will be deduplicated to the version of the host package,\n * ignoring semver requirements.\n * - `force-remote-version`: the package will be deduplicated to the version of the remote package,\n * ignoring semver requirements.\n *\n * Note: These settings only apply when the resolve strategy is set to the default `dedupe`.\n */\n duplicatedDependencyBehavior?: 'force-host-version' | 'allow-duplication' | 'force-remote-version';\n};\n"]}
1
+ {"version":3,"file":"LinkOptions.js","sourceRoot":"","sources":["../src/LinkOptions.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Options for when a package is linked in the resolve map.\n */\nexport type LinkOptions = {\n /**\n * Controls the behavior of duplicated dependencies in the resolve map when running `cloudpack link`.\n *\n * - `allow-duplication` (default): allow multiple versions of the same package to exist in the\n * resolve map to satisfy semver.\n * - `force-host-version`: the package will be deduplicated host repo's version, ignoring\n * semver requirements.\n * - `force-remote-version`: the package will be deduplicated to the other repo's version,\n * ignoring semver requirements.\n *\n * Note: These settings only apply when the resolve strategy is set to the default `dedupe`.\n */\n duplicatedDependencyBehavior?: 'force-host-version' | 'allow-duplication' | 'force-remote-version';\n};\n"]}
@@ -1,6 +1,3 @@
1
- import type { SerializablePackageDefinitionsCache } from './PackageDefinitionsCache.js';
2
- import type { SerializablePackageHashesCache } from './PackageHashesCache.js';
3
- import type { ResolveMap } from './ResolveMap.js';
4
1
  /**
5
2
  * Represents a path linked to the resolve map.
6
3
  */
@@ -28,12 +25,5 @@ export interface LinkedPath {
28
25
  ignoreResolutions?: boolean | string[];
29
26
  /** The strategy to use when resolving linked packages. Defaults to "dedupe". */
30
27
  resolveStrategy?: 'dedupe' | 'duplicate';
31
- /** Data to send over when linking across different machines. */
32
- remote?: {
33
- resolveMap: ResolveMap;
34
- hostUrl: string;
35
- packages: SerializablePackageDefinitionsCache;
36
- packageHashes: SerializablePackageHashesCache;
37
- };
38
28
  }
39
29
  //# sourceMappingURL=LinkedPath.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkedPath.d.ts","sourceRoot":"","sources":["../src/LinkedPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,8BAA8B,CAAC;AACxF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;IAEvC,gFAAgF;IAChF,eAAe,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IAEzC,gEAAgE;IAChE,MAAM,CAAC,EAAE;QACP,UAAU,EAAE,UAAU,CAAC;QACvB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,mCAAmC,CAAC;QAC9C,aAAa,EAAE,8BAA8B,CAAC;KAC/C,CAAC;CACH"}
1
+ {"version":3,"file":"LinkedPath.d.ts","sourceRoot":"","sources":["../src/LinkedPath.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;IAEvC,gFAAgF;IAChF,eAAe,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;CAC1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"LinkedPath.js","sourceRoot":"","sources":["../src/LinkedPath.ts"],"names":[],"mappings":"","sourcesContent":["import type { SerializablePackageDefinitionsCache } from './PackageDefinitionsCache.js';\nimport type { SerializablePackageHashesCache } from './PackageHashesCache.js';\nimport type { ResolveMap } from './ResolveMap.js';\n\n/**\n * Represents a path linked to the resolve map.\n */\nexport interface LinkedPath {\n /**\n * Path to where the link originates.\n */\n path: string;\n\n /**\n * Optional git root to limit package resolution discovery.\n * Used for testing only.\n */\n rootPath?: string;\n\n /**\n * If true, transitive internal packages will be linked rather than only the matched packages.\n */\n includeAll?: boolean;\n\n /**\n * Package matches to ignore when linking.\n */\n ignoredPackages?: string[];\n\n /**\n * If true, ignores resolutions from the host repo definition to the linked packages.\n */\n ignoreResolutions?: boolean | string[];\n\n /** The strategy to use when resolving linked packages. Defaults to \"dedupe\". */\n resolveStrategy?: 'dedupe' | 'duplicate';\n\n /** Data to send over when linking across different machines. */\n remote?: {\n resolveMap: ResolveMap;\n hostUrl: string;\n packages: SerializablePackageDefinitionsCache;\n packageHashes: SerializablePackageHashesCache;\n };\n}\n"]}
1
+ {"version":3,"file":"LinkedPath.js","sourceRoot":"","sources":["../src/LinkedPath.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Represents a path linked to the resolve map.\n */\nexport interface LinkedPath {\n /**\n * Path to where the link originates.\n */\n path: string;\n\n /**\n * Optional git root to limit package resolution discovery.\n * Used for testing only.\n */\n rootPath?: string;\n\n /**\n * If true, transitive internal packages will be linked rather than only the matched packages.\n */\n includeAll?: boolean;\n\n /**\n * Package matches to ignore when linking.\n */\n ignoredPackages?: string[];\n\n /**\n * If true, ignores resolutions from the host repo definition to the linked packages.\n */\n ignoreResolutions?: boolean | string[];\n\n /** The strategy to use when resolving linked packages. Defaults to \"dedupe\". */\n resolveStrategy?: 'dedupe' | 'duplicate';\n}\n"]}
@@ -31,16 +31,15 @@ export interface GetPackageDefinitionOptions {
31
31
  /** Info about the package that is importing this package, if known. */
32
32
  importerContext?: PackageImporterContext;
33
33
  }
34
- /** Serializable representation of the package definitions cache. */
35
- export interface SerializablePackageDefinitionsCache {
36
- definitions: Record<string, PackageJson | undefined>;
37
- transformedDefinitions: Record<string, PackageJson | undefined>;
38
- }
39
34
  /**
40
35
  * Utility class for reading and caching package definition (`package.json`) objects,
41
36
  * and optionally applying transforms.
42
37
  */
43
38
  export interface PackageDefinitionsCache {
39
+ /** **Read-only** access to the cached package definitions. */
40
+ get definitions(): Readonly<Record<string, PackageJson | undefined>>;
41
+ /** **Read-only** access to the cached transformed package definitions. */
42
+ get transformedDefinitions(): Readonly<Record<string, PackageJson>>;
44
43
  /**
45
44
  * Get a `package.json` (either from cache or disk) and apply transforms.
46
45
  * Throws an error if the file isn't found or there's an error parsing it.
@@ -72,17 +71,8 @@ export interface PackageDefinitionsCache {
72
71
  * If called with `disableTransforms`, it will also delete the transformed definition from the cache,
73
72
  * so that the next call to `get` will apply the transforms, else it will only update the transformed definition.
74
73
  * This is useful when a package received through a serializable representation of the cache
75
- * needs to be updated (e.g. automatically adding new exports during remote link).
74
+ * needs to be updated.
76
75
  */
77
76
  set(packagePath: string, definition: PackageJson, options?: Pick<GetPackageDefinitionOptions, 'disableTransforms'>): void;
78
- /**
79
- * Extends the cache with a serializable representation of the cache.
80
- * This is useful for merging caches from different sources (e.g. link).
81
- */
82
- extend(input: SerializablePackageDefinitionsCache): void;
83
- /**
84
- * Creates a serializable representation of the cache.
85
- */
86
- toSerializable(): SerializablePackageDefinitionsCache;
87
77
  }
88
78
  //# sourceMappingURL=PackageDefinitionsCache.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PackageDefinitionsCache.d.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AAI,CAAC,2BAA2B,EAAE,mBAAmB,CAAC,GAC/D,IAAI,CAAC;CACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"PackageDefinitionsCache.js","sourceRoot":"","sources":["../src/PackageDefinitionsCache.ts"],"names":[],"mappings":"","sourcesContent":["import type { CloudpackConfig } from './CloudpackConfig.js';\nimport type { PackageJson } from './PackageJson.js';\n\n/** Provides context about how a parent package imports/depends on another package. */\nexport interface PackageImporterContext {\n /** Actual name of the package that requested this package. */\n parentName: string;\n /** Actual version of the package that requested this package. */\n parentVersion: string;\n /** Name under which this package is imported by the parent. */\n importedName: string;\n /** Version spec the parent requested for this package. */\n versionRequirement: string;\n}\n\n/**\n * Transform applied to a `package.json` file after it's read.\n * `PackageDefinitions` clones the original object, so it's okay for transforms to mutate properties.\n * @returns The transformed definition, or undefined if there were no changes.\n */\nexport type PackageDefinitionTransform = (params: {\n definition: PackageJson;\n packagePath: string;\n packages: PackageDefinitionsCache;\n importerContext?: PackageImporterContext;\n}) => PackageJson | undefined | Promise<PackageJson | undefined>;\n\nexport type PackageDefinitionTransformFactory = (config?: CloudpackConfig) => PackageDefinitionTransform;\n\nexport interface GetPackageDefinitionOptions {\n /** If true, the package definition will be re-read from disk. */\n refresh?: boolean;\n /** If true, transforms will not be applied. */\n disableTransforms?: boolean;\n /** Info about the package that is importing this package, if known. */\n importerContext?: PackageImporterContext;\n}\n\n/** Serializable representation of the package definitions cache. */\nexport interface SerializablePackageDefinitionsCache {\n definitions: Record<string, PackageJson | undefined>;\n transformedDefinitions: Record<string, PackageJson | undefined>;\n}\n\n/**\n * Utility class for reading and caching package definition (`package.json`) objects,\n * and optionally applying transforms.\n */\nexport interface PackageDefinitionsCache {\n /**\n * Get a `package.json` (either from cache or disk) and apply transforms.\n * Throws an error if the file isn't found or there's an error parsing it.\n * (Use `tryGet` to avoid throwing.)\n */\n get(packagePath: string, options?: GetPackageDefinitionOptions): Promise<PackageJson>;\n\n /**\n * Get a `package.json` (either from cache or disk) and apply transforms.\n * Returns undefined if the file isn't found or there's an error parsing it.\n */\n tryGet(packagePath: string, options?: GetPackageDefinitionOptions): Promise<PackageJson | undefined>;\n\n /**\n * Registers a transform factory function, which will be called on initialization, and when reset,\n * to re-generate the transform function. Transform functions are called only when the package\n * definition hasn't been loaded before, and the result will be cached.\n * Calling `reset` will reset the cache.\n */\n registerTransform(factory: PackageDefinitionTransformFactory): void;\n\n /**\n * Resets the cache. If a `newConfig` value is provided, the transform factories will be called with the new value\n * to give them an opportunity to reflect changes to the config. It is `unknown` because the config type is\n * application-specific.\n */\n reset(options?: { newConfig?: CloudpackConfig }): void;\n\n /**\n * Sets the definition for a given package path.\n * If called with `disableTransforms`, it will also delete the transformed definition from the cache,\n * so that the next call to `get` will apply the transforms, else it will only update the transformed definition.\n * This is useful when a package received through a serializable representation of the cache\n * needs to be updated (e.g. automatically adding new exports during remote link).\n */\n set(\n packagePath: string,\n definition: PackageJson,\n options?: Pick<GetPackageDefinitionOptions, 'disableTransforms'>,\n ): void;\n\n /**\n * Extends the cache with a serializable representation of the cache.\n * This is useful for merging caches from different sources (e.g. link).\n */\n extend(input: SerializablePackageDefinitionsCache): void;\n\n /**\n * Creates a serializable representation of the cache.\n */\n toSerializable(): SerializablePackageDefinitionsCache;\n}\n"]}
1
+ {"version":3,"file":"PackageDefinitionsCache.js","sourceRoot":"","sources":["../src/PackageDefinitionsCache.ts"],"names":[],"mappings":"","sourcesContent":["import type { CloudpackConfig } from './CloudpackConfig.js';\nimport type { PackageJson } from './PackageJson.js';\n\n/** Provides context about how a parent package imports/depends on another package. */\nexport interface PackageImporterContext {\n /** Actual name of the package that requested this package. */\n parentName: string;\n /** Actual version of the package that requested this package. */\n parentVersion: string;\n /** Name under which this package is imported by the parent. */\n importedName: string;\n /** Version spec the parent requested for this package. */\n versionRequirement: string;\n}\n\n/**\n * Transform applied to a `package.json` file after it's read.\n * `PackageDefinitions` clones the original object, so it's okay for transforms to mutate properties.\n * @returns The transformed definition, or undefined if there were no changes.\n */\nexport type PackageDefinitionTransform = (params: {\n definition: PackageJson;\n packagePath: string;\n packages: PackageDefinitionsCache;\n importerContext?: PackageImporterContext;\n}) => PackageJson | undefined | Promise<PackageJson | undefined>;\n\nexport type PackageDefinitionTransformFactory = (config?: CloudpackConfig) => PackageDefinitionTransform;\n\nexport interface GetPackageDefinitionOptions {\n /** If true, the package definition will be re-read from disk. */\n refresh?: boolean;\n /** If true, transforms will not be applied. */\n disableTransforms?: boolean;\n /** Info about the package that is importing this package, if known. */\n importerContext?: PackageImporterContext;\n}\n\n/**\n * Utility class for reading and caching package definition (`package.json`) objects,\n * and optionally applying transforms.\n */\nexport interface PackageDefinitionsCache {\n /** **Read-only** access to the cached package definitions. */\n get definitions(): Readonly<Record<string, PackageJson | undefined>>;\n /** **Read-only** access to the cached transformed package definitions. */\n get transformedDefinitions(): Readonly<Record<string, PackageJson>>;\n\n /**\n * Get a `package.json` (either from cache or disk) and apply transforms.\n * Throws an error if the file isn't found or there's an error parsing it.\n * (Use `tryGet` to avoid throwing.)\n */\n get(packagePath: string, options?: GetPackageDefinitionOptions): Promise<PackageJson>;\n\n /**\n * Get a `package.json` (either from cache or disk) and apply transforms.\n * Returns undefined if the file isn't found or there's an error parsing it.\n */\n tryGet(packagePath: string, options?: GetPackageDefinitionOptions): Promise<PackageJson | undefined>;\n\n /**\n * Registers a transform factory function, which will be called on initialization, and when reset,\n * to re-generate the transform function. Transform functions are called only when the package\n * definition hasn't been loaded before, and the result will be cached.\n * Calling `reset` will reset the cache.\n */\n registerTransform(factory: PackageDefinitionTransformFactory): void;\n\n /**\n * Resets the cache. If a `newConfig` value is provided, the transform factories will be called with the new value\n * to give them an opportunity to reflect changes to the config. It is `unknown` because the config type is\n * application-specific.\n */\n reset(options?: { newConfig?: CloudpackConfig }): void;\n\n /**\n * Sets the definition for a given package path.\n * If called with `disableTransforms`, it will also delete the transformed definition from the cache,\n * so that the next call to `get` will apply the transforms, else it will only update the transformed definition.\n * This is useful when a package received through a serializable representation of the cache\n * needs to be updated.\n */\n set(\n packagePath: string,\n definition: PackageJson,\n options?: Pick<GetPackageDefinitionOptions, 'disableTransforms'>,\n ): void;\n}\n"]}
@@ -1,17 +1,4 @@
1
1
  import type { TargetEnvironment } from './TargetEnvironment.js';
2
- /**
3
- * Serializable representation of the package hashes cache.
4
- */
5
- export interface SerializablePackageHashesCache {
6
- hashesWithSource: {
7
- browser: Record<string, string>;
8
- node: Record<string, string>;
9
- };
10
- hashesWithNoSource: {
11
- browser: Record<string, string>;
12
- node: Record<string, string>;
13
- };
14
- }
15
2
  /**
16
3
  * Utility class for hashing packages and caching the results.
17
4
  */
@@ -22,19 +9,10 @@ export interface PackageHashesCache {
22
9
  * @returns The hash for the package.
23
10
  */
24
11
  get(input: PackageHashOptions): Promise<string>;
25
- /**
26
- * Creates a serializable representation of the cache.
27
- */
28
- toSerializable(): SerializablePackageHashesCache;
29
12
  /**
30
13
  * Sets the hash for a given package path. This is useful when the hash needs to be set manually (e.g. link).
31
14
  */
32
15
  set(input: Omit<PackageHashOptions, 'shouldRecalculate'>, hash: string): void;
33
- /**
34
- * Extends the cache with a serializable representation of the cache.
35
- * This is useful for merging caches from different sources (e.g. link).
36
- */
37
- extend(input: SerializablePackageHashesCache): void;
38
16
  }
39
17
  /**
40
18
  * Options for hashing a package (`PackageHashes.get`).
@@ -1 +1 @@
1
- {"version":3,"file":"PackageHashesCache.d.ts","sourceRoot":"","sources":["../src/PackageHashesCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,gBAAgB,EAAE;QAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAChC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC9B,CAAC;IACF,kBAAkB,EAAE;QAClB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE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AiB,EAAE,iBAAiB,CAAC;IAErC,+CAA+C;IAC/C,sBAAsB,EAAE,OAAO,CAAC;IAEhC,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"PackageHashesCache.js","sourceRoot":"","sources":["../src/PackageHashesCache.ts"],"names":[],"mappings":"","sourcesContent":["import type { TargetEnvironment } from './TargetEnvironment.js';\n\n/**\n * Serializable representation of the package hashes cache.\n */\nexport interface SerializablePackageHashesCache {\n hashesWithSource: {\n browser: Record<string, string>;\n node: Record<string, string>;\n };\n hashesWithNoSource: {\n browser: Record<string, string>;\n node: Record<string, string>;\n };\n}\n\n/**\n * Utility class for hashing packages and caching the results.\n */\nexport interface PackageHashesCache {\n /**\n * Gets the hash for a given package path. This is useful for caching, to determine if the package has changed.\n * If the package definition has not been read, it will be read and cached.\n * @returns The hash for the package.\n */\n get(input: PackageHashOptions): Promise<string>;\n\n /**\n * Creates a serializable representation of the cache.\n */\n toSerializable(): SerializablePackageHashesCache;\n\n /**\n * Sets the hash for a given package path. This is useful when the hash needs to be set manually (e.g. link).\n */\n set(input: Omit<PackageHashOptions, 'shouldRecalculate'>, hash: string): void;\n\n /**\n * Extends the cache with a serializable representation of the cache.\n * This is useful for merging caches from different sources (e.g. link).\n */\n extend(input: SerializablePackageHashesCache): void;\n}\n\n/**\n * Options for hashing a package (`PackageHashes.get`).\n */\nexport interface PackageHashOptions {\n /** The package path to get the hash for. */\n packagePath: string;\n\n /** The target environment to hash for. */\n targetEnvironment: TargetEnvironment;\n\n /** Whether or not to hash the source files. */\n isSourceHashingEnabled: boolean;\n\n /** Whether to force a re-calculation of the hash. */\n shouldRecalculate?: boolean;\n}\n"]}
1
+ {"version":3,"file":"PackageHashesCache.js","sourceRoot":"","sources":["../src/PackageHashesCache.ts"],"names":[],"mappings":"","sourcesContent":["import type { TargetEnvironment } from './TargetEnvironment.js';\n\n/**\n * Utility class for hashing packages and caching the results.\n */\nexport interface PackageHashesCache {\n /**\n * Gets the hash for a given package path. This is useful for caching, to determine if the package has changed.\n * If the package definition has not been read, it will be read and cached.\n * @returns The hash for the package.\n */\n get(input: PackageHashOptions): Promise<string>;\n\n /**\n * Sets the hash for a given package path. This is useful when the hash needs to be set manually (e.g. link).\n */\n set(input: Omit<PackageHashOptions, 'shouldRecalculate'>, hash: string): void;\n}\n\n/**\n * Options for hashing a package (`PackageHashes.get`).\n */\nexport interface PackageHashOptions {\n /** The package path to get the hash for. */\n packagePath: string;\n\n /** The target environment to hash for. */\n targetEnvironment: TargetEnvironment;\n\n /** Whether or not to hash the source files. */\n isSourceHashingEnabled: boolean;\n\n /** Whether to force a re-calculation of the hash. */\n shouldRecalculate?: boolean;\n}\n"]}
@@ -18,8 +18,6 @@ export declare const allFeatures: {
18
18
  autoUpdateEntries: Feature;
19
19
  /** Disables the generation of source-maps during build. */
20
20
  disableSourceMaps: Feature;
21
- /** Enabled cloud-hosted application */
22
- enableCloudHosted: Feature;
23
21
  /**
24
22
  * Enables support of import maps for workers.
25
23
  * To use this feature, the package with the worker must be bundled with webpack (default: true).
@@ -33,10 +31,6 @@ export declare const allFeatures: {
33
31
  * Requires enableModuleWorkers to be enabled (default: true).
34
32
  */
35
33
  rewriteWorkerImports: Feature;
36
- /**
37
- * Enables downloading bundles from remote cache instead of bundling.
38
- */
39
- enableRemoteCacheDownloads: Feature;
40
34
  /**
41
35
  * Enables server-side rendering (SSR) for the application, including Node import map support.
42
36
  * This is experimental and may not work in all cases.
@@ -63,10 +57,6 @@ export declare const allFeatures: {
63
57
  removeUnusedExports: Feature;
64
58
  /** @deprecated Removed in favor of `resolve-web-extensions` bundler capability. Enables React Native type resolution of .web.ts extensions. */
65
59
  resolveWebExtensions: Feature;
66
- /** Enables the syncing of bundles. */
67
- syncBundles: Feature;
68
- /** Enables the syncing of internal packages. */
69
- syncInternalPackages: Feature;
70
60
  /** Use static analysis instead of bundling during init to determine package imports (experimental). If CJS parsing misses a dependency, the bundle server recovers at runtime and emits a warning. */
71
61
  staticAnalysisInit: Feature;
72
62
  /** Use a single server for both bundles and app assets (default: true). */
@@ -1 +1 @@
1
- {"version":3,"file":"allFeatures.d.ts","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;KAAG,GAAG,IAAI,MAAM,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO;CAAE,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,WAAW,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,WAAW;IAGtB,mHAAmH;IACnH,iBAAiB,EAIZ,OAAO;IAEZ,2DAA2D;IAC3D,iBAAiB,EAA6E,OAAO;IAErG,uCAAuC;IACvC,iBAAiB,EAA0D,OAAO;IAElF;;;OAGG;IACH,mBAAmB,EAId,OAAO;IAEZ,8EAA8E;IAC9E,mBAAmB,EAGd,OAAO;IAEZ;;;;OAIG;IACH,oBAAoB,EAIf,OAAO;IAEZ;;OAEG;IACH,0BAA0B,EAErB,OAAO;IAEZ;;;OAGG;IACH,SAAS,EAGJ,OAAO;IAEZ,mFAAmF;IACnF,mBAAmB,EAGd,OAAO;IAEZ,mEAAmE;IACnE,uBAAuB,EAElB,OAAO;IAEZ,sEAAsE;IACtE,mBAAmB,EAAwF,OAAO;IAElH,6FAA6F;IAC7F,sBAAsB,EAEjB,OAAO;IAEZ,qDAAqD;IACrD,GAAG,EAGE,OAAO;IAEZ;;;OAGG;IACH,oBAAoB,EAIf,OAAO;IAEZ,sHAAsH;IACtH,sBAAsB,EAIjB,OAAO;IAEZ,+GAA+G;IAC/G,mBAAmB,EAGd,OAAO;IAEZ,+IAA+I;IAC/I,oBAAoB,EAAoF,OAAO;IAE/G,sCAAsC;IACtC,WAAW,EAAwD,OAAO;IAE1E,gDAAgD;IAChD,oBAAoB,EAA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;IAEZ,2EAA2E;IAC3E,kBAAkB,EAGb,OAAO;IAEZ,uEAAuE;IACvE,aAAa,EAGR,OAAO;CAIb,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAIvB,QAAQ,CAAC"}
@@ -11,8 +11,6 @@ export const allFeatures = {
11
11
  },
12
12
  /** Disables the generation of source-maps during build. */
13
13
  disableSourceMaps: { description: 'Disables the generation of source-maps during build.' },
14
- /** Enabled cloud-hosted application */
15
- enableCloudHosted: { description: 'Enables cloud-hosted application.' },
16
14
  /**
17
15
  * Enables support of import maps for workers.
18
16
  * To use this feature, the package with the worker must be bundled with webpack (default: true).
@@ -35,12 +33,6 @@ export const allFeatures = {
35
33
  description: 'Enables import rewriting for workers instead of using es-module-shims. This makes workers compatible with service workers and removes runtime overhead. Requires enableModuleWorkers to be enabled (default: true).',
36
34
  default: true,
37
35
  },
38
- /**
39
- * Enables downloading bundles from remote cache instead of bundling.
40
- */
41
- enableRemoteCacheDownloads: {
42
- description: 'Enables downloading bundles from remote cache instead of bundling.',
43
- },
44
36
  /**
45
37
  * Enables server-side rendering (SSR) for the application, including Node import map support.
46
38
  * This is experimental and may not work in all cases.
@@ -87,10 +79,6 @@ export const allFeatures = {
87
79
  },
88
80
  /** @deprecated Removed in favor of `resolve-web-extensions` bundler capability. Enables React Native type resolution of .web.ts extensions. */
89
81
  resolveWebExtensions: { description: 'Enables React Native type resolution of .web.ts extensions.' },
90
- /** Enables the syncing of bundles. */
91
- syncBundles: { description: 'Enables the syncing of bundles.' },
92
- /** Enables the syncing of internal packages. */
93
- syncInternalPackages: { description: 'Enables the syncing of internal packages.' },
94
82
  /** Use static analysis instead of bundling during init to determine package imports (experimental). If CJS parsing misses a dependency, the bundle server recovers at runtime and emits a warning. */
95
83
  staticAnalysisInit: {
96
84
  description: 'Use static analysis instead of bundling during init to determine package imports (experimental). ' +
@@ -1 +1 @@
1
- {"version":3,"file":"allFeatures.js","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[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AI;KACH;IAEZ,+GAA+G;IAC/G,mBAAmB,EAAE;QACnB,WAAW,EACT,0GAA0G;KAClG;IAEZ,+IAA+I;IAC/I,oBAAoB,EAAE,EAAE,WAAW,EAAE,6DAA6D,EAAa;IAE/G,sCAAsC;IACtC,WAAW,EAAE,EAAE,WAAW,EAAE,iCAAiC,EAAa;IAE1E,gDAAgD;IAChD,oBAAoB,EAAE,EAAE,WAAW,EAAE,2CAA2C,EAAa;IAE7F,sMAAsM;IACtM,kBAAkB,EAAE;QAClB,WAAW,EACT,mGAAmG;YACnG,gGAAgG;KACxF;IAEZ,2EAA2E;IAC3E,kBAAkB,EAAE;QAClB,WAAW,EAAE,sEAAsE;QACnF,OAAO,EAAE,IAAI;KACH;IAEZ,uEAAuE;IACvE,aAAa,EAAE;QACb,WAAW,EAAE,kEAAkE;QAC/E,OAAO,EAAE,IAAI;KACH;IAEZ,iDAAiD;IACjD,oDAAoD;CACrD,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,WAAW,CAC/C,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC;KACxB,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;KACzC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CACrB,CAAC","sourcesContent":["import type { Feature } from './Feature.js';\n\n/**\n * Represents all features that can be enabled or disabled for Cloudpack.\n */\nexport type Features = { [key in keyof typeof allFeatures]?: boolean };\n\n/**\n * All valid feature names.\n */\nexport type FeatureName = keyof typeof allFeatures;\n\n/**\n * A set of options for configuring the experience.\n * Features can be set to true to change the default behavior.\n */\nexport const allFeatures = {\n // The comments provide intellisense, and the description strings are used in the help output.\n\n /** Automatically updates the generated config when an unknown import path is used during start (default: true). */\n autoUpdateEntries: {\n description:\n 'Automatically updates the generated config when an unknown import path is used during start (default: true).',\n default: true,\n } as Feature,\n\n /** Disables the generation of source-maps during build. */\n disableSourceMaps: { description: 'Disables the generation of source-maps during build.' } as Feature,\n\n /** Enabled cloud-hosted application */\n enableCloudHosted: { description: 'Enables cloud-hosted application.' } as Feature,\n\n /**\n * Enables support of import maps for workers.\n * To use this feature, the package with the worker must be bundled with webpack (default: true).\n */\n enableModuleWorkers: {\n description:\n 'Enables support of import maps for workers. To use this feature, the package with the worker must be bundled with webpack (default: true).',\n default: true,\n } as Feature,\n\n /** Enables the use of `@parcel/watcher` for file watching (default: true). */\n enableParcelWatcher: {\n description: 'Enables the use of @parcel/watcher for file watching (default: true).',\n default: true,\n } as Feature,\n\n /**\n * Enables import rewriting for workers instead of using es-module-shims.\n * This makes workers compatible with service workers.\n * Requires enableModuleWorkers to be enabled (default: true).\n */\n rewriteWorkerImports: {\n description:\n 'Enables import rewriting for workers instead of using es-module-shims. This makes workers compatible with service workers and removes runtime overhead. Requires enableModuleWorkers to be enabled (default: true).',\n default: true,\n } as Feature,\n\n /**\n * Enables downloading bundles from remote cache instead of bundling.\n */\n enableRemoteCacheDownloads: {\n description: 'Enables downloading bundles from remote cache instead of bundling.',\n } as Feature,\n\n /**\n * Enables server-side rendering (SSR) for the application, including Node import map support.\n * This is experimental and may not work in all cases.\n */\n enableSSR: {\n description:\n 'Enables server-side rendering (SSR) for the application, including Node import map support. This is experimental and may not work in all cases.',\n } as Feature,\n\n /** Enables the file watcher to be spawned in a forked process (default: true). */\n enableWatcherInFork: {\n description: 'Enables the file watcher to be spawned in a forked process (default: true).',\n default: true,\n } as Feature,\n\n /** Enables shared root file watcher optimization for monorepos. */\n enableWatcherSharedRoot: {\n description: 'Enables shared root file watcher optimization for monorepos.',\n } as Feature,\n\n /** Enables the preemptive enqueueing of dependencies during build. */\n enqueueDependencies: { description: 'Enables the preemptive enqueueing of dependencies during build.' } as Feature,\n\n /** Check for dynamic (async) imports with non-literal paths in bundle output during init. */\n evaluateDynamicImports: {\n description: 'Check for dynamic (async) imports with non-literal paths in bundle output during init.',\n } as Feature,\n\n /** Hot Module Replacement (opt-in, experimental). */\n hmr: {\n description:\n 'Experimental! Hot Module Replacement. Allows modules to be updated at runtime without a full refresh.',\n } as Feature,\n\n /**\n * Excludes unused dependencies in the generated config during an init run.\n * This helps trim the dependency graph, reduce the import map, and speed up performance.\n */\n optimizeDependencies: {\n description:\n // breaking up this string causes an exception in ts-json-schema-generator\n 'Excludes unused dependencies in the generated config during an init run. This helps trim the dependency graph, reduce the import map, and speed up performance.',\n } as Feature,\n\n /** Enables relative resource paths to be used in import map paths when useSingleWebServer is true. (default: true) */\n relativeImportMapPaths: {\n description:\n 'Enables relative resource paths to be used in import map paths when useSingleWebServer is true. (default: true)',\n default: true,\n } as Feature,\n\n /** Creates null entries for unused exports in generated config so that they are not included when bundling. */\n removeUnusedExports: {\n description:\n 'Creates null entries for unused exports in generated config so that they are not included when bundling.',\n } as Feature,\n\n /** @deprecated Removed in favor of `resolve-web-extensions` bundler capability. Enables React Native type resolution of .web.ts extensions. */\n resolveWebExtensions: { description: 'Enables React Native type resolution of .web.ts extensions.' } as Feature,\n\n /** Enables the syncing of bundles. */\n syncBundles: { description: 'Enables the syncing of bundles.' } as Feature,\n\n /** Enables the syncing of internal packages. */\n syncInternalPackages: { description: 'Enables the syncing of internal packages.' } as Feature,\n\n /** Use static analysis instead of bundling during init to determine package imports (experimental). If CJS parsing misses a dependency, the bundle server recovers at runtime and emits a warning. */\n staticAnalysisInit: {\n description:\n 'Use static analysis instead of bundling during init to determine package imports (experimental). ' +\n 'If CJS parsing misses a dependency, the bundle server recovers at runtime and emits a warning.',\n } as Feature,\n\n /** Use a single server for both bundles and app assets (default: true). */\n useSingleWebServer: {\n description: 'Use a single server for both bundles and app assets (default: true).',\n default: true,\n } as Feature,\n\n /** Enables the verification of exports during init (default: true). */\n verifyExports: {\n description: 'Enables the verification of exports during init (default: true).',\n default: true,\n } as Feature,\n\n // Please add new features in alphabetical order!\n // Don't forget to add them to the doc site as well!\n};\n\n/**\n * Record of features that are enabled by default.\n */\nexport const defaultFeatures = Object.fromEntries(\n Object.entries(allFeatures)\n .filter(([_, feature]) => feature.default)\n .map(([name]) => [name, true]),\n) as Features;\n"]}
1
+ {"version":3,"file":"allFeatures.js","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,8FAA8F;IAE9F,mHAAmH;IACnH,iBAAiB,EAAE;QACjB,WAAW,EACT,8GAA8G;QAChH,OAAO,EAAE,IAAI;KACH;IAEZ,2DAA2D;IAC3D,iBAAiB,EAAE,EAAE,WAAW,EAAE,sDAAsD,EAAa;IAErG;;;OAGG;IACH,mBAAmB,EAAE;QACnB,WAAW,EACT,4IAA4I;QAC9I,OAAO,EAAE,IAAI;KACH;IAEZ,8EAA8E;IAC9E,mBAAmB,EAAE;QACnB,WAAW,EAAE,uEAAuE;QACpF,OAAO,EAAE,IAAI;KACH;IAEZ;;;;OAIG;IACH,oBAAoB,EAAE;QACpB,WAAW,EACT,qNAAqN;QACvN,OAAO,EAAE,IAAI;KACH;IAEZ;;;OAGG;IACH,SAAS,EAAE;QACT,WAAW,EACT,iJAAiJ;KACzI;IAEZ,mFAAmF;IACnF,mBAAmB,EAAE;QACnB,WAAW,EAAE,6EAA6E;QAC1F,OAAO,EAAE,IAAI;KACH;IAEZ,mEAAmE;IACnE,uBAAuB,EAAE;QACvB,WAAW,EAAE,8DAA8D;KACjE;IAEZ,sEAAsE;IACtE,mBAAmB,EAAE,EAAE,WAAW,EAAE,iEAAiE,EAAa;IAElH,6FAA6F;IAC7F,sBAAsB,EAAE;QACtB,WAAW,EAAE,wFAAwF;KAC3F;IAEZ,qDAAqD;IACrD,GAAG,EAAE;QACH,WAAW,EACT,uGAAuG;KAC/F;IAEZ;;;OAGG;IACH,oBAAoB,EAAE;QACpB,WAAW;QACT,0EAA0E;QAC1E,iKAAiK;KACzJ;IAEZ,sHAAsH;IACtH,sBAAsB,EAAE;QACtB,WAAW,EACT,iHAAiH;QACnH,OAAO,EAAE,IAAI;KACH;IAEZ,+GAA+G;IAC/G,mBAAmB,EAAE;QACnB,WAAW,EACT,0GAA0G;KAClG;IAEZ,+IAA+I;IAC/I,oBAAoB,EAAE,EAAE,WAAW,EAAE,6DAA6D,EAAa;IAE/G,sMAAsM;IACtM,kBAAkB,EAAE;QAClB,WAAW,EACT,mGAAmG;YACnG,gGAAgG;KACxF;IAEZ,2EAA2E;IAC3E,kBAAkB,EAAE;QAClB,WAAW,EAAE,sEAAsE;QACnF,OAAO,EAAE,IAAI;KACH;IAEZ,uEAAuE;IACvE,aAAa,EAAE;QACb,WAAW,EAAE,kEAAkE;QAC/E,OAAO,EAAE,IAAI;KACH;IAEZ,iDAAiD;IACjD,oDAAoD;CACrD,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,WAAW,CAC/C,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC;KACxB,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;KACzC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CACrB,CAAC","sourcesContent":["import type { Feature } from './Feature.js';\n\n/**\n * Represents all features that can be enabled or disabled for Cloudpack.\n */\nexport type Features = { [key in keyof typeof allFeatures]?: boolean };\n\n/**\n * All valid feature names.\n */\nexport type FeatureName = keyof typeof allFeatures;\n\n/**\n * A set of options for configuring the experience.\n * Features can be set to true to change the default behavior.\n */\nexport const allFeatures = {\n // The comments provide intellisense, and the description strings are used in the help output.\n\n /** Automatically updates the generated config when an unknown import path is used during start (default: true). */\n autoUpdateEntries: {\n description:\n 'Automatically updates the generated config when an unknown import path is used during start (default: true).',\n default: true,\n } as Feature,\n\n /** Disables the generation of source-maps during build. */\n disableSourceMaps: { description: 'Disables the generation of source-maps during build.' } as Feature,\n\n /**\n * Enables support of import maps for workers.\n * To use this feature, the package with the worker must be bundled with webpack (default: true).\n */\n enableModuleWorkers: {\n description:\n 'Enables support of import maps for workers. To use this feature, the package with the worker must be bundled with webpack (default: true).',\n default: true,\n } as Feature,\n\n /** Enables the use of `@parcel/watcher` for file watching (default: true). */\n enableParcelWatcher: {\n description: 'Enables the use of @parcel/watcher for file watching (default: true).',\n default: true,\n } as Feature,\n\n /**\n * Enables import rewriting for workers instead of using es-module-shims.\n * This makes workers compatible with service workers.\n * Requires enableModuleWorkers to be enabled (default: true).\n */\n rewriteWorkerImports: {\n description:\n 'Enables import rewriting for workers instead of using es-module-shims. This makes workers compatible with service workers and removes runtime overhead. Requires enableModuleWorkers to be enabled (default: true).',\n default: true,\n } as Feature,\n\n /**\n * Enables server-side rendering (SSR) for the application, including Node import map support.\n * This is experimental and may not work in all cases.\n */\n enableSSR: {\n description:\n 'Enables server-side rendering (SSR) for the application, including Node import map support. This is experimental and may not work in all cases.',\n } as Feature,\n\n /** Enables the file watcher to be spawned in a forked process (default: true). */\n enableWatcherInFork: {\n description: 'Enables the file watcher to be spawned in a forked process (default: true).',\n default: true,\n } as Feature,\n\n /** Enables shared root file watcher optimization for monorepos. */\n enableWatcherSharedRoot: {\n description: 'Enables shared root file watcher optimization for monorepos.',\n } as Feature,\n\n /** Enables the preemptive enqueueing of dependencies during build. */\n enqueueDependencies: { description: 'Enables the preemptive enqueueing of dependencies during build.' } as Feature,\n\n /** Check for dynamic (async) imports with non-literal paths in bundle output during init. */\n evaluateDynamicImports: {\n description: 'Check for dynamic (async) imports with non-literal paths in bundle output during init.',\n } as Feature,\n\n /** Hot Module Replacement (opt-in, experimental). */\n hmr: {\n description:\n 'Experimental! Hot Module Replacement. Allows modules to be updated at runtime without a full refresh.',\n } as Feature,\n\n /**\n * Excludes unused dependencies in the generated config during an init run.\n * This helps trim the dependency graph, reduce the import map, and speed up performance.\n */\n optimizeDependencies: {\n description:\n // breaking up this string causes an exception in ts-json-schema-generator\n 'Excludes unused dependencies in the generated config during an init run. This helps trim the dependency graph, reduce the import map, and speed up performance.',\n } as Feature,\n\n /** Enables relative resource paths to be used in import map paths when useSingleWebServer is true. (default: true) */\n relativeImportMapPaths: {\n description:\n 'Enables relative resource paths to be used in import map paths when useSingleWebServer is true. (default: true)',\n default: true,\n } as Feature,\n\n /** Creates null entries for unused exports in generated config so that they are not included when bundling. */\n removeUnusedExports: {\n description:\n 'Creates null entries for unused exports in generated config so that they are not included when bundling.',\n } as Feature,\n\n /** @deprecated Removed in favor of `resolve-web-extensions` bundler capability. Enables React Native type resolution of .web.ts extensions. */\n resolveWebExtensions: { description: 'Enables React Native type resolution of .web.ts extensions.' } as Feature,\n\n /** Use static analysis instead of bundling during init to determine package imports (experimental). If CJS parsing misses a dependency, the bundle server recovers at runtime and emits a warning. */\n staticAnalysisInit: {\n description:\n 'Use static analysis instead of bundling during init to determine package imports (experimental). ' +\n 'If CJS parsing misses a dependency, the bundle server recovers at runtime and emits a warning.',\n } as Feature,\n\n /** Use a single server for both bundles and app assets (default: true). */\n useSingleWebServer: {\n description: 'Use a single server for both bundles and app assets (default: true).',\n default: true,\n } as Feature,\n\n /** Enables the verification of exports during init (default: true). */\n verifyExports: {\n description: 'Enables the verification of exports during init (default: true).',\n default: true,\n } as Feature,\n\n // Please add new features in alphabetical order!\n // Don't forget to add them to the doc site as well!\n};\n\n/**\n * Record of features that are enabled by default.\n */\nexport const defaultFeatures = Object.fromEntries(\n Object.entries(allFeatures)\n .filter(([_, feature]) => feature.default)\n .map(([name]) => [name, true]),\n) as Features;\n"]}
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { allFeatures, defaultFeatures, type Features, type FeatureName } from './allFeatures.js';
2
- export type { GetPackageDefinitionOptions, PackageDefinitionTransform, PackageDefinitionTransformFactory, PackageDefinitionsCache, PackageImporterContext, SerializablePackageDefinitionsCache, } from './PackageDefinitionsCache.js';
2
+ export type { GetPackageDefinitionOptions, PackageDefinitionTransform, PackageDefinitionTransformFactory, PackageDefinitionsCache, PackageImporterContext, } from './PackageDefinitionsCache.js';
3
3
  export type { LiteralOrString, PackageJson, PackageJsonCloudpackMeta, PackageJsonDependencies, PackageJsonExportCondition, PackageJsonExports, PackageJsonExportsObject, GeneratedExports, PackageJsonExportsValue, } from './PackageJson.js';
4
4
  export type { BundleContext } from './BundleContext.js';
5
5
  export type { BundleMessage } from './BundleMessage.js';
@@ -11,7 +11,7 @@ export type { BundleOutputFile } from './BundleOutputFile.js';
11
11
  export type { BundleResult } from './BundleResult.js';
12
12
  export type { BundlerResult } from './BundlerResult.js';
13
13
  export type { Bundler } from './Bundler.js';
14
- export type { CloudpackConfig, CloudpackLinkConfig } from './CloudpackConfig.js';
14
+ export type { CloudpackConfig } from './CloudpackConfig.js';
15
15
  export type { ServerConfig } from './ServerConfig.js';
16
16
  export type { ExpandedSourcePath } from './ExpandedSourcePath.js';
17
17
  export type { Feature } from './Feature.js';
@@ -19,14 +19,13 @@ export type { GeneratedConfig } from './GeneratedConfig.js';
19
19
  export type { HttpsConfig } from './HttpsConfig.js';
20
20
  export type { LinkOptions } from './LinkOptions.js';
21
21
  export type { ModuleType } from './ModuleType.js';
22
- export type { PackageHashesCache, PackageHashOptions, SerializablePackageHashesCache } from './PackageHashesCache.js';
22
+ export type { PackageHashesCache, PackageHashOptions } from './PackageHashesCache.js';
23
23
  export type { PackageSettings, PackageSettingsMatch, PackageSettingsMatchObject, GeneratedPackageSettings, } from './PackageSettings.js';
24
24
  export type { BootstrapRoute, ProxyRoute, RedirectRoute, RenderedRoute, Route, RouteMatch, SharedRouteOptions, ShorthandRenderedRoute, ShorthandBootstrapRoute, ShorthandRoute, StaticRoute, } from './Route.js';
25
25
  export { isBootstrapRoute, isProxyRoute, isRenderedRoute, isStaticRoute, isRedirectRoute, isShorthandBootstrapRoute, isShorthandRenderedRoute, } from './Route.js';
26
26
  export type { TelemetryConfig } from './TelemetryConfig.js';
27
27
  export type { AppConfig } from './AppConfig.js';
28
28
  export type { BaseBundlerCapability, InternalBundlerCapabilitiesOptions, InternalBundlerCapabilityImplementations, InternalBundlerCapabilitiesMetaData, BundlerCapabilitiesOptions, ExternalBundlerCapabilityModule, BundlerCapabilityFunction, } from './BundlerCapability.js';
29
- export type { RemoteCacheConfig } from './RemoteCacheConfig.js';
30
29
  export type { RenderFunction, RenderFunctionOptions, RenderFunctionResult, ExpandedRenderFunctionResult, RequestInfo, ServerEntryFunction, ServerEntryFunctionOptions, ServerEntryFunctionResult, } from './RenderFunction.js';
31
30
  export type { Request, Response, RequestHandler } from 'express';
32
31
  export type { Session } from './Session.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjG,YAAY,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,iCAAiC,EACjC,uBAAuB,EACvB,sBAAsB,EACtB,mCAAmC,GACpC,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,eAAe,EACf,WAAW,EACX,wBAAwB,EACxB,uBAAuB,EACvB,0BAA0B,EAC1B,kBAAkB,EAClB,wBAAwB,EACxB,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,YAAY,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EAAE,gBAAgB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B,CAAC;AACtD,YAAY,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC"}
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAmC,MAAM,kBAAkB,CAAC;AA0DjG,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,eAAe,EACf,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,YAAY,CAAC","sourcesContent":["export { allFeatures, defaultFeatures, type Features, type FeatureName } from './allFeatures.js';\nexport type {\n GetPackageDefinitionOptions,\n PackageDefinitionTransform,\n PackageDefinitionTransformFactory,\n PackageDefinitionsCache,\n PackageImporterContext,\n SerializablePackageDefinitionsCache,\n} from './PackageDefinitionsCache.js';\nexport type {\n LiteralOrString,\n PackageJson,\n PackageJsonCloudpackMeta,\n PackageJsonDependencies,\n PackageJsonExportCondition,\n PackageJsonExports,\n PackageJsonExportsObject,\n GeneratedExports,\n PackageJsonExportsValue,\n} from './PackageJson.js';\nexport type { BundleContext } from './BundleContext.js';\nexport type { BundleMessage } from './BundleMessage.js';\nexport type { BundleMessageLocation } from './BundleMessageLocation.js';\nexport type { BundleMessageNote } from './BundleMessageNote.js';\nexport type { BundleMode } from './BundleMode.js';\nexport type { BundleOptions } from './BundleOptions.js';\nexport type { BundleOutputFile } from './BundleOutputFile.js';\nexport type { BundleResult } from './BundleResult.js';\nexport type { BundlerResult } from './BundlerResult.js';\nexport type { Bundler } from './Bundler.js';\nexport type { CloudpackConfig, CloudpackLinkConfig } from './CloudpackConfig.js';\nexport type { ServerConfig } from './ServerConfig.js';\nexport type { ExpandedSourcePath } from './ExpandedSourcePath.js';\nexport type { Feature } from './Feature.js';\nexport type { GeneratedConfig } from './GeneratedConfig.js';\nexport type { HttpsConfig } from './HttpsConfig.js';\nexport type { LinkOptions } from './LinkOptions.js';\nexport type { ModuleType } from './ModuleType.js';\nexport type { PackageHashesCache, PackageHashOptions, SerializablePackageHashesCache } from './PackageHashesCache.js';\nexport type {\n PackageSettings,\n PackageSettingsMatch,\n PackageSettingsMatchObject,\n GeneratedPackageSettings,\n} from './PackageSettings.js';\nexport type {\n BootstrapRoute,\n ProxyRoute,\n RedirectRoute,\n RenderedRoute,\n Route,\n RouteMatch,\n SharedRouteOptions,\n ShorthandRenderedRoute,\n ShorthandBootstrapRoute,\n ShorthandRoute,\n StaticRoute,\n} from './Route.js';\nexport {\n isBootstrapRoute,\n isProxyRoute,\n isRenderedRoute,\n isStaticRoute,\n isRedirectRoute,\n isShorthandBootstrapRoute,\n isShorthandRenderedRoute,\n} from './Route.js';\nexport type { TelemetryConfig } from './TelemetryConfig.js';\nexport type { AppConfig } from './AppConfig.js';\nexport type {\n BaseBundlerCapability,\n InternalBundlerCapabilitiesOptions,\n InternalBundlerCapabilityImplementations,\n InternalBundlerCapabilitiesMetaData,\n BundlerCapabilitiesOptions,\n ExternalBundlerCapabilityModule,\n BundlerCapabilityFunction,\n} from './BundlerCapability.js';\nexport type { RemoteCacheConfig } from './RemoteCacheConfig.js';\nexport type {\n RenderFunction,\n RenderFunctionOptions,\n RenderFunctionResult,\n ExpandedRenderFunctionResult,\n RequestInfo,\n ServerEntryFunction,\n ServerEntryFunctionOptions,\n ServerEntryFunctionResult,\n} from './RenderFunction.js';\nexport type { Request, Response, RequestHandler } from 'express';\nexport type { Session } from './Session.js';\nexport type { ResolveMap } from './ResolveMap.js';\nexport type { ResolveMapEntry } from './ResolveMapEntry.js';\nexport type { LinkedPath } from './LinkedPath.js';\nexport type { ImportMap } from './ImportMap.js';\nexport type { UserPreferences } from './UserPreferences.js';\nexport type { TargetEnvironment } from './TargetEnvironment.js';\nexport type { NestedPartial } from './NestedPartial.js';\nexport type { WithOptional } from './WithOptional.js';\nexport type { WithRequired } from './WithRequired.js';\nexport type { ModuleResolutionConfig } from './ModuleResolutionConfig.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAmC,MAAM,kBAAkB,CAAC;AAyDjG,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,eAAe,EACf,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,YAAY,CAAC","sourcesContent":["export { allFeatures, defaultFeatures, type Features, type FeatureName } from './allFeatures.js';\nexport type {\n GetPackageDefinitionOptions,\n PackageDefinitionTransform,\n PackageDefinitionTransformFactory,\n PackageDefinitionsCache,\n PackageImporterContext,\n} from './PackageDefinitionsCache.js';\nexport type {\n LiteralOrString,\n PackageJson,\n PackageJsonCloudpackMeta,\n PackageJsonDependencies,\n PackageJsonExportCondition,\n PackageJsonExports,\n PackageJsonExportsObject,\n GeneratedExports,\n PackageJsonExportsValue,\n} from './PackageJson.js';\nexport type { BundleContext } from './BundleContext.js';\nexport type { BundleMessage } from './BundleMessage.js';\nexport type { BundleMessageLocation } from './BundleMessageLocation.js';\nexport type { BundleMessageNote } from './BundleMessageNote.js';\nexport type { BundleMode } from './BundleMode.js';\nexport type { BundleOptions } from './BundleOptions.js';\nexport type { BundleOutputFile } from './BundleOutputFile.js';\nexport type { BundleResult } from './BundleResult.js';\nexport type { BundlerResult } from './BundlerResult.js';\nexport type { Bundler } from './Bundler.js';\nexport type { CloudpackConfig } from './CloudpackConfig.js';\nexport type { ServerConfig } from './ServerConfig.js';\nexport type { ExpandedSourcePath } from './ExpandedSourcePath.js';\nexport type { Feature } from './Feature.js';\nexport type { GeneratedConfig } from './GeneratedConfig.js';\nexport type { HttpsConfig } from './HttpsConfig.js';\nexport type { LinkOptions } from './LinkOptions.js';\nexport type { ModuleType } from './ModuleType.js';\nexport type { PackageHashesCache, PackageHashOptions } from './PackageHashesCache.js';\nexport type {\n PackageSettings,\n PackageSettingsMatch,\n PackageSettingsMatchObject,\n GeneratedPackageSettings,\n} from './PackageSettings.js';\nexport type {\n BootstrapRoute,\n ProxyRoute,\n RedirectRoute,\n RenderedRoute,\n Route,\n RouteMatch,\n SharedRouteOptions,\n ShorthandRenderedRoute,\n ShorthandBootstrapRoute,\n ShorthandRoute,\n StaticRoute,\n} from './Route.js';\nexport {\n isBootstrapRoute,\n isProxyRoute,\n isRenderedRoute,\n isStaticRoute,\n isRedirectRoute,\n isShorthandBootstrapRoute,\n isShorthandRenderedRoute,\n} from './Route.js';\nexport type { TelemetryConfig } from './TelemetryConfig.js';\nexport type { AppConfig } from './AppConfig.js';\nexport type {\n BaseBundlerCapability,\n InternalBundlerCapabilitiesOptions,\n InternalBundlerCapabilityImplementations,\n InternalBundlerCapabilitiesMetaData,\n BundlerCapabilitiesOptions,\n ExternalBundlerCapabilityModule,\n BundlerCapabilityFunction,\n} from './BundlerCapability.js';\nexport type {\n RenderFunction,\n RenderFunctionOptions,\n RenderFunctionResult,\n ExpandedRenderFunctionResult,\n RequestInfo,\n ServerEntryFunction,\n ServerEntryFunctionOptions,\n ServerEntryFunctionResult,\n} from './RenderFunction.js';\nexport type { Request, Response, RequestHandler } from 'express';\nexport type { Session } from './Session.js';\nexport type { ResolveMap } from './ResolveMap.js';\nexport type { ResolveMapEntry } from './ResolveMapEntry.js';\nexport type { LinkedPath } from './LinkedPath.js';\nexport type { ImportMap } from './ImportMap.js';\nexport type { UserPreferences } from './UserPreferences.js';\nexport type { TargetEnvironment } from './TargetEnvironment.js';\nexport type { NestedPartial } from './NestedPartial.js';\nexport type { WithOptional } from './WithOptional.js';\nexport type { WithRequired } from './WithRequired.js';\nexport type { ModuleResolutionConfig } from './ModuleResolutionConfig.js';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/common-types",
3
- "version": "0.34.6",
3
+ "version": "0.35.0",
4
4
  "description": "Common types for Cloudpack.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -68,10 +68,6 @@
68
68
  "description": "Glob pattern to match `patch-package` patch files, relative to the project root (usually the same as the repository root).\n\nNote that if you're using `yarn patch` (v2+), those patches will be handled automatically (not by this glob pattern).",
69
69
  "default": "patches/*.patch"
70
70
  },
71
- "remoteCache": {
72
- "$ref": "#/definitions/RemoteCacheConfig",
73
- "description": "Azure Blob Storage configuration for remote cache - uploading and downloading packages via `cloudpack sync`. If this is not provided, the remote cache will not be used."
74
- },
75
71
  "routes": {
76
72
  "type": "array",
77
73
  "items": {
@@ -974,7 +970,7 @@
974
970
  "type": "number",
975
971
  "description": "The length of the array."
976
972
  },
977
- "__@toStringTag@1179": {
973
+ "__@toStringTag@1082": {
978
974
  "type": "string",
979
975
  "const": "BigUint64Array"
980
976
  }
@@ -985,7 +981,7 @@
985
981
  "byteLength",
986
982
  "byteOffset",
987
983
  "length",
988
- "__@toStringTag@1179"
984
+ "__@toStringTag@1082"
989
985
  ],
990
986
  "additionalProperties": {
991
987
  "type": "number"
@@ -1025,7 +1021,7 @@
1025
1021
  "type": "number",
1026
1022
  "description": "The length of the array."
1027
1023
  },
1028
- "__@toStringTag@1179": {
1024
+ "__@toStringTag@1082": {
1029
1025
  "type": "string",
1030
1026
  "const": "BigInt64Array"
1031
1027
  }
@@ -1036,7 +1032,7 @@
1036
1032
  "byteLength",
1037
1033
  "byteOffset",
1038
1034
  "length",
1039
- "__@toStringTag@1179"
1035
+ "__@toStringTag@1082"
1040
1036
  ],
1041
1037
  "additionalProperties": {
1042
1038
  "type": "number"
@@ -1454,9 +1450,6 @@
1454
1450
  "disableSourceMaps": {
1455
1451
  "type": "boolean"
1456
1452
  },
1457
- "enableCloudHosted": {
1458
- "type": "boolean"
1459
- },
1460
1453
  "enableModuleWorkers": {
1461
1454
  "type": "boolean"
1462
1455
  },
@@ -1466,9 +1459,6 @@
1466
1459
  "rewriteWorkerImports": {
1467
1460
  "type": "boolean"
1468
1461
  },
1469
- "enableRemoteCacheDownloads": {
1470
- "type": "boolean"
1471
- },
1472
1462
  "enableSSR": {
1473
1463
  "type": "boolean"
1474
1464
  },
@@ -1499,12 +1489,6 @@
1499
1489
  "resolveWebExtensions": {
1500
1490
  "type": "boolean"
1501
1491
  },
1502
- "syncBundles": {
1503
- "type": "boolean"
1504
- },
1505
- "syncInternalPackages": {
1506
- "type": "boolean"
1507
- },
1508
1492
  "staticAnalysisInit": {
1509
1493
  "type": "boolean"
1510
1494
  },
@@ -1761,7 +1745,7 @@
1761
1745
  "allow-duplication",
1762
1746
  "force-remote-version"
1763
1747
  ],
1764
- "description": "Controls the behavior of duplicated dependencies in the resolve map when running `cloudpack link`.\n\n- `allow-duplication` (default): allow multiple versions of the same package to exist in the resolve map to satisfy semver.\n- `force-host-version`: the package will be deduplicated to the version of the host package, ignoring semver requirements.\n- `force-remote-version`: the package will be deduplicated to the version of the remote package, ignoring semver requirements.\n\nNote: These settings only apply when the resolve strategy is set to the default `dedupe`."
1748
+ "description": "Controls the behavior of duplicated dependencies in the resolve map when running `cloudpack link`.\n\n- `allow-duplication` (default): allow multiple versions of the same package to exist in the resolve map to satisfy semver.\n- `force-host-version`: the package will be deduplicated host repo's version, ignoring semver requirements.\n- `force-remote-version`: the package will be deduplicated to the other repo's version, ignoring semver requirements.\n\nNote: These settings only apply when the resolve strategy is set to the default `dedupe`."
1765
1749
  }
1766
1750
  },
1767
1751
  "additionalProperties": false,
@@ -1897,29 +1881,6 @@
1897
1881
  },
1898
1882
  "description": "Options used in `PackageSettings` to configure or disable bundler capabilities.\n- Key: capability name, either internal (Cloudpack-provided) or external (as specified in `AppConfig.bundlerCapabilitiesRegistry`)\n- Value: options object to configure the capability, or false to disable it."
1899
1883
  },
1900
- "RemoteCacheConfig": {
1901
- "type": "object",
1902
- "properties": {
1903
- "storageAccount": {
1904
- "type": "string",
1905
- "description": "The name of the Azure Blob Storage account."
1906
- },
1907
- "container": {
1908
- "type": "string",
1909
- "description": "The name of the container to use for the remote cache. Container must already exist."
1910
- },
1911
- "tenantId": {
1912
- "type": "string",
1913
- "description": "The Microsoft Entra tenant (directory) ID. This will ensure that only users from this tenant can access the remote cache."
1914
- }
1915
- },
1916
- "required": [
1917
- "storageAccount",
1918
- "container"
1919
- ],
1920
- "additionalProperties": false,
1921
- "description": "Azure Blob Storage configuration for remote cache - uploading and downloading packages via `cloudpack sync`."
1922
- },
1923
1884
  "DefineFlags": {
1924
1885
  "type": "object",
1925
1886
  "additionalProperties": {
@@ -72,10 +72,6 @@
72
72
  "description": "Glob pattern to match `patch-package` patch files, relative to the project root (usually the same as the repository root).\n\nNote that if you're using `yarn patch` (v2+), those patches will be handled automatically (not by this glob pattern).",
73
73
  "default": "patches/*.patch"
74
74
  },
75
- "remoteCache": {
76
- "$ref": "#/definitions/RemoteCacheConfig",
77
- "description": "Azure Blob Storage configuration for remote cache - uploading and downloading packages via `cloudpack sync`. If this is not provided, the remote cache will not be used."
78
- },
79
75
  "routes": {
80
76
  "type": "array",
81
77
  "items": {
@@ -975,7 +971,7 @@
975
971
  "type": "number",
976
972
  "description": "The length of the array."
977
973
  },
978
- "__@toStringTag@1179": {
974
+ "__@toStringTag@1082": {
979
975
  "type": "string",
980
976
  "const": "BigUint64Array"
981
977
  }
@@ -986,7 +982,7 @@
986
982
  "byteLength",
987
983
  "byteOffset",
988
984
  "length",
989
- "__@toStringTag@1179"
985
+ "__@toStringTag@1082"
990
986
  ],
991
987
  "additionalProperties": {
992
988
  "type": "number"
@@ -1026,7 +1022,7 @@
1026
1022
  "type": "number",
1027
1023
  "description": "The length of the array."
1028
1024
  },
1029
- "__@toStringTag@1179": {
1025
+ "__@toStringTag@1082": {
1030
1026
  "type": "string",
1031
1027
  "const": "BigInt64Array"
1032
1028
  }
@@ -1037,7 +1033,7 @@
1037
1033
  "byteLength",
1038
1034
  "byteOffset",
1039
1035
  "length",
1040
- "__@toStringTag@1179"
1036
+ "__@toStringTag@1082"
1041
1037
  ],
1042
1038
  "additionalProperties": {
1043
1039
  "type": "number"
@@ -1455,9 +1451,6 @@
1455
1451
  "disableSourceMaps": {
1456
1452
  "type": "boolean"
1457
1453
  },
1458
- "enableCloudHosted": {
1459
- "type": "boolean"
1460
- },
1461
1454
  "enableModuleWorkers": {
1462
1455
  "type": "boolean"
1463
1456
  },
@@ -1467,9 +1460,6 @@
1467
1460
  "rewriteWorkerImports": {
1468
1461
  "type": "boolean"
1469
1462
  },
1470
- "enableRemoteCacheDownloads": {
1471
- "type": "boolean"
1472
- },
1473
1463
  "enableSSR": {
1474
1464
  "type": "boolean"
1475
1465
  },
@@ -1500,12 +1490,6 @@
1500
1490
  "resolveWebExtensions": {
1501
1491
  "type": "boolean"
1502
1492
  },
1503
- "syncBundles": {
1504
- "type": "boolean"
1505
- },
1506
- "syncInternalPackages": {
1507
- "type": "boolean"
1508
- },
1509
1493
  "staticAnalysisInit": {
1510
1494
  "type": "boolean"
1511
1495
  },
@@ -1762,7 +1746,7 @@
1762
1746
  "allow-duplication",
1763
1747
  "force-remote-version"
1764
1748
  ],
1765
- "description": "Controls the behavior of duplicated dependencies in the resolve map when running `cloudpack link`.\n\n- `allow-duplication` (default): allow multiple versions of the same package to exist in the resolve map to satisfy semver.\n- `force-host-version`: the package will be deduplicated to the version of the host package, ignoring semver requirements.\n- `force-remote-version`: the package will be deduplicated to the version of the remote package, ignoring semver requirements.\n\nNote: These settings only apply when the resolve strategy is set to the default `dedupe`."
1749
+ "description": "Controls the behavior of duplicated dependencies in the resolve map when running `cloudpack link`.\n\n- `allow-duplication` (default): allow multiple versions of the same package to exist in the resolve map to satisfy semver.\n- `force-host-version`: the package will be deduplicated host repo's version, ignoring semver requirements.\n- `force-remote-version`: the package will be deduplicated to the other repo's version, ignoring semver requirements.\n\nNote: These settings only apply when the resolve strategy is set to the default `dedupe`."
1766
1750
  }
1767
1751
  },
1768
1752
  "additionalProperties": false,
@@ -1898,29 +1882,6 @@
1898
1882
  },
1899
1883
  "description": "Options used in `PackageSettings` to configure or disable bundler capabilities.\n- Key: capability name, either internal (Cloudpack-provided) or external (as specified in `AppConfig.bundlerCapabilitiesRegistry`)\n- Value: options object to configure the capability, or false to disable it."
1900
1884
  },
1901
- "RemoteCacheConfig": {
1902
- "type": "object",
1903
- "properties": {
1904
- "storageAccount": {
1905
- "type": "string",
1906
- "description": "The name of the Azure Blob Storage account."
1907
- },
1908
- "container": {
1909
- "type": "string",
1910
- "description": "The name of the container to use for the remote cache. Container must already exist."
1911
- },
1912
- "tenantId": {
1913
- "type": "string",
1914
- "description": "The Microsoft Entra tenant (directory) ID. This will ensure that only users from this tenant can access the remote cache."
1915
- }
1916
- },
1917
- "required": [
1918
- "storageAccount",
1919
- "container"
1920
- ],
1921
- "additionalProperties": false,
1922
- "description": "Azure Blob Storage configuration for remote cache - uploading and downloading packages via `cloudpack sync`."
1923
- },
1924
1885
  "DefineFlags": {
1925
1886
  "type": "object",
1926
1887
  "additionalProperties": {
@@ -1,19 +0,0 @@
1
- /**
2
- * Azure Blob Storage configuration for remote cache - uploading and downloading packages
3
- * via `cloudpack sync`.
4
- */
5
- export interface RemoteCacheConfig {
6
- /**
7
- * The name of the Azure Blob Storage account.
8
- */
9
- storageAccount: string;
10
- /**
11
- * The name of the container to use for the remote cache. Container must already exist.
12
- */
13
- container: string;
14
- /**
15
- * The Microsoft Entra tenant (directory) ID. This will ensure that only users from this tenant can access the remote cache.
16
- */
17
- tenantId?: string;
18
- }
19
- //# sourceMappingURL=RemoteCacheConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RemoteCacheConfig.d.ts","sourceRoot":"","sources":["../src/RemoteCacheConfig.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=RemoteCacheConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RemoteCacheConfig.js","sourceRoot":"","sources":["../src/RemoteCacheConfig.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Azure Blob Storage configuration for remote cache - uploading and downloading packages\n * via `cloudpack sync`.\n */\nexport interface RemoteCacheConfig {\n /**\n * The name of the Azure Blob Storage account.\n */\n storageAccount: string;\n /**\n * The name of the container to use for the remote cache. Container must already exist.\n */\n container: string;\n /**\n * The Microsoft Entra tenant (directory) ID. This will ensure that only users from this tenant can access the remote cache.\n */\n tenantId?: string;\n}\n"]}