Skip to content

Commit 63b2de1

Browse files
committed
Update information for new version (1.2.1)
1 parent 9b16241 commit 63b2de1

3 files changed

Lines changed: 46 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
* Update documentation
108108

109109
## v1.2.0:
110-
> Release date: 28/Jul/2021
110+
> Release date: 27/Jul/2021
111111
* Implement new endpoints
112112
* Update page: https://developers.notion.com/reference/patch-page#archive-delete-a-page
113113
* Create database: https://developers.notion.com/reference/create-a-database

README.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ databases.fetchAll();
6262
```
6363

6464
## A few examples
65-
> A page created and filled using only this package: https://jonathangomz.notion.site/notion_api-example-0893dd2cb38a413d90165cb810b3c019
65+
A page created and filled using only this package: \
66+
https://jonathangomz.notion.site/notion_api-example-0893dd2cb38a413d90165cb810b3c019
6667

6768
_To see code to create the page above or see more examples [go here](https://github.com/jonathangomz/notion_api/blob/main/example/example.md)._
6869

@@ -148,8 +149,24 @@ TEST_BLOCK_HEADING_ID=c8hac4bb32af48889228bf483d938e34
148149
# Next release
149150
## v1.2.1:
150151
> Release date: 02/Aug/2021
151-
* Add more properties for pages and databases:
152-
* Page properties: https://developers.notion.com/reference/page#page-property-value
153-
* Database properties: https://developers.notion.com/reference/database#database-property
152+
* Add constructors with only single text content with default style for:
153+
* `Paragraph.text('some text here...')`
154+
* `ToDo.text('some text here...', checked: true)`
155+
* `Heading.text('some text here...', type: 2)`
156+
* `BulletedListItem.text('some text here...')`
157+
* `NumberedListItem.text('some text here...')`
158+
* `Toggle.text('some text here...', children: [])`
159+
* Add more constructors for `Heading` class:
160+
* `one`: Heading with type 1 by default.
161+
* `two`: Heading with type 2 by default.
162+
* `three`: Heading with type 3 by default.
163+
* Add more constructors for `Text` class:
164+
* `code`: Text with code style by default.
165+
* `italic`: Text with italic style by default.
166+
* `bold`: Text with bold style by default.
167+
* [**Opt**] `list`: List of words separated by comma (by default).
168+
* Example: `Text.list()` will receive a list of Text and will be concatenated separated with comma by default. **It may be unnecessary**. Can help to make the code more readable.
169+
* [**Opt**] `sep`: Text separator.
170+
* Example: `Text.sep()`, by default, will insert " " in a list of `Text` instances, but it will be able to do more things that I don't know yet, hehe. **It may be unnecessary**. Can help to make the code more readable.
154171

155172
[1]:https://pub.dev/documentation/notion_api/1.0.0-beta1/responses_notion_response/NotionResponse-class.html

ROADMAP.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,37 @@ If you have suggestions feel free to create an Issue or to create a PR with the
55

66
## v1.3.0
77
> Release date: 06/Aug/2021
8+
* Maybe fix errors creating page with children. I don't know if is an error with Notion API.
89
* Add query a database endpoint:
910
* https://developers.notion.com/reference/post-database-query
10-
11-
## v1.2.1:
12-
> Release date: 02/Aug/2021
1311
* Add more properties for pages and databases:
1412
* Page properties: https://developers.notion.com/reference/page#page-property-value
1513
* Database properties: https://developers.notion.com/reference/database#database-property
1614

15+
## v1.2.1:
16+
> Release date: 02/Aug/2021
17+
* Add constructors with only single text content with default style for:
18+
* `Paragraph.text('some text here...')`
19+
* `ToDo.text('some text here...', checked: true)`
20+
* `Heading.text('some text here...', type: 2)`
21+
* `BulletedListItem.text('some text here...')`
22+
* `NumberedListItem.text('some text here...')`
23+
* `Toggle.text('some text here...', children: [])`
24+
* Add more constructors for `Heading` class:
25+
* `one`: Heading with type 1 by default.
26+
* `two`: Heading with type 2 by default.
27+
* `three`: Heading with type 3 by default.
28+
* Add more constructors for `Text` class:
29+
* `code`: Text with code style by default.
30+
* `italic`: Text with italic style by default.
31+
* `bold`: Text with bold style by default.
32+
* [**Opt**] `list`: List of words separated by comma (by default).
33+
* Example: `Text.list()` will receive a list of Text and will be concatenated separated with comma by default. **It may be unnecessary**. Can help to make the code more readable.
34+
* [**Opt**] `sep`: Text separator.
35+
* Example: `Text.sep()`, by default, will insert " " in a list of `Text` instances, but it will be able to do more things that I don't know yet, hehe. **It may be unnecessary**. Can help to make the code more readable.
36+
1737
## v1.2.0: ✅
18-
> Release date: 28/Jul/2021
38+
> Release date: 27/Jul/2021
1939
* Implement new endpoints
2040
* Update page: https://developers.notion.com/reference/patch-page#archive-delete-a-page
2141
* Create database: https://developers.notion.com/reference/create-a-database

0 commit comments

Comments
 (0)