Conversation
🦋 Changeset detectedLatest commit: 1fe3aa7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThe pull request introduces expression validation helper functions for the htmljs-parser package. A new src/util/validators.ts module provides isValidStatement and isValidAttrValue functions that validate code-like strings using the Parser. These validators are exported through the public API via index.ts. Additionally, two helper functions (shouldTerminateHtmlAttrValue and shouldTerminateConciseAttrValue) in src/states/ATTRIBUTE.ts are exported. New test coverage is added via src/tests/validate.test.ts to validate the behavior of both validators. A changeset file documents this as a minor version release. 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Comment |
Expose helpers for validating if statements and attribute values can be completely parsed by the parser.
This will be used in prettier-plugin-marko in order to determine when expressions and blocks should be wrapped with brackets.