Skip to content

Commit 7fe796a

Browse files
authored
Merge pull request #366 from NIAID-Data-Ecosystem/production-deps-update
Production deps update
2 parents b108b06 + 3b9e073 commit 7fe796a

File tree

9 files changed

+3556
-3425
lines changed

9 files changed

+3556
-3425
lines changed

CHANGELOG.md

Lines changed: 585 additions & 0 deletions
Large diffs are not rendered by default.

next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
/// <reference path="./.next/types/routes.d.ts" />
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

package.json

Lines changed: 21 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
"private": true,
44
"scripts": {
55
"dev": "next dev",
6-
"build": "env-cmd -f .env.production yarn run generate-footer-content && yarn run generate-metadata-completeness-fields && yarn run generate-dataset-sitemaps && next build",
7-
"build:staging": "env-cmd -f .env.staging yarn build",
8-
"build:dev": "env-cmd -f .env.dev yarn build",
9-
"postbuild": "env-cmd -f .env.production next-sitemap",
6+
"build:core": "yarn generate-footer-content && yarn generate-metadata-completeness-fields && next build",
7+
"build": "env-cmd -f .env.production yarn build:core",
8+
"build:staging": "env-cmd -f .env.staging yarn build:core",
9+
"build:dev": "env-cmd -f .env.dev yarn build:core",
10+
"postbuild": "env-cmd -f .env.production yarn generate-dataset-sitemaps && next-sitemap",
1011
"start": "next start",
1112
"lint": "next lint",
1213
"generate-schema-definitions": "env-cmd -f .env.production tsx scripts/generate-schema-definitions/index.ts",
@@ -18,24 +19,21 @@
1819
"release:minor": "standard-version --release-as minor",
1920
"release:patch": "standard-version --release-as patch",
2021
"release:major": "standard-version --release-as major",
21-
"test": "npx jest"
22+
"test": "jest",
23+
"typecheck": "tsc --noEmit"
2224
},
2325
"dependencies": {
2426
"@chakra-ui/react": "^2.10.7",
2527
"@emotion/react": "^11.11.3",
2628
"@emotion/styled": "^11.11.0",
27-
"@next/third-parties": "^14.0.4",
29+
"@next/third-parties": "^15.0.0",
2830
"@tanstack/react-query": "^5.51.11",
29-
"@testing-library/jest-dom": "^5.16.5",
30-
"@testing-library/react": "^14.0.0",
31-
"@testing-library/react-hooks": "^8.0.1",
32-
"@types/react-dom": "^18.2.4",
3331
"bottleneck": "^2.19.5",
3432
"framer-motion": "^10.18.0",
35-
"next-sitemap": "^4.1.8",
3633
"next": "^15.4.7",
37-
"react": "^18.2.0",
38-
"react-dom": "^18.2.0",
34+
"next-sitemap": "^4.1.8",
35+
"react": "18.3.1",
36+
"react-dom": "18.3.1",
3937
"react-window": "^1.8.10"
4038
},
4139
"devDependencies": {
@@ -46,15 +44,19 @@
4644
"@emotion/babel-plugin": "^11.3.0",
4745
"@mdx-js/loader": "^2.3.0",
4846
"@mdx-js/react": "^2.3.0",
49-
"@next/mdx": "^13.4.3",
47+
"@next/mdx": "^15.0.0",
5048
"@react-spring/web": "^9.7.3",
5149
"@testing-library/dom": "^9.3.0",
50+
"@testing-library/jest-dom": "^5.16.5",
51+
"@testing-library/react": "^14.0.0",
52+
"@testing-library/react-hooks": "^8.0.1",
5253
"@testing-library/user-event": "^14.4.3",
5354
"@types/d3": "^7.4.0",
5455
"@types/d3-scale-chromatic": "^3.0.0",
5556
"@types/mdx": "^2.0.5",
5657
"@types/node": "^20.1.7",
57-
"@types/react": "^18.2.6",
58+
"@types/react": "18.3.3",
59+
"@types/react-dom": "18.3.3",
5860
"@types/react-window": "^1.8.8",
5961
"@types/styled-system": "^5.1.13",
6062
"@visx/annotation": "^3.12.0",
@@ -73,8 +75,8 @@
7375
"axios": "^1.12.0",
7476
"d3-scale-chromatic": "^3.0.0",
7577
"env-cmd": "^10.1.0",
76-
"eslint": "7",
77-
"eslint-config-next": "^13.2.1",
78+
"eslint": "^9.0.0",
79+
"eslint-config-next": "^15.0.0",
7880
"eslint-config-prettier": "^8.5.0",
7981
"fuse.js": "^6.6.2",
8082
"husky": "^8.0.3",
@@ -98,28 +100,13 @@
98100
"remark-gfm": "^3.0.1",
99101
"standard-version": "^9.5.0",
100102
"tsx": "^4.7.1",
101-
"typescript": "^5.0.4",
103+
"typescript": "^5.6.3",
102104
"unified": "^11.0.1",
103105
"usehooks-ts": "^3.0.2"
104106
},
105107
"resolutions": {
106-
"@adobe/css-tools": "^4.3.2",
107-
"@babel/helpers": "^7.26.10",
108-
"@babel/runtime": "^7.26.10",
109-
"brace-expansion": "^1.1.12",
110-
"braces": "^3.0.3",
111108
"cookie": "^0.7.0",
112-
"cross-spawn": "^7.0.5",
113-
"esbuild": "^0.25.0",
114-
"micromatch": "^4.0.8",
115-
"nanoid": "^3.3.8",
116-
"path-to-regexp": "^6.3.0",
117-
"semver": "^7.5.2",
118-
"tar-fs": "^3.1.1",
119-
"tough-cookie": "^4.1.3",
120-
"tmp": "0.2.4",
121-
"ws": "^8.17.1",
122-
"word-wrap": "^1.2.4"
109+
"micromatch": "^4.0.8"
123110
},
124111
"version": "5.1.1"
125112
}

src/components/searchable-items/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { FaMagnifyingGlass } from 'react-icons/fa6';
44
import { ScrollContainer } from 'src/components/scroll-container';
55
import { TagWithUrl } from 'src/components/tag-with-url';
66

7-
interface SearchableItemsProps extends FlexProps {
7+
interface SearchableItemsProps extends Omit<FlexProps, 'onToggle'> {
88
items: {
99
name: string;
1010
value: string;

src/components/select/components/Select.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ interface SelectProps extends UseDisclosureProps {
6060
onToggle: () => void;
6161
}
6262

63-
interface SelectWithInputProps extends Omit<InputProps, 'id'>, SelectProps {
63+
interface SelectWithInputProps
64+
extends Omit<InputProps, 'id' | 'onToggle'>,
65+
SelectProps {
6466
ariaLabel: string;
6567
}
6668

@@ -121,7 +123,9 @@ export const SelectWithInput: React.FC<SelectWithInputProps> = ({
121123
);
122124
};
123125

124-
interface SelectWithButtonProps extends Omit<ButtonProps, 'id'>, SelectProps {}
126+
interface SelectWithButtonProps
127+
extends Omit<ButtonProps, 'id' | 'onToggle'>,
128+
SelectProps {}
125129

126130
export const SelectWithButton: React.FC<SelectWithButtonProps> = ({
127131
children,

src/views/search/components/filters/__tests__/hooks/useFilterQueries.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const config = [
5757
},
5858
];
5959
}),
60+
tabIds: ['d'],
6061
} as FilterConfig,
6162
];
6263

src/views/search/context/pagination-context.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from 'react';
99
import { useRouter } from 'next/router';
1010
import { defaultQuery } from '../config/defaultQuery';
11-
import { useSearchTabsContext } from './search-tabs-context';
11+
import { DEFAULT_TAB_ID, useSearchTabsContext } from './search-tabs-context';
1212

1313
export type PaginationState = {
1414
from: number;
@@ -59,7 +59,7 @@ export const PaginationProvider = ({ children }: { children: ReactNode }) => {
5959
const urlFrom = parseInt(router.query.from as string);
6060
const urlSize = parseInt(router.query.size as string);
6161
const urlSort = router.query.sort as string;
62-
const urlTab = router.query.tab as string;
62+
const urlTab = (router.query.tab || DEFAULT_TAB_ID) as string;
6363

6464
if (!isNaN(urlFrom) && urlTab) {
6565
setPaginationByTab(prev => ({

src/views/search/context/search-tabs-context.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ interface SearchContextValue {
1212
setFilters: (filters: Record<string, string[]>) => void;
1313
}
1414

15+
export const DEFAULT_TAB_ID = tabs.find(t => t.isDefault)?.id || 'd';
16+
1517
const SearchContext = createContext<SearchContextValue | undefined>(undefined);
1618

1719
/**

0 commit comments

Comments
 (0)