@ttsc/unplugin 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  import type { ITtscCompilerTransformation } from "ttsc";
2
+ import { type FilesystemPathIdentityContext } from "ttsc/path-identity";
2
3
  import type { TransformResult } from "unplugin";
3
4
  import type { ResolvedTtscUnpluginOptions } from "./options";
4
5
  /**
@@ -183,7 +184,7 @@ export declare function createTransformResult(source: string, code: string): Tts
183
184
  * slash path. Exported so hosts without a per-build boundary (`@ttsc/metro`)
184
185
  * can fold the identical input universe into their own cache fingerprints.
185
186
  */
186
- export declare function collectProjectInputHashes(projectRoot: string): Record<string, string>;
187
+ export declare function collectProjectInputHashes(projectRoot: string, identities?: FilesystemPathIdentityContext): Record<string, string>;
187
188
  /**
188
189
  * Report whether an absolute `file` belongs to the project walk universe of
189
190
  * `root`: it lies under `root`, every component exists without traversing a
@@ -193,7 +194,7 @@ export declare function collectProjectInputHashes(projectRoot: string): Record<s
193
194
  * Missing paths and files reached through symlinks or Windows junctions are
194
195
  * out-of-walk inputs that only the reference graph can prove relevant.
195
196
  */
196
- export declare function isProjectWalkPath(root: string, file: string): boolean;
197
+ export declare function isProjectWalkPath(root: string, file: string, identities?: FilesystemPathIdentityContext): boolean;
197
198
  /**
198
199
  * Hash a list of absolute out-of-walk input paths: content SHA-256 for a
199
200
  * readable file, a stable `missing` marker otherwise. Keys use filesystem
@@ -209,4 +210,4 @@ export declare function collectExternalInputHashes(paths: readonly string[]): Re
209
210
  * filesystem or bundler. Windows is case-insensitive; macOS is probed per
210
211
  * existing filesystem location so case-sensitive volumes keep distinct paths.
211
212
  */
212
- export declare function pathIdentityKey(file: string): string;
213
+ export declare function pathIdentityKey(file: string, identities?: FilesystemPathIdentityContext): string;