Changelog
0.11.0 (2025-07-28)
Additions
-
Add support for interop with
Bytes
introduced in Pkl 0.29 (#150).-
Bytes
maps to type[]byte
during codegen. -
Add methods
Evaluator.EvaluateOutputBytes
andEvaluator.EvaluateOutputFilesBytes
.
-
-
Add support for HTTP rewrites (#147).
As part of this change, this adds field
EvaluatorOptions.Rewrites
andProjectEvaluatorSettingsHttp.Rewrites
. -
Add method
pkl.RegisterStrictMapping
(#136).
Changes
-
Change
pkl-gen-go
to generate non-pointers for object types (#136).Currently,
pkl-gen-go
will 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-go
will continue to work as-is.Thanks to @thomaspurchas for their contributions to this feature!
Breaking Changes
-
pkl-gen-go
now 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.pkl
observe the CLI’s--cache-dir
for 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.join
to make the resolution ofPklProject
files platform independent.
Breaking changes
-
NewProjectEvaluator
now interpretsPklProject
files 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-dir
flag to the CLI. -
Add
cacheDir
property toGeneratorSettings.pkl
.
-
Fixes
-
Correct typos in some doc comments.
-
Address a possible race condition that prevents correctly closing the evaluator.
-
Gracefully shut down the
pkl
child 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-dir
flag 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 DurationUnit
andtype DataSizeUnit
are now backed byint64
, to avoid possible int overflow issues on 32 bit systems. -
EvaluatorOptions.ProjectDir
is renamed toEvaluatorOptions.ProjectBaseURI
to 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-go
with projects (#22)-
Add
--project-dir
flag topkl-gen-go
command. -
Add
uri
andprojectDir
setting toGeneratorSettings.pkl
.
-
Micellaneous
-
Documentation fixes (#19)
0.5.3 (2024-02-09)
Fixes
-
Fixes an issue where
pkl-gen-go
can address an invalid path if installed throughgo install
.
0.5.2 (2024-02-08)
Fixes
-
Fixes an issue where
pkl-gen-go
can address an invalid path to GeneratorSettings.pkl (#3) (thanks, @kasugamirai!). -
Addresses possible nil panics if URLs from
pkl server
are 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.