Skip to content

Commit d4159d5

Browse files
Merge branch 'NotionX:master' into master
2 parents 67e6165 + 576d803 commit d4159d5

File tree

12 files changed

+23
-12
lines changed

12 files changed

+23
-12
lines changed

examples/cra/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "notion-x-example-cra",
3-
"version": "7.4.2",
3+
"version": "7.4.3",
44
"private": true,
55
"scripts": {
66
"dev": "DISABLE_ESLINT_PLUGIN=true GENERATE_SOURCEMAP=false react-scripts start",

examples/full/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "notion-x-example-full",
3-
"version": "7.4.2",
3+
"version": "7.4.3",
44
"private": true,
55
"type": "module",
66
"scripts": {

examples/full/pages/[pageId].tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ export const getStaticProps = async (context: any) => {
1919
props: {
2020
recordMap
2121
},
22-
revalidate: 10
22+
// cache for 60 minutes
23+
// NOTE: you'll likely want to use a shorter cache time for your app, but
24+
// I'm bumping this up because my vercel bill keeps increasing due to people
25+
// abusing the demo to host their own sites.
26+
revalidate: 60 * 60
2327
}
2428
}
2529

examples/minimal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "notion-x-example-minimal",
3-
"version": "7.4.2",
3+
"version": "7.4.3",
44
"private": true,
55
"type": "module",
66
"scripts": {

examples/minimal/pages/[pageId].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const getStaticProps = async (context: any) => {
1212
props: {
1313
recordMap
1414
},
15-
revalidate: 10
15+
revalidate: 60 * 60 // cache for 60 minutes
1616
}
1717
}
1818

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"repository": "NotionX/react-notion-x",
66
"author": "Travis Fischer <[email protected]>",
77
"license": "MIT",
8-
"version": "7.4.2",
8+
"version": "7.4.3",
99
"packageManager": "[email protected]",
1010
"engines": {
1111
"node": ">=18"

packages/notion-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "notion-client",
3-
"version": "7.4.2",
3+
"version": "7.4.3",
44
"type": "module",
55
"description": "Robust TypeScript client for the unofficial Notion API.",
66
"repository": "NotionX/react-notion-x",

packages/notion-client/src/notion-api.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,11 +567,18 @@ export class NotionAPI {
567567
reducers: {
568568
[reducerLabel]: {
569569
type: 'groups',
570+
version: 'v2',
570571
groupBy,
571572
...(collectionView?.query2?.filter && {
572573
filter: collectionView?.query2?.filter
573574
}),
574-
groupSortPreference: groups.map((group: any) => group?.value),
575+
groupSortPreference: groups.map((group: any) => ({
576+
property: group?.property,
577+
value: {
578+
type: group?.value?.type,
579+
value: group?.value?.value
580+
}
581+
})),
575582
limit
576583
},
577584
...reducersQuery

packages/notion-compat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "notion-compat",
3-
"version": "7.4.2",
3+
"version": "7.4.3",
44
"type": "module",
55
"description": "Compatibility layer between the official Notion API and unofficial private API.",
66
"repository": "NotionX/react-notion-x",

packages/notion-types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "notion-types",
3-
"version": "7.4.2",
3+
"version": "7.4.3",
44
"type": "module",
55
"description": "TypeScript types for core Notion data structures.",
66
"repository": "NotionX/react-notion-x",

0 commit comments

Comments
 (0)