Skip to content

Commit

Permalink
feat: parsing algolia records from navigation v2 (#1656)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity authored Oct 13, 2024
1 parent ac30a8b commit 873e41d
Show file tree
Hide file tree
Showing 187 changed files with 463,673 additions and 14,531 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ jobs:
- name: Fetch domains
run: pnpm vercel-scripts domains.txt app.buildwithfern.com --token=${{ secrets.VERCEL_TOKEN }}

- run: pnpm build

- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,5 @@ deployment-url.txt

# next.js analysis
analyze

test-results
2 changes: 1 addition & 1 deletion fern/apis/fdr/definition/api/latest/endpoint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ types:
properties:
shape: optional<type.TypeShape>
statusCode: integer
name: optional<string>
name: string
examples: optional<list<ErrorExample>>

ExampleEndpointCall:
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "CI=true turbo test",
"test:update": "CI=true turbo test -- -u",
"playwright:test": "pnpm exec playwright test",
"playwright:build": "turbo --filter='playwright-*' build",
"playwright:build": "turbo --filter='playwright-*' --filter='@fern-ui/local-preview-bundle' build",
"clean": "turbo clean",
"codegen": "turbo codegen",
"compile": "turbo compile",
Expand Down Expand Up @@ -46,7 +46,6 @@
"@types/http-proxy": "^1.17.15",
"@types/is-ci": "^3.0.4",
"@types/js-yaml": "^4.0.9",
"@types/lodash-es": "4.17.12",
"@types/node": "^18.7.18",
"@typescript-eslint/eslint-plugin": "7.3.1",
"@typescript-eslint/parser": "7.3.1",
Expand All @@ -72,7 +71,6 @@
"js-yaml": "^4.1.0",
"jsonc-parser": "~2.2.1",
"lint-staged": "^13.0.3",
"lodash-es": "^4.17.21",
"organize-imports-cli": "^0.10.0",
"playwright": "^1.47.1",
"prettier": "^3.3.2",
Expand Down Expand Up @@ -106,6 +104,10 @@
"get-port": "^7.1.0"
},
"packageManager": "[email protected]",
"engines": {
"node": ">=18.18.0",
"pnpm": "9.4.0"
},
"nextBundleAnalysis": {
"buildOutputDirectory": "packages/ui/docs-bundle/.next",
"budget": 358400,
Expand Down
3 changes: 1 addition & 2 deletions packages/commons/react/react-commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@
},
"dependencies": {
"@fern-api/ui-core-utils": "workspace:*",
"es-toolkit": "^1.24.0",
"fastdom": "^1.0.12",
"immer": "^9.0.15",
"lodash-es": "^4.17.21",
"react": "^18.2.0",
"ts-essentials": "^10.0.1"
},
"devDependencies": {
"@fern-platform/configs": "workspace:*",
"@types/lodash-es": "^4.17.12",
"@types/node": "^18.7.18",
"@types/react": "^18.0.20",
"depcheck": "^1.4.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/react/react-commons/src/useDeepEquals.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isEqual } from "lodash-es";
import { isEqual } from "es-toolkit/predicate";
import * as React from "react";

type UseEffectParams = Parameters<typeof React.useEffect>;
Expand Down
8 changes: 5 additions & 3 deletions packages/fdr-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
"types": "./dist/docs/index.d.ts",
"default": "./dist/docs/index.js"
},
"./client": {
"types": "./dist/client/FdrClient.d.ts",
"default": "./dist/client/FdrClient.js"
},
"./client/types": {
"types": "./dist/client/types.d.ts",
"default": "./dist/client/types.js"
Expand All @@ -38,6 +42,7 @@
"@fern-api/ui-core-utils": "workspace:*",
"@ungap/structured-clone": "^1.2.0",
"dayjs": "^1.11.11",
"es-toolkit": "^1.24.0",
"fast-deep-equal": "^3.1.3",
"form-data": "4.0.0",
"formdata-node": "^6.0.3",
Expand All @@ -49,9 +54,6 @@
"ts-essentials": "^10.0.1",
"url-join": "5.0.0"
},
"peerDependencies": {
"lodash-es": ">=4"
},
"devDependencies": {
"@babel/core": "^7.18.9",
"@babel/preset-env": "^7.24.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/fdr-sdk/src/__test__/fixtures.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function testNavigationConfigConverter(fixtureName: string): void {
for (const api of Object.values(v2Apis)) {
const keys: string[] = [];

await ApiDefinition.Transformer.keys((key) => keys.push(key)).apiDefinition(api);
ApiDefinition.Transformer.keys((key) => keys.push(key)).apiDefinition(api);

expect(JSON.stringify(keys, undefined, 2)).toMatchFileSnapshot(
`output/${fixtureName}/apiDefinitionKeys-${api.id}.json`,
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 873e41d

Please sign in to comment.