Skip to content

docs: incomplete-input rejection, devDependencies update, and 4.8.0 - #155

Merged
knowledgecode merged 5 commits into
masterfrom
develop
Nov 28, 2026
Merged

knowledgecode merged 5 commits into
masterfrom
develop

Conversation

@knowledgecode

Copy link
Copy Markdown
Owner

Summary

  • Docs: describe that parse() and isValid() fail when the input ends before the format string does (fix(parse): reject incomplete format matches #152), and the _mismatch flag that preparse() sets on such results. The preparse() use-case examples now check isValid() before trusting the components they read. The migration guide and both agent skills note the change from v3, which filled in such input with default values.
  • Chore: update devDependencies and bump the version to 4.8.0. The updated typescript-eslint reports no-unsafe-class-instance-assignment (enabled by strictTypeChecked) on two tests in tests/plugin.spec.ts that pass an object literal redefining a built-in token. That literal type-checks only against the deprecated FormatterPlugin / ParserPlugin classes, so the rule is disabled on those two lines.

Test plan

  • npm run lint (no warnings) / npm run ts
  • npm run build / npm test (73 files / 2400 tests, including tests/build)
  • npm run docs:build

parse() and isValid() fail when the input ends before the format string
does, and preparse() marks such results with _mismatch. Describe both in
the API reference, make the preparse() examples check isValid() before
trusting the components they read, and mirror the rule in the
date-and-time skill.
v3 filled in the components missing from input that ended before the
format string; v4 rejects such input. Add the difference and the
_mismatch flag to the migration guide and the date-and-time-migration
skill.
typescript-eslint now reports no-unsafe-class-instance-assignment, which
strictTypeChecked enables. Two plugin tests pass an object literal that
redefines a built-in token, which type-checks only against the
deprecated FormatterPlugin and ParserPlugin classes, so disable the rule
on those two lines.
@codecov

codecov Bot commented Nov 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.88%. Comparing base (334218c) to head (c42cf72).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #155   +/-   ##
=======================================
  Coverage   98.88%   98.88%           
=======================================
  Files          77       77           
  Lines        1255     1255           
  Branches      369      369           
=======================================
  Hits         1241     1241           
  Partials       14       14           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@knowledgecode
knowledgecode merged commit 673e4f3 into master Nov 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant