File tree Expand file tree Collapse file tree 12 files changed +23
-12
lines changed
Expand file tree Collapse file tree 12 files changed +23
-12
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 55 "repository" : " NotionX/react-notion-x" ,
66 "author" : " Travis Fischer <travis@transitivebullsh.it>" ,
77 "license" : " MIT" ,
8- "version" : " 7.4.2 " ,
8+ "version" : " 7.4.3 " ,
99 "packageManager" : " pnpm@10.11.1" ,
1010 "engines" : {
1111 "node" : " >=18"
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments