diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ee466a..e190a84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.1.0] - 2026-09-01 + +### Added +- Scalar list field support (`isList` updates): String/ID/Enumeration/Int/Float/Boolean/Date/DateTime lists now + update live instead of being withheld by Studio +- `data-hygraph-list-index` attribute and the `listIndex` option on `createPreviewAttributes`, to have each list item + patched individually +- `scalarListSync` capability in the `ready` message, which is how Studio decides whether list updates are safe to send +- `preview:field-updated` is now emitted after the built-in updater applies a change, and `preview:update-failed` when + it cannot; the update event detail carries `componentChain`, `isList`, `fieldType`, and `transformedValue` + +### Changed +- A whole-list binding renders its items joined with `, `; a binding that has child elements is refused (reported via + `preview:update-failed`) rather than having its markup overwritten + ## [1.0.1] - 2025-11-24 ### Documentation diff --git a/agents.md b/agents.md index 64972a6..02a0067 100644 --- a/agents.md +++ b/agents.md @@ -51,6 +51,12 @@ - Value is a JSON string array of `{ fieldApiId, instanceId }` hops (outermost first). - Prefer `createPreviewAttributes` and `createComponentChainLink` helpers from `@hygraph/preview-sdk/core` to generate the attributes safely. +#### Scalar list fields +- An element tagged with only the field api id binds the **whole** list: live updates render every item joined with `, `. +- Tag one node per item with `data-hygraph-list-index` (or `listIndex` on `createPreviewAttributes`) to have each item patched individually. +- The built-in updater refuses to write a list into an element that has child elements (a `