You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1f91879
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Improve error messages for malformed changeset files (#1831)
* fix(parse): improve error messages for malformed changesets
Fixes#175
This PR improves the error handling and messages when parsing malformed
changeset files. The previous error messages were generic and didn't help
users understand what went wrong.
Changes:
- Add validation for empty changeset files with helpful example
- Improve error message when frontmatter is missing or invalid
- Add specific error for invalid YAML in frontmatter, including the YAML error
- Validate version types (major, minor, patch, none) with clear error message
- Validate package names are non-empty strings
- Include examples of correct format in error messages
- Add tests for all new error scenarios
The error messages now:
- Explain what went wrong
- Show what was received
- Provide an example of the correct format
Co-authored-by: Cursor <[email protected]>
* chore: add changeset file
Co-authored-by: Cursor <[email protected]>
* chore: address review feedback
* chore: address copilot feedback
* revert yarn.lock changes
* tweak
* tweak
* tweak
* tweak
---------
Co-authored-by: Murat Aslan <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Improve error messages for malformed changeset files. The new error messages explain what went wrong, show what was received, and provide examples of the correct format.
0 commit comments