Picture of the author

Introduction

Release Notes

🍵 v1.1.0 : Database Creation and resolving entities

This feature release comes with some spicy new ways to interact with the Notion API.

We hope you enjoy it!

Database Creation

Database Creation was contributed by Johannes Güntner

A high requested feature: Creating databases with all possible configurations and properties.

In order to stick to the eloquent Laravel standard of creating database structures, we have tried to stick to a similar structure. A detailed description for database creation can be found at database creation .

Resolving Entities

Resolving Entities was contributed by Johannes Güntner

To simplify the retrieval of parents, users and relations, we have added an extra endpoint, which helps you to access full information of entities.

To learn more, go to resolving entities .

Added missing Quote Block Type

Quote Block Type was contributed by Tom Witkowski

One important text block was missing: the Quote Block. Now it is finally added.

To learn more, go to supported blocks .

Breaking Changes

No breaking changes

Fixed

  • Avoiding serializing scalar values (Contributed by richardhj )

🌳 v1.0.0: First official stable release, new shiny documentation and more

We are happy to announce the first officially stable release of our package and on top there will be new features and improvements.

As you can see we have also completely updated and refactored our documentation, to make it more readable. By adding new guides and polished code examples we hope to ease up the usage of the laravel-notion-api for you.

We have been working hard on this release and we are excited to share it with you. We hope you enjoy it!

Support us on Patreon!

If you like our package and you want to see further/faster development, consider becoming a Patreon .

Compound Filters for Database Queries

Compound Filters for Database Queries was contributed by Diana Scharf

With this new version, you can create more complex queries by using compound filters. Compound filters allow you to combine multiple filters within a single filter bag to create a more specific search.

A FilterBag is a collection of filters that can be used together to form a more complex query. The FilterBag can work with either the AND or OR operator, and it can contain filters as well as other filter bags.

Interaction with Notion Comments

Notion Comments was contributed by Johannes Güntner

With this new version, it is possible to fetch comments from blocks and pages. The creation of comments within pages and existing discussions is available as well.

Entity Completion

Entity Completion was contributed by Johannes Güntner

New attributes and according getters are available for all relevant entities. A detailed description for each of the new attributes can be found in handling results .

Archived Flag of Entity

The isArchived() method is a boolean value that indicates whether an entity is archived.

Added to Database, Page and Block.

Timestamps of Entity

All relevant Entities now have all timestamp access, such as getCreatedBy(), getCreatedTime(), getLastEditedTime(), and getLastEditedBy().

Added to Database, Page, Block and Comment.

Parent of Entity

ParentId and ParentType, provide information about the parent page or block for a particular item in your Notion resource.

Added to Database, Page, Block and Comment.

Project renamed

The project has been renamed from Laravel Notion API to Notion for Laravel, however the package name remains laravel-notion-api.

Breaking Changes

Read about Breaking Changes in Upgrading from v0.8 to v1.0

Polish and Cleanup

  • Removed unused imports, comments and code pieces
  • Updated README and CONTRIBUTING files

Fixed

  • Added missing HTTP status to NotionException (Contributed by danielh-official )
  • Resolved an issue with start_cursor of EntityCollection not being converted to string before sending it to the Notion API (Contributed by fschirinzi )
  • Fixed various typos (e.g. within User)

Found a bug?

Head over to our issue tracker .

If you discover any security related issues, please email hello@dianaweb.dev instead of using the issue tracker.

Previous
Getting started