Skip to content

Commit 67e6165

Browse files
author
terrorist
committed
Fixes: notion-client: - ky pkg replaced with got
1 parent 1572433 commit 67e6165

File tree

14 files changed

+1387
-1591
lines changed

14 files changed

+1387
-1591
lines changed

examples/full/components/NotionPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import dynamic from 'next/dynamic'
22
import Head from 'next/head'
3-
// import Image from 'next/image'
3+
//import Image from 'next/image'
44
import Link from 'next/link'
55
import { useRouter } from 'next/router'
66
import { type ExtendedRecordMap } from 'notion-types'
@@ -182,7 +182,7 @@ export function NotionPage({
182182
previewImages={previewImagesEnabled}
183183
components={{
184184
// NOTE (transitive-bullshit 3/12/2023): I'm disabling next/image for this repo for now because the amount of traffic started costing me hundreds of dollars a month in Vercel image optimization costs. I'll probably re-enable it in the future if I can find a better solution.
185-
// nextLegacyImage: Image,
185+
//nextImage: Image,
186186
nextLink: Link,
187187
Code,
188188
Collection,

examples/full/lib/notion.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export async function getPage(pageId: string): Promise<ExtendedRecordMap> {
3030

3131
return recordMap
3232
}
33-
3433
export async function search(params: SearchParams): Promise<SearchResults> {
3534
if ('search' in notion) {
3635
return notion.search(params)

examples/full/next.config.js

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1-
export default {
2-
staticPageGenerationTimeout: 300,
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
eslint: {
4+
ignoreDuringBuilds: true
5+
},
6+
typescript: {
7+
ignoreBuildErrors: true
8+
},
39
images: {
4-
domains: [
5-
'www.notion.so',
6-
'notion.so',
7-
'images.unsplash.com',
8-
'abs.twimg.com',
9-
'pbs.twimg.com',
10-
's3.us-west-2.amazonaws.com'
10+
remotePatterns: [
11+
{ protocol: 'https', hostname: 'www.notion.so' },
12+
{ protocol: 'https', hostname: 'notion.so' },
13+
{ protocol: 'https', hostname: 'images.unsplash.com' },
14+
{ protocol: 'https', hostname: 'abs.twimg.com' },
15+
{ protocol: 'https', hostname: 'pbs.twimg.com' },
16+
{ protocol: 'https', hostname: 's3.us-west-2.amazonaws.com' }
1117
],
1218
formats: ['image/avif', 'image/webp']
1319
}
1420
}
21+
22+
export default nextConfig

examples/full/pages/_app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'katex/dist/katex.min.css'
33
// used for code syntax highlighting (optional)
44
import 'prismjs/themes/prism-tomorrow.css'
55
// core styles shared by all of react-notion-x (required)
6-
//import 'react-notion-x/src/styles.css'
6+
import 'react-notion-x/src/styles.css'
77
// app styles
88
import '../styles/globals.css'
99

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"bumpp": "catalog:",
3333
"del-cli": "catalog:",
3434
"eslint": "catalog:",
35-
"got": "catalog:",
3635
"npm-run-all2": "catalog:",
3736
"prettier": "catalog:",
3837
"react": "catalog:",

packages/notion-client/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"test:unit": "vitest run"
2828
},
2929
"dependencies": {
30-
"ky": "catalog:",
3130
"got": "catalog:",
3231
"notion-types": "workspace:*",
3332
"notion-utils": "workspace:*",

packages/notion-client/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default defineConfig({
88
format: ['esm'],
99
splitting: false,
1010
sourcemap: true,
11-
minify: false,
11+
minify: true,
1212
shims: false,
1313
dts: true
1414
})

packages/react-notion-x/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@
6464
"react-fast-compare": "catalog:",
6565
"react-hotkeys-hook": "catalog:",
6666
"react-image": "catalog:",
67-
"react-lazy-images": "catalog:",
68-
"react-modal": "catalog:"
67+
"react-intersection-observer": "catalog:",
68+
"react-modal" : "catalog:",
69+
"unionize" : "catalog:"
6970
},
7071
"devDependencies": {
7172
"@types/lodash.throttle": "catalog:",
@@ -78,13 +79,13 @@
7879
"lodash.throttle": "catalog:",
7980
"react": "catalog:",
8081
"react-dom": "catalog:",
81-
"react-pdf": "^9.1.1", "lightningcss": "catalog:"
82+
"react-pdf": "^10.0.1"
8283
},
8384
"peerDependencies": {
8485
"react": ">=18",
8586
"react-dom": ">=18"
8687
},
8788
"optionalDependencies": {
88-
"react-pdf": "^9.2.1"
89+
"react-pdf": "^10.0.1"
8990
}
9091
}

0 commit comments

Comments
 (0)