Changelog
0.11.0 (2025-07-28)
Additions
-
Add support for interop with
Bytesintroduced in Pkl 0.29 (#150).-
Bytesmaps to type[]byteduring codegen. -
Add methods
Evaluator.EvaluateOutputBytesandEvaluator.EvaluateOutputFilesBytes.
-
-
Add support for HTTP rewrites (#147).
As part of this change, this adds field
EvaluatorOptions.RewritesandProjectEvaluatorSettingsHttp.Rewrites. -
Add method
pkl.RegisterStrictMapping(#136).
Changes
-
Change
pkl-gen-goto generate non-pointers for object types (#136).Currently,
pkl-gen-gowill generate pointers for object types (values backed by a Go struct). At the same time, it will also generate pointers for Pkl nullable types. As a result, it’s not possible to tell whether an object is nullable or not just by looking at the Go type. To address this, all object types are generated as their plain type, without pointers.Code generated with older versions of
pkl-gen-gowill continue to work as-is.Thanks to @thomaspurchas for their contributions to this feature!
Breaking Changes
-
pkl-gen-gonow requires Pkl 0.29.
Contributors ❤️
Thank you to all the contributors for this release!
0.10.0 (2025-04-03)
0.9.0 (2024-12-18)
0.8.0 (2024-07-04)
Additions
-
Support for Pkl 0.26
Fixes
-
Make the loading of
generator-settings.pklobserve the CLI’s--cache-dirfor air-gapped use. -
Fix decoding of sets when input type is any.
Miscellaneous
-
Improved performance and clarity of version comparison.
-
Fix unhandled error in the evaluator manager.
-
Reduced lock contention in
atomicRandom. -
Use
path.jointo make the resolution ofPklProjectfiles platform independent.
Breaking changes
-
NewProjectEvaluatornow interpretsPklProjectfiles with the same configuration as the modules in the project.
Contributors ❤️
Thank you to all the contributors for this release!
0.7.0 (2024-06-06)
Additions
-
Add a way to set the cache dir when running
pkl-gen-go.-
Add
--cache-dirflag to the CLI. -
Add
cacheDirproperty toGeneratorSettings.pkl.
-
Fixes
-
Correct typos in some doc comments.
-
Address a possible race condition that prevents correctly closing the evaluator.
-
Gracefully shut down the
pklchild process. The process is now given five seconds to shut down before forcefully terminated. -
Change pkl-gen-go to handle path separators correctly on Windows.
-
Fix unix file permissions when writing files.
-
Correctly resolve pkl-gen-go’s
--project-dirflag when given a relative path.
Miscellaneous
-
Fix typos.
-
Update doc comments on modules to prevent godoc from processing license headers as documentation.
Breaking changes
-
type DurationUnitandtype DataSizeUnitare now backed byint64, to avoid possible int overflow issues on 32 bit systems. -
EvaluatorOptions.ProjectDiris renamed toEvaluatorOptions.ProjectBaseURIto be forwards-compatible with scheme-agnostic projects coming in Pkl 0.27.
Contributors ❤️
Thank you to all the contributors for this release!
0.6.0 (2024-03-11)
Additions
-
Add support for using
pkl-gen-gowith projects (#22)-
Add
--project-dirflag topkl-gen-gocommand. -
Add
uriandprojectDirsetting toGeneratorSettings.pkl.
-
Micellaneous
-
Documentation fixes (#19)
0.5.3 (2024-02-09)
Fixes
-
Fixes an issue where
pkl-gen-gocan address an invalid path if installed throughgo install.
0.5.2 (2024-02-08)
Fixes
-
Fixes an issue where
pkl-gen-gocan address an invalid path to GeneratorSettings.pkl (#3) (thanks, @kasugamirai!). -
Addresses possible nil panics if URLs from
pkl serverare invalid (#5).
0.5.1 (2024-02-02)
-
Fixes an issue where pkl-gen-go includes broken links
0.5.0 (2024-02-02)
Initial library release.