diff --git a/.changeset/properties-parts-by-relationship.md b/.changeset/properties-parts-by-relationship.md deleted file mode 100644 index 7eed8bb02..000000000 --- a/.changeset/properties-parts-by-relationship.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@office-kit/pptx': patch ---- - -Fixed: `getCoreProperties` returned `null`, and `setCoreProperties` added a second core-properties part and relationship, for packages that store core properties somewhere other than `/docProps/core.xml` (e.g. `package/services/metadata/core-properties/….psmdcp`) (#457). Core and extended properties are now found through the package's root relationships, as OPC specifies, so `getExtendedProperties` / `setExtendedProperties` also work when `app.xml` lives elsewhere. A `/docProps/core.xml` part that no relationship points at is no longer read as the core properties, and a core-properties relationship whose target escapes the package root (`../…`) now throws instead of being ignored. diff --git a/.changeset/undeclared-namespace-prefix.md b/.changeset/undeclared-namespace-prefix.md deleted file mode 100644 index bd2149e91..000000000 --- a/.changeset/undeclared-namespace-prefix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@office-kit/pptx': patch ---- - -Fixed: `duplicateSlide`, `addSlideImage` and other edits could save XML with an unbound `r:` (or other) prefix when the template declared that prefix on individual elements instead of the part root, so the saved file failed to load (#456). The writer now declares any prefix a new element or attribute uses that is not already in scope. diff --git a/CHANGELOG.md b/CHANGELOG.md index d991826a9..acfd55c28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # @office-kit/pptx +## 0.24.1 + +### Patch Changes + +- 44afe47: Fixed: `getCoreProperties` returned `null`, and `setCoreProperties` added a second core-properties part and relationship, for packages that store core properties somewhere other than `/docProps/core.xml` (e.g. `package/services/metadata/core-properties/….psmdcp`) (#457). Core and extended properties are now found through the package's root relationships, as OPC specifies, so `getExtendedProperties` / `setExtendedProperties` also work when `app.xml` lives elsewhere. A `/docProps/core.xml` part that no relationship points at is no longer read as the core properties, and a core-properties relationship whose target escapes the package root (`../…`) now throws instead of being ignored. +- 5de41e0: Fixed: `duplicateSlide`, `addSlideImage` and other edits could save XML with an unbound `r:` (or other) prefix when the template declared that prefix on individual elements instead of the part root, so the saved file failed to load (#456). The writer now declares any prefix a new element or attribute uses that is not already in scope. + ## 0.24.0 ### Minor Changes diff --git a/package.json b/package.json index d9695702b..94682616f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@office-kit/pptx", - "version": "0.24.0", + "version": "0.24.1", "description": "Generate and edit .pptx (OOXML PresentationML) files from TypeScript, in Node and the browser.", "keywords": [ "drawingml",