npm @notionhq/client 3.1.0
v3.1.0

latest releases: 5.0.0, 5.0.0-rc.1, 5.0.0-rc.0...
3 months ago

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: f2e1665...v3.1.0

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

Don't miss a new client release

NewReleases is sending notifications on new releases.