Commit Graph

36 Commits

Author SHA1 Message Date
Daniel Chao d6f08700d6
Prepare 0.4.2 release (#48) 2025-04-14 10:09:19 -07:00
Daniel Chao cf45d102cb
Fix Swift mapping of ints within unions (#47)
This fixes an issue where a union with an int member cannot decode
any value that is out of the Int8 bounds.

Also: make SingleValueDecodingContainer throw `typeMismatch` errors
when the expected type doesn't match.
2025-02-26 09:12:56 -08:00
Daniel Chao c514843f01
Add pkl-lsp to ignored dirs (#46) 2025-02-26 07:13:12 -08:00
Daniel Chao 9c36448681
Make enums of string literals conform to CodingKeyRepresentable (#45)
Fixes an issue where mappings of enums fail to be decoded into Swift
2025-02-25 07:10:50 -08:00
Daniel Chao 799b6696d2
Swiftformat check (#43)
* Add makefile and CI rules to run the swift formatter
* Run swift format on all files
2025-02-24 19:09:46 -08:00
Kushal Pisavadia b7e694ea3c
Configure `hawkeye` to update license headers (#38)
Adds configuration to format/check license headers with hawkeye.

Also, runs the formatter on the repo.
2025-02-17 12:45:41 -08:00
Daniel Chao dda82f32a7
Add DocC auto generation (#41)
This will add pkl-swift docs to the Swift Package Index.

See: https://swiftpackageindex.com/blog/auto-generating-auto-hosting-and-auto-updating-docc-documentation

This also adds `swift-docc-plugin` as a dependency, which enables
running command `swift package generate-documentation --target PklSwift`.
2025-02-12 06:28:28 -08:00
Daniel Chao 3c5da314c9
Prepare 0.4.1 release (#40) 2025-02-04 09:53:29 -08:00
Daniel Chao b253e83f7b
Fix enum decoding (#39)
Fixes an issue where `5.0` in Pkl can possibly be cast to `Int`
2025-02-03 10:50:36 -08:00
Kushal Pisavadia f0bd189f48
Make sure CircleCI config is up-to-date (#37) 2025-02-03 13:43:40 +01:00
Daniel Chao c280a0e632
Add PR links (#34) 2025-01-24 08:10:27 -08:00
Daniel Chao 162bf61a96
Prepare 0.4.0 release (#33) 2025-01-23 08:42:40 -08:00
Daniel Chao 52d5fbc5e1
Add color to PklEvaluatorSettings (#32)
This adds a field that was added in Pkl 0.27
2025-01-23 06:59:31 -08:00
Josh B 64c66aea8e
Implement SPICE-0009 External Readers (#26)
* Add `EvaluatorOptions.externalModuleReaders` and `EvaluatorOptions.externalResourceReaders`.
* Add `ExternalReaderClient` to host the child process side of the external reader workflow.
2025-01-17 06:34:34 -08:00
Javier Cuesta 7d451c59cd
Make PathElement initializer explicitly public (#31)
Also, fix doc comments
2024-12-13 14:18:23 -08:00
Josh B 1d0bf43b4b
Fix temporary directory creation to avoid failing pkl-core tests (#28) 2024-12-04 16:54:32 +00:00
Daniel Chao 44a04408df
Prepare 0.3.0 release (#27) 2024-10-10 09:20:14 -07:00
Kila2 e6f6aa818f
Fix build for windows (#24) 2024-10-09 17:36:22 -07:00
XIAO YU 8f050f5938
Optimize memory allocation for array in PklDecoder.decodePolymorphic (#25) 2024-08-13 13:53:04 +02:00
Philip K.F. Hölzenspies 48bdb4f503
Add Pkl 0.26 features (#23)
* Add Pkl 0.26 features
* Add multi-version support
* Bump Pkl version in CI
* Update CI
* Split tests across different Pkl versions

Co-authored-by: Daniel Chao <daniel.h.chao@gmail.com>
2024-07-02 12:36:59 +01:00
Philip K.F. Hölzenspies b23fd2369f
Remove custom Pair type (#21) 2024-05-03 16:31:40 +01:00
Tkng 2bcb25f0b7
Update README.adoc (#16) 2024-03-11 14:50:23 +01:00
Yuki Yamamoto 28d1782e50
Remove iOS from supported platform (#14) 2024-02-13 10:45:58 +01:00
Krzysztof Zabłocki cec993dc2c
type id's should not generate as mutable var (#3)
Co-authored-by: Philip K.F. Hölzenspies <holzensp@gmail.com>
2024-02-06 16:45:48 +00:00
Shinichiro Oba a754b2a010
Fix the Changelog URL (#12) 2024-02-06 16:45:28 +00:00
Shinichiro Oba efbca4eb59
Use `static loadFrom(source:)` in the quickstart (#10) 2024-02-06 17:39:18 +01:00
Daniel Chao 7d573f7c5f
Prepare 0.2.3 release (#9) 2024-02-04 11:46:50 -08:00
Daniel Chao f20974be23
Fix module name (#8)
This adds one more fix: there is a straggler module that was missing a
name and a license header
2024-02-04 11:42:46 -08:00
Daniel Chao b24a83feea
Prepare 0.2.2 release (#7) 2024-02-04 11:30:01 -08:00
Daniel Chao 522fa12db3
Fix license header (#6)
This fixes the license header on locks.swift and
adds appropriate attribution.
2024-02-04 11:24:10 -08:00
Dan Chao c273ade98c Update CircleCI: fix release name and add license header 2024-02-04 11:22:23 -08:00
josephplusplus 4ddc17a565
Allow redirect to macOS install cURL (#2) 2024-02-04 11:18:47 -08:00
Daniel Chao 3c2ba3ad75
Fix: module names should start with pkl.swift (#5) 2024-02-04 11:16:03 -08:00
Islon Scherer 13f33a0343 Prepare 0.2.1 release 2024-02-02 18:16:35 +01:00
Islon Scherer 72b92a5f59 fix packageZipUrl 2024-02-02 17:57:40 +01:00
Dan Chao 34ea34f487 Init 2024-02-01 21:47:57 -08:00