Changelog
All notable changes to this project will be documented in this file.
[2.0.0] - 2026-01-03
Breaking
- Changing from
<Notion custom={[...]}/>to<Notion config={{ blocks: [...]}} />to improve clarity. - Remove the helper methods from
@wanner.work/notion/helperand move some of them to the newNotionParserclass in@wanner.work/notionfor better organization. - Remove internal dependency to tailwindcss and move to CSS modules to allow for better styling customization.
- Remove the following default components because they always rely on custom styling:
NotionImageNotionAudio
Feature
- Improving the
NotionQueryclass to support database queries and many more query options. - Adding
NotionParserclass with static methods to parse page properties from Notion API responses. - Adding a
NotionRenderConfiginterface to allow for better configuration of theNotioncomponent and support hiding the unsupported block warning. - Upgrade the Notion API client to the latest version.
- Cleanup codebase and use the official notion types where possible.
Chore
- Migrate to rolldown for building and bundling the package.
- Migrate to oxfmt for code formatting.
- Upgrade the playground to use the latest Next.js version.
Documentation
- Publishing documentation site at https://notion.wanner.work using fumadocs.
[1.2.1] - 2025-03-09
Fixed
- Fixing react "each child in a list should have a unique "key" prop" warning by hashing the object for a unique key.
[1.2.0] - 2024-05-28
Added
- Exporting the NotionCustomBlock interface and the NotionBlockTypes type in
@wanner.work/notionto allow for variable based custom blocks.
[1.1.0] - 2024-05-25
Added
- Exporting the NotionQueryData interface in
@wanner.work/notion/helperto allow for custom queries.
Fixed
- Adding a margin bottom to the
NotionDefaultcomponent to prevent it from sticking to the next element. - Removing
text-lightbecause light is not a valid text color in tailwindcss. - Removing
fallback="loading..."from suspense inside ofNotionBlockto preventing weird loading text.
Changed
- Change
mt-12 mb-12tomy-12because it is more concise.
[1.0.0] - 2024-05-09
Added
- Cleaning everything with prettier
- Releasing package to public
[0.1.1] - 2024-05-09
Fixed
- Fixing the usage of an unexported interface of notion by using the local NotionAnnotation interface.
[0.1.0] - 2024-05-09
Added
- Initial pre-release of the package.