Commit Graph

35 Commits

Author SHA1 Message Date
66560625d6 feat(deps): replace yaml.v3 with goccy/go-yaml library
Replace yaml.v3 with goccy/go-yaml, as the former is now unmaintained.

Also upgrade minimum Go version to 1.21.0 and update testify to v1.10.0.

Add support for configuring encoder options in YAML renderer to
provide more flexibility in YAML output formatting. Include new options
for sequence indentation and automatic integer conversion.

Implement support for both yaml.InterfaceMarshaler and 
yaml.BytesMarshaler interfaces with appropriate test cases. Rename mock
implementation to clarify interface implementation.
2025-06-22 11:49:56 +01:00
jimehbot[bot]
3d82cdc7e3 chore(main): release 0.1.0 (#8)
Co-authored-by: jimehbot[bot] <132453784+jimehbot[bot]@users.noreply.github.com>
v0.1.0
2025-06-11 03:53:08 +01:00
25d14bd5e4 fix(makefile): update golangci-lint import path to v2 module (#13)
Use correct import path for golangci-lint v2 so that `make lint` works.
2025-06-11 03:41:03 +01:00
1b8fb22499 chore: correct typos and align struct field tags (#12)
Fixes typos in package documentation and variable names. Aligns 
struct field tags in examples and tests for better readability.
2025-06-11 03:15:29 +01:00
64d24259e3 ci(release): move always-update to top-level (#11)
Package level definition seemed to not work.
2025-06-11 03:11:37 +01:00
4b3e531624 ci(release): enable always-update for Release Please (#10) 2025-06-11 03:06:20 +01:00
9cf74f6a00 ci: set GitHub workflow permissions (#9) 2025-06-11 02:29:40 +01:00
e85261d0c6 fix(json)!: correct spelling of JSONDefaultIndent (#7)
Fix misspelled variable name `JSONDefualtIndent` to `JSONDefaultIndent`
throughout the codebase. Update documentation to reference this
correctly spelled variable in the JSON struct's Indent field comment.

BREAKING CHANGE: Rename `JSONDefualtIndent` to correctly spelled `JSONDefaultIndent`.
2025-06-11 02:25:51 +01:00
2fb5fea7fb fix(xml)!: correct spelling of XMLDefaultIndent (#6)
Fixes typo in variable name and references from 'XMLDefualtIndent' to 
'XMLDefaultIndent'. Updates the variable declaration and all references 
to maintain consistency throughout the XML renderer implementation.

BREAKING CHANGE: Rename `XMLDefualtIndent` to correctly spelled `XMLDefaultIndent`.
2025-06-11 02:19:30 +01:00
c3408f0cfb chore: upgrade Go, golangci-lint and CI deps (#5)
Upgrade main development to use Go 1.23, while still running CI against 1.20 and later.

Also update golangci-lint to v2.
2025-06-11 02:12:26 +01:00
jimehbot[bot]
6cec7b8627 chore(main): release 0.0.2 (#4)
Co-authored-by: jimehbot[bot] <132453784+jimehbot[bot]@users.noreply.github.com>
v0.0.2
2024-03-25 22:03:02 +00:00
67a0623a2b fix(examples): provide examples for Render, Compact and Pretty functions (#3)
Previously all examples were associated with Render, but only used
Pretty. Now there are examples for each of the main package level
functions.
2024-03-25 22:00:33 +00:00
19b66b6df3 docs(readme): add code coverage badge 2024-03-25 03:29:20 +00:00
5fe8a5fc87 Merge pull request #2 from jimeh/release-please--branches--main
chore(main): release 0.0.1
v0.0.1
2024-03-25 03:25:59 +00:00
jimehbot[bot]
b5ec4df4c0 chore(main): release 0.0.1 2024-03-25 03:23:47 +00:00
c0e1ba0d10 docs(readme): minor improvements to usage examples 2024-03-25 03:20:05 +00:00
e88c0d5ca3 docs(readme): minor fix and tweaks 2024-03-25 03:12:20 +00:00
83bcf99f47 docs(readme): flesh out readme 2024-03-25 03:02:53 +00:00
9b894eaeca docs(examples): improve examples 2024-03-25 03:02:37 +00:00
eb5cc910dd ci(release): use jimehbot app to run release please 2024-03-25 02:10:07 +00:00
03bfa1a8f8 ci(release): setup release-please for release automation 2024-03-25 02:03:35 +00:00
563d447be9 ci: fix test workflow, enable coverage workflow 2024-03-25 01:58:34 +00:00
da84a91944 style: fix lint failure 2024-03-25 01:53:34 +00:00
e2e2754970 refactor: focus around Render/Compact/Pretty/NewWith functions
This is yet another drastic refactor of public API and concepts.
Hopefully the last one, as I'm now fairly happy with things.
2024-03-25 01:40:31 +00:00
de3a9e55a8 refactor: yet another one, someday I might be happy 2024-03-24 03:28:08 +00:00
ccc3668fa2 chore: improve errors and tests 2024-03-23 21:05:57 +00:00
5247fbd90b feat(text): expand supported value types 2024-03-23 21:05:38 +00:00
7632b1119c refactor!: sizeable changes across the board 2024-03-19 03:54:31 +00:00
a1b1ef82ad docs(examples): improve Render examples 2024-03-18 00:10:56 +00:00
b5c4ffa0b5 docs(examples): add example tests for Render function 2024-03-18 00:04:17 +00:00
7df40b1578 test(render): improve test coverage 2024-03-17 23:07:12 +00:00
2ad77f0b1b chore(readme): add WIP readme 2024-03-17 20:54:11 +00:00
b6a215ba99 chore(ci): add Makefile, GitHub Actions workflow, and golangci-lint config 2024-03-17 20:51:47 +00:00
d16d1083f1 chore(license): add MIT linces 2024-03-17 20:48:38 +00:00
2b28f96bad feat(render): experimental package to render arbitrary values to different formats 2024-03-17 20:48:33 +00:00