Skip to content

v0.2.0

Choose a tag to compare

@clerk-cookie clerk-cookie released this 10 Jun 02:30
· 18 commits to main since this release
Immutable release. Only release title and notes can be modified.
1601551

Minor Changes

  • #89 7c59947 Thanks @jacekradko! - Stop under-reporting surface break-check never actually checked. (Minor, per
    break-check's own verdict on this diff: PackageInfo gains an optional
    unresolvedSubpaths field in the programmatic API.) Entry-point
    discovery now resolves types declared under nested export conditions
    ({ "node": { "import": { "types": ... } } }) and .d.cts files, both
    previously skipped without a trace. A subpath that declares types break-check
    still cannot resolve (a missing file, a target escaping the package, an
    unsupported wildcard pattern) is now recorded as a skipped entry, so it shows
    up in the report and --fail-on-skipped catches it; JS-only and asset subpaths
    stay silent. And detect now refuses a --baseline that resolves to the
    configured snapshotDir, which previously overwrote the baseline with the
    current snapshots and reported "no changes" for any break.

Patch Changes

  • #88 123300f Thanks @jacekradko! - Fix a family of false negatives in the rule-based differ. Overload signatures
    now carry their overloadIndex in the comparison key, so removing or editing a
    function or method overload (or one of several call/construct/index signatures)
    is reported instead of silently collapsing onto the last overload. An
    optionality flip no longer short-circuits the member compare, so a change like
    a: string -> a?: number reports the breaking type change instead of a
    non-breaking "became optional"; property and variable types are now compared
    via their kind-specific token ranges (propertyTypeTokenRange,
    variableTypeTokenRange) instead of the full declaration text. And
    static/protected/abstract modifier flips are compared explicitly, which
    also catches them on methods and classes where the signature compare never saw
    them. All fixes are compare-time only; committed baselines need no
    regeneration.