Repository navigation
docs: incomplete-input rejection, devDependencies update, and 4.8.0 - #155
Merged
Merged
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
parse()andisValid()fail when the input ends before the format string does (fix(parse): reject incomplete format matches #152), and the_mismatchflag thatpreparse()sets on such results. Thepreparse()use-case examples now checkisValid()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.no-unsafe-class-instance-assignment(enabled bystrictTypeChecked) on two tests intests/plugin.spec.tsthat pass an object literal redefining a built-in token. That literal type-checks only against the deprecatedFormatterPlugin/ParserPluginclasses, so the rule is disabled on those two lines.Test plan
npm run lint(no warnings) /npm run tsnpm run build/npm test(73 files / 2400 tests, includingtests/build)npm run docs:build