Skip to content

5.0.0 πŸš€

Latest

Choose a tag to compare

@KoditkarVedant KoditkarVedant released this 15 Jun 11:14
· 69 commits to main since this release

πŸš€ Features

Data Sources API Support

  • NEW: Complete Data Sources API implementation with full CRUD operations
    • Retrieve, create, update, and query data sources
    • List data source templates functionality
    • Support for data source property configurations
  • NEW: Enhanced search functionality now supports data sources alongside pages and databases

Notion API Version Update

  • NEW: Support for Notion API version 2025-09-03 (latest)
  • Updated default API version in Constants to 2025-09-03

Markdown Support

  • NEW: Create pages with markdown content (#550)
  • NEW: Retrieve page content as markdown (#551)
  • NEW: Update page content as markdown (#578)

Page & Block Enhancements

  • NEW: Support for native page icons (#508)
  • NEW: Move page API support (#577)
  • NEW: Transcription Block support (#548)
  • NEW: Content object for unsupported blocks (#549)
  • NEW: Place property support (#545)

File Upload Enhancements

  • Improved file upload models and request handling
  • Enhanced page cover support with new request models:
    • ExternalPageCoverRequest
    • FileUploadPageCoverRequest

HTTP Client & Resilience

  • NEW: Customize HttpClient with a default retry policy (#579)

Extensible Enum Types

  • NEW: Enum types are now extensible to better handle unknown future API values (#580)

Database and Page Improvements

  • NEW: Database update functionality with new request models
  • Enhanced page creation with improved parent request handling
  • Better timezone support in DateCustomConverter for improved serialization/deserialization

πŸ’₯ Breaking Changes

Database API Changes

  • REMOVED: QueryAsync method from IDatabasesClient
    • Use ISearchClient.SearchAsync() instead for querying pages and databases
  • REMOVED: DatabasesQueryParameters and related query classes

File Upload API Changes

  • BREAKING: IFileUploadsClient methods now return FileUpload directly instead of wrapper response classes
  • REMOVED: Redundant response wrapper classes for file uploads
  • RENAMED: FileObjectResponse β†’ FileUpload

Model and Interface Refactoring

  • BREAKING: Consolidated parent interfaces:
    • Removed IDatabaseParent, IParent interfaces
    • Introduced unified parent request models:
      • PageParentRequest
      • DatabaseParentRequest
    • Refactored to use:
      • IParentOfPage
      • IParentOfBlock
      • IParentOfDatabase
  • BREAKING: Data source models refactored:
    • DataSourceResponse β†’ DataSource
    • PropertyConfigurationRequest β†’ DataSourceConfigRequest
    • Removed "Response" prefix from various DataSource property config models
  • REMOVED: ParentType enum in favor of string constants
  • REMOVED: IWikiDatabase interface and PagePropertyOnId class

Page and Block Changes

  • BREAKING: Page cover and icon models refactored for better type consistency
    • Use IPageCoverRequest and IPageIconRequest interfaces for requests
    • Updated page creation parameters to use new request models

πŸ—οΈ Technical Improvements

Framework and Dependencies

  • UPDATED: Target framework to .NET 10.0 for integration and unit test projects
  • UPDATED: CI build to use .NET 10.0.x

Code Quality

  • IMPROVED: Removed unnecessary using directives across multiple files
  • FIXED: Code factor warnings and linter issues
  • ENHANCED: Better cancellation token parameter documentation
  • ADDED: cSpell configuration for custom words

Model Organization

  • REORGANIZED: Moved models to appropriate folders for better structure:
    • FileUpload models moved to common models folder
    • DataSource models properly organized under Models/DataSource/
    • Request models better organized under appropriate domains

πŸ› Bug Fixes

πŸ“š Documentation

  • UPDATED: README files with current API examples
  • UPDATED: Documentation to reflect Search API for database querying
  • ADDED: Data Sources API documentation with usage examples
  • ADDED: HttpClient customization and retry policy docs (#579)
  • ADDED: Retrieve page as markdown docs (#551)

πŸ“¦ Dependencies

πŸš€ Looking for a Maintainer

If you're passionate about this project and want to help shape its future, join the discussion here:

πŸ”— #349

Don't hesitate to open an issue if you're interested in becoming a maintainer.

Contributors

Huge appreciation to our amazing contributors for this release:
@taco-indenbosch, @kkuepper, @kosaku-hayashi, @Chaosyr, @dependabot for your valuable contributions β€” your work keeps this project shining! πŸ’ͺ

Everyone is welcome to contribute β€” we’d love to hear your ideas! Feel free to open an issue or start a discussion anytime.