[PR #1277] [MERGED] Switch yaml.Parser to parse binary scalars as Bytes #995

Closed
opened 2025-12-30 01:28:10 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/apple/pkl/pull/1277
Author: @HT154
Created: 10/30/2025
Status: Merged
Merged: 10/31/2025
Merged by: @HT154

Base: mainHead: yaml-parser-bytes


📝 Commits (1)

  • 950aafe Switch yaml.Parser to parse binary scalars as Bytes

📊 Changes

8 files changed (+59 additions, -13 deletions)

View changed files

📝 docs/modules/ROOT/partials/component-attributes.adoc (+2 -0)
📝 docs/modules/release-notes/pages/0.30.adoc (+25 -2)
📝 pkl-core/src/main/java/org/pkl/core/stdlib/yaml/ParserNodes.java (+5 -4)
📝 pkl-core/src/test/files/LanguageSnippetTests/input/api/yamlParser1Compat.pkl (+10 -2)
📝 pkl-core/src/test/files/LanguageSnippetTests/output/api/yamlParser1Compat.pcf (+5 -1)
📝 pkl-core/src/test/files/LanguageSnippetTests/output/api/yamlParser1Yaml11.pcf (+5 -1)
📝 pkl-core/src/test/files/LanguageSnippetTests/output/api/yamlParser1Yaml12.pcf (+5 -1)
📝 stdlib/yaml.pkl (+2 -2)

📄 Description

This is a breaking change! Parsing YAML data containing !!binary scalars now produces a different Pkl value.

Builds on #1276


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/apple/pkl/pull/1277 **Author:** [@HT154](https://github.com/HT154) **Created:** 10/30/2025 **Status:** ✅ Merged **Merged:** 10/31/2025 **Merged by:** [@HT154](https://github.com/HT154) **Base:** `main` ← **Head:** `yaml-parser-bytes` --- ### 📝 Commits (1) - [`950aafe`](https://github.com/apple/pkl/commit/950aafe6bcf8f2fde6703b241670b313bc209b61) Switch `yaml.Parser` to parse binary scalars as `Bytes` ### 📊 Changes **8 files changed** (+59 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `docs/modules/ROOT/partials/component-attributes.adoc` (+2 -0) 📝 `docs/modules/release-notes/pages/0.30.adoc` (+25 -2) 📝 `pkl-core/src/main/java/org/pkl/core/stdlib/yaml/ParserNodes.java` (+5 -4) 📝 `pkl-core/src/test/files/LanguageSnippetTests/input/api/yamlParser1Compat.pkl` (+10 -2) 📝 `pkl-core/src/test/files/LanguageSnippetTests/output/api/yamlParser1Compat.pcf` (+5 -1) 📝 `pkl-core/src/test/files/LanguageSnippetTests/output/api/yamlParser1Yaml11.pcf` (+5 -1) 📝 `pkl-core/src/test/files/LanguageSnippetTests/output/api/yamlParser1Yaml12.pcf` (+5 -1) 📝 `stdlib/yaml.pkl` (+2 -2) </details> ### 📄 Description This is a breaking change! Parsing YAML data containing `!!binary` scalars now produces a different Pkl value. Builds on #1276 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 01:28:10 +01:00
adam closed this issue 2025-12-30 01:28:10 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#995