Update dependency @notionhq/client to v3
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@notionhq/client (source) | dependencies | major | ^2.2.3 -> ^3.0.0 |
Release Notes
makenotion/notion-sdk-js (@notionhq/client)
v3.1.3
v3.1.2
v3.1.1
What's Changed
- Updates node/nvm version required by @typeoneerror in https://github.com/makenotion/notion-sdk-js/pull/568
New Contributors
- @typeoneerror made their first contribution in https://github.com/makenotion/notion-sdk-js/pull/568
Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/f8bb1d0c9b9087c9e7c12d993320035084d030db...v3.1.1
View this version on NPM: https://www.npmjs.com/package/@​notionhq/client/v/3.1.1
v3.1.0
What's Changed
-
Add support for File Upload API endpoints by @ksinder in https://github.com/makenotion/notion-sdk-js/pull/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 aFormData
object to send fields viamultipart/form-data
-
- Add several refactors to extract common reused schema components, which drastically reduces the size of the file
- Sync the latest OpenAPI schema for Notion's Public API to
-
Add file upload API example and fix Blob send logic by @ksinder in https://github.com/makenotion/notion-sdk-js/pull/566
- Fix the
FormData
parameter passing logic insrc/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
- Fix the
Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/f2e166522a1df34fce8075299a09a6c500e25f4a...v3.1.0
View this version on NPM: https://www.npmjs.com/package/@​notionhq/client/v/3.1.0
v3.0.1
What's Changed
- Support
width_ratio
parameter and field oncolumn
Blocks by @ksinder in https://github.com/makenotion/notion-sdk-js/pull/561 - Export several common
api-endpoints
types fromsrc/index.ts
by @ksinder in https://github.com/makenotion/notion-sdk-js/pull/562
Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/8b867fdc7058e015ceef30c1986b61476bd86280...v3.0.1
View this version on NPM: https://www.npmjs.com/package/@​notionhq/client/v/3.0.1
v3.0.0
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 https://github.com/makenotion/notion-sdk-js/pull/558- Refactor common parameter shapes into new types:
InternalFileRequest
,ExternalFileRequest
, andInternalOrExternalFileWithNameRequest
-
Support commenting on a non-page block in the Create Comment API by accepting a parent type of
block_id
- Refactor common parameter shapes into new types:
-
Use isomorphic fetch by @sv2dev in https://github.com/makenotion/notion-sdk-js/pull/506
- This updates the minimum Node engine version from 12 to 18.
-
Small typo fixes in docs and example files
- docs: fix incorrect example path in README by @R-jisu in https://github.com/makenotion/notion-sdk-js/pull/556
- Update .env.example by @jtsmith1287 in https://github.com/makenotion/notion-sdk-js/pull/532
- Update README.md with correct
cd
command by @crosskayla in https://github.com/makenotion/notion-sdk-js/pull/493
Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/650d23bd94c1cd9a4179fcbea25be617e2f5a7e5...v3.0.0
View this version on NPM: https://www.npmjs.com/package/@​notionhq/client/v/3.0.0
New Contributors
- @sv2dev made their first contribution in https://github.com/makenotion/notion-sdk-js/pull/506
- @R-jisu made their first contribution in https://github.com/makenotion/notion-sdk-js/pull/556
- @jtsmith1287 made their first contribution in https://github.com/makenotion/notion-sdk-js/pull/532
- @crosskayla made their first contribution in https://github.com/makenotion/notion-sdk-js/pull/493
v2.3.0
What's changed
- Introduce client methods and data types for the new
oauth/revoke
andoauth/introspect
token endpoints by @ksinder in https://github.com/makenotion/notion-sdk-js/pull/552
Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/b7f3de8563bd566cb3a0cea421aa1a82f2be9e46...v2.3.0
View this version on NPM: https://www.npmjs.com/package/@​notionhq/client/v/2.3.0
v2.2.17
What's changed
- Added previously-missing optional fields to
LinkMentionResponse
by @ksinder in https://github.com/makenotion/notion-sdk-js/pull/550:title
,description
,link_author
,link_provider
,thumbnail_url
,icon_url
,iframe_url
,height
,padding
,padding_top
Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/eed58030649895b95ab9b97e2959f77bab19cd62...v2.2.17
View this version on NPM: https://www.npmjs.com/package/@​notionhq/client/v/2.2.17
v2.2.16
- Added
link_mention
andcustom_emoji
types, which are surfaced in various places (page, database, mention rich text item responses; block object requests) - Added a new
ApiColor
ofdefault_background
- Added
"ascii art"
,"hcl"
, and"smalltalk"
toLanguageRequest
Full Changelog: https://github.com/makenotion/notion-sdk-js/compare/7950edc034d3007b0612b80d3f424baef89746d9...v2.2.16
v2.2.15
- Added
in_trash
field to request and response body - Added
description
field to database properties - Added
PartialSelectResponse
to be used for select properties
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.