Skip to content

Commit

Permalink
downgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Jan 25, 2025
1 parent a6224f8 commit 8dbe151
Show file tree
Hide file tree
Showing 24 changed files with 1,592 additions and 1,317 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"elliptic": "6.6.0",
"esbuild": "0.24.2",
"eslint": "9.17.0",
"eslint-config-next": "15.1.2",
"eslint-config-next": "14.2.23",
"instantsearch.js": "4.75.4",
"jsonpath-plus": "10.0.7",
"markdown-to-jsx": "7.4.0",
Expand Down Expand Up @@ -82,7 +82,7 @@
"depcheck": "^1.4.7",
"dotenv": "^16.4.5",
"eslint": "^9",
"eslint-config-next": "15.1.2",
"eslint-config-next": "14.2.23",
"eslint-config-prettier": "^9.1.0",
"eslint-config-turbo": "^2.3.3",
"eslint-plugin-deprecation": "^3.0.0",
Expand All @@ -105,7 +105,7 @@
"prettier": "^3.4.2",
"prettier-plugin-organize-imports": "^4.1.0",
"prettier-plugin-tailwindcss": "^0.6.9",
"react": "^19",
"react": "^18",
"rollup": "^4.22.4",
"styled-jsx": "^5.1.2",
"stylelint": "^16.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/commons/react-commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
"es-toolkit": "^1.27.0",
"fastdom": "^1.0.12",
"immer": "^9.0.15",
"react": "^19",
"react": "^18",
"ts-essentials": "^10.0.1"
},
"devDependencies": {
"@fern-platform/configs": "workspace:*",
"@types/node": "^18.19.74",
"@types/react": "^19",
"@types/react": "^18",
"depcheck": "^1.4.7",
"eslint": "^9",
"prettier": "^3.4.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/react-commons/src/useResizeObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { noop } from "ts-essentials";
import { useEventCallback } from "./useEventCallback";

export function useResizeObserver(
ref: RefObject<HTMLElement>,
ref: RefObject<HTMLElement | null>,
measure: (entries: ResizeObserverEntry[]) => void
): void {
// ResizeObserver is not supported in SSG, so this hook should be disabled on the server-side
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { NavigationNode } from "./NavigationNode";
import { NavigationNodeLeaf } from "./NavigationNodeLeaf";
import { FernNavigation } from "../../..";

export type NavigationNodeParent = Exclude<NavigationNode, NavigationNodeLeaf>;
export type NavigationNodeParent = Exclude<
FernNavigation.NavigationNode,
FernNavigation.NavigationNodeLeaf
>;
12 changes: 6 additions & 6 deletions packages/fern-docs/bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@
"feed": "^4.2.2",
"iron-session": "^8.0.3",
"jose": "^5.2.3",
"next": "15.1.6",
"next": "14.2.23",
"postcss-import": "^16.0.1",
"posthog-node": "^4.2.1",
"qs": "6.12.0",
"react": "^19",
"react-dom": "^19",
"react": "^18",
"react-dom": "^18",
"schema-dts": "^1.1.2",
"server-only": "^0.0.1",
"sharp": "^0.33.3",
Expand All @@ -87,12 +87,12 @@
},
"devDependencies": {
"@fern-platform/configs": "workspace:*",
"@next/bundle-analyzer": "15.1.6",
"@next/bundle-analyzer": "14.2.23",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.10",
"@types/node": "^18.19.74",
"@types/react": "^19",
"@types/react-dom": "^19",
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.4.16",
"depcheck": "^1.4.7",
"eslint": "^9",
Expand Down
14 changes: 7 additions & 7 deletions packages/fern-docs/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@
"iconoir-react": "^7.7.0",
"lucide-react": "^0.460.0",
"moment": "^2.30.1",
"react": "^19",
"react-dom": "^19",
"react": "^18",
"react-dom": "^18",
"sonner": "^1.5.0",
"tailwind-merge": "^2.3.0",
"ts-extras": "^0.11.0"
Expand All @@ -104,8 +104,8 @@
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@types/node": "^18.19.74",
"@types/react": "^19",
"@types/react-dom": "^19",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react-test-renderer": "^18.0.7",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.16",
Expand All @@ -116,7 +116,7 @@
"jsdom": "^24.0.0",
"postcss-import": "^16.0.1",
"prettier": "^3.4.2",
"react-test-renderer": "^19",
"react-test-renderer": "^18",
"sass": "^1.74.1",
"storybook": "^8.5.1",
"stylelint": "^16.1.0",
Expand All @@ -126,8 +126,8 @@
"vitest": "^2.1.4"
},
"peerDependencies": {
"react": "^19",
"react-dom": "^19",
"react": "^18",
"react-dom": "^18",
"sass": "^1.74.1"
}
}
10 changes: 5 additions & 5 deletions packages/fern-docs/icons-cdn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
"@fortawesome/sharp-regular-svg-icons": "^6.7.2",
"@fortawesome/sharp-solid-svg-icons": "^6.7.2",
"@fortawesome/sharp-thin-svg-icons": "^6.7.2",
"react": "^19",
"react-dom": "^19"
"react": "^18",
"react-dom": "^18"
},
"devDependencies": {
"@fern-platform/configs": "workspace:*",
"@next/bundle-analyzer": "15.1.6",
"@next/bundle-analyzer": "14.2.23",
"@types/node": "^18.19.74",
"@types/react": "^19",
"@types/react": "^18",
"depcheck": "^1.4.7",
"eslint": "^9",
"next": "15.1.6",
"next": "14.2.23",
"prettier": "^3.4.2",
"stylelint": "^16.1.0",
"typescript": "^5",
Expand Down
12 changes: 6 additions & 6 deletions packages/fern-docs/local-preview-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,24 @@
"@fern-docs/utils": "workspace:*",
"@fern-platform/fdr-utils": "workspace:*",
"cssnano": "^6.0.3",
"next": "15.1.6",
"next": "14.2.23",
"node-fetch": "2.7.0",
"postcss-import": "^16.0.1",
"react": "^19",
"react-dom": "^19",
"react": "^18",
"react-dom": "^18",
"styled-jsx": "^5.1.2",
"ts-essentials": "^10.0.1",
"url-join": "5.0.0"
},
"devDependencies": {
"@fern-platform/configs": "workspace:*",
"@next/bundle-analyzer": "15.1.6",
"@next/bundle-analyzer": "14.2.23",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.10",
"@types/node": "^18.19.74",
"@types/node-fetch": "2.6.9",
"@types/react": "^19",
"@types/react-dom": "^19",
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.4.16",
"depcheck": "^1.4.7",
"eslint": "^9",
Expand Down
16 changes: 8 additions & 8 deletions packages/fern-docs/search-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,24 +76,24 @@
"@tailwindcss/typography": "^0.5.10",
"@types/hast": "^3.0.4",
"@types/mdast": "^4.0.3",
"@types/react": "^19",
"@types/react-dom": "^19",
"@types/react": "^18",
"@types/react-dom": "^18",
"@upstash/qstash": "^2.7.16",
"autoprefixer": "^10.4.16",
"cssnano": "^6.0.3",
"next": "15.1.6",
"next": "14.2.23",
"postcss": "^8.4.33",
"react": "^19",
"react-dom": "^19",
"react": "^18",
"react-dom": "^18",
"storybook": "^8.5.1",
"swr": "^2.3.0",
"tailwindcss": "^3",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5"
},
"peerDependencies": {
"next": "15.1.6",
"react": "^19",
"react-dom": "^19"
"next": "14.2.23",
"react": "^18",
"react-dom": "^18"
}
}
6 changes: 3 additions & 3 deletions packages/fern-docs/seo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
"@fern-api/ui-core-utils": "workspace:*",
"@fern-docs/mdx": "workspace:*",
"@fern-docs/utils": "workspace:*",
"next": "15.1.6",
"react": "^19",
"next": "14.2.23",
"react": "^18",
"schema-dts": "^1.1.2"
},
"devDependencies": {
"@fern-platform/configs": "workspace:*",
"@fern-platform/fdr-utils": "workspace:*",
"@types/node": "^18.19.74",
"@types/react": "^19",
"@types/react": "^18",
"depcheck": "^1.4.7",
"eslint": "^9",
"prettier": "^3.4.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ describe("getBreadcrumbList", () => {
},
];
expect(
getBreadcrumbList("buildwithfern.com", parents, node, "Overriden Title")
getBreadcrumbList(
"buildwithfern.com",
parents.filter(FernNavigation.hasMetadata),
node,
"Overriden Title"
)
).toEqual({
"@context": "https://schema.org",
"@type": "BreadcrumbList",
Expand Down
9 changes: 7 additions & 2 deletions packages/fern-docs/seo/src/with-seo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import type {
WithMetadataConfig,
} from "@fern-api/fdr-sdk/docs";
import * as FernNavigation from "@fern-api/fdr-sdk/navigation";
import { WithNodeMetadata } from "@fern-api/fdr-sdk/navigation";
import {
assertNonNullish,
visitDiscriminatedUnion,
withDefaultProtocol,
} from "@fern-api/ui-core-utils";
import { markdownToString } from "@fern-docs/mdx";
import { addLeadingSlash, conformTrailingSlash } from "@fern-docs/utils";

import type { LinkTag, MetaTag, NextSeoProps } from "./types";
import { getBreadcrumbList } from "./with-breadcrumb";

Expand Down Expand Up @@ -113,7 +113,12 @@ export function withSeo(
// add breadcrumb list if it exists, otherwise compute it
seo.breadcrumbList ??=
ogMetadata["jsonld:breadcrumb"] ??
getBreadcrumbList(domain, parents, node, frontmatter.title);
getBreadcrumbList(
domain,
parents.filter(FernNavigation.hasMetadata) as WithNodeMetadata[],
node,
frontmatter.title
);

// add canonical url if frontmatter has it
if (frontmatter["canonical-url"] != null) {
Expand Down
12 changes: 6 additions & 6 deletions packages/fern-docs/syntax-highlighter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
"devDependencies": {
"@fern-platform/configs": "workspace:*",
"@types/hast": "^3.0.4",
"@types/react": "^19",
"@types/react-dom": "^19",
"react": "^19",
"react-dom": "^19"
"@types/react": "^18",
"@types/react-dom": "^18",
"react": "^18",
"react-dom": "^18"
},
"peerDependencies": {
"react": "^19",
"react-dom": "^19"
"react": "^18",
"react-dom": "^18"
}
}
10 changes: 5 additions & 5 deletions packages/fern-docs/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@
"mdx-bundler": "^10.0.3",
"mermaid": "^11.2.1",
"moment": "^2.30.1",
"next": "15.1.6",
"next": "14.2.23",
"next-mdx-remote": "^5.0.0",
"nprogress": "^0.2.0",
"numeral": "^2.0.6",
"parse-numeric-range": "^1.3.0",
"posthog-js": "^1.154.5",
"react": "^19",
"react-dom": "^19",
"react": "^18",
"react-dom": "^18",
"react-error-boundary": "^4.0.10",
"react-feather": "^2.0.10",
"react-instantsearch": "^7.13.7",
Expand Down Expand Up @@ -146,8 +146,8 @@
"@types/jsonpath": "^0.2.4",
"@types/node": "^18.19.74",
"@types/numeral": "^2.0.5",
"@types/react": "^19",
"@types/react-dom": "^19",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/three": "^0.170.0",
"@types/tinycolor2": "^1.4.6",
"@vitejs/plugin-react": "^4.2.1",
Expand Down
Loading

0 comments on commit 8dbe151

Please sign in to comment.