Update dependency @notionhq/client to v5 - #422
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
from
December 3, 2025 18:47
31f979f to
f5bdcec
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
2 times, most recently
from
December 16, 2025 05:55
7b42790 to
38d0b76
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
from
January 15, 2026 02:45
38d0b76 to
4b619dc
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
2 times, most recently
from
January 29, 2026 21:43
de61199 to
5d23c1d
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
from
February 12, 2026 14:13
5d23c1d to
70e81a5
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
3 times, most recently
from
March 3, 2026 00:36
6ff39cc to
54f7b61
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
2 times, most recently
from
March 14, 2026 20:06
a3079de to
706ea02
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
2 times, most recently
from
March 25, 2026 16:59
5679159 to
4b8fd3f
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
from
March 30, 2026 22:29
4b8fd3f to
be5d42a
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
from
April 7, 2026 18:16
be5d42a to
34fab28
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
2 times, most recently
from
April 17, 2026 18:59
f07f6c9 to
2d21b96
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
from
April 21, 2026 00:41
2d21b96 to
c0e496c
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
from
May 11, 2026 20:49
c0e496c to
907503d
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
from
May 19, 2026 19:25
907503d to
a258560
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
2 times, most recently
from
June 8, 2026 04:56
816cacb to
257e4bd
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
3 times, most recently
from
July 15, 2026 19:04
5c616cc to
5ba996a
Compare
renovate
Bot
force-pushed
the
renovate/notionhq-client-5.x
branch
from
July 29, 2026 14:59
5ba996a to
d2f6706
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.2.3→^5.0.0Release Notes
makenotion/notion-sdk-js (@notionhq/client)
v5.23.3Compare Source
What's Changed
Reliability
Edge-proxy blocks are now a diagnosable error (#751)
UnknownHTTPResponseError, but the generic message and raw HTML made these failures hard to diagnose. The HTTP error types now carry response diagnostics:ray_idis populated from thecf-rayresponse header whenever present, andrequest_idfalls back to thex-notion-request-idheader when the body doesn't provide one. An unrecognized response with a Ray ID but no Notion request ID is identified as edge-generated, and 403s note that a network security rule may be responsible.NotionClientErrorunion is unchanged.retry-afterheader lookup to be case-insensitive for plain-object headers and to handle array-valued headers.UnknownHTTPResponseErrors with HTML bodies: upgrade, then include the error'sray_idandrequest_idwhen reporting the issue — no code changes needed.Bump version to v5.23.3 (#752)
Links
v5.23.2Compare Source
What's Changed
New capabilities
filter.in_trashon search (#748)client.search()can now search trashed content. By default search only returns live content — trashed pages and data sources are excluded, same as before. Passingin_trash: trueswitches the search to return only trashed results (it does not mix trashed results into a normal search).in_trashboolean ({ property: "object", value: "page", in_trash: true }), or a standalone trash filter ({ in_trash: true }) that doesn't constrain the object type.filter: { in_trash: true }. Existing searches are unaffected — trash was and remains excluded by default.Bump version to v5.23.2 (#749)
Links
v5.23.1Compare Source
What's Changed
Type & bug fixes
Rich text annotation types are now exported (#740)
ApiColor,RichTextItemResponseCommon, and a newAnnotationResponsealias (the type ofRichTextItemResponse.annotations) to the package entrypoint. Fixes #689; thanks @KingJing1.RichTextItemResponsewith indexed-access types.Pagination helpers accept endpoint methods again under
strictNullChecks(#744)start_cursor?: string | null, but thePaginatedArgsconstraint used byiteratePaginatedAPI/collectPaginatedAPIstill only allowedstring— so passing methods likeclient.dataSources.queryto the helpers stopped compiling, with a misleading "property missing in typePaginatedArgs" error. Types-only fix (the runtime already handlednullcursors), plus a regression test that compiles a real endpoint method against the helpers so this can't silently regress again. Fixes #743; thanks @nakanoasaservice.Doc-comment fix:
updateDataSourceicon/in_trashdescriptions now reference data sources (#745)Bump version to v5.23.1 (#746)
New Contributors
Links
v5.23.0Compare Source
What's Changed
New capabilities
Webhook signature verification helpers (#722)
verifyWebhookSignature()(andsignWebhookPayload()for tests) so you can confirm a webhook actually came from Notion instead of hand-rolling HMAC-SHA256.X-Notion-Signatureheader. Works out of the box in Node 18+, Bun, Deno, Cloudflare Workers, Vercel Edge, and browsers.iterateAllDataSourceRows/collectAllDataSourceRowshelpers (#730, #731)dataSources.querycaps out at ~10,000 rows and then silently stops — plain pagination misses the rest of a large data source. These helpers page past that cap by partitioning oncreated_time, de-duping rows automatically.client.asyncTasks.retrieve(#736)allow_asynconcreatePageand update-page-markdown (#728, #729)allow_async, then poll the returned task viaclient.asyncTasks.retrieve(#736).Reliability
service_overload(HTTP 529) (#727)retry-after) alongside existing 429/500/503 handling — fewer transient failures surface to your code. No action needed; thanks @RyanBillard.Type & bug fixes
relevancesearch sort now uses thepropertydiscriminator (#724)relevancesort variant in search parameters. If you sort search results by relevance and hit a type error, this is the fix — align your call with the corrected shape.Allow
nullforstart_cursorin pagination types (#723)null(not juststring/undefined), so you can pass anext_cursorstraight through without a null-check dance.Bump version to v5.23.0 (#741)
New Contributors
Links
v5.22.0Compare Source
What's Changed
positionfield toinsert_contentparams for update page markdown endpoint in #720v5.22.0in #721Links
v5.21.0Compare Source
What's Changed
agent_idparent type for workflow-parented pages and blocks in #715v5.21.0in #718Links
v5.20.0Compare Source
What's Changed
request_statusfield to all affected list response types in #711v5.20.0by @github-actions[bot] in #712Links
v5.19.0Compare Source
What's Changed
updatemethod tocommentsnamespace for UpdateComment endpoint in #705markdownfield descriptions in comments endpoints to match updated API spec in #709deletemethod toclient.commentsfor Delete Comment endpoint in #706v5.19.0in #710Links
v5.18.0Compare Source
What's Changed
v5.18.0in #708Links
v5.17.0Compare Source
What's Changed
markdownparameter to Create Comment endpoint in #703v5.17.0in #704Links
v5.16.0Compare Source
What's Changed
gateway_timeouttoAPIErrorCodeenum by @notion-buildkite-app[bot] in #698Links
v5.15.0Compare Source
What's Changed
api-endpoints.tsinto individual files + add webhook types by @ksinder in #691custom_emojis.list()endpoint by @ksinder in #693Links
v5.14.0Compare Source
What's Changed
api-endpoints: add status property support by @ksinder in #686v5.14.0by @github-actions[bot] in #688Links
v5.13.0Compare Source
What's Changed
update_contentandreplace_contentoperations toPATCH /v1/pages/:id/markdownendpoint by @notion-circleci-github-app[bot] in #683v5.13.0by @github-actions[bot] in #685New Contributors
Links
v5.12.0Compare Source
What's Changed
2026-03-11by @ksinder in #675New Contributors
Links
v5.11.1Compare Source
What's Changed
stringfieldunsupported[block_type]inUnsupportedBlockObjectResponseto provide a hint on what an underlying unsupported block type isupdatePageendpoint: remove "properties" suffix from API name; just "Update page" now.Links
v5.11.0Compare Source
What's Changed
pages.retrieveMarkdownandpages.updateMarkdownendpoints by @ksinder in #669New Contributors
Links
v5.10.0Compare Source
What's Changed
New Contributors
Links
v5.9.0Compare Source
What's Changed
Client.request()#661../to switch the meaning of a request that accepts an ID path parameter to navigate to a different Notion API endpoint. Please useClient.request()with a properly formatted, absolute API path instead.Links
v5.8.0Compare Source
What's Changed
positiontoAppendBlockChildrenParametersby @ksinder in #658numbered_list_item, support distinguishing where list numbering starts and what type of list (number, letter, roman numeral), by exposinglist_start_indexandlist_formatNew Contributors
Full Changelog: makenotion/notion-sdk-js@v5.7.0...v5.8.0
v5.7.0Compare Source
What's Changed
positiontoCreatePageBodyParametersby @ksinder in #656positionparameter in thePOST /v1/pagesbody, which attaches the newly created page at a specific location in a parent page.Links
v5.6.0Compare Source
What's Changed
examples/in favor ofnotion-cookbookby @ksinder in #647Client.pages.moveendpoint to Notion TS SDK by @ksinder in #646Links
v5.5.0Compare Source
v5.4.0Compare Source
What's Changed
Links
v5.3.0Compare Source
What's Changed
api-endpointssync: add pagination forListDataSourceTemplatesendpoint by @ksinder in #633Links
v5.2.1Compare Source
What's Changed
Links
v5.2.0Compare Source
What's Changed
data_source_idtype fromDataSource.database_parentby @ksinder in #626workspace_idfield; query wiki filters by @ksinder in #628workspace_idin bot responses alongsideworkspace_namenotion.dataSources.listTemplateswith one path parameter,data_source_id, for listing the available page templates under a data sourcetemplatetoCreatePageBodyParameterswith polymorphictypeoptions ofnone(don't apply any template; existing behavior),default(apply data source's default template), andtemplate_id(apply a custom template ID)result_typetoQueryDataSourceBodyParametersto allow for only surfacing"page"or"data_source"result types in the case of wikis (where databases can be nested)Links
v5.1.0Compare Source
What's Changed
is_lockedon update page and database APIsrequest_idtoClientlog linespage_idas a possible parent forCreateDataSourceBodyParametersdataSource.update: add support for changingparentLinks
v5.0.0Compare Source
What's Changed
Major changes and highlights from
v4.0.2tov5.0.0.⚡️ Major API and SDK updates
2025-09-03, introducingnotion.dataSources.*endpoints to manage databases at the data source level and repurposingnotion.databases.*endpoints for the database container. #600 #601 #602 #603 #607 #6092022-02-22, and v5 of the SDK is tailored toward2025-09-03#600queryDataSourcesAPI shape #604📝 API shape and type improvements
additional_datafield in API error responses for better diagnostics. #603DataSourceObjectResponse["parent"]now supports thedata_source_idvariant.page | databasetopage | data_source.examples/projects in CI. #602🧩 Examples and internal maintenance
examples/to TypeScript and committed missing build files. #603 #600🛠 Miscellaneous fixes
New Contributors
Links
v4.0.2Compare Source
What's Changed
notion.comments.retrieve({...})endpoint to fetch a comment by its ID; this was previously a hidden and un-documented endpointgrant_type: "refresh_token"with arefresh_tokentonotion.oauth.token(...)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.1Compare Source
What's Changed
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.0Compare Source
What's Changed
propertiesparameters fromCreatePageBodyParametersandUpdatePageBodyParametersinsrc/api-endpoints.ts.propertieswas a fairly ambiguousRecord<string, ...>mapping each property key to the property value (a union type across all possible property types' values) e.g.typepattern with the actual value defined in a sub-object to disambiguate:AnnotationRequestPOST /v1/pages(CreatePage) API where:parentcan be omitted, or passed as{"workspace": true}, to create top-level private pages at the workspace level (for public integrations only)propertiesis also optional. For standalone pages, this results in title defaulting to an empty stringdisplay_nametoComment, more extraction refactors and docstrings by @ksinder in #588display_nameobject to theCommentObjectResponse, and some fixes from previous PRs around parenthesizinga & (b | c)inallOf→oneOfOpenAPI types to get the correct result rather than defaulting to the incorrect interpretation(a & b) | c.abcmusic language toLanguageRequest.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.3Compare 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.2Compare Source
What's Changed
max_file_upload_size_in_bytesfield to User response by @ksinder in #570Full 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.1Compare 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.0Compare Source
What's Changed
src/api-endpoints.ts/v1/file_uploadsfamily of API endpoints (File Upload Create, Get, List, Send, Complete)notion.fileUploads.sendbuilds aFormDataobject to send fields viamultipart/form-dataFormDataparameter passing logic insrc/Client.tsfor the Send File Upload APIexamples/intro-to-notion-api/intermediate/5-upload-file.jsexample of using the File Upload API to upload and attach a fileFull 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.1Compare Source
What's Changed
width_ratioparameter and field oncolumnBlocks by @ksinder in #561api-endpointstypes fromsrc/index.tsby @ksinder in #562Full 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.0Compare 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
fetchas the default in theClientconstructor instead ofnode-fetch.src/api-endpoints.tsby @ksinder in #558InternalFileRequest,ExternalFileRequest, andInternalOrExternalFileWithNameRequestblock_idcdcommand by @crosskayla in #493Full 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: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.