diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 950991bd9..4f9ae2cfc 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -2,6 +2,6 @@ "js": "1.1.1", "python/dotpromptz": "0.1.4", "python/handlebarrz": "0.1.3", - "go": "0.1.0", + "go": "0.1.1", "java": "0.1.0" } diff --git a/go/CHANGELOG.md b/go/CHANGELOG.md new file mode 100644 index 000000000..8e1d9df58 --- /dev/null +++ b/go/CHANGELOG.md @@ -0,0 +1,52 @@ +# Changelog + +## [0.1.1](https://github.com/google/dotprompt/compare/dotprompt-go-v0.1.0...dotprompt-go-0.1.1) (2025-12-29) + + +### Features + +* cargo workspace configuration and bazel build files for hermetic environment ([#257](https://github.com/google/dotprompt/issues/257)) ([aef822e](https://github.com/google/dotprompt/commit/aef822ed484d256ba95a3544e132a9b33e0dc02d)) +* go: Fix pico schema parser issues ([#96](https://github.com/google/dotprompt/issues/96)) ([d938205](https://github.com/google/dotprompt/commit/d938205f28c96cd42a399797c121961d1d146344)) +* **go/dotprompt:** Add comments for functions ([#99](https://github.com/google/dotprompt/issues/99)) ([e44ce35](https://github.com/google/dotprompt/commit/e44ce350803f67b39e006106656423e21ed2d850)) +* **go/dotprompt:** Add DefineSchema API and schema reference support ([#247](https://github.com/google/dotprompt/issues/247)) ([fcc382d](https://github.com/google/dotprompt/commit/fcc382d89b84e400f93e62aba89d006ad168fdfb)) +* **go/dotprompt:** Add noescape parameter for raymond handlebars package ([#203](https://github.com/google/dotprompt/issues/203)) ([e3d50fe](https://github.com/google/dotprompt/commit/e3d50fede7a75dad1631103f0402ec8a4f2a3bbb)) +* **go/dotprompt:** Add template as a parameter for dotprompt type ([#136](https://github.com/google/dotprompt/issues/136)) ([bf5d6a3](https://github.com/google/dotprompt/commit/bf5d6a36d5999493e090be848014bf3f5a7ca54e)) +* **go/dotprompt:** add types.go implementation ([#82](https://github.com/google/dotprompt/issues/82)) ([6514fbf](https://github.com/google/dotprompt/commit/6514fbf27c35ab60dea6968f167b103236da7a77)) +* **go/dotprompt:** Export define helper and partial functions ([#119](https://github.com/google/dotprompt/issues/119)) ([481ed50](https://github.com/google/dotprompt/commit/481ed5034233f9158407a38a348c7b0a8cd88ff6)) +* **go/dotprompt:** Metadata and Partials specs test implementation ([#89](https://github.com/google/dotprompt/issues/89)) ([2e5edba](https://github.com/google/dotprompt/commit/2e5edbaec59923e2136472302ae5bc5c29d31957)) +* **go/dotprompt:** Modify the dotprompt files to pass the spec tests similar to js ([#98](https://github.com/google/dotprompt/issues/98)) ([d9f9f65](https://github.com/google/dotprompt/commit/d9f9f6510b4612049c2a004dd530cae60ebd0398)) +* **go/dotprompt:** Modify the JSONSchema to jsonschema.Schema type ([#111](https://github.com/google/dotprompt/issues/111)) ([340ec1b](https://github.com/google/dotprompt/commit/340ec1b1c36554043cf9ac0ad7c423161971f202)) +* **go/parse:** parse.go implementation [#62](https://github.com/google/dotprompt/issues/62) ([#87](https://github.com/google/dotprompt/issues/87)) ([d5dc13c](https://github.com/google/dotprompt/commit/d5dc13c0bf0437875a3b133511ffed474a8b3bf9)) +* **go:** initialize go module ([#59](https://github.com/google/dotprompt/issues/59)) ([5aea7d5](https://github.com/google/dotprompt/commit/5aea7d5bb8ffe030b9dc267156886b1c946f693d)) +* **py/dotpromptz:** implement helpers in terms of the rust implementation of handlebars-rust and fix go flakiness ([#115](https://github.com/google/dotprompt/issues/115)) ([314c0b5](https://github.com/google/dotprompt/commit/314c0b5182aaad25bf4cfccb8207faa60f63256f)) +* **python:** add OpenAI adapter implementation for dotprompt [#38](https://github.com/google/dotprompt/issues/38) ([#97](https://github.com/google/dotprompt/issues/97)) ([d171f87](https://github.com/google/dotprompt/commit/d171f8792ecf08f446e18ea3bbd5309cafa1d8a3)) +* **py:** utility to remove undefined fields from dicts/lists recursively ([#105](https://github.com/google/dotprompt/issues/105)) ([d25c911](https://github.com/google/dotprompt/commit/d25c911bc1e84e5691b961a4c38a8bcd73c80aa0)) +* script to update all deps in one go and update deps ([#130](https://github.com/google/dotprompt/issues/130)) ([09ac58e](https://github.com/google/dotprompt/commit/09ac58e4512fae817a63f731ac0db80967842436)) +* use the HEAD version of addlicense ([#280](https://github.com/google/dotprompt/issues/280)) ([bdf0d36](https://github.com/google/dotprompt/commit/bdf0d36a430a363de4163f48394546cba884eaaf)) +* use the more maintained YAML parsing lib at https://github.com/goccy/go-yaml ([#151](https://github.com/google/dotprompt/issues/151)) ([910b3a7](https://github.com/google/dotprompt/commit/910b3a72f3756296c3b01b96936a5bc4c9fa88ef)) + + +### Bug Fixes + +* **deps:** switch to version 1.23 of go; update pnpm deps ([#153](https://github.com/google/dotprompt/issues/153)) ([672b8da](https://github.com/google/dotprompt/commit/672b8da68e784abd17a14f9f1f292d9b65b88a80)) +* **go,py:** type fixes and ensure we build/lint the go code in hooks and ci ([#83](https://github.com/google/dotprompt/issues/83)) ([19a8257](https://github.com/google/dotprompt/commit/19a8257f4f73b776229d5324a0366fd9a79c20aa)) +* **go/dotprompt:** Add default helpers only once ([#185](https://github.com/google/dotprompt/issues/185)) ([30d6a66](https://github.com/google/dotprompt/commit/30d6a6673f4406c496d35b812c2cb664b81d06c6)) +* **go/dotprompt:** Add partials and helpers parameters ([#166](https://github.com/google/dotprompt/issues/166)) ([e5e8fba](https://github.com/google/dotprompt/commit/e5e8fba19c9a2d5f2b9b73c758f759883baf79e4)) +* **go/dotprompt:** format require sections ([#202](https://github.com/google/dotprompt/issues/202)) ([f792f24](https://github.com/google/dotprompt/commit/f792f2402fd72b75f1afcebaa9f336f69915fddc)) +* **go/dotprompt:** Return error if partial and helper are defined ([#184](https://github.com/google/dotprompt/issues/184)) ([671acfc](https://github.com/google/dotprompt/commit/671acfc2c0b3bc4c9f5ae50b4c5a89422d54fa50)) +* **go/genkit:** reset knownpartials and helpers array for every new template ([#312](https://github.com/google/dotprompt/issues/312)) ([bb73406](https://github.com/google/dotprompt/commit/bb73406b05ca769c7d2b50497f0d3cedc40b0e27)) +* **go:** capture local template in Compile closure to prevent sharing ([#363](https://github.com/google/dotprompt/issues/363)) ([d799864](https://github.com/google/dotprompt/commit/d79986469d4c8990d706a966552855ae9f1c80ae)), closes [#362](https://github.com/google/dotprompt/issues/362) +* **go:** ensure parser handles {CR, CRLF, LF} line endings ([#255](https://github.com/google/dotprompt/issues/255)) ([5aa36ba](https://github.com/google/dotprompt/commit/5aa36baa8078d10503762ac52b44b5187a924c2f)) +* **go:** include maxTurns in prompt parsing ([#324](https://github.com/google/dotprompt/issues/324)) ([eeb6274](https://github.com/google/dotprompt/commit/eeb62744224eb8365bf81832d01b1f69ad21670d)) +* **go:** lint errors reported in [#176](https://github.com/google/dotprompt/issues/176) ([#180](https://github.com/google/dotprompt/issues/180)) ([33b8902](https://github.com/google/dotprompt/commit/33b89021a268c376a5aa48c79fe52b5d6d548ec4)) +* **go:** modernize go code ([#274](https://github.com/google/dotprompt/issues/274)) ([f28341d](https://github.com/google/dotprompt/commit/f28341d912e8b6a61372fe363bc549d1fdd9f40d)) +* **go:** modernize omitempty ([#366](https://github.com/google/dotprompt/issues/366)) ([88498be](https://github.com/google/dotprompt/commit/88498beb53d1cb2381f38eaf82b42cfc4e8978f2)) +* **go:** modernize string building ([#370](https://github.com/google/dotprompt/issues/370)) ([4401117](https://github.com/google/dotprompt/commit/4401117b2efc3d305a0fbb853ebfb52cc97a02be)) +* **go:** modernize strings.Split to strings.SplitSeq ([#342](https://github.com/google/dotprompt/issues/342)) ([e04a3e3](https://github.com/google/dotprompt/commit/e04a3e3c380ac6ef8cfe47f2255cb30806cf890d)) +* **go:** update to release versions of Go (1.24.9, 1.25.3) to address vulnerability [#339](https://github.com/google/dotprompt/issues/339) ([#340](https://github.com/google/dotprompt/issues/340)) ([321ecdd](https://github.com/google/dotprompt/commit/321ecdd48a7a2a5984d4d6068bb5e14252ff8f5a)) +* **go:** use correct type for maxTurns ([#325](https://github.com/google/dotprompt/issues/325)) ([a8a91d1](https://github.com/google/dotprompt/commit/a8a91d1dff599588e767477cbe66f795a5cfd1c5)) +* **license:** use the full license header in source code ([#142](https://github.com/google/dotprompt/issues/142)) ([64894ef](https://github.com/google/dotprompt/commit/64894ef898876b861c6c244d522f634cd8fcc842)) +* **release-please:** use release please token for the release please GH action ([#331](https://github.com/google/dotprompt/issues/331)) ([01e28bf](https://github.com/google/dotprompt/commit/01e28bf308897cdd0454e9350dc00dfe529d662d)) +* remove spurious role type `assistant` ([#169](https://github.com/google/dotprompt/issues/169)) ([1b5142c](https://github.com/google/dotprompt/commit/1b5142c4a7ad20ef722d438cefa0b93a82d7adbb)) +* **scripts/setup:** update the location for the captainhook binary; minor formatting fixes for biome ([#328](https://github.com/google/dotprompt/issues/328)) ([f9183f8](https://github.com/google/dotprompt/commit/f9183f819725891cae16bd3452fea389aac9664d)) +* update build files in test runner script ([#265](https://github.com/google/dotprompt/issues/265)) ([800686f](https://github.com/google/dotprompt/commit/800686f529fa48fcb05998e73fe16d330df91124))