Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KDL 2.0 compliance #10

Open
zkat opened this issue Feb 8, 2024 · 3 comments
Open

KDL 2.0 compliance #10

zkat opened this issue Feb 8, 2024 · 3 comments

Comments

@zkat
Copy link
Member

zkat commented Feb 8, 2024

KDL 2.0.0-draft.3 is now generally available (kdl-org/kdl#286), and with it, we've decided to encourage existing implementations to start working towards 2.0 support and send feedback and suggestions for anything you might run into, so I'm making this tracking issue. :)

@Exidex
Copy link
Member

Exidex commented Feb 9, 2024

@zkat What is the story with backwards compatibility. Is the plugin expected to support both? or do we throw away v1 support?

@zkat
Copy link
Member Author

zkat commented Feb 9, 2024

I intend to throw away v1 support going forward, with the expectation that 2.0 will be the only version actually in use, and 1.0 will just be historical

@zkat
Copy link
Member Author

zkat commented Dec 22, 2024

KDL 2.0.0 has been released (https://github.com/kdl-org/kdl/releases/tag/2.0.0)

As far as compatibility goes: some changes were made to v2 not long before release to make it safely unambiguous with v1. If a document happens to parse with both syntaxes, it’s guaranteed to result in the same data regardless of the parser.

Also, it seems like the trend now is for parsers to provide both v2 and v1 support, with optional fallback behavior, since fallback is now fully safe.

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

No branches or pull requests

2 participants