Skip to content

Commit 7081b49

Browse files
authored
Update dependencies + add sunrise announcement banner (#692)
* Update dependencies + add sunrise announcement banner * Update GDS and GO
1 parent d226d91 commit 7081b49

33 files changed

+2507
-2553
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ENV ENVIRONMENT=$ENVIRONMENT
66
ENV PNPM_HOME="/usr/bin"
77

88
RUN apk add --no-cache git
9-
RUN npm install -g pnpm@9.0.5
9+
RUN npm install -g pnpm@9.1.0
1010

1111
WORKDIR /app
1212

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "the-graph-docs-monorepo",
33
"private": true,
4-
"packageManager": "pnpm@9.0.5",
4+
"packageManager": "pnpm@9.1.0",
55
"scripts": {
66
"build": "NODE_OPTIONS='--max_old_space_size=4096' turbo run build",
77
"check": "pnpm typecheck && pnpm lint && pnpm prettier:check",

packages/nextra-theme/package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,29 @@
2525
"typecheck": "tsc --noEmit"
2626
},
2727
"peerDependencies": {
28-
"@edgeandnode/gds": "^5.6.1",
29-
"@edgeandnode/go": "^6.7.1",
30-
"@emotion/react": "^11.11",
28+
"@edgeandnode/gds": "^5",
29+
"@edgeandnode/go": "^6",
30+
"@emotion/react": "^11",
3131
"next": "^13",
3232
"next-seo": "^6",
33-
"nextra": "^2.12",
34-
"react-dom": "^18.2",
33+
"nextra": "^2",
34+
"react-dom": "^18",
3535
"theme-ui": "^0.16"
3636
},
3737
"dependencies": {
3838
"@docsearch/react": "^3.6.0",
3939
"@radix-ui/react-collapsible": "^1.0.3",
4040
"@radix-ui/react-visually-hidden": "^1.0.3",
4141
"lodash": "^4.17.21",
42-
"react-intersection-observer": "^9.10.1",
42+
"react-intersection-observer": "^9.10.2",
4343
"react-use": "^17.5.0"
4444
},
4545
"devDependencies": {
46-
"@edgeandnode/gds": "^5.8.1",
47-
"@edgeandnode/go": "^6.10.0",
46+
"@edgeandnode/gds": "^5.12.0",
47+
"@edgeandnode/go": "^6.18.1",
4848
"@emotion/react": "^11.11.4",
49-
"@types/lodash": "^4.17.0",
50-
"@types/react": "^18.3.1",
49+
"@types/lodash": "^4.17.4",
50+
"@types/react": "^18.3.3",
5151
"@types/react-dom": "^18.3.0",
5252
"next": "^14.2.3",
5353
"next-seo": "^6.5.0",

packages/nextra-theme/src/components/Callout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { buildBorder, Spacing, Text, TextProps } from '@edgeandnode/gds'
1+
import { buildBorder, Spacing, Text, type TextProps } from '@edgeandnode/gds'
22

33
export type CalloutProps = Omit<TextProps, 'color'>
44

packages/nextra-theme/src/components/Code.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HTMLAttributes, ReactNode } from 'react'
1+
import type { HTMLAttributes, ReactNode } from 'react'
22

33
import { Code, Spacing } from '@edgeandnode/gds'
44

packages/nextra-theme/src/components/DocSearch.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DocSearchModal, DocSearchProps, useDocSearchKeyboardEvents } from '@docsearch/react'
1+
import { DocSearchModal, type DocSearchProps, useDocSearchKeyboardEvents } from '@docsearch/react'
22
import { keyframes } from '@emotion/react'
33
import { useCallback, useRef, useState } from 'react'
44
import { createPortal } from 'react-dom'
@@ -64,8 +64,8 @@ export function DocSearch(props: DocSearchProps) {
6464
onClick={onOpen}
6565
innerFocusRing
6666
sx={{
67-
borderRadius: [BorderRadius.FULL, null, BorderRadius.S],
68-
'&:focus-visible': { outline: ['none', null, `${BorderWidth['4px']} solid ${theme.colors!.Purple16}`] },
67+
borderRadius: [BorderRadius.FULL, null, null, BorderRadius.S],
68+
'&:focus-visible': { outline: ['none', null, null, `${BorderWidth['4px']} solid ${theme.colors!.Purple16}`] },
6969
}}
7070
>
7171
<Responsive.Multiple as="span" cases={['mobile', null, null, 'desktop']}>

packages/nextra-theme/src/components/EditPageLink.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HTMLAttributes, useContext } from 'react'
1+
import { type HTMLAttributes, useContext } from 'react'
22

33
import { Icon, Link, useI18n } from '@edgeandnode/gds'
44

packages/nextra-theme/src/components/Heading.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as VisuallyHidden from '@radix-ui/react-visually-hidden'
2-
import { ElementType, useContext } from 'react'
2+
import { type ElementType, useContext } from 'react'
33
import { useInView } from 'react-intersection-observer'
44
import { useDebounce } from 'react-use'
55

6-
import { buildTransition, Opacity, Spacing, Text, TextProps, useI18n } from '@edgeandnode/gds'
6+
import { buildTransition, Opacity, Spacing, Text, type TextProps, useI18n } from '@edgeandnode/gds'
77

88
import { LinkInline } from '@/components'
99
import { DocumentContext } from '@/layout/DocumentContext'

packages/nextra-theme/src/components/Image.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ImgHTMLAttributes } from 'react'
1+
import type { ImgHTMLAttributes } from 'react'
22

33
export type ImageProps = Omit<ImgHTMLAttributes<HTMLImageElement>, 'children'>
44

packages/nextra-theme/src/components/Link.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AnchorHTMLAttributes } from 'react'
1+
import type { AnchorHTMLAttributes } from 'react'
22

33
import { Link } from '@edgeandnode/gds'
44

packages/nextra-theme/src/components/List.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HTMLAttributes } from 'react'
1+
import type { HTMLAttributes } from 'react'
22

33
import { List, Spacing } from '@edgeandnode/gds'
44

packages/nextra-theme/src/components/NavTree.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import { keyframes } from '@emotion/react'
22
import * as Collapsible from '@radix-ui/react-collapsible'
3-
import { AnchorHTMLAttributes, createContext, HTMLAttributes, useContext, useState } from 'react'
4-
import { SxProp } from 'theme-ui'
3+
import { type AnchorHTMLAttributes, createContext, type HTMLAttributes, useContext, useState } from 'react'
4+
import type { SxProp } from 'theme-ui'
55

66
import {
77
buildTransition,
88
Divider,
99
Flex,
1010
Icon,
11-
IconProps,
11+
type IconProps,
1212
Link,
1313
Spacing,
1414
Text,
15-
TextProps,
15+
type TextProps,
1616
useI18n,
1717
} from '@edgeandnode/gds'
1818

packages/nextra-theme/src/components/Paragraph.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Spacing, Text, TextProps } from '@edgeandnode/gds'
1+
import { Spacing, Text, type TextProps } from '@edgeandnode/gds'
22

33
export type ParagraphProps = Omit<TextProps, 'color'>
44

packages/nextra-theme/src/components/Table.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TableHTMLAttributes } from 'react'
1+
import type { TableHTMLAttributes } from 'react'
22

33
import { buildBorder, buildColor, FontWeight, Spacing, Text } from '@edgeandnode/gds'
44

packages/nextra-theme/src/components/VideoEmbed.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HTMLAttributes } from 'react'
1+
import type { HTMLAttributes } from 'react'
22

33
import { useI18n } from '@edgeandnode/gds'
44

packages/nextra-theme/src/index.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import merge from 'lodash/merge'
2-
import { NextSeo, NextSeoProps } from 'next-seo'
3-
import { NextraThemeLayoutProps } from 'nextra'
2+
import { NextSeo, type NextSeoProps } from 'next-seo'
3+
import type { NextraThemeLayoutProps } from 'nextra'
44
import { useFSRoute } from 'nextra/hooks'
55
import { MDXProvider } from 'nextra/mdx'
66
import { normalizePages } from 'nextra/normalize-pages'
7-
import { ReactElement, useCallback, useMemo } from 'react'
7+
import { type ReactElement, useCallback, useMemo } from 'react'
88
import { useSet } from 'react-use'
9-
import { ThemeUICSSObject } from 'theme-ui'
9+
import type { ThemeUICSSObject } from 'theme-ui'
1010

11-
import { Divider, DividerProps, Flex, Icon, Spacing, useI18n } from '@edgeandnode/gds'
11+
import { Divider, type DividerProps, Flex, Icon, Spacing, useI18n } from '@edgeandnode/gds'
1212
import { NPSForm } from '@edgeandnode/go'
1313

1414
import {

packages/nextra-theme/src/layout/DocumentContext.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { NextSeoProps } from 'next-seo'
2-
import { Heading } from 'nextra'
1+
import type { NextSeoProps } from 'next-seo'
2+
import type { Heading } from 'nextra'
33
import { createContext } from 'react'
44

55
export type Frontmatter = {

packages/nextra-theme/src/layout/MDXLayoutNav.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { keyframes } from '@emotion/react'
22
import * as Collapsible from '@radix-ui/react-collapsible'
3-
import { Item } from 'nextra/normalize-pages'
4-
import { Fragment, PropsWithChildren, useContext, useEffect, useState } from 'react'
3+
import type { Item } from 'nextra/normalize-pages'
4+
import { Fragment, type PropsWithChildren, useContext, useEffect, useState } from 'react'
55

66
import { BorderRadius, buildTransition, Flex, Icon, Spacing, Text, useI18n } from '@edgeandnode/gds'
77

packages/og-image/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
"yoga-wasm-web": "0.3.3"
1717
},
1818
"devDependencies": {
19-
"@cloudflare/workers-types": "^4.20240423.0",
20-
"@types/react": "^18.3.1",
19+
"@cloudflare/workers-types": "^4.20240524.0",
20+
"@types/react": "^18.3.3",
2121
"jest-image-snapshot": "^6.4.0",
22-
"tsx": "^4.7.3",
22+
"tsx": "^4.11.0",
2323
"typescript": "^5.4.5",
24-
"vitest": "^0.34.6",
25-
"wrangler": "^3.53.0"
24+
"vitest": "^1.6.0",
25+
"wrangler": "^3.57.2"
2626
}
2727
}

packages/og-image/tsconfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
"resolveJsonModule": true,
1010
"moduleDetection": "force",
1111
"isolatedModules": true,
12+
"verbatimModuleSyntax": true,
1213
"incremental": true,
1314
/* Strictness */
1415
"strict": true,
1516
"noUncheckedIndexedAccess": true,
17+
"noImplicitOverride": true,
1618
/* NOT transpiling with TS */
1719
"module": "ESNext",
1820
"moduleResolution": "bundler",

0 commit comments

Comments
 (0)