@ms-cloudpack/common-types 0.33.1 → 0.33.3
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/lib/BundleOptions.d.ts +2 -0
- package/lib/BundleOptions.d.ts.map +1 -1
- package/lib/BundleOptions.js.map +1 -1
- package/lib/ModuleResolutionConfig.d.ts +6 -6
- package/lib/ModuleResolutionConfig.js.map +1 -1
- package/lib/PackageJson.d.ts.map +1 -1
- package/lib/PackageJson.js.map +1 -1
- package/lib/RenderFunction.d.ts.map +1 -1
- package/lib/RenderFunction.js.map +1 -1
- package/lib/ResolveMapEntry.d.ts +2 -1
- package/lib/ResolveMapEntry.d.ts.map +1 -1
- package/lib/ResolveMapEntry.js.map +1 -1
- package/lib/Route.d.ts.map +1 -1
- package/lib/Route.js.map +1 -1
- package/lib/Session.d.ts +2 -1
- package/lib/Session.d.ts.map +1 -1
- package/lib/Session.js.map +1 -1
- package/lib/allFeatures.d.ts +8 -0
- package/lib/allFeatures.d.ts.map +1 -1
- package/lib/allFeatures.js +13 -0
- package/lib/allFeatures.js.map +1 -1
- package/package.json +2 -2
- package/schema/AppConfig.json +13 -7
- package/schema/UserConfig.json +13 -7
package/lib/BundleOptions.d.ts
CHANGED
|
@@ -68,5 +68,7 @@ export interface BundleOptions extends Pick<PackageSettings, 'bundler' | 'bundle
|
|
|
68
68
|
* to ensure all imports use the same version when bundling inlined dependencies.
|
|
69
69
|
*/
|
|
70
70
|
dedupeAliases?: Record<string, string>;
|
|
71
|
+
/** If true, enables Hot Module Replacement (HMR) for the bundle. */
|
|
72
|
+
hmr?: boolean;
|
|
71
73
|
}
|
|
72
74
|
//# sourceMappingURL=BundleOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BundleOptions.d.ts","sourceRoot":"","sources":["../src/BundleOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"BundleOptions.d.ts","sourceRoot":"","sources":["../src/BundleOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,eAAe,EACb,SAAS,GACT,gBAAgB,GAChB,gBAAgB,GAChB,wBAAwB,GACxB,qBAAqB,GACrB,sBAAsB,CACzB;IACC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;;;;;;;OAYG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEhC;;;;;;OAMG;IACH,iBAAiB,EAAE,iBAAiB,CAAC;IAErC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEvC,oEAAoE;IACpE,GAAG,CAAC,EAAE,OAAO,CAAC;CACf"}
|
package/lib/BundleOptions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BundleOptions.js","sourceRoot":"","sources":["../src/BundleOptions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PackageSettings } from './PackageSettings.js';\nimport type { TargetEnvironment } from './TargetEnvironment.js';\n\n/**\n * Options for creating bundles with a bundler plugin.\n */\nexport interface BundleOptions
|
|
1
|
+
{"version":3,"file":"BundleOptions.js","sourceRoot":"","sources":["../src/BundleOptions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PackageSettings } from './PackageSettings.js';\nimport type { TargetEnvironment } from './TargetEnvironment.js';\n\n/**\n * Options for creating bundles with a bundler plugin.\n */\nexport interface BundleOptions extends Pick<\n PackageSettings,\n | 'bundler'\n | 'bundlerOptions'\n | 'dynamicImports'\n | 'ignoredBundlerWarnings'\n | 'bundlerCapabilities'\n | 'unsafeCjsExportNames'\n> {\n /**\n * Original (not transformed) name of the package being bundled.\n */\n packageName: string;\n\n /**\n * The absolute input path for the entry points.\n */\n inputPath: string;\n\n /**\n * Mapping from output file to source file paths.\n * - Key is the output file path, relative to `outputPath` (with forward slashes and leading `./`)\n * and *without* the extension (unless it's non-JS).\n * - Value is the input file path, relative to `inputPath` (with forward slashes and leading `./`)\n * including the extension.\n *\n * For example:\n * `{ './lib/index': './src/index.js' }`\n *\n * Note: Non-javascript extensions, such as `.css` or `.scss`, will not be stripped from the key.\n * This is to ensure the bundler keeps the original extension intact and adds `.js` after it.\n */\n entries: Record<string, string>;\n\n /**\n * Target environment for the bundle.\n *\n * WARNING: `'node'` environment is a work in progress and may not be fully supported.\n * Also, currently it causes package to be bundled in **production mode** since import maps\n * aren't supported in Node yet.\n */\n targetEnvironment: TargetEnvironment;\n\n /**\n * The output path for bundled files. This can be either relative to `inputPath`, or absolute.\n * Defaults to `inputPath`.\n */\n outputPath?: string;\n\n /**\n * List of dependencies which should be externalized.\n */\n external?: string[];\n\n /**\n * List of dependencies which should be inlined.\n */\n inlined?: string[];\n\n /**\n * If true, minify the output.\n */\n minify?: boolean;\n\n /**\n * If true, will generate sourcemap files for the output. This has a tax on performance.\n * Defaults to true unless the `disableSourceMaps` feature is enabled.\n * (To set a bundler-specific sourcemap option, use `bundlerOptions`.)\n */\n sourcemap?: boolean;\n\n /**\n * If true, the bundler is expected to stay alive and take requests to rebuild on demand. File watching is\n * managed at a higher layer. When we no longer care about incremental bundling, the bundler will receive a call\n * to `dispose` if returned.\n */\n incremental?: boolean;\n\n /**\n * Bundler aliases for deduped packages. Maps package names to their resolved paths\n * to ensure all imports use the same version when bundling inlined dependencies.\n */\n dedupeAliases?: Record<string, string>;\n\n /** If true, enables Hot Module Replacement (HMR) for the bundle. */\n hmr?: boolean;\n}\n"]}
|
|
@@ -2,25 +2,25 @@ export interface ModuleResolutionConfig {
|
|
|
2
2
|
/**
|
|
3
3
|
* Folder names or directory paths where to find modules.
|
|
4
4
|
*
|
|
5
|
-
* **Note: This completely replaces the default node_modules lookup.
|
|
6
|
-
* To keep node_modules
|
|
5
|
+
* **Note: This completely replaces the default `node_modules` lookup.
|
|
6
|
+
* To keep `node_modules`, include it explicitly: `["node_modules", "{configDir}/store"]`**
|
|
7
7
|
*
|
|
8
8
|
* Absolute and relative paths can both be used, but be aware that they will behave a bit differently.
|
|
9
9
|
*
|
|
10
|
-
* A relative path will be scanned similarly to how Node scans for node_modules
|
|
10
|
+
* A relative path will be scanned similarly to how Node scans for `node_modules`, by looking through the
|
|
11
|
+
* current directory as well as its ancestors (i.e. `./node_modules`, `../node_modules`, and on).
|
|
11
12
|
*
|
|
12
13
|
* With an absolute path, it will only search in the given directory.
|
|
13
14
|
*
|
|
14
15
|
* Template variables:
|
|
15
16
|
* - `{configDir}` can be used to build paths relative to the configuration directory.
|
|
16
|
-
* For example: `{configDir}/store` resolves to an absolute path pointing to the
|
|
17
|
+
* For example: `{configDir}/store` resolves to an absolute path pointing to the `store`
|
|
17
18
|
* subdirectory within the directory containing the configuration file.
|
|
18
19
|
*
|
|
19
20
|
* Restrictions:
|
|
20
21
|
* - The `{configDir}` template must appear at the beginning of the path
|
|
21
|
-
* - Only one `{configDir}` template is allowed per path
|
|
22
|
-
* - Invalid: `some/path/{configDir}` or `{configDir}/{configDir}/nested`
|
|
23
22
|
* - Valid: `{configDir}/store`, `{configDir}/components`
|
|
23
|
+
* - Invalid: `some/path/{configDir}` or `{configDir}/{configDir}/nested`
|
|
24
24
|
*/
|
|
25
25
|
modules?: string[];
|
|
26
26
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModuleResolutionConfig.js","sourceRoot":"","sources":["../src/ModuleResolutionConfig.ts"],"names":[],"mappings":"","sourcesContent":["export interface ModuleResolutionConfig {\n /**\n * Folder names or directory paths where to find modules.\n *\n * **Note: This completely replaces the default node_modules lookup.\n * To keep node_modules
|
|
1
|
+
{"version":3,"file":"ModuleResolutionConfig.js","sourceRoot":"","sources":["../src/ModuleResolutionConfig.ts"],"names":[],"mappings":"","sourcesContent":["export interface ModuleResolutionConfig {\n /**\n * Folder names or directory paths where to find modules.\n *\n * **Note: This completely replaces the default `node_modules` lookup.\n * To keep `node_modules`, include it explicitly: `[\"node_modules\", \"{configDir}/store\"]`**\n *\n * Absolute and relative paths can both be used, but be aware that they will behave a bit differently.\n *\n * A relative path will be scanned similarly to how Node scans for `node_modules`, by looking through the\n * current directory as well as its ancestors (i.e. `./node_modules`, `../node_modules`, and on).\n *\n * With an absolute path, it will only search in the given directory.\n *\n * Template variables:\n * - `{configDir}` can be used to build paths relative to the configuration directory.\n * For example: `{configDir}/store` resolves to an absolute path pointing to the `store`\n * subdirectory within the directory containing the configuration file.\n *\n * Restrictions:\n * - The `{configDir}` template must appear at the beginning of the path\n * - Valid: `{configDir}/store`, `{configDir}/components`\n * - Invalid: `some/path/{configDir}` or `{configDir}/{configDir}/nested`\n */\n modules?: string[];\n\n /**\n * Array of module names to enforce consistent resolution using the application's module resolution strategy.\n *\n * Prevents multiple instances of the same package when dealing with duplicate dependencies\n * that may arise from package hoisting or linked dependencies in monorepo setups.\n *\n * Example: [\"react\", \"lodash\"] ensures these packages are always resolved using\n * the same resolution path that the application would normally use.\n *\n * This settings will be ignored for inlinedDependencies.\n */\n dedupe?: string[];\n}\n"]}
|
package/lib/PackageJson.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageJson.d.ts","sourceRoot":"","sources":["../src/PackageJson.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;;;;GAKG;AAOH,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAYhB,2IAA2I;IAC3I,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAE7B,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAC;IAchB,mGAAmG;IACnG,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC;IAkB3D;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAQ7B;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,uBAAuB,CAAC;IAEvC;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;IAE3C,sDAAsD;IACtD,oBAAoB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,IAAI,CAAA;KAAE,CAAC,CAAC,CAAC;IAEnE;;;;;OAKG;IACH,eAAe,CAAC,EAAE,uBAAuB,CAAC;IAE1C;;;OAGG;IACH,oBAAoB,CAAC,EAAE,uBAAuB,CAAC;IAE/C,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,MAA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AC,uBAAuB,CAAC,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,CAAC,eAAe,EAAE,MAAM,GAAG,uBAAuB,CAAC;CACpD,CAAC;AAEF,gHAAgH;AAChH,MAAM,MAAM,kBAAkB,GAAG,uBAAuB,GAAG,wBAAwB,GAAG,kBAAkB,EAAE,CAAC;AAE3G;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,IAAI,EAAE,MAAM,GACT,MAAM,GACN,IAAI,GACJ;QACE,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG;YAAE,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;KAChE,CAAC;CACP,CAAC;AAOF,mDAAmD;AACnD,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC"}
|
package/lib/PackageJson.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageJson.js","sourceRoot":"","sources":["../src/PackageJson.ts"],"names":[],"mappings":"","sourcesContent":["import type { BundleMode } from './BundleMode.js';\nimport type { PackageSettings } from './PackageSettings.js';\n\n/**\n * Types for the `package.json` file, derived from [`type-fest`](https://github.com/sindresorhus/type-fest/blob/main/source/package-json.d.ts).\n *\n * This version intentionally does not permit arbitrary keys, and only includes properties that are\n * used by Cloudpack. Additional properties can be added as needed.\n */\n//\n// NOTE: Some of the known properties not currently used by Cloudpack are commented out, but\n// preserved in the file for future typing reference.\n//\n// If adding or uncommenting a property, you'll also need to update PackageDefinitions copyPackageJsonKeys.\n//\nexport interface PackageJson {\n /**\n * The name of the package. This is always set when reading via `PackageDefinitions`, but might be\n * missing if reading package.json directly.\n */\n name: string;\n\n /** A description of the package. */\n description?: string;\n\n /**\n * Package semantic version. This is always set when reading via `PackageDefinitions`, but might be\n * missing if reading package.json directly.\n */\n version: string;\n\n // /** The files included in the package. */\n // files?: string[];\n\n // /** Indicates the structure of the package. https://docs.npmjs.com/cli/v9/configuring-npm/package-json#directories */\n // directories?: {\n // [directoryType: string]: string | undefined;\n // bin?: string;\n // lib?: string;\n // };\n\n /** Resolution algorithm for importing \".js\" files from the package's scope. https://nodejs.org/api/esm.html#esm_package_json_type_field */\n type?: 'module' | 'commonjs';\n\n /** The module ID that is the primary entry point to the package. */\n main?: string;\n\n /** An ECMAScript module ID that is the primary entry point to the package. */\n module?: string;\n\n // /** The executable file(s) for this package. */\n // bin?: string | Partial<Record<string, string>>;\n\n // /** A module ID with untranspiled code that is the primary entry point to the package. */\n // esnext?:\n // | string\n // | {\n // [moduleName: string]: string | undefined;\n // main?: string;\n // browser?: string;\n // };\n\n /** A hint to JavaScript bundlers or component tools when packaging modules for client side use. */\n browser?: string | Partial<Record<string, string | false>>;\n\n // /**\n // * Denote which files in the package have side effects and may not be pruned by bundlers, even if unused.\n // * If a boolean, applies to all files in the package. `false` indicates there are no side effects.\n // * https://webpack.js.org/guides/tree-shaking/\n // */\n // sideEffects?: boolean | string[];\n\n // /** Location of the bundled TypeScript declaration file. */\n // types?: string;\n\n // /** Location of the bundled TypeScript declaration file. Alias of `types`. */\n // typings?: string;\n\n // /** Location of TypeScript declaration files for different TypeScript versions. */\n // typesVersions?: Partial<Record<string, Partial<Record<string, string[]>>>>;\n\n /**\n * Subpath exports to define entry points of the package. https://nodejs.org/api/packages.html#subpath-exports\n *\n * In most of Cloudpack, this will be the computed exports map from `createPackageSettingsTransform`.\n * This may incorporate user settings, generated settings, and either the original exports\n * (if present) or exports calculated from other entry points.\n *\n * (Exception: this will be the original exports when running tests within `package-utilities`\n * or with manually-constructed `PackageDefinitions`, instead of `createPackageDefinitions`.)\n */\n exports?: PackageJsonExports;\n\n // /**\n // * Subpath imports to define internal package import maps that only apply to import specifiers from\n // * within the package itself. https://nodejs.org/api/packages.html#subpath-imports\n // */\n // imports?: PackageJsonImports;\n\n /**\n * Dependencies that will be installed when the package is consumed.\n *\n * When read via `PackageDefinitions`, any `@types` will be removed from this list.\n * In most of Cloudpack, this is also updated by `createPackageSettingsTransform` to incorporate\n * included and excluded dependencies from the user and generated configs.\n */\n dependencies?: PackageJsonDependencies;\n\n /**\n * Dependencies that must be installed alongside this package when consumed.\n *\n * When read via `PackageDefinitions`, any `@types` will be removed from this list.\n * In most of Cloudpack, this is also updated by `createPackageSettingsTransform` to incorporate\n * excluded dependencies from the user and generated configs.\n */\n peerDependencies?: PackageJsonDependencies;\n\n /** Indicates which peer dependencies are optional. */\n peerDependenciesMeta?: Partial<Record<string, { optional: true }>>;\n\n /**\n * Dependencies for local development only.\n *\n * When read via `PackageDefinitions`, any `@types` will be removed from this list.\n * In most of Cloudpack, this may also be updated by `createPackageSettingsTransform`.\n */\n devDependencies?: PackageJsonDependencies;\n\n /**\n * Optional dependencies.\n * When read via `PackageDefinitions`, any `@types` will be removed from this list.\n */\n optionalDependencies?: PackageJsonDependencies;\n\n bundledDependencies?: PackageJsonDependencies | string[];\n bundleDependencies?: PackageJsonDependencies | string[];\n\n resolutions?: PackageJsonDependencies;\n\n /** Required engine versions for running this package. */\n engines?: {\n [engine in LiteralOrString<'node'>]?: string;\n };\n\n // /** If `true`, this package cannot be published. */\n // private?: boolean;\n\n // /** Configuration for npm or yarn workspaces. */\n // workspaces?:\n // | string[]\n // | {\n // /** An array of workspace pattern strings which contain the workspace packages. */\n // packages?: string[];\n // /** Prevent hoisting of these dependencies within the workspace (yarn only). https://classic.yarnpkg.com/blog/2018/02/15/nohoist/) */\n // nohoist?: string[];\n // };\n\n /**\n * Cached merged package settings (user and generated) for this package (excluding properties\n * that are fully handled by `createPackageSettingsTransform`), plus other info.\n *\n * This can be used while bundling for cached access to package settings.\n * It's also used for calculating the hash in `getPackageHashEntries`.\n *\n * The package settings properties cached here should NOT be used during init's analysis of the\n * bundle result, since they might be outdated due to pending generated settings updates.\n * (If a package is re-enqueued after analysis due to generated settings updates, we refresh the\n * definition, which updates these cached setting. So it's safe to use on the next bundle attempt.)\n */\n cloudpack?: PackageJsonCloudpackMeta;\n}\n\n/**\n * Cached merged package settings (user and generated) for this package (excluding properties\n * that are fully handled by `createPackageSettingsTransform`), plus other info.\n *\n * See `PackageJson.cloudpack` for details of how this is set and when it's safe to use.\n */\nexport interface PackageJsonCloudpackMeta\n extends Omit<\n PackageSettings,\n | 'match'\n | 'exports'\n | 'includedDependencies'\n | 'excludedDependencies'\n // this is deprecated\n | 'bundlerType'\n > {\n /** Controls how the package is bundled. */\n mode: BundleMode;\n\n /**\n * If the package manager is yarn berry (v2+) and the package has been patched with `yarn patch`,\n * this is the path to the patch file relative to the project root (set by `getNonSemverTransform`).\n */\n patchFilePath?: string;\n}\n\n/**\n * Union type which has intellisense for specific keys but also allows arbitrary strings.\n * This is a workaround for a [TypeScript issue](https://github.com/Microsoft/TypeScript/issues/29729)\n */\nexport type LiteralOrString<LiteralType extends string> = LiteralType | (string & Record<never, never>);\n\n/** Conditions which provide a way to resolve a package entry point based on the environment. */\nexport type PackageJsonExportCondition = LiteralOrString<\n | 'browser'\n | 'default'\n | 'deno'\n | 'electron'\n | 'import'\n | 'module'\n | 'node-addons'\n | 'node'\n | 'react-native'\n | 'require'\n>;\n\n/**\n * The value of an `PackageJson.exports` object key. Note at the root of the object, keys can be represented\n * either by a condition, or a `string` to provide import paths (such as \"./foo\"). At subsequent levels\n * within the object, only conditions (string which don't start with \".\") can be used as keys.\n */\nexport type PackageJsonExportsValue =\n | null\n | string\n | { [condition in PackageJsonExportCondition]?: PackageJsonExportsValue }\n | Array<PackageJsonExportsValue>;\n\n/**\n * Definition of the root exports object. Keys can be either conditions or import paths.\n */\nexport type PackageJsonExportsObject = {\n [pathOrCondition: string]: PackageJsonExportsValue;\n};\n\n/** Entry points of a package, optionally with conditions and subpath exports. Used as `PackageJson.exports`. */\nexport type PackageJsonExports = PackageJsonExportsValue | PackageJsonExportsObject | PackageJsonExports[];\n\n/**\n * Mapping from import path to either file path, or a nested object of conditions to file paths\n * (occasionally with two levels of conditions). This is the format used for generated exports maps.\n */\nexport type GeneratedExports = {\n [path: string]:\n | string\n | null\n | {\n [condition: string]: string | { [condition2: string]: string };\n };\n};\n\n// /** Import map entries of a module, optionally with conditions. */\n// export type PackageJsonImports = {\n// [key: `#${string}`]: string | { [key in PackageJsonExportCondition]: PackageJsonExports };\n// };\n\n/** Mapping from dependency name to semver spec. */\nexport type PackageJsonDependencies = Partial<Record<string, string>>;\n"]}
|
|
1
|
+
{"version":3,"file":"PackageJson.js","sourceRoot":"","sources":["../src/PackageJson.ts"],"names":[],"mappings":"","sourcesContent":["import type { BundleMode } from './BundleMode.js';\nimport type { PackageSettings } from './PackageSettings.js';\n\n/**\n * Types for the `package.json` file, derived from [`type-fest`](https://github.com/sindresorhus/type-fest/blob/main/source/package-json.d.ts).\n *\n * This version intentionally does not permit arbitrary keys, and only includes properties that are\n * used by Cloudpack. Additional properties can be added as needed.\n */\n//\n// NOTE: Some of the known properties not currently used by Cloudpack are commented out, but\n// preserved in the file for future typing reference.\n//\n// If adding or uncommenting a property, you'll also need to update PackageDefinitions copyPackageJsonKeys.\n//\nexport interface PackageJson {\n /**\n * The name of the package. This is always set when reading via `PackageDefinitions`, but might be\n * missing if reading package.json directly.\n */\n name: string;\n\n /** A description of the package. */\n description?: string;\n\n /**\n * Package semantic version. This is always set when reading via `PackageDefinitions`, but might be\n * missing if reading package.json directly.\n */\n version: string;\n\n // /** The files included in the package. */\n // files?: string[];\n\n // /** Indicates the structure of the package. https://docs.npmjs.com/cli/v9/configuring-npm/package-json#directories */\n // directories?: {\n // [directoryType: string]: string | undefined;\n // bin?: string;\n // lib?: string;\n // };\n\n /** Resolution algorithm for importing \".js\" files from the package's scope. https://nodejs.org/api/esm.html#esm_package_json_type_field */\n type?: 'module' | 'commonjs';\n\n /** The module ID that is the primary entry point to the package. */\n main?: string;\n\n /** An ECMAScript module ID that is the primary entry point to the package. */\n module?: string;\n\n // /** The executable file(s) for this package. */\n // bin?: string | Partial<Record<string, string>>;\n\n // /** A module ID with untranspiled code that is the primary entry point to the package. */\n // esnext?:\n // | string\n // | {\n // [moduleName: string]: string | undefined;\n // main?: string;\n // browser?: string;\n // };\n\n /** A hint to JavaScript bundlers or component tools when packaging modules for client side use. */\n browser?: string | Partial<Record<string, string | false>>;\n\n // /**\n // * Denote which files in the package have side effects and may not be pruned by bundlers, even if unused.\n // * If a boolean, applies to all files in the package. `false` indicates there are no side effects.\n // * https://webpack.js.org/guides/tree-shaking/\n // */\n // sideEffects?: boolean | string[];\n\n // /** Location of the bundled TypeScript declaration file. */\n // types?: string;\n\n // /** Location of the bundled TypeScript declaration file. Alias of `types`. */\n // typings?: string;\n\n // /** Location of TypeScript declaration files for different TypeScript versions. */\n // typesVersions?: Partial<Record<string, Partial<Record<string, string[]>>>>;\n\n /**\n * Subpath exports to define entry points of the package. https://nodejs.org/api/packages.html#subpath-exports\n *\n * In most of Cloudpack, this will be the computed exports map from `createPackageSettingsTransform`.\n * This may incorporate user settings, generated settings, and either the original exports\n * (if present) or exports calculated from other entry points.\n *\n * (Exception: this will be the original exports when running tests within `package-utilities`\n * or with manually-constructed `PackageDefinitions`, instead of `createPackageDefinitions`.)\n */\n exports?: PackageJsonExports;\n\n // /**\n // * Subpath imports to define internal package import maps that only apply to import specifiers from\n // * within the package itself. https://nodejs.org/api/packages.html#subpath-imports\n // */\n // imports?: PackageJsonImports;\n\n /**\n * Dependencies that will be installed when the package is consumed.\n *\n * When read via `PackageDefinitions`, any `@types` will be removed from this list.\n * In most of Cloudpack, this is also updated by `createPackageSettingsTransform` to incorporate\n * included and excluded dependencies from the user and generated configs.\n */\n dependencies?: PackageJsonDependencies;\n\n /**\n * Dependencies that must be installed alongside this package when consumed.\n *\n * When read via `PackageDefinitions`, any `@types` will be removed from this list.\n * In most of Cloudpack, this is also updated by `createPackageSettingsTransform` to incorporate\n * excluded dependencies from the user and generated configs.\n */\n peerDependencies?: PackageJsonDependencies;\n\n /** Indicates which peer dependencies are optional. */\n peerDependenciesMeta?: Partial<Record<string, { optional: true }>>;\n\n /**\n * Dependencies for local development only.\n *\n * When read via `PackageDefinitions`, any `@types` will be removed from this list.\n * In most of Cloudpack, this may also be updated by `createPackageSettingsTransform`.\n */\n devDependencies?: PackageJsonDependencies;\n\n /**\n * Optional dependencies.\n * When read via `PackageDefinitions`, any `@types` will be removed from this list.\n */\n optionalDependencies?: PackageJsonDependencies;\n\n bundledDependencies?: PackageJsonDependencies | string[];\n bundleDependencies?: PackageJsonDependencies | string[];\n\n resolutions?: PackageJsonDependencies;\n\n /** Required engine versions for running this package. */\n engines?: {\n [engine in LiteralOrString<'node'>]?: string;\n };\n\n // /** If `true`, this package cannot be published. */\n // private?: boolean;\n\n // /** Configuration for npm or yarn workspaces. */\n // workspaces?:\n // | string[]\n // | {\n // /** An array of workspace pattern strings which contain the workspace packages. */\n // packages?: string[];\n // /** Prevent hoisting of these dependencies within the workspace (yarn only). https://classic.yarnpkg.com/blog/2018/02/15/nohoist/) */\n // nohoist?: string[];\n // };\n\n /**\n * Cached merged package settings (user and generated) for this package (excluding properties\n * that are fully handled by `createPackageSettingsTransform`), plus other info.\n *\n * This can be used while bundling for cached access to package settings.\n * It's also used for calculating the hash in `getPackageHashEntries`.\n *\n * The package settings properties cached here should NOT be used during init's analysis of the\n * bundle result, since they might be outdated due to pending generated settings updates.\n * (If a package is re-enqueued after analysis due to generated settings updates, we refresh the\n * definition, which updates these cached setting. So it's safe to use on the next bundle attempt.)\n */\n cloudpack?: PackageJsonCloudpackMeta;\n}\n\n/**\n * Cached merged package settings (user and generated) for this package (excluding properties\n * that are fully handled by `createPackageSettingsTransform`), plus other info.\n *\n * See `PackageJson.cloudpack` for details of how this is set and when it's safe to use.\n */\nexport interface PackageJsonCloudpackMeta extends Omit<\n PackageSettings,\n | 'match'\n | 'exports'\n | 'includedDependencies'\n | 'excludedDependencies'\n // this is deprecated\n | 'bundlerType'\n> {\n /** Controls how the package is bundled. */\n mode: BundleMode;\n\n /**\n * If the package manager is yarn berry (v2+) and the package has been patched with `yarn patch`,\n * this is the path to the patch file relative to the project root (set by `getNonSemverTransform`).\n */\n patchFilePath?: string;\n}\n\n/**\n * Union type which has intellisense for specific keys but also allows arbitrary strings.\n * This is a workaround for a [TypeScript issue](https://github.com/Microsoft/TypeScript/issues/29729)\n */\nexport type LiteralOrString<LiteralType extends string> = LiteralType | (string & Record<never, never>);\n\n/** Conditions which provide a way to resolve a package entry point based on the environment. */\nexport type PackageJsonExportCondition = LiteralOrString<\n | 'browser'\n | 'default'\n | 'deno'\n | 'electron'\n | 'import'\n | 'module'\n | 'node-addons'\n | 'node'\n | 'react-native'\n | 'require'\n>;\n\n/**\n * The value of an `PackageJson.exports` object key. Note at the root of the object, keys can be represented\n * either by a condition, or a `string` to provide import paths (such as \"./foo\"). At subsequent levels\n * within the object, only conditions (string which don't start with \".\") can be used as keys.\n */\nexport type PackageJsonExportsValue =\n | null\n | string\n | { [condition in PackageJsonExportCondition]?: PackageJsonExportsValue }\n | Array<PackageJsonExportsValue>;\n\n/**\n * Definition of the root exports object. Keys can be either conditions or import paths.\n */\nexport type PackageJsonExportsObject = {\n [pathOrCondition: string]: PackageJsonExportsValue;\n};\n\n/** Entry points of a package, optionally with conditions and subpath exports. Used as `PackageJson.exports`. */\nexport type PackageJsonExports = PackageJsonExportsValue | PackageJsonExportsObject | PackageJsonExports[];\n\n/**\n * Mapping from import path to either file path, or a nested object of conditions to file paths\n * (occasionally with two levels of conditions). This is the format used for generated exports maps.\n */\nexport type GeneratedExports = {\n [path: string]:\n | string\n | null\n | {\n [condition: string]: string | { [condition2: string]: string };\n };\n};\n\n// /** Import map entries of a module, optionally with conditions. */\n// export type PackageJsonImports = {\n// [key: `#${string}`]: string | { [key in PackageJsonExportCondition]: PackageJsonExports };\n// };\n\n/** Mapping from dependency name to semver spec. */\nexport type PackageJsonDependencies = Partial<Record<string, string>>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderFunction.d.ts","sourceRoot":"","sources":["../src/RenderFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,qBAAqB,KAAK,OAAO,CAAC,oBAAoB,CAAC,GAAG,oBAAoB,CAAC;AAEtH;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,qCAAqC;IACrC,KAAK,EAAE,aAAa,CAAC;IACrB,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,UAAU,EAAE,WAAW,CAAC;IACxB,0GAA0G;IAC1G,SAAS,EAAE,SAAS,CAAC;IACrB,mGAAmG;IACnG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wGAAwG;IACxG,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,oHAAoH;IACpH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;;;;;OAMG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;;OAIG;IACH,GAAG,EAAE,OAAO,CAAC;IACb;;;;OAIG;IACH,GAAG,EAAE,QAAQ,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"RenderFunction.d.ts","sourceRoot":"","sources":["../src/RenderFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAA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AAM,GAAG,MAAM,CAAC;IAC1B,2FAA2F;IAC3F,UAAU,EAAE,MAAM,CAAC;IACnB,4HAA4H;IAC5H,WAAW,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAEzF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,qBAAqB,EAAE,SAAS,GAAG,KAAK,GAAG,KAAK,CAAC,CAAC;AAEhG;;;;;;;GAOG;AACH,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;AAE5E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAChC,OAAO,EAAE,0BAA0B,KAChC,OAAO,CAAC,yBAAyB,CAAC,GAAG,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderFunction.js","sourceRoot":"","sources":["../src/RenderFunction.ts"],"names":[],"mappings":"","sourcesContent":["import type { Request, Response } from 'express';\nimport type { ImportMap } from './ImportMap.js';\nimport type { PackageJson } from './PackageJson.js';\nimport type { RenderedRoute } from './Route.js';\nimport type { Session } from './Session.js';\n\n/**\n * A custom server render function that can be used to override the default HTML response.\n */\nexport type RenderFunction = (options: RenderFunctionOptions) => Promise<RenderFunctionResult> | RenderFunctionResult;\n\n/**\n * Input for a `serverEntry`/`renderScript` custom server render function.\n */\nexport interface RenderFunctionOptions {\n /**\n * Info about the current app session.\n * @deprecated Use top-level properties instead (see comment on `requestInfo` for reasoning).\n * Please talk to the team if you need a property that isn't listed.\n */\n session: Session;\n /** Path to the root of the app package */\n appPath: string;\n /** Processed route being rendered */\n route: RenderedRoute;\n /** Base URL of the app server, including port */\n baseUrl: string;\n /** `package.json` for the app */\n definition: PackageJson;\n /** Import map that will be used by the app at runtime (will be injected into a returned HTML response) */\n importMap: ImportMap;\n /** URL for the Cloudpack overlay script bundle (will be injected into a returned HTML response) */\n overlayScript?: string;\n /** Additional script bundle URLs from `route.entry` (will be injected into a returned HTML response) */\n entryScripts?: string[];\n /** Inline script tag contents used for Cloudpack initialization (will be injected into a returned HTML response) */\n inlineScripts?: string[];\n /**\n * Subset of properties from the current HTTP request (talk to the team if you need something additional).\n *\n * Previously, we passed the original `Request` object to the render function, but going forward\n * (with the `enableSSR` feature and eventually by default), the renderer will run in a separate\n * process, and `Request`s aren't serializable.\n */\n requestInfo: RequestInfo;\n /**\n * Current request\n * @deprecated Use `requestInfo` instead (see comment there for details).\n * Please talk to the team if you need a property that isn't listed there.\n */\n req: Request;\n /**\n * Current response\n * @deprecated Return properties from the function instead. Please talk to the team if you need\n * to do something that isn't supported by `RenderFunctionResult`.\n */\n res: Response;\n}\n\n/**\n * Subset of properties from the current HTTP request (talk to the team if you need something additional).\n */\nexport interface RequestInfo
|
|
1
|
+
{"version":3,"file":"RenderFunction.js","sourceRoot":"","sources":["../src/RenderFunction.ts"],"names":[],"mappings":"","sourcesContent":["import type { Request, Response } from 'express';\nimport type { ImportMap } from './ImportMap.js';\nimport type { PackageJson } from './PackageJson.js';\nimport type { RenderedRoute } from './Route.js';\nimport type { Session } from './Session.js';\n\n/**\n * A custom server render function that can be used to override the default HTML response.\n */\nexport type RenderFunction = (options: RenderFunctionOptions) => Promise<RenderFunctionResult> | RenderFunctionResult;\n\n/**\n * Input for a `serverEntry`/`renderScript` custom server render function.\n */\nexport interface RenderFunctionOptions {\n /**\n * Info about the current app session.\n * @deprecated Use top-level properties instead (see comment on `requestInfo` for reasoning).\n * Please talk to the team if you need a property that isn't listed.\n */\n session: Session;\n /** Path to the root of the app package */\n appPath: string;\n /** Processed route being rendered */\n route: RenderedRoute;\n /** Base URL of the app server, including port */\n baseUrl: string;\n /** `package.json` for the app */\n definition: PackageJson;\n /** Import map that will be used by the app at runtime (will be injected into a returned HTML response) */\n importMap: ImportMap;\n /** URL for the Cloudpack overlay script bundle (will be injected into a returned HTML response) */\n overlayScript?: string;\n /** Additional script bundle URLs from `route.entry` (will be injected into a returned HTML response) */\n entryScripts?: string[];\n /** Inline script tag contents used for Cloudpack initialization (will be injected into a returned HTML response) */\n inlineScripts?: string[];\n /**\n * Subset of properties from the current HTTP request (talk to the team if you need something additional).\n *\n * Previously, we passed the original `Request` object to the render function, but going forward\n * (with the `enableSSR` feature and eventually by default), the renderer will run in a separate\n * process, and `Request`s aren't serializable.\n */\n requestInfo: RequestInfo;\n /**\n * Current request\n * @deprecated Use `requestInfo` instead (see comment there for details).\n * Please talk to the team if you need a property that isn't listed there.\n */\n req: Request;\n /**\n * Current response\n * @deprecated Return properties from the function instead. Please talk to the team if you need\n * to do something that isn't supported by `RenderFunctionResult`.\n */\n res: Response;\n}\n\n/**\n * Subset of properties from the current HTTP request (talk to the team if you need something additional).\n */\nexport interface RequestInfo extends Pick<\n Request,\n 'url' | 'hostname' | 'headers' | 'originalUrl' | 'params' | 'query'\n> {\n /** Whether this is an encrypted connection per `req.socket.encrypted` */\n isEncrypted: boolean;\n}\n\n/**\n * The complete expected result of the `serverEntry`/`renderScript` custom server render function.\n */\nexport interface ExpandedRenderFunctionResult {\n /**\n * Response body. If non-HTML, `contentType` must be set.\n * `content` is required except for status codes such as 304 that don't have a body.\n * (Support for other value types could be added in the future if needed.)\n */\n content?: string | object;\n /** Standard HTTP status code - https://developer.mozilla.org/en-US/docs/Web/HTTP/Status */\n statusCode: number;\n /** MIME type for the response - https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types */\n contentType: string;\n /** Extra headers to include in the response */\n headers?: Record<string, string>;\n /**\n * For HTML responses in advanced scenarios only: set to `false` to prevent Cloudpack from\n * injecting `entry` scripts, default scripts, or the import map into the returned content.\n * If this is `false`, it's assumed you've manually handled injecting any necessary scripts\n * from the passed options.\n * @default true\n */\n injectScripts?: boolean;\n}\n\n/**\n * The expected result of the `serverEntry`/`renderScript` custom server render function.\n *\n * - If a string, it's assumed to be the HTML content.\n * - If an object and the `content` is non-HTML, `contentType` must be set.\n * `content` is required except for status codes such as 304 that don't have a body.\n * - (Returning `null` is deprecated.)\n */\nexport type RenderFunctionResult = string | null | Partial<ExpandedRenderFunctionResult>;\n\n/**\n * `serverEntry` function options with `enableSSR` feature on.\n */\nexport type ServerEntryFunctionOptions = Omit<RenderFunctionOptions, 'session' | 'req' | 'res'>;\n\n/**\n * `serverEntry` function result with `enableSSR` feature on.\n * Right now this can return the same values, except for `null` since that indicates the renderer\n * fully handled the request, and the worker-based renderer can't do that because it doesn't have\n * access to the response object.\n *\n * Please talk to the team if you need additional properties or other custom response behavior.\n */\nexport type ServerEntryFunctionResult = Exclude<RenderFunctionResult, null>;\n\n/**\n * `serverEntry` function with `enableSSR` feature on.\n */\nexport type ServerEntryFunction = (\n options: ServerEntryFunctionOptions,\n) => Promise<ServerEntryFunctionResult> | ServerEntryFunctionResult;\n"]}
|
package/lib/ResolveMapEntry.d.ts
CHANGED
|
@@ -23,7 +23,8 @@ export type ResolveMapEntry = {
|
|
|
23
23
|
* mapped to the transformed version (e.g. `0.0.0-npm-foo-1-0-0`).
|
|
24
24
|
*
|
|
25
25
|
* If the session (or API context) containing this resolve map was created with `skipResolveDependencies`,
|
|
26
|
-
* this will be an empty object.
|
|
26
|
+
* this will be an empty object. With `onlyResolveDependencies`/`onlyInlinedDependencies`, it will only
|
|
27
|
+
* contain those dependencies.
|
|
27
28
|
*/
|
|
28
29
|
dependencies: Record<string, string>;
|
|
29
30
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResolveMapEntry.d.ts","sourceRoot":"","sources":["../src/ResolveMapEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IAEb
|
|
1
|
+
{"version":3,"file":"ResolveMapEntry.d.ts","sourceRoot":"","sources":["../src/ResolveMapEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;;;OASG;IACH,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAErC;;;;;;;;;OASG;IACH,UAAU,EAAE,MAAM,CAAC,GAAG,MAAM,IAAI,MAAM,EAAE,EAAE,MAAM,CAAC,CAAC;IAElD;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE;QACf,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAAC;KACpC,CAAC;CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResolveMapEntry.js","sourceRoot":"","sources":["../src/ResolveMapEntry.ts"],"names":[],"mappings":"","sourcesContent":["export type ResolveMapEntry = {\n /**\n * Package name.\n *\n * If the package was pulled in as a renamed non-semver dep, this will be the name specified in\n * the parent's dependencies (not the actual name).\n */\n name: string;\n\n /**\n * Resolved/installed package version. For a linked internal package, this will end in `-linked`.\n * (The docs for `isExternal` explain what \"internal\" means.)\n *\n * If the package was pulled in as a non-semver dep, this will be the transformed version\n * (e.g. `0.0.0-npm-foo-1-0-0`) based on the parent's dependencies.\n */\n version: string;\n\n /** Path to the resolved/installed package. */\n path: string;\n\n /**\n * Map from dependency name to resolved/installed version.\n *\n * For any non-semver deps, the key (name) is as specified in package.json dependencies,\n * mapped to the transformed version (e.g. `0.0.0-npm-foo-1-0-0`).\n *\n * If the session (or API context) containing this resolve map was created with `skipResolveDependencies`,\n * this will be an empty object.\n */\n dependencies: Record<string, string>;\n\n /**\n * Map from requesting/parent package name `@` the actual version of that package to\n * the original semver range of this package that it requested.\n *\n * Example: if this entry is for package `bar`, and `foo@1.0.0` depends on `\"bar\": \"^2.0.0\"`,\n * this will be `{ \"foo@1.0.0\": \"^2.0.0\" }`.\n *\n * If the parent package was pulled in by its parent (the grandparent) as a non-semver dep,\n * the key will use the name as specified by the grandparent and the transformed version.\n */\n requiredBy: Record<`${string}@${string}`, string>;\n\n /**\n * A package is considered \"external\" if it was installed from a package manager (its realpath\n * contains `node_modules`). This is the opposite of \"internal\", which means that the package\n * is defined in a local folder/repo.\n */\n isExternal?: boolean;\n\n /**\n * Whether this package is linked **AND** is internal to its actual folder/repo.\n * (The docs for `isExternal` explain what \"internal\" means.)\n */\n isLinked?: boolean;\n\n /**\n * Additional installed versions of this package, which are required per semver by some other\n * package in the map.\n *\n * For any version that was pulled in as a non-semver dep, the key will be the transformed\n * version (e.g. `0.0.0-npm-foo-1-0-0`).\n */\n scopedVersions?: {\n [version: string]: ResolveMapEntry;\n };\n};\n"]}
|
|
1
|
+
{"version":3,"file":"ResolveMapEntry.js","sourceRoot":"","sources":["../src/ResolveMapEntry.ts"],"names":[],"mappings":"","sourcesContent":["export type ResolveMapEntry = {\n /**\n * Package name.\n *\n * If the package was pulled in as a renamed non-semver dep, this will be the name specified in\n * the parent's dependencies (not the actual name).\n */\n name: string;\n\n /**\n * Resolved/installed package version. For a linked internal package, this will end in `-linked`.\n * (The docs for `isExternal` explain what \"internal\" means.)\n *\n * If the package was pulled in as a non-semver dep, this will be the transformed version\n * (e.g. `0.0.0-npm-foo-1-0-0`) based on the parent's dependencies.\n */\n version: string;\n\n /** Path to the resolved/installed package. */\n path: string;\n\n /**\n * Map from dependency name to resolved/installed version.\n *\n * For any non-semver deps, the key (name) is as specified in package.json dependencies,\n * mapped to the transformed version (e.g. `0.0.0-npm-foo-1-0-0`).\n *\n * If the session (or API context) containing this resolve map was created with `skipResolveDependencies`,\n * this will be an empty object. With `onlyResolveDependencies`/`onlyInlinedDependencies`, it will only\n * contain those dependencies.\n */\n dependencies: Record<string, string>;\n\n /**\n * Map from requesting/parent package name `@` the actual version of that package to\n * the original semver range of this package that it requested.\n *\n * Example: if this entry is for package `bar`, and `foo@1.0.0` depends on `\"bar\": \"^2.0.0\"`,\n * this will be `{ \"foo@1.0.0\": \"^2.0.0\" }`.\n *\n * If the parent package was pulled in by its parent (the grandparent) as a non-semver dep,\n * the key will use the name as specified by the grandparent and the transformed version.\n */\n requiredBy: Record<`${string}@${string}`, string>;\n\n /**\n * A package is considered \"external\" if it was installed from a package manager (its realpath\n * contains `node_modules`). This is the opposite of \"internal\", which means that the package\n * is defined in a local folder/repo.\n */\n isExternal?: boolean;\n\n /**\n * Whether this package is linked **AND** is internal to its actual folder/repo.\n * (The docs for `isExternal` explain what \"internal\" means.)\n */\n isLinked?: boolean;\n\n /**\n * Additional installed versions of this package, which are required per semver by some other\n * package in the map.\n *\n * For any version that was pulled in as a non-semver dep, the key will be the transformed\n * version (e.g. `0.0.0-npm-foo-1-0-0`).\n */\n scopedVersions?: {\n [version: string]: ResolveMapEntry;\n };\n};\n"]}
|
package/lib/Route.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Route.d.ts","sourceRoot":"","sources":["../src/Route.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpE,MAAM,WAAW,kBAAkB;IACjC;;;;;;;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B,GACtB,uBAAuB,GACvB,WAAW,GACX,aAAa,GACb,UAAU,CAAC;AAEf;;GAEG;AAEH,MAAM,MAAM,KAAK,GAAG,aAAa,GAAG,cAAc,GAAG,WAAW,GAAG,aAAa,GAAG,UAAU,CAAC;AAE9F;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,cAAc,GAAG,KAAK,IAAI,WAAW,CAEjF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,cAAc,CAEtE;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,cAAc,GAAG,KAAK,IAAI,uBAAuB,CAEjG;AAKD,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,aAAa,CAOpE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,cAAc,GAAG,KAAK,IAAI,sBAAsB,CAE/F;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,cAAc,GAAG,KAAK,IAAI,aAAa,CAErF;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,cAAc,GAAG,KAAK,IAAI,UAAU,CAE/E"}
|
package/lib/Route.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Route.js","sourceRoot":"","sources":["../src/Route.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Route.js","sourceRoot":"","sources":["../src/Route.ts"],"names":[],"mappings":"AA4JA;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,KAA6B;IACzD,OAAO,YAAY,IAAI,KAAK,CAAC;AAC/B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAY;IAC3C,OAAO,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,WAAW,CAAC;AACvD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,KAAqB;IAC7D,OAAO,gBAAgB,CAAC,KAAc,CAAC,CAAC;AAC1C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,KAAY;IAC1C,MAAM,kBAAkB,GAAG,KAAsB,CAAC;IAClD,OAAO,CACL,CAAC,gBAAgB,CAAC,KAAK,CAAC;QACxB,6CAA6C;QAC7C,CAAC,CAAC,CAAC,kBAAkB,CAAC,YAAY,IAAI,kBAAkB,CAAC,KAAK,IAAI,kBAAkB,CAAC,WAAW,CAAC,CAClG,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,wBAAwB,CAAC,KAAqB;IAC5D,OAAO,eAAe,CAAC,KAAc,CAAC,IAAI,aAAa,IAAI,KAAK,CAAC;AACnE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,KAA6B;IAC3D,OAAO,YAAY,IAAI,KAAK,CAAC;AAC/B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,KAA6B;IACxD,OAAO,SAAS,IAAI,KAAK,CAAC;AAC5B,CAAC","sourcesContent":["import type { ExpandedSourcePath } from './ExpandedSourcePath.js';\n\n/**\n * A route match can be a string path or an object with a path and domain.\n */\nexport type RouteMatch = string | { path: string; domain?: string };\n\nexport interface SharedRouteOptions {\n /**\n * The URL path to match. Paths should usually start with a slash, e.g. `'/my-route'`.\n * You can also use wildcards (`*`), e.g. `'/my-route/*'` to match all paths starting with `'/my-route'`.\n *\n * See the [Express docs](https://expressjs.com/en/guide/routing.html#route-paths) for the full\n * supported routing syntax.\n *\n * If you need a route to match on a specific domain, you can pass an object (path, domain) in where\n * the domain is a string which can have wildcards (`*`). e.g. `'word.*'` will match `word.com`, `word.net`, etc.\n *\n * Use an array to handle multiple paths with the same route handler.\n */\n match: RouteMatch | RouteMatch[];\n}\n\n/**\n * A server-rendered route with optional shorthand `entry` info (as specified in `AppConfig`/`cloudpack.config.json`).\n * The route is rendered by a custom server script in Cloudpack.\n */\nexport interface ShorthandRenderedRoute extends SharedRouteOptions {\n /**\n * Path to a .js or .html file (relative to the app path) for rendering the route.\n *\n * If a .js file, it must export a default function implementing `RenderFunction` from `@ms-cloudpack/common-types`.\n * @deprecated Use `serverEntry` instead. (Please talk to the team if you have a scenario where\n * bundling the script causes a problem.)\n */\n renderScript?: string;\n\n /**\n * The key in the exports map which represents the entry point app script for this route.\n * @deprecated Use `entry` instead.\n */\n exportEntry?: string;\n\n /**\n * Additional source file path(s) to bundle and include in the HTML.\n * This **overwrites** any original exports map for the package.\n *\n * Usually this should be an actual source path, though it could also be an exports map key if necessary.\n */\n entry?: string | string[];\n\n /**\n * Path to a TS, JS, or HTML file (relative to the app path) for rendering the route on the server.\n * (Also supports export map keys.) If a JS or TS file, it will be bundled before rendering.\n *\n * If JS or TS, it must export a default function implementing `RenderRouteFunction` defined in\n * `@ms-cloudpack/app-server`.\n */\n serverEntry?: string;\n}\n\n/**\n * A server-rendered route with full `entry` info (used in the processed `CloudpackConfig`).\n * The route is rendered by a custom server script in Cloudpack.\n */\nexport type RenderedRoute = Omit<ShorthandRenderedRoute, 'exportEntry' | 'entry' | 'serverEntry'> & {\n /**\n * The source entry or entries to be included on the page for this route.\n */\n entry?: ExpandedSourcePath[];\n\n /**\n * Path to a TS, JS, or HTML file (relative to the app path) for rendering the route on the server.\n * If a JS or TS file, it will be bundled before rendering.\n *\n * If JS or TS, it must export a default function implementing `RenderRouteFunction` defined in\n * `@ms-cloudpack/app-server`.\n */\n serverEntry?: ExpandedSourcePath;\n};\n\n/**\n * A route with a staticPath property serves static files from the specified path.\n */\nexport interface StaticRoute extends SharedRouteOptions {\n /**\n * The path relative to the app root to static assets.\n */\n staticPath: string;\n}\n\n/**\n * A route that serves a bootstrap script.\n */\nexport interface ShorthandBootstrapRoute\n extends SharedRouteOptions, Pick<ShorthandRenderedRoute, 'entry' | 'serverEntry' | 'exportEntry'> {\n type: 'bootstrap';\n /**\n * Defer execution of scripts until the entry has loaded (default: false).\n */\n deferScripts?: boolean;\n}\n\n/**\n * A route that serves a bootstrap script.\n */\nexport interface BootstrapRoute\n extends Omit<ShorthandBootstrapRoute, 'entry' | 'serverEntry'>, Pick<RenderedRoute, 'entry' | 'serverEntry'> {}\n\n/**\n * A route that redirects to another url.\n */\nexport interface RedirectRoute extends SharedRouteOptions {\n /**\n * The url to redirect to.\n */\n redirectTo: string;\n}\n\n/**\n * A route that proxies requests to another server.\n * This is handled by https://github.com/chimurai/http-proxy-middleware.\n */\nexport interface ProxyRoute extends SharedRouteOptions {\n /**\n * The target host to proxy to. (protocol + host).\n */\n proxyTo: string;\n\n /**\n * For virtual hosted sites.\n */\n changeOrigin?: boolean;\n /**\n * Rewrite target's url path. Object-keys will be used as RegExp to match paths.\n */\n pathRewrite?: Record<string, string>;\n}\n\n/**\n * Route as specified in `AppConfig` (`cloudpack.config.json`).\n */\n// WARNING: Be sure to add new route types to Route as well!\nexport type ShorthandRoute =\n | ShorthandRenderedRoute\n | ShorthandBootstrapRoute\n | StaticRoute\n | RedirectRoute\n | ProxyRoute;\n\n/**\n * Processed route as used in the processed `CloudpackConfig`.\n */\n// WARNING: Be sure to add new route types to ShorthandRoute as well!\nexport type Route = RenderedRoute | BootstrapRoute | StaticRoute | RedirectRoute | ProxyRoute;\n\n/**\n * Type guard to check if a route is a static route.\n */\nexport function isStaticRoute(route: Route | ShorthandRoute): route is StaticRoute {\n return 'staticPath' in route;\n}\n\n/**\n * Type guard to check if a route is a bootstrap route.\n */\nexport function isBootstrapRoute(route: Route): route is BootstrapRoute {\n return 'type' in route && route.type === 'bootstrap';\n}\n\n/**\n * Type guard to check if a route is a shorthand bootstrap route.\n */\nexport function isShorthandBootstrapRoute(route: ShorthandRoute): route is ShorthandBootstrapRoute {\n return isBootstrapRoute(route as Route);\n}\n\n/*\n * Type guard to check if a route is a rendered route.\n */\nexport function isRenderedRoute(route: Route): route is RenderedRoute {\n const maybeRenderedRoute = route as RenderedRoute;\n return (\n !isBootstrapRoute(route) &&\n // eslint-disable-next-line etc/no-deprecated\n !!(maybeRenderedRoute.renderScript || maybeRenderedRoute.entry || maybeRenderedRoute.serverEntry)\n );\n}\n\n/**\n * Type guard to check if a route is a shorthand rendered route.\n */\nexport function isShorthandRenderedRoute(route: ShorthandRoute): route is ShorthandRenderedRoute {\n return isRenderedRoute(route as Route) || 'exportEntry' in route;\n}\n\n/**\n * Type guard to check if a route is a redirect route.\n */\nexport function isRedirectRoute(route: Route | ShorthandRoute): route is RedirectRoute {\n return 'redirectTo' in route;\n}\n\n/**\n * Type guard to check if a route is a proxy route.\n */\nexport function isProxyRoute(route: Route | ShorthandRoute): route is ProxyRoute {\n return 'proxyTo' in route;\n}\n"]}
|
package/lib/Session.d.ts
CHANGED
|
@@ -16,7 +16,8 @@ export interface Session {
|
|
|
16
16
|
* Setting this will clear the `importMap`.
|
|
17
17
|
*
|
|
18
18
|
* NOTE: If the session (or whole API context) was created with `skipResolveDependencies`,
|
|
19
|
-
* this will only contain the entry point package(s).
|
|
19
|
+
* this will only contain the entry point package(s). With `onlyResolveDependencies`/`onlyInlinedDependencies`,
|
|
20
|
+
* it will only contain those dependencies.
|
|
20
21
|
*/
|
|
21
22
|
resolveMap: ResolveMap;
|
|
22
23
|
/**
|
package/lib/Session.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../src/Session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAEpB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;;;;;OAKG;IACH,QAAQ,CAAC,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAEnD;;OAEG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC;QAAE,UAAU,EAAE,UAAU,CAAC;QAAC,WAAW,EAAE,UAAU,EAAE,CAAA;KAAE,CAAC,CAAC;IAEnH;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC;QAAE,UAAU,EAAE,UAAU,CAAC;QAAC,WAAW,EAAE,UAAU,EAAE,CAAA;KAAE,CAAC,CAAC;IAEtH;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B;;;;;;;;OAQG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChD"}
|
package/lib/Session.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Session.js","sourceRoot":"","sources":["../src/Session.ts"],"names":[],"mappings":"","sourcesContent":["import type { ImportMap } from './ImportMap.js';\nimport type { LinkedPath } from './LinkedPath.js';\nimport type { ResolveMap } from './ResolveMap.js';\nimport type { CloudpackConfig } from './CloudpackConfig.js';\n\nexport interface Session {\n /**\n * UUID for the session.\n */\n readonly id: string;\n\n /**\n * The config used by the session.\n */\n config: CloudpackConfig;\n\n /**\n * Used to resolve packages in the dependency graph.\n * Setting this will clear the `importMap`.\n *\n * NOTE: If the session (or whole API context) was created with `skipResolveDependencies`,\n * this will only contain the entry point package(s).\n */\n resolveMap: ResolveMap;\n\n /**\n * Reload sequence to ensure that the client is always up to date with the latest changes.\n * (This is initially sent to the client via `pageSessionContext.currentSequence` and is updated\n * via the `reloadCountSource`. It's read directly, not used as a URL cache breaker.)\n */\n sequence: number;\n\n /**\n * URLs of the active servers hosting this session.\n * Each URL will only be set after the server is started.\n */\n urls: {\n appServer?: string;\n /** If `useSingleWebServer` is enabled, this will be a URL for bundles under the app server. */\n bundleServer?: string;\n apiServer?: string;\n /** Api server urls only used for linking */\n hostApiServer?: string[];\n };\n\n /**\n * Used to force a hard refresh on the client.\n * (Update with `incrementSessionVersion`.)\n */\n readonly sessionVersion: number;\n\n /**\n * Increment the session version to force a hard refresh on the client.\n */\n readonly incrementSessionVersion: () => void;\n\n /**\n * The name of the project folder.\n * Used to differentiate between multiple projects.\n */\n readonly projectName: string;\n\n /**\n * Cache-breaker version of each target (input path).\n * Used to force a client cache refresh on a single target.\n *\n * Update with `incrementTargetVersion`. (This will be empty by default.)\n */\n readonly targetVersions: Readonly<Record<string, number>>;\n\n /**\n * Increments the cache-breaker version for the given target (input path).\n * Used to force a client cache refresh on a single target.\n */\n readonly incrementTargetVersion: (inputPath: string) => void;\n\n /**\n * The current import map **for the browser**.\n * This will only be set in contexts where an import map is needed, such as during `start`.\n */\n importMap: ImportMap | undefined;\n\n /**\n * Cached mapping from absolute package path to all import paths for that package, calculated by\n * `createImportMap`. This is used by `addImportMapHash` to update the import map after bundling.\n * (Caching the import paths is useful for performance, as calculating them can be expensive.)\n * @example '/path/to/foo': `['foo', 'foo/bar']`\n */\n readonly packageImportPaths: Map<string, string[]>;\n\n /**\n * Linked paths that are used to resolve packages from other repos.\n */\n linkedPaths: LinkedPath[];\n\n /**\n * Add the linked path and regenerates the resolve map.\n */\n readonly addLinkedPath: (linkedPath: LinkedPath) => Promise<{ resolveMap: ResolveMap; linkedPaths: LinkedPath[] }>;\n\n /**\n * Remove the linked path and regenerates the resolve map.\n */\n readonly removeLinkedPath: (linkedPath: LinkedPath) => Promise<{ resolveMap: ResolveMap; linkedPaths: LinkedPath[] }>;\n\n /**\n * The path to the cache folder for the session.\n */\n readonly cachePath: string;\n\n /**\n * Cached bundler aliases for deduped packages.\n * Maps package names to their resolved paths to ensure all imports use the same version.\n * Recalculated when resolveMap changes.\n *\n * Note: Using package names (without versions) as keys is safe here because packages in\n * resolve.dedupe are guaranteed to have only one version used throughout the entire app.\n * The dedupe configuration enforces that all imports resolve to a single canonical version.\n */\n readonly dedupeAliases: Record<string, string>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Session.js","sourceRoot":"","sources":["../src/Session.ts"],"names":[],"mappings":"","sourcesContent":["import type { ImportMap } from './ImportMap.js';\nimport type { LinkedPath } from './LinkedPath.js';\nimport type { ResolveMap } from './ResolveMap.js';\nimport type { CloudpackConfig } from './CloudpackConfig.js';\n\nexport interface Session {\n /**\n * UUID for the session.\n */\n readonly id: string;\n\n /**\n * The config used by the session.\n */\n config: CloudpackConfig;\n\n /**\n * Used to resolve packages in the dependency graph.\n * Setting this will clear the `importMap`.\n *\n * NOTE: If the session (or whole API context) was created with `skipResolveDependencies`,\n * this will only contain the entry point package(s). With `onlyResolveDependencies`/`onlyInlinedDependencies`,\n * it will only contain those dependencies.\n */\n resolveMap: ResolveMap;\n\n /**\n * Reload sequence to ensure that the client is always up to date with the latest changes.\n * (This is initially sent to the client via `pageSessionContext.currentSequence` and is updated\n * via the `reloadCountSource`. It's read directly, not used as a URL cache breaker.)\n */\n sequence: number;\n\n /**\n * URLs of the active servers hosting this session.\n * Each URL will only be set after the server is started.\n */\n urls: {\n appServer?: string;\n /** If `useSingleWebServer` is enabled, this will be a URL for bundles under the app server. */\n bundleServer?: string;\n apiServer?: string;\n /** Api server urls only used for linking */\n hostApiServer?: string[];\n };\n\n /**\n * Used to force a hard refresh on the client.\n * (Update with `incrementSessionVersion`.)\n */\n readonly sessionVersion: number;\n\n /**\n * Increment the session version to force a hard refresh on the client.\n */\n readonly incrementSessionVersion: () => void;\n\n /**\n * The name of the project folder.\n * Used to differentiate between multiple projects.\n */\n readonly projectName: string;\n\n /**\n * Cache-breaker version of each target (input path).\n * Used to force a client cache refresh on a single target.\n *\n * Update with `incrementTargetVersion`. (This will be empty by default.)\n */\n readonly targetVersions: Readonly<Record<string, number>>;\n\n /**\n * Increments the cache-breaker version for the given target (input path).\n * Used to force a client cache refresh on a single target.\n */\n readonly incrementTargetVersion: (inputPath: string) => void;\n\n /**\n * The current import map **for the browser**.\n * This will only be set in contexts where an import map is needed, such as during `start`.\n */\n importMap: ImportMap | undefined;\n\n /**\n * Cached mapping from absolute package path to all import paths for that package, calculated by\n * `createImportMap`. This is used by `addImportMapHash` to update the import map after bundling.\n * (Caching the import paths is useful for performance, as calculating them can be expensive.)\n * @example '/path/to/foo': `['foo', 'foo/bar']`\n */\n readonly packageImportPaths: Map<string, string[]>;\n\n /**\n * Linked paths that are used to resolve packages from other repos.\n */\n linkedPaths: LinkedPath[];\n\n /**\n * Add the linked path and regenerates the resolve map.\n */\n readonly addLinkedPath: (linkedPath: LinkedPath) => Promise<{ resolveMap: ResolveMap; linkedPaths: LinkedPath[] }>;\n\n /**\n * Remove the linked path and regenerates the resolve map.\n */\n readonly removeLinkedPath: (linkedPath: LinkedPath) => Promise<{ resolveMap: ResolveMap; linkedPaths: LinkedPath[] }>;\n\n /**\n * The path to the cache folder for the session.\n */\n readonly cachePath: string;\n\n /**\n * Cached bundler aliases for deduped packages.\n * Maps package names to their resolved paths to ensure all imports use the same version.\n * Recalculated when resolveMap changes.\n *\n * Note: Using package names (without versions) as keys is safe here because packages in\n * resolve.dedupe are guaranteed to have only one version used throughout the entire app.\n * The dedupe configuration enforces that all imports resolve to a single canonical version.\n */\n readonly dedupeAliases: Record<string, string>;\n}\n"]}
|
package/lib/allFeatures.d.ts
CHANGED
|
@@ -27,6 +27,12 @@ export declare const allFeatures: {
|
|
|
27
27
|
enableModuleWorkers: Feature;
|
|
28
28
|
/** Enables the use of `@parcel/watcher` for file watching (default: true). */
|
|
29
29
|
enableParcelWatcher: Feature;
|
|
30
|
+
/**
|
|
31
|
+
* Enables import rewriting for workers instead of using es-module-shims.
|
|
32
|
+
* This makes workers compatible with service workers.
|
|
33
|
+
* Requires enableModuleWorkers to be enabled (default: true).
|
|
34
|
+
*/
|
|
35
|
+
rewriteWorkerImports: Feature;
|
|
30
36
|
/**
|
|
31
37
|
* Enables downloading bundles from remote cache instead of bundling.
|
|
32
38
|
*/
|
|
@@ -44,6 +50,8 @@ export declare const allFeatures: {
|
|
|
44
50
|
enqueueDependencies: Feature;
|
|
45
51
|
/** Check for dynamic (async) imports with non-literal paths in bundle output during init. */
|
|
46
52
|
evaluateDynamicImports: Feature;
|
|
53
|
+
/** Hot Module Replacement (opt-in, experimental). */
|
|
54
|
+
hmr: Feature;
|
|
47
55
|
/**
|
|
48
56
|
* Excludes unused dependencies in the generated config during an init run.
|
|
49
57
|
* This helps trim the dependency graph, reduce the import map, and speed up performance.
|
package/lib/allFeatures.d.ts.map
CHANGED
|
@@ -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;uBAK9G,OAAO;IAEZ,2DAA2D;uBACmC,OAAO;IAErG,uCAAuC;uBACoC,OAAO;IAElF;;;OAGG;yBAKE,OAAO;IAEZ,8EAA8E;yBAIzE,OAAO;IAEZ;;OAEG;gCAGE,OAAO;IAEZ;;;OAGG;eAIE,OAAO;IAEZ,mFAAmF;yBAI9E,OAAO;IAEZ,mEAAmE;6BAG9D,OAAO;IAEZ,sEAAsE;yBACqC,OAAO;IAElH,6FAA6F;4BAGxF,OAAO;IAEZ;;;OAGG;0BAKE,OAAO;IAEZ,sHAAsH;4BAKjH,OAAO;IAEZ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;GAEG;AACH,eAAO,MAAM,eAAe,EAIvB,QAAQ,CAAC"}
|
package/lib/allFeatures.js
CHANGED
|
@@ -26,6 +26,15 @@ export const allFeatures = {
|
|
|
26
26
|
description: 'Enables the use of @parcel/watcher for file watching (default: true).',
|
|
27
27
|
default: true,
|
|
28
28
|
},
|
|
29
|
+
/**
|
|
30
|
+
* Enables import rewriting for workers instead of using es-module-shims.
|
|
31
|
+
* This makes workers compatible with service workers.
|
|
32
|
+
* Requires enableModuleWorkers to be enabled (default: true).
|
|
33
|
+
*/
|
|
34
|
+
rewriteWorkerImports: {
|
|
35
|
+
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
|
+
default: true,
|
|
37
|
+
},
|
|
29
38
|
/**
|
|
30
39
|
* Enables downloading bundles from remote cache instead of bundling.
|
|
31
40
|
*/
|
|
@@ -54,6 +63,10 @@ export const allFeatures = {
|
|
|
54
63
|
evaluateDynamicImports: {
|
|
55
64
|
description: 'Check for dynamic (async) imports with non-literal paths in bundle output during init.',
|
|
56
65
|
},
|
|
66
|
+
/** Hot Module Replacement (opt-in, experimental). */
|
|
67
|
+
hmr: {
|
|
68
|
+
description: 'Experimental! Hot Module Replacement. Allows modules to be updated at runtime without a full refresh.',
|
|
69
|
+
},
|
|
57
70
|
/**
|
|
58
71
|
* Excludes unused dependencies in the generated config during an init run.
|
|
59
72
|
* This helps trim the dependency graph, reduce the import map, and speed up performance.
|
package/lib/allFeatures.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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;IAC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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 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 /**\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 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,uCAAuC;IACvC,iBAAiB,EAAE,EAAE,WAAW,EAAE,mCAAmC,EAAa;IAElF;;;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;;OAEG;IACH,0BAA0B,EAAE;QAC1B,WAAW,EAAE,oEAAoE;KACvE;IAEZ;;;OAGG;IACH,SAAS,EAAE;QACT,WAAW,EACT,iJAAiJ;KACzI;IAEZ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AC;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 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/common-types",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.3",
|
|
4
4
|
"description": "Common types for Cloudpack.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"schema": "cloudpack-scripts schema"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ms-cloudpack/common-types-browser": "^0.6.
|
|
25
|
+
"@ms-cloudpack/common-types-browser": "^0.6.5",
|
|
26
26
|
"@types/express": "^4.17.16"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
package/schema/AppConfig.json
CHANGED
|
@@ -570,7 +570,7 @@
|
|
|
570
570
|
"global.NodeJS.ArrayBufferView": {
|
|
571
571
|
"anyOf": [
|
|
572
572
|
{
|
|
573
|
-
"$ref": "#/definitions/global.NodeJS.TypedArray%3Calias-
|
|
573
|
+
"$ref": "#/definitions/global.NodeJS.TypedArray%3Calias-1568115191-76891-76956-1568115191-0-218439%3E"
|
|
574
574
|
},
|
|
575
575
|
{
|
|
576
576
|
"type": "object",
|
|
@@ -605,7 +605,7 @@
|
|
|
605
605
|
}
|
|
606
606
|
]
|
|
607
607
|
},
|
|
608
|
-
"global.NodeJS.TypedArray<alias-
|
|
608
|
+
"global.NodeJS.TypedArray<alias-1568115191-76891-76956-1568115191-0-218439>": {
|
|
609
609
|
"anyOf": [
|
|
610
610
|
{
|
|
611
611
|
"type": "object",
|
|
@@ -962,7 +962,7 @@
|
|
|
962
962
|
"type": "number",
|
|
963
963
|
"description": "The length of the array."
|
|
964
964
|
},
|
|
965
|
-
"__@toStringTag@
|
|
965
|
+
"__@toStringTag@1175": {
|
|
966
966
|
"type": "string",
|
|
967
967
|
"const": "BigUint64Array"
|
|
968
968
|
}
|
|
@@ -973,7 +973,7 @@
|
|
|
973
973
|
"byteLength",
|
|
974
974
|
"byteOffset",
|
|
975
975
|
"length",
|
|
976
|
-
"__@toStringTag@
|
|
976
|
+
"__@toStringTag@1175"
|
|
977
977
|
],
|
|
978
978
|
"additionalProperties": {
|
|
979
979
|
"type": "number"
|
|
@@ -1013,7 +1013,7 @@
|
|
|
1013
1013
|
"type": "number",
|
|
1014
1014
|
"description": "The length of the array."
|
|
1015
1015
|
},
|
|
1016
|
-
"__@toStringTag@
|
|
1016
|
+
"__@toStringTag@1175": {
|
|
1017
1017
|
"type": "string",
|
|
1018
1018
|
"const": "BigInt64Array"
|
|
1019
1019
|
}
|
|
@@ -1024,7 +1024,7 @@
|
|
|
1024
1024
|
"byteLength",
|
|
1025
1025
|
"byteOffset",
|
|
1026
1026
|
"length",
|
|
1027
|
-
"__@toStringTag@
|
|
1027
|
+
"__@toStringTag@1175"
|
|
1028
1028
|
],
|
|
1029
1029
|
"additionalProperties": {
|
|
1030
1030
|
"type": "number"
|
|
@@ -1434,6 +1434,9 @@
|
|
|
1434
1434
|
"enableParcelWatcher": {
|
|
1435
1435
|
"type": "boolean"
|
|
1436
1436
|
},
|
|
1437
|
+
"rewriteWorkerImports": {
|
|
1438
|
+
"type": "boolean"
|
|
1439
|
+
},
|
|
1437
1440
|
"enableRemoteCacheDownloads": {
|
|
1438
1441
|
"type": "boolean"
|
|
1439
1442
|
},
|
|
@@ -1452,6 +1455,9 @@
|
|
|
1452
1455
|
"evaluateDynamicImports": {
|
|
1453
1456
|
"type": "boolean"
|
|
1454
1457
|
},
|
|
1458
|
+
"hmr": {
|
|
1459
|
+
"type": "boolean"
|
|
1460
|
+
},
|
|
1455
1461
|
"optimizeDependencies": {
|
|
1456
1462
|
"type": "boolean"
|
|
1457
1463
|
},
|
|
@@ -1917,7 +1923,7 @@
|
|
|
1917
1923
|
"items": {
|
|
1918
1924
|
"type": "string"
|
|
1919
1925
|
},
|
|
1920
|
-
"description": "Folder names or directory paths where to find modules.\n\n**Note: This completely replaces the default node_modules lookup. To keep node_modules
|
|
1926
|
+
"description": "Folder names or directory paths where to find modules.\n\n**Note: This completely replaces the default `node_modules` lookup. To keep `node_modules`, include it explicitly: `[\"node_modules\", \"{configDir}/store\"]`**\n\nAbsolute and relative paths can both be used, but be aware that they will behave a bit differently.\n\nA relative path will be scanned similarly to how Node scans for `node_modules`, by looking through the current directory as well as its ancestors (i.e. `./node_modules`, `../node_modules`, and on).\n\nWith an absolute path, it will only search in the given directory.\n\nTemplate variables:\n- `{configDir}` can be used to build paths relative to the configuration directory. For example: `{configDir}/store` resolves to an absolute path pointing to the `store` subdirectory within the directory containing the configuration file.\n\n Restrictions: - The `{configDir}` template must appear at the beginning of the path - Valid: `{configDir}/store`, `{configDir}/components` - Invalid: `some/path/{configDir}` or `{configDir}/{configDir}/nested`"
|
|
1921
1927
|
},
|
|
1922
1928
|
"dedupe": {
|
|
1923
1929
|
"type": "array",
|
package/schema/UserConfig.json
CHANGED
|
@@ -571,7 +571,7 @@
|
|
|
571
571
|
"global.NodeJS.ArrayBufferView": {
|
|
572
572
|
"anyOf": [
|
|
573
573
|
{
|
|
574
|
-
"$ref": "#/definitions/global.NodeJS.TypedArray%3Calias-
|
|
574
|
+
"$ref": "#/definitions/global.NodeJS.TypedArray%3Calias-1568115191-76891-76956-1568115191-0-218439%3E"
|
|
575
575
|
},
|
|
576
576
|
{
|
|
577
577
|
"type": "object",
|
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
}
|
|
607
607
|
]
|
|
608
608
|
},
|
|
609
|
-
"global.NodeJS.TypedArray<alias-
|
|
609
|
+
"global.NodeJS.TypedArray<alias-1568115191-76891-76956-1568115191-0-218439>": {
|
|
610
610
|
"anyOf": [
|
|
611
611
|
{
|
|
612
612
|
"type": "object",
|
|
@@ -963,7 +963,7 @@
|
|
|
963
963
|
"type": "number",
|
|
964
964
|
"description": "The length of the array."
|
|
965
965
|
},
|
|
966
|
-
"__@toStringTag@
|
|
966
|
+
"__@toStringTag@1175": {
|
|
967
967
|
"type": "string",
|
|
968
968
|
"const": "BigUint64Array"
|
|
969
969
|
}
|
|
@@ -974,7 +974,7 @@
|
|
|
974
974
|
"byteLength",
|
|
975
975
|
"byteOffset",
|
|
976
976
|
"length",
|
|
977
|
-
"__@toStringTag@
|
|
977
|
+
"__@toStringTag@1175"
|
|
978
978
|
],
|
|
979
979
|
"additionalProperties": {
|
|
980
980
|
"type": "number"
|
|
@@ -1014,7 +1014,7 @@
|
|
|
1014
1014
|
"type": "number",
|
|
1015
1015
|
"description": "The length of the array."
|
|
1016
1016
|
},
|
|
1017
|
-
"__@toStringTag@
|
|
1017
|
+
"__@toStringTag@1175": {
|
|
1018
1018
|
"type": "string",
|
|
1019
1019
|
"const": "BigInt64Array"
|
|
1020
1020
|
}
|
|
@@ -1025,7 +1025,7 @@
|
|
|
1025
1025
|
"byteLength",
|
|
1026
1026
|
"byteOffset",
|
|
1027
1027
|
"length",
|
|
1028
|
-
"__@toStringTag@
|
|
1028
|
+
"__@toStringTag@1175"
|
|
1029
1029
|
],
|
|
1030
1030
|
"additionalProperties": {
|
|
1031
1031
|
"type": "number"
|
|
@@ -1435,6 +1435,9 @@
|
|
|
1435
1435
|
"enableParcelWatcher": {
|
|
1436
1436
|
"type": "boolean"
|
|
1437
1437
|
},
|
|
1438
|
+
"rewriteWorkerImports": {
|
|
1439
|
+
"type": "boolean"
|
|
1440
|
+
},
|
|
1438
1441
|
"enableRemoteCacheDownloads": {
|
|
1439
1442
|
"type": "boolean"
|
|
1440
1443
|
},
|
|
@@ -1453,6 +1456,9 @@
|
|
|
1453
1456
|
"evaluateDynamicImports": {
|
|
1454
1457
|
"type": "boolean"
|
|
1455
1458
|
},
|
|
1459
|
+
"hmr": {
|
|
1460
|
+
"type": "boolean"
|
|
1461
|
+
},
|
|
1456
1462
|
"optimizeDependencies": {
|
|
1457
1463
|
"type": "boolean"
|
|
1458
1464
|
},
|
|
@@ -1918,7 +1924,7 @@
|
|
|
1918
1924
|
"items": {
|
|
1919
1925
|
"type": "string"
|
|
1920
1926
|
},
|
|
1921
|
-
"description": "Folder names or directory paths where to find modules.\n\n**Note: This completely replaces the default node_modules lookup. To keep node_modules
|
|
1927
|
+
"description": "Folder names or directory paths where to find modules.\n\n**Note: This completely replaces the default `node_modules` lookup. To keep `node_modules`, include it explicitly: `[\"node_modules\", \"{configDir}/store\"]`**\n\nAbsolute and relative paths can both be used, but be aware that they will behave a bit differently.\n\nA relative path will be scanned similarly to how Node scans for `node_modules`, by looking through the current directory as well as its ancestors (i.e. `./node_modules`, `../node_modules`, and on).\n\nWith an absolute path, it will only search in the given directory.\n\nTemplate variables:\n- `{configDir}` can be used to build paths relative to the configuration directory. For example: `{configDir}/store` resolves to an absolute path pointing to the `store` subdirectory within the directory containing the configuration file.\n\n Restrictions: - The `{configDir}` template must appear at the beginning of the path - Valid: `{configDir}/store`, `{configDir}/components` - Invalid: `some/path/{configDir}` or `{configDir}/{configDir}/nested`"
|
|
1922
1928
|
},
|
|
1923
1929
|
"dedupe": {
|
|
1924
1930
|
"type": "array",
|