Skip to content

Commit ec0a179

Browse files
ntkatholecursoragentjyejare
authored
chore: Update UI dependencies (#6908)
* chore: Update UI dependencies Refresh ui/ and sdk/python/feast/ui/ yarn.lock files via yarn upgrade, pin packages that break Jest or Node 16 (js-yaml, fast-uri, msw, rettime, @types/jest, expect, node-releases), ignore engines in the example UI for Dockerfile.dev Node 16, and apply Prettier formatting. Signed-off-by: ntkathole <nikhilkathole2683@gmail.com> * chore: Pin http-cache-semantics and node-forge in UI/website locks Add website npm overrides and yarn resolutions so transitive http-cache-semantics reaches 4.3.0 and node-forge reaches 1.4.0. Signed-off-by: ntkathole <nikhilkathole2683@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com> * fix: Drop website js-yaml override that breaks Astro build js-yaml 5 removes the default ESM export expected by @astrojs/markdown-remark; keep http-cache-semantics@4.3.0 and other compatible overrides. Signed-off-by: ntkathole <nikhilkathole2683@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com> --------- Signed-off-by: ntkathole <nikhilkathole2683@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Jitendra Yejare <jyejare@redhat.com>
1 parent 69412f3 commit ec0a179

14 files changed

Lines changed: 8640 additions & 8567 deletions

File tree

‎infra/website/package-lock.json‎

Lines changed: 995 additions & 1057 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎infra/website/package.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,11 @@
1313
"astro": "^5.16.10",
1414
"d3": "^7.9.0",
1515
"shiki": "^1.29.2"
16+
},
17+
"overrides": {
18+
"http-cache-semantics": "4.3.0",
19+
"nanoid": "3.3.20",
20+
"postcss": "8.5.29",
21+
"source-map-js": "1.2.2"
1622
}
1723
}

‎sdk/python/feast/ui/.yarnrc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--install.ignore-engines true

‎sdk/python/feast/ui/package.json‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,18 @@
4949
"last 1 firefox version",
5050
"last 1 safari version"
5151
]
52+
},
53+
"resolutions": {
54+
"js-yaml": "5.4.2",
55+
"fast-uri": "4.2.1",
56+
"@types/jest": "27.5.2",
57+
"expect": "27.5.1",
58+
"node-releases": "2.0.44",
59+
"node-forge": "1.4.0",
60+
"http-cache-semantics": "4.3.0",
61+
"qs": "6.16.0",
62+
"compression": "1.8.2",
63+
"webpack-dev-middleware": "5.3.4",
64+
"source-map-js": "1.2.2"
5265
}
5366
}

‎sdk/python/feast/ui/yarn.lock‎

Lines changed: 4595 additions & 4446 deletions
Large diffs are not rendered by default.

‎ui/config/webpack.config.js‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ const createEnvironmentHash = require("./webpack/persistentCache/createEnvironme
3232
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== "false";
3333

3434
const reactRefreshRuntimeEntry = require.resolve("react-refresh/runtime");
35-
const reactRefreshWebpackPluginRuntimeEntry = require.resolve(
36-
"@pmmmwh/react-refresh-webpack-plugin",
37-
);
35+
const reactRefreshWebpackPluginRuntimeEntry =
36+
require.resolve("@pmmmwh/react-refresh-webpack-plugin");
3837
const babelRuntimeEntry = require.resolve("babel-preset-react-app");
3938
const babelRuntimeEntryHelpers = require.resolve(
4039
"@babel/runtime/helpers/esm/assertThisInitialized",
@@ -409,9 +408,8 @@ module.exports = function (webpackEnv) {
409408
include: paths.appSrc,
410409
loader: require.resolve("babel-loader"),
411410
options: {
412-
customize: require.resolve(
413-
"babel-preset-react-app/webpack-overrides",
414-
),
411+
customize:
412+
require.resolve("babel-preset-react-app/webpack-overrides"),
415413
presets: [
416414
[
417415
require.resolve("babel-preset-react-app"),

‎ui/package.json‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"jest-watch-typeahead": "^2.2.2",
107107
"mini-css-extract-plugin": "^2.4.5",
108108
"minimatch": "^10.0.3",
109-
"msw": "^2.7.0",
109+
"msw": "2.12.2",
110110
"postcss": "^8.4.4",
111111
"postcss-flexbugs-fixes": "^5.0.2",
112112
"postcss-loader": "^6.2.1",
@@ -140,7 +140,18 @@
140140
"workbox-webpack-plugin": "^6.4.1"
141141
},
142142
"resolutions": {
143-
"nwsapi": "2.2.13"
143+
"nwsapi": "2.2.13",
144+
"js-yaml": "5.4.2",
145+
"fast-uri": "4.2.1",
146+
"msw": "2.12.2",
147+
"rettime": "0.7.0",
148+
"node-releases": "2.0.44",
149+
"node-forge": "1.4.0",
150+
"http-cache-semantics": "4.3.0",
151+
"qs": "6.16.0",
152+
"compression": "1.8.2",
153+
"webpack-dev-middleware": "5.3.4",
154+
"source-map-js": "1.2.2"
144155
},
145156
"description": "Web UI for the [Feast Feature Store](https://feast.dev/)",
146157
"repository": {

‎ui/src/custom-tabs/types.ts‎

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ interface RegularFeatureViewCustomTabProps {
2323
id: string | undefined;
2424
feastObjectQuery: RegularFeatureViewQueryReturnType;
2525
}
26-
interface RegularFeatureViewCustomTabRegistrationInterface
27-
extends CustomTabRegistrationInterface {
26+
interface RegularFeatureViewCustomTabRegistrationInterface extends CustomTabRegistrationInterface {
2827
Component: ({
2928
id,
3029
feastObjectQuery,
@@ -40,8 +39,7 @@ interface OnDemandFeatureViewCustomTabProps {
4039
id: string | undefined;
4140
feastObjectQuery: OnDemandFeatureViewQueryReturnType;
4241
}
43-
interface OnDemandFeatureViewCustomTabRegistrationInterface
44-
extends CustomTabRegistrationInterface {
42+
interface OnDemandFeatureViewCustomTabRegistrationInterface extends CustomTabRegistrationInterface {
4543
Component: ({
4644
id,
4745
feastObjectQuery,
@@ -57,8 +55,7 @@ interface StreamFeatureViewCustomTabProps {
5755
id: string | undefined;
5856
feastObjectQuery: StreamFeatureViewQueryReturnType;
5957
}
60-
interface StreamFeatureViewCustomTabRegistrationInterface
61-
extends CustomTabRegistrationInterface {
58+
interface StreamFeatureViewCustomTabRegistrationInterface extends CustomTabRegistrationInterface {
6259
Component: ({
6360
id,
6461
feastObjectQuery,
@@ -71,8 +68,7 @@ interface EntityCustomTabProps {
7168
id: string | undefined;
7269
feastObjectQuery: ReturnType<typeof useLoadEntity>;
7370
}
74-
interface EntityCustomTabRegistrationInterface
75-
extends CustomTabRegistrationInterface {
71+
interface EntityCustomTabRegistrationInterface extends CustomTabRegistrationInterface {
7672
Component: ({
7773
id,
7874
feastObjectQuery,
@@ -85,8 +81,7 @@ interface FeatureCustomTabProps {
8581
id: string | undefined;
8682
feastObjectQuery: ReturnType<typeof useLoadFeature>;
8783
}
88-
interface FeatureCustomTabRegistrationInterface
89-
extends CustomTabRegistrationInterface {
84+
interface FeatureCustomTabRegistrationInterface extends CustomTabRegistrationInterface {
9085
Component: ({
9186
id,
9287
feastObjectQuery,
@@ -99,8 +94,7 @@ interface FeatureServiceCustomTabProps {
9994
id: string | undefined;
10095
feastObjectQuery: ReturnType<typeof useLoadFeatureService>;
10196
}
102-
interface FeatureServiceCustomTabRegistrationInterface
103-
extends CustomTabRegistrationInterface {
97+
interface FeatureServiceCustomTabRegistrationInterface extends CustomTabRegistrationInterface {
10498
Component: ({
10599
id,
106100
feastObjectQuery,
@@ -113,8 +107,7 @@ interface DataSourceCustomTabProps {
113107
id: string | undefined;
114108
feastObjectQuery: ReturnType<typeof useLoadDataSource>;
115109
}
116-
interface DataSourceCustomTabRegistrationInterface
117-
extends CustomTabRegistrationInterface {
110+
interface DataSourceCustomTabRegistrationInterface extends CustomTabRegistrationInterface {
118111
Component: ({
119112
id,
120113
feastObjectQuery,
@@ -127,8 +120,7 @@ interface DatasetCustomTabProps {
127120
id: string | undefined;
128121
feastObjectQuery: ReturnType<typeof useLoadDataset>;
129122
}
130-
interface DatasetCustomTabRegistrationInterface
131-
extends CustomTabRegistrationInterface {
123+
interface DatasetCustomTabRegistrationInterface extends CustomTabRegistrationInterface {
132124
Component: ({
133125
id,
134126
feastObjectQuery,
@@ -141,8 +133,7 @@ interface DataLabelingCustomTabProps {
141133
id: string | undefined;
142134
feastObjectQuery: RegularFeatureViewQueryReturnType;
143135
}
144-
interface DataLabelingCustomTabRegistrationInterface
145-
extends CustomTabRegistrationInterface {
136+
interface DataLabelingCustomTabRegistrationInterface extends CustomTabRegistrationInterface {
146137
Component: ({
147138
id,
148139
feastObjectQuery,

‎ui/src/hooks/useSearchInputWithTags.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import { sortTagsByTotalUsage } from "./useFCOExploreSuggestions";
77
type tagTokenType = Record<"key" | "value", string>;
88
type tagTokenGroupsType = Record<string, string[]>;
99
type tagAggregationRecordType =
10-
| Record<string, Record<string, unknown[]>>
11-
| undefined;
10+
Record<string, Record<string, unknown[]>> | undefined;
1211

1312
type SuggestionModes = "KEY" | "VALUE";
1413

‎ui/src/pages/data-sources/DataSourceOverviewTab.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ const DataSourceOverviewTab = () => {
156156
</EuiTitle>
157157
<EuiHorizontalRule margin="xs"></EuiHorizontalRule>
158158
<RequestDataSourceSchemaTable
159-
fields={
160-
data?.requestDataOptions?.schema!.map((obj: any) => {
159+
fields={data?.requestDataOptions?.schema!.map(
160+
(obj: any) => {
161161
return {
162162
fieldName: obj.name!,
163163
valueType: obj.valueType!,
164164
};
165-
})!
166-
}
165+
},
166+
)!}
167167
/>
168168
</EuiPanel>
169169
) : (

0 commit comments

Comments
 (0)