Skip to content

Version Packages - #784

Merged
pdlug merged 2 commits into
mainfrom
changeset-release/main
Oct 1, 2026
Merged

pdlug merged 2 commits into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@nicia-ai/typegraph@0.73.1

Highlights

updateWhere() and compareAndSet() now preserve stored values for defaulted properties omitted from a patch, matching update(). Previously, changing one property could silently reset unrelated properties to their schema defaults on every matched row. Defaults are also no longer evaluated for omitted compare-and-set expectations.

Upgrade notes

  • After upgrading, remove workarounds that restate every defaulted property in updateWhere() or compareAndSet() patches. Omitted properties retain their stored values; to reset a property, supply the desired value explicitly.
  • Check rows previously changed by updateWhere() or compareAndSet() on node kinds with defaulted properties, and restore any unintended resets from application history or backups. Upgrading prevents future resets but does not recover overwritten values.

Patch Changes

  • #783 d5560e5 Thanks @pdlug! - Preserve omitted defaulted properties in updateWhere() and compareAndSet() patches. Validate only supplied patch and expected-state fields so defaults cannot silently overwrite stored values or run for omitted expectations.

@pdlug
pdlug merged commit 1672a5e into main Oct 1, 2026
14 checks passed
@pdlug
pdlug deleted the changeset-release/main branch October 1, 2026 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant