Oleg Isonen 57b20ee85b fix: Preserve custom page metadata on partial updates (#6721)
A partial page metadata update no longer removes existing custom tags.
Passing `meta.custom: []` still clears the collection.

The cause was an omitted `custom` field becoming an own property with
value `undefined` during expression binding. Patch generation treated it
as an explicit removal. The update now binds custom entries only when
the field is supplied.

- [x] Add regression coverage for dry-run and committed updates with
existing custom metadata.
- [x] Verify explicit `custom: []` clears the collection.
- [x] Verify both `mcp single-op-call` and `mcp run` manifest paths;
tests fail with the old helper and pass with the fix.
- [x] Run project-build tests (2,764) and CLI tests (1,356).
- [x] Run both package typechecks, lint, formatting, package-boundary
check, and diff check.
- [x] Review documentation impact; no docs or fixture changes are
needed.

Closes #6718
2026-11-19 16:23:39 +01:00
2026-02-05 10:25:17 +01:00
2026-03-20 21:09:47 +01:00
2023-09-06 21:43:29 +03:00

builder-screenshot

Webstudio is an Open Source Visual Development Platform for developers, designers, and cross-functional teams. You own the data, components, and infrastructure. You can use the hosted version or roll out your own.


Learning Resources

Social Media

License

  • Webstudio core (all functionality in this repository) is free/open-source under AGPL-3.0-or-later.
  • sdk-components-animation package (optional) is proprietary. You must accept the Webstudio, Inc. EULA located in sdk-components-animation/LICENSE before using it.
Languages
TypeScript 97.9%
PLpgSQL 1.5%
CSS 0.3%
Shell 0.2%
JavaScript 0.1%