fix(deps): update dependency @notionhq/client to v5 #241
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:
^3.0.0→^5.0.0Release Notes
makenotion/notion-sdk-js (@notionhq/client)
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
Configuration
📅 Schedule: 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.
This PR was generated by Mend Renovate. View the repository job log.