Skip to content

fix(deps): update dependency @notionhq/client to v4#78

Draft
renovate[bot] wants to merge 1 commit intomainfrom
renovate/notionhq-client-4.x
Draft

fix(deps): update dependency @notionhq/client to v4#78
renovate[bot] wants to merge 1 commit intomainfrom
renovate/notionhq-client-4.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Jul 1, 2025

This PR contains the following updates:

Package Change Age Confidence
@notionhq/client (source) ^2.2.15^4.0.0 age confidence

Release Notes

makenotion/notion-sdk-js (@​notionhq/client)

v4.0.2

Compare Source

What's Changed

  • Update Notion JS SDK with GetComment endpoint by @​julyou in #​595
    • Introduces notion.comments.retrieve({...}) endpoint to fetch a comment by its ID; this was previously a hidden and un-documented endpoint
    • Introduces API shape to manually refresh an API token by passing grant_type: "refresh_token" with a refresh_token to notion.oauth.token(...)
    • Minor refactors and additional type exports
  • Bump TypeScript dependency to 5.9 by @​ksinder in #​597
    • WARNING: This might be effectively a breaking change in some cases since part of the SDK contract is exporting types for Notion's public API endpoints. Before upgrading, confirm your TypeScript version is sufficiently new or that the types are compatible with your system.

Full Changelog: makenotion/notion-sdk-js@f849574...v4.0.2

View this version on NPM: https://www.npmjs.com/package/@​notionhq/client/v/4.0.2

v4.0.1

Compare Source

What's Changed

  • Support additional headers passed to notion.request()

Full Changelog: makenotion/notion-sdk-js@f7bfcfd...v4.0.1

View this version on NPM: https://www.npmjs.com/package/@​notionhq/client/v/4.0.1

v4.0.0

Compare Source

What's Changed

  • Remove no-op duplicates from union types across all endpoints by @​ksinder in #​579
  • Remove legacy (<=2021) v1 API shape for page properties by @​ksinder in #​580
    • Removes support for the legacy (pre-Q3-2021) shape for page properties parameters from CreatePageBodyParameters and UpdatePageBodyParameters in src/api-endpoints.ts.
    • This collapses the union type of {old properties shape, new properties shape} down to the new shape only.
    • In the old shape, properties was a fairly ambiguous Record<string, ...> mapping each property key to the property value (a union type across all possible property types' values) e.g.
      {
        // ...
        "numberId": 24,
      }
    • In the new shape (the only one we want to support going forward), the value must be wrapped in an object that uses the polymorphic type pattern with the actual value defined in a sub-object to disambiguate:
      {
        // ...
        "numberId": {
          "type": "number",
          "number": 24
        }
      }
    • This matches up with our responses in the API read path so most, if not all, integrations are likely already using syntax compatible with the new shape
  • chore: add JSDoc comments to API types by @​julyou in #​585
  • Add support for attachments in Comment API by @​julyou in #​586
  • CreatePage: support workspace-level private pages (+ misc param type refactors) by @​ksinder in #​587
    • No-op refactors/cleanups: extracting some components into separate type aliases, e.g. AnnotationRequest
    • Support the new mode in POST /v1/pages (CreatePage) API where:
      • parent can be omitted, or passed as {"workspace": true}, to create top-level private pages at the workspace level (for public integrations only)
      • properties is also optional. For standalone pages, this results in title defaulting to an empty string
  • Sync API endpoints: add display_name to Comment, more extraction refactors and docstrings by @​ksinder in #​588
    • This includes miscellaneous extraction refactors for named subsets of parameters and other cleanups like new parameter docstrings.
    • The only functional change is adding the new display_name object to the CommentObjectResponse, and some fixes from previous PRs around parenthesizing a & (b | c) in allOfoneOf OpenAPI types to get the correct result rather than defaulting to the incorrect interpretation (a & b) | c.
  • Sync latest API endpoints schema as of 2025-06-30 by @​ksinder in #​590
    • Most of these are no-op re-ordering of type definitions.
    • Some added and edited comments/docstrings.
    • The only semantic change is adding support for the abc music language to LanguageRequest.

New Contributors

Full Changelog: makenotion/notion-sdk-js@df95f35...v4.0.0

View this version on NPM: https://www.npmjs.com/package/@​notionhq/client/v/4.0.0

v3.1.3

Compare Source

What's Changed

Full Changelog: makenotion/notion-sdk-js@0e38438...v3.1.3

View this version on NPM: https://www.npmjs.com/package/@​notionhq/client/v/3.1.3

v3.1.2

Compare Source

What's Changed

Full Changelog: makenotion/notion-sdk-js@194f06d...v3.1.2

View this version on NPM: https://www.npmjs.com/package/@​notionhq/client/v/3.1.2

v3.1.1

Compare Source

What's Changed

New Contributors

Full Changelog: makenotion/notion-sdk-js@f8bb1d0...v3.1.1

View this version on NPM: https://www.npmjs.com/package/@​notionhq/client/v/3.1.1

v3.1.0

Compare Source

What's Changed

  • Add support for File Upload API endpoints by @​ksinder in #​565
    • Sync the latest OpenAPI schema for Notion's Public API to src/api-endpoints.ts
    • Introduce the /v1/file_uploads family of API endpoints (File Upload Create, Get, List, Send, Complete)
      • notion.fileUploads.send builds a FormData object to send fields via multipart/form-data
    • Add several refactors to extract common reused schema components, which drastically reduces the size of the file
  • Add file upload API example and fix Blob send logic by @​ksinder in #​566
    • Fix the FormData parameter passing logic in src/Client.ts for the Send File Upload API
    • Add examples/intro-to-notion-api/intermediate/5-upload-file.js example of using the File Upload API to upload and attach a file

Full Changelog: makenotion/notion-sdk-js@f2e1665...v3.1.0

View this version on NPM: https://www.npmjs.com/package/@​notionhq/client/v/3.1.0

v3.0.1

Compare Source

What's Changed

Full Changelog: makenotion/notion-sdk-js@8b867fd...v3.0.1

View this version on NPM: https://www.npmjs.com/package/@​notionhq/client/v/3.0.1

v3.0.0

Compare Source

What's Changed

This update, v2.3.0 → v3.0.0, is marked as a major version upgrade due to the Node minimum version increase to 18, as part of the change to use built-in fetch as the default in the Client constructor instead of node-fetch.

  • Sync OpenAPI schema as of 2025-04-08 to src/api-endpoints.ts by @​ksinder in #​558
    • Refactor common parameter shapes into new types: InternalFileRequest, ExternalFileRequest, and InternalOrExternalFileWithNameRequest
    • Support commenting on a non-page block in the Create Comment API by accepting a parent type of block_id
  • Use isomorphic fetch by @​sv2dev in #​506
  • Small typo fixes in docs and example files

Full Changelog: makenotion/notion-sdk-js@650d23b...v3.0.0

View this version on NPM: https://www.npmjs.com/package/@​notionhq/client/v/3.0.0

New Contributors


Configuration

📅 Schedule: (in timezone Asia/Tokyo)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tech-blog Ready Ready Preview, Comment Mar 13, 2026 2:49pm

@renovate renovate Bot force-pushed the renovate/notionhq-client-4.x branch from 8b178b5 to 1772617 Compare August 10, 2025 13:00
@renovate renovate Bot force-pushed the renovate/notionhq-client-4.x branch from 1772617 to 98cf07e Compare August 13, 2025 21:55
@renovate renovate Bot force-pushed the renovate/notionhq-client-4.x branch from 98cf07e to cfe9e62 Compare August 19, 2025 13:05
@renovate renovate Bot force-pushed the renovate/notionhq-client-4.x branch from cfe9e62 to ae95bb5 Compare August 31, 2025 14:15
@renovate renovate Bot changed the title Update dependency @notionhq/client to v4 fix(deps): update dependency @notionhq/client to v4 Sep 10, 2025
@renovate renovate Bot force-pushed the renovate/notionhq-client-4.x branch from ae95bb5 to a34f5b8 Compare September 25, 2025 09:05
@renovate renovate Bot force-pushed the renovate/notionhq-client-4.x branch from a34f5b8 to 03c51a5 Compare October 22, 2025 00:12
@renovate renovate Bot force-pushed the renovate/notionhq-client-4.x branch from 03c51a5 to 5b37f93 Compare November 10, 2025 14:48
@renovate renovate Bot force-pushed the renovate/notionhq-client-4.x branch from 5b37f93 to 9fa532e Compare November 18, 2025 14:51
@renovate renovate Bot force-pushed the renovate/notionhq-client-4.x branch from 9fa532e to a5e823b Compare December 1, 2025 19:31
@renovate renovate Bot force-pushed the renovate/notionhq-client-4.x branch from a5e823b to fc1ebef Compare December 2, 2025 20:52
@renovate renovate Bot force-pushed the renovate/notionhq-client-4.x branch from fc1ebef to f916943 Compare December 31, 2025 12:58
@renovate renovate Bot force-pushed the renovate/notionhq-client-4.x branch from f916943 to 1d7916f Compare December 31, 2025 20:48
@renovate renovate Bot force-pushed the renovate/notionhq-client-4.x branch from 1d7916f to 861382f Compare January 8, 2026 20:28
@renovate renovate Bot force-pushed the renovate/notionhq-client-4.x branch from 861382f to 25059ed Compare January 19, 2026 18:56
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.

0 participants