Skip to content

chore(release): prepare for publishing - #107

Merged
Benoît Cortier (CBenoit) merged 3 commits into
masterfrom
release-plz/2026-09-15T12-46-30Z
Sep 15, 2026
Merged

Benoît Cortier (CBenoit) merged 3 commits into
masterfrom
release-plz/2026-09-15T12-46-30Z

Conversation

@devolutionsbot

@devolutionsbot devolutionsbot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

🤖 New release

  • now-policy: 0.3.0 -> 0.4.0 (⚠ API breaking changes)
  • now-policy-api: 0.4.0 -> 0.5.0 (⚠ API breaking changes)
  • now-policy-server-template: 0.4.0 -> 0.5.0 (⚠ API breaking changes)

now-policy breaking changes

--- failure constructible_struct_adds_field: externally-constructible struct adds field ---

Description:
A pub struct constructible with a struct literal has a new pub field. Existing struct literals must be updated to include the new field.
        ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/constructible_struct_adds_field.ron

Failed in:
  field PolicyDocument.policy_format_version in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy/src/policy.rs:25
  field PolicyDocument.policy_format_version in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy/src/policy.rs:25
  field PolicyDraftDocument.policy_format_version in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy/src/policy.rs:64
  field PolicyDraftDocument.policy_format_version in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy/src/policy.rs:64

--- failure pub_module_level_const_missing: pub module-level const is missing ---

Description:
A public const is missing or renamed
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/pub_module_level_const_missing.ron

Failed in:
  POLICY_SCHEMA_URI in file /tmp/.tmpn9o9zp/now-policy/src/markers.rs:56
  POLICY_SCHEMA_URI in file /tmp/.tmpn9o9zp/now-policy/src/markers.rs:56
  POLICY_DRAFT_SCHEMA_URI in file /tmp/.tmpn9o9zp/now-policy/src/markers.rs:59
  POLICY_DRAFT_SCHEMA_URI in file /tmp/.tmpn9o9zp/now-policy/src/markers.rs:59

--- failure struct_missing: pub struct removed or renamed ---

Description:
A publicly-visible struct cannot be imported by its prior path. A `pub use` may have been removed, or the struct itself may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/struct_missing.ron

Failed in:
  struct now_policy::markers::PolicyDraftSchemaUri, previously in file /tmp/.tmpn9o9zp/now-policy/src/markers.rs:67
  struct now_policy::PolicyDraftSchemaUri, previously in file /tmp/.tmpn9o9zp/now-policy/src/markers.rs:67
  struct now_policy::markers::PolicySchemaUri, previously in file /tmp/.tmpn9o9zp/now-policy/src/markers.rs:61
  struct now_policy::PolicySchemaUri, previously in file /tmp/.tmpn9o9zp/now-policy/src/markers.rs:61

--- failure struct_pub_field_missing: pub struct's pub field removed or renamed ---

Description:
A publicly-visible struct has at least one public field that is no longer available under its prior name. It may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/struct_pub_field_missing.ron

Failed in:
  field _schema of struct PolicyDocument, previously in file /tmp/.tmpn9o9zp/now-policy/src/policy.rs:25
  field policy_version of struct PolicyDocument, previously in file /tmp/.tmpn9o9zp/now-policy/src/policy.rs:28
  field _schema of struct PolicyDocument, previously in file /tmp/.tmpn9o9zp/now-policy/src/policy.rs:25
  field policy_version of struct PolicyDocument, previously in file /tmp/.tmpn9o9zp/now-policy/src/policy.rs:28
  field _schema of struct PolicyDraftDocument, previously in file /tmp/.tmpn9o9zp/now-policy/src/policy.rs:66
  field policy_version of struct PolicyDraftDocument, previously in file /tmp/.tmpn9o9zp/now-policy/src/policy.rs:69
  field _schema of struct PolicyDraftDocument, previously in file /tmp/.tmpn9o9zp/now-policy/src/policy.rs:66
  field policy_version of struct PolicyDraftDocument, previously in file /tmp/.tmpn9o9zp/now-policy/src/policy.rs:69

now-policy-api breaking changes

--- failure constructible_struct_adds_field: externally-constructible struct adds field ---

Description:
A pub struct constructible with a struct literal has a new pub field. Existing struct literals must be updated to include the new field.
        ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/constructible_struct_adds_field.ron

Failed in:
  field ResponsePolicyInfo.policy_format_version in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy-api/src/api.rs:258
  field ResponsePolicyInfo.policy_format_version in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy-api/src/api.rs:258

--- failure enum_no_repr_variant_discriminant_changed: enum variant had its discriminant change value ---

Description:
The enum's variant had its discriminant value change. This breaks downstream code that used its value via a numeric cast like `as isize`.
        ref: https://doc.rust-lang.org/reference/items/enumerations.html#assigning-discriminant-values
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/enum_no_repr_variant_discriminant_changed.ron

Failed in:
  variant PolicyFindingCode::UnsupportedPolicyType 13 -> 12 in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy-api/src/management.rs:105
  variant PolicyFindingCode::AuditModeEnabled 15 -> 14 in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy-api/src/management.rs:107
  variant PolicyFindingCode::DefaultAllow 16 -> 15 in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy-api/src/management.rs:108
  variant PolicyFindingCode::SensitiveOptionAllowed 17 -> 16 in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy-api/src/management.rs:109
  variant PolicyFindingCode::UnsupportedPolicyType 13 -> 12 in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy-api/src/management.rs:105
  variant PolicyFindingCode::AuditModeEnabled 15 -> 14 in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy-api/src/management.rs:107
  variant PolicyFindingCode::DefaultAllow 16 -> 15 in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy-api/src/management.rs:108
  variant PolicyFindingCode::SensitiveOptionAllowed 17 -> 16 in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy-api/src/management.rs:109

--- failure enum_variant_added: enum variant added on exhaustive enum ---

Description:
A publicly-visible enum without #[non_exhaustive] has a new variant.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#enum-variant-new
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/enum_variant_added.ron

Failed in:
  variant PolicyFindingCode:UnsupportedPolicyFormatVersion in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy-api/src/management.rs:106
  variant PolicyFindingCode:UnsupportedPolicyFormatVersion in /tmp/.tmpLwzI34/now-libraries/policies/rust/now-policy-api/src/management.rs:106

--- failure enum_variant_missing: pub enum variant removed or renamed ---

Description:
A publicly-visible enum has at least one variant that is no longer available under its prior name. It may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/enum_variant_missing.ron

Failed in:
  variant PolicyFindingCode::UnsupportedSchema, previously in file /tmp/.tmpn9o9zp/now-policy-api/src/management.rs:105
  variant PolicyFindingCode::UnsupportedPolicyVersion, previously in file /tmp/.tmpn9o9zp/now-policy-api/src/management.rs:107
  variant PolicyFindingCode::UnsupportedSchema, previously in file /tmp/.tmpn9o9zp/now-policy-api/src/management.rs:105
  variant PolicyFindingCode::UnsupportedPolicyVersion, previously in file /tmp/.tmpn9o9zp/now-policy-api/src/management.rs:107

--- failure struct_pub_field_missing: pub struct's pub field removed or renamed ---

Description:
A publicly-visible struct has at least one public field that is no longer available under its prior name. It may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/struct_pub_field_missing.ron

Failed in:
  field policy_version of struct ResponsePolicyInfo, previously in file /tmp/.tmpn9o9zp/now-policy-api/src/api.rs:258
  field policy_version of struct ResponsePolicyInfo, previously in file /tmp/.tmpn9o9zp/now-policy-api/src/api.rs:258
Changelog

now-policy

[0.4.0] - 2026-09-15

Features

  • [breaking] Simplify policy document identity (#106) (cc841bf6e5)

    Policy documents no longer contain $schema, and PolicyVersion is
    renamed to PolicyFormatVersion to identify software-managed
    document-format compatibility rather than a publisher-authored release
    version.

    Consumers must remove $schema and use "PolicyFormatVersion": "1.0.0". New documents emit 1.0.0; readers accept and preserve
    supported SemVer 1.x values and reject malformed or unsupported-major
    values. Applications must not expose this field as editable policy
    metadata. Revision and PublishedAt remain server-managed.

now-policy-api

[0.5.0] - 2026-09-15

Features

  • [breaking] Simplify policy document identity (#106) (cc841bf6e5)

    Policy documents no longer contain $schema, and PolicyVersion is
    renamed to PolicyFormatVersion to identify software-managed
    document-format compatibility rather than a publisher-authored release
    version.

    Consumers must remove $schema and use "PolicyFormatVersion": "1.0.0". New documents emit 1.0.0; readers accept and preserve
    supported SemVer 1.x values and reject malformed or unsupported-major
    values. Applications must not expose this field as editable policy metadata. Revision and PublishedAt remain server-managed.

now-policy-server-template

[0.5.0] - 2026-09-15

Features

  • [breaking] Simplify policy document identity (#106) (cc841bf6e5)

    Policy documents no longer contain $schema, and PolicyVersion is
    renamed to PolicyFormatVersion to identify software-managed
    document-format compatibility rather than a publisher-authored release
    version.

    Consumers must remove $schema and use "PolicyFormatVersion": "1.0.0". New documents emit 1.0.0; readers accept and preserve
    supported SemVer 1.x values and reject malformed or unsupported-major
    values. Applications must not expose this field as editable policy
    metadata. Revision and PublishedAt remain server-managed.


This PR was generated with release-plz.

Copilot AI balanced review requested due to automatic review settings September 15, 2026 12:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The three changelogs inaccurately imply broader SemVer support than the released parser provides.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Prepares coordinated releases for the policy crates following the policy document identity changes.

Changes:

  • Bumps crate and dependency versions.
  • Adds release changelog entries.
  • Refreshes locked dependency versions.
File summaries
File Description
Cargo.lock Updates workspace and dependency versions.
policies/rust/now-policy/Cargo.toml Bumps now-policy to 0.4.0.
policies/rust/now-policy/CHANGELOG.md Adds 0.4.0 release notes.
policies/rust/now-policy-api/Cargo.toml Bumps API crate and policy dependency.
policies/rust/now-policy-api/CHANGELOG.md Adds 0.5.0 release notes.
policies/rust/now-policy-server-template/Cargo.toml Bumps template and policy dependencies.
policies/rust/now-policy-server-template/CHANGELOG.md Adds 0.5.0 release notes.
Review details
  • Files reviewed: 6/7 changed files
  • Comments generated: 3
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread policies/rust/now-policy-api/CHANGELOG.md Outdated
Comment thread policies/rust/now-policy-server-template/CHANGELOG.md Outdated
Comment thread policies/rust/now-policy/CHANGELOG.md Outdated
Clarify versioning requirements and restrictions for policy documents.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The server-template compatibility classification contradicts its documented breaking API changes.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 6/7 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment on lines +14 to +15
- [**breaking**] Update policy endpoint payloads and generated OpenAPI schemas to omit `$schema` and use `PolicyFormatVersion` instead of `PolicyVersion` ([#106](https://github.com/Devolutions/now-libraries/issues/106)) ([cc841bf6e5](https://github.com/Devolutions/now-libraries/commit/cc841bf6e59547ddefbb6287f7a0ef8466aedb10))
- [**breaking**] Update the re-exported `PolicyFindingCode` to replace `UnsupportedPolicyVersion` with `UnsupportedPolicyFormatVersion` and remove `UnsupportedSchema` ([#106](https://github.com/Devolutions/now-libraries/issues/106)) ([cc841bf6e5](https://github.com/Devolutions/now-libraries/commit/cc841bf6e59547ddefbb6287f7a0ef8466aedb10))

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Release versions, dependency constraints, changelogs, and lockfile entries are consistent.

Review details
  • Files reviewed: 6/7 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@CBenoit Benoît Cortier (CBenoit) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed release metadata and crate-specific changelog entries; Copilot re-review is green and all required checks pass.

@CBenoit
Benoît Cortier (CBenoit) merged commit 784a8c1 into master Sep 15, 2026
11 checks passed
@CBenoit
Benoît Cortier (CBenoit) deleted the release-plz/2026-09-15T12-46-30Z branch September 15, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants