@willcgage/module-schematic 0.78.0 → 0.79.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/dist/index.d.cts CHANGED
@@ -1901,6 +1901,8 @@ interface StoredTrackPart {
1901
1901
  frogOffsetSource?: string | null;
1902
1902
  overallLengthInches?: number | null;
1903
1903
  overallLengthSource?: string | null;
1904
+ divergingLengthInches?: number | null;
1905
+ divergingLengthSource?: string | null;
1904
1906
  leadInches?: number | null;
1905
1907
  leadSource?: string | null;
1906
1908
  outerRadiusInches?: number | null;
@@ -1934,6 +1936,17 @@ declare function storedPartToTrackPart(row: StoredTrackPart): TrackPart;
1934
1936
  *
1935
1937
  * The built-ins remain the floor: a part nobody has stored still resolves, so
1936
1938
  * geometry keeps working with no database at all.
1939
+ *
1940
+ * ⛔ THE TRAP THIS CREATES, and it has already been sprung once. Replacement is
1941
+ * WHOLESALE, so a stored row that is merely INCOMPLETE deletes every dimension
1942
+ * the built-in had. When both Atlas wyes were measured in 0.78.0 their stored
1943
+ * rows still held null offsets from the original seed — so in production the
1944
+ * new measurements were invisible and the 2056 still carried a `derived` lead
1945
+ * the release had just retired. Nothing failed; the parts simply had no
1946
+ * dimensions, which is indistinguishable from never having measured them.
1947
+ *
1948
+ * **Measuring a built-in is therefore not finished until the stored row is
1949
+ * updated too.** Adding a dimension here and stopping ships nothing.
1937
1950
  */
1938
1951
  declare function mergeStoredParts(stored: StoredTrackPart[], library?: TrackPart[]): TrackPart[];
1939
1952
  /**
package/dist/index.d.ts CHANGED
@@ -1901,6 +1901,8 @@ interface StoredTrackPart {
1901
1901
  frogOffsetSource?: string | null;
1902
1902
  overallLengthInches?: number | null;
1903
1903
  overallLengthSource?: string | null;
1904
+ divergingLengthInches?: number | null;
1905
+ divergingLengthSource?: string | null;
1904
1906
  leadInches?: number | null;
1905
1907
  leadSource?: string | null;
1906
1908
  outerRadiusInches?: number | null;
@@ -1934,6 +1936,17 @@ declare function storedPartToTrackPart(row: StoredTrackPart): TrackPart;
1934
1936
  *
1935
1937
  * The built-ins remain the floor: a part nobody has stored still resolves, so
1936
1938
  * geometry keeps working with no database at all.
1939
+ *
1940
+ * ⛔ THE TRAP THIS CREATES, and it has already been sprung once. Replacement is
1941
+ * WHOLESALE, so a stored row that is merely INCOMPLETE deletes every dimension
1942
+ * the built-in had. When both Atlas wyes were measured in 0.78.0 their stored
1943
+ * rows still held null offsets from the original seed — so in production the
1944
+ * new measurements were invisible and the 2056 still carried a `derived` lead
1945
+ * the release had just retired. Nothing failed; the parts simply had no
1946
+ * dimensions, which is indistinguishable from never having measured them.
1947
+ *
1948
+ * **Measuring a built-in is therefore not finished until the stored row is
1949
+ * updated too.** Adding a dimension here and stopping ships nothing.
1937
1950
  */
1938
1951
  declare function mergeStoredParts(stored: StoredTrackPart[], library?: TrackPart[]): TrackPart[];
1939
1952
  /**
package/dist/index.js CHANGED
@@ -1840,6 +1840,8 @@ function storedPartToTrackPart(row) {
1840
1840
  if (frog) part.frogOffset = frog;
1841
1841
  const overall = dim(row.overallLengthInches, row.overallLengthSource);
1842
1842
  if (overall) part.overallLength = overall;
1843
+ const diverging = dim(row.divergingLengthInches, row.divergingLengthSource);
1844
+ if (diverging) part.divergingLength = diverging;
1843
1845
  if (lead) part.lead = lead;
1844
1846
  const outer = dim(row.outerRadiusInches, row.radiusSource);
1845
1847
  const inner = dim(row.innerRadiusInches, row.radiusSource);