@absolutejs/absolute 0.19.0-beta.929 → 0.19.0-beta.930

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.
@@ -2,5 +2,21 @@ export declare const getTransformed: (filePath: string) => string | undefined;
2
2
  export declare const setTransformed: (filePath: string, content: string, mtime: number, imports?: string[]) => void;
3
3
  export declare const findNearestComponent: (filePath: string) => string | undefined;
4
4
  export declare const getInvalidationVersion: (filePath: string) => number;
5
+ /**
6
+ * Invalidate `filePath` and every transitive importer.
7
+ *
8
+ * BFS up the reverse-import graph; for each visited file we (1) drop
9
+ * its transform cache so the next request re-transpiles, and (2) bump
10
+ * its invalidation version so `srcUrl()` emits a fresh `?v=` token —
11
+ * forcing the browser to refetch even when the importer's mtime is
12
+ * unchanged. Bumping versions on transitive importers (not just the
13
+ * originally-changed file) is the load-bearing piece: without it, a
14
+ * page that imports a service via two intermediate components keeps
15
+ * resolving the page module under its old `?v=`, the page bundle's
16
+ * internal `/@src/` references stay pointed at stale URLs, and rapid
17
+ * HMR cycles wedge the browser bundle until the dev server restarts.
18
+ *
19
+ * Cycles are tolerated via the `visited` set.
20
+ */
5
21
  export declare const invalidate: (filePath: string) => void;
6
22
  export declare const invalidateAll: () => void;
package/package.json CHANGED
@@ -385,5 +385,5 @@
385
385
  ]
386
386
  }
387
387
  },
388
- "version": "0.19.0-beta.929"
388
+ "version": "0.19.0-beta.930"
389
389
  }