mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #1138] [MERGED] Un-deprecate Resource.base64, compute bytes/base64 in terms of each other #910
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1138
Author: @bioball
Created: 7/23/2025
Status: ✅ Merged
Merged: 7/23/2025
Merged by: @bioball
Base:
main← Head:resource-fix📝 Commits (3)
d633c8bUn-deprecate Resource.base64, compute bytes/base64 in terms of each other32461cbUpdate Resource.pkl465b0e6Fix test📊 Changes
12 files changed (+270 additions, -227 deletions)
View changed files
📝
pkl-core/src/test/files/LanguageSnippetTests/input/api/Resource.pkl(+24 -0)📝
pkl-core/src/test/files/LanguageSnippetTests/output/api/Resource.pcf(+17 -0)📝
pkl-core/src/test/files/LanguageSnippetTests/output/api/reflectedDeclaration.pcf(+162 -162)📝
pkl-core/src/test/files/LanguageSnippetTests/output/basic/read.pcf(+8 -8)📝
pkl-core/src/test/files/LanguageSnippetTests/output/basic/readGlob.pcf(+22 -22)📝
pkl-core/src/test/files/LanguageSnippetTests/output/packages/packages1.pcf(+3 -3)📝
pkl-core/src/test/files/LanguageSnippetTests/output/packages/packages2.pcf(+5 -5)📝
pkl-core/src/test/files/LanguageSnippetTests/output/projects/project1/basic.pcf(+2 -2)📝
pkl-core/src/test/files/LanguageSnippetTests/output/projects/project1/globbing.pcf(+15 -15)📝
pkl-core/src/test/files/LanguageSnippetTests/output/projects/project1/localProjectRead.pcf(+3 -3)📝
pkl-server/src/test/kotlin/org/pkl/server/AbstractServerTest.kt(+2 -2)📝
stdlib/base.pkl(+7 -5)📄 Description
This makes changes to avoid a needless breaking change. It preserves code like
new Resource { base64 = someValue }.sha256, and also code that rendersResourceinto static formats.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.