fallow-type-aware 3.10.0 → 3.12.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fallow-type-aware",
3
- "version": "3.10.0",
3
+ "version": "3.12.0",
4
4
  "description": "Optional TypeScript-Go semantic refinement sidecar for Fallow",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -157,13 +157,16 @@ const configDocumentClosure = (root, configFileName, seen = new Set()) => {
157
157
  };
158
158
  };
159
159
 
160
+ // The hash deliberately excludes the project's root file listing: base and
161
+ // head of a diff naturally differ in file membership (added or deleted
162
+ // files), and semantic evidence stays comparable as long as the
163
+ // configuration that produced it is the same. Configuration changes are
164
+ // covered by the compiler options and the config document closure
165
+ // (https://github.com/fallow-rs/fallow/issues/2102).
160
166
  const effectiveProjectConfigHash = (root, project) => {
161
167
  const effective = {
162
168
  config: configPath(root, project),
163
169
  compiler_options: normalizedConfigValue(root, project.compilerOptions),
164
- root_files: project.rootFiles
165
- .map((fileName) => normalizedConfigValue(root, fileName))
166
- .toSorted(compareText),
167
170
  config_document: configDocumentClosure(root, project.configFileName),
168
171
  };
169
172
  return `sha256:${createHash("sha256").update(JSON.stringify(effective)).digest("hex")}`;