Skip to content

Releases: kube-rs/kopium

0.16.2

07 Nov 10:01
0.16.2
c695c68
Compare
Choose a tag to compare

What's Changed

Dependencies

Changes

  • Prevent some more crashes on strange var/enum choices by @clux in #167

Full Changelog: 0.16.1...0.16.2

0.16.1

18 Oct 18:18
0.16.1
69b5e89
Compare
Choose a tag to compare

Full Changelog: v0.15.0...0.16.1

First release in a while. Lots of dependency bumps. New release CI setup.

v0.15.0

17 Feb 07:53
v0.15.0
Compare
Choose a tag to compare

Overview

This release fixes two issues with generation.

What's Changed

Full Changelog: v0.14.0...v0.15.0

v0.14.0

18 Nov 04:22
Compare
Choose a tag to compare

Overview

Lots of improvements to the robustness of the parsing and generation process giving us compatibility with some complicated crds (alertmanagers crd and sig network gateway api crds). There is also an elision flag in place to allow overriding generated output more easily, plus a much more informative kopium header in the generated output.

What's Changed

  • Do not try to derive CustomResource when using --hide-kube by @clux in #97
  • Add generation command and kopium version to output header by @clux in #99
  • Allow simple integer enums by rawstring escaping variant names by @clux in #100
  • Add --elide flag to drop generated structs from the output by @clux in #102
  • Replaces invalid enum identifiers with generated ones by @Dav1dde in #103
  • Fixes clippy lints by @Dav1dde in #105

New Contributors

Full Changelog: v0.13.0...v0.14.0

v0.13.0

16 Oct 15:08
Compare
Choose a tag to compare

What's Changed

  • Pull up clap to 4.0 series by @imp in #86
  • Add warning on top of generated output by @clux in #88
  • Stop auto-deriving default for enum by @clux in #89
  • Fix Container recursion into additionalProperties by @clux in #90

Full Changelog: v0.12.0...v0.13.0

v0.12.0

03 Aug 09:31
Compare
Choose a tag to compare

Highlights

Big features: rudimentary support for enums in #71, and some handling of preserve-unknown-fields in #76 and #77.

There is also a breaking change with the removal of -z/--rust-case and -i flags. We now always convert member names to rust style casing because other languages can name members in rust-invalid ways that failed to generate without setting these flags. Removing this brittle default behaviour also avoids generating code with warnings when names did not match rust-conventions.

What's Changed

  • Add optional typed-builder derives by @clux in #64
  • Add simple enum support by @clux in #65
  • Combine all serde field annotations by @clux in #63
  • Add support for enum renames and refactor analyzer interface by @clux in #71
  • Update clap to v3 by @imp in #72
  • Turn "preserve-unknown-fields" into serde_json::Value for more cases by @felipesere in #76
  • Nest serde_json::Value under HashMap for preserve-unknown-fields by @clux in #77
  • bump dependencies and fix clap minor by @clux in #80
  • Always rustify member names by @clux in #82

New Contributors

Full Changelog: v0.11.0...v0.12.0

v0.11.0

21 Apr 18:41
Compare
Choose a tag to compare

Highlights

Snake Case members possible with -z in #56. Only slightly breaking change is a new #![allow(non_snake_case)] line at top of file if not converting to snake_case. This can be turned off with -i.

In general, the output format is a lot more controllable now with flags, and can read from stdin and files with -f.
Also more bugfixes.

What's Changed

  • Allow reading file from stdin with kopium -f - by @clux in #50
  • Allow hiding kube derive instructions with --hide-kube by @clux in #51
  • Allow deriving JsonSchema on structs by @clux in #53
  • Add --schema flag to set kube-derive schema mode by @clux in #55
  • Add optional snake_case conversion of member names by @clux in #56
  • Add --auto shorthand for automation options by @clux in #58
  • Fix --derive not adding derives to child structs by @clux in #59
  • Fix Map of String case in ServiceMonitor by @clux in #62

Plus these from the 0.10.0 release that was only out for a few hours:

  • Allow reading CRDs from yaml file by @clux in #46
  • Fix generation for maps of integers by @clux in #47

Full Changelog: v0.10.0...v0.11.0

v0.9.0

11 Apr 19:10
Compare
Choose a tag to compare

Option change

We have identified a safety issue with our previously "smart" stripping of Option's in favour of serde default annotations. The only sensible way to rectify this was to add back Option wrapping of containers, which does make some of the code slightly less ergonomic. See #41

Changelog

New Contributors

Full Changelog: v0.8.0...v0.9.0

v0.8.0

02 Mar 09:18
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.7.0...v0.8.0

v0.7.0

19 Feb 07:03
Compare
Choose a tag to compare

What's Changed

  • Fix agentshift array case by @clux in #33
  • Set status explicitly in the kube tag by @flaper87 in #34

New Contributors

Full Changelog: v0.6.0...v0.7.0