Skip to content

Commit

Permalink
fix: properly update document's title with updateDocument (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-mp authored Jan 15, 2025
1 parent c45f28d commit fa9ca0d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [7.15.0-alpha.0](https://github.com/prismicio/prismic-client/compare/v7.14.0...v7.15.0-alpha.0) (2025-01-14)

## [7.14.0](https://github.com/prismicio/prismic-client/compare/v7.13.1...v7.14.0) (2025-01-09)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prismicio/client",
"version": "7.14.0",
"version": "7.15.0-alpha.0",
"description": "The official JavaScript + TypeScript client library for Prismic",
"keywords": [
"typescript",
Expand Down
1 change: 1 addition & 0 deletions src/WriteClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ export class WriteClient<
// in case the document already existed during the previous step.
{
...doc.document,
documentTitle: doc.title,
data: await resolveMigrationDocumentData(
doc.document.data,
migration,
Expand Down

0 comments on commit fa9ca0d

Please sign in to comment.