Skip to content

Commit

Permalink
chore: Update dh packages to ^0.95.0 (deephaven#916)
Browse files Browse the repository at this point in the history
Update dh packages to ^0.95.0

resolves deephaven#914
  • Loading branch information
bmingles authored Sep 30, 2024
1 parent 5b0dce6 commit 47ed09b
Show file tree
Hide file tree
Showing 10 changed files with 427 additions and 394 deletions.
757 changes: 386 additions & 371 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions plugins/ui/src/js/__mocks__/@deephaven/log.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const Log = {
module: () => ({
debug: jest.fn().mockName('debug'),
debug2: jest.fn().mockName('debug2'),
error: jest.fn().mockName('error'),
info: jest.fn().mockName('info'),
log: jest.fn().mockName('log'),
warn: jest.fn().mockName('warn'),
}),
setLogLevel: jest.fn().mockName('setLogLevel'),
};

module.exports = Log;
module.exports.Log = Log;
33 changes: 17 additions & 16 deletions plugins/ui/src/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,24 @@
"react-dom": "^17.0.2"
},
"dependencies": {
"@deephaven/chart": "^0.91.0",
"@deephaven/components": "^0.91.0",
"@deephaven/dashboard": "^0.91.0",
"@deephaven/dashboard-core-plugins": "^0.91.0",
"@deephaven/golden-layout": "^0.91.0",
"@deephaven/grid": "^0.91.0",
"@deephaven/icons": "^0.91.0",
"@deephaven/iris-grid": "^0.91.0",
"@deephaven/jsapi-bootstrap": "^0.91.0",
"@deephaven/jsapi-components": "^0.91.0",
"@deephaven/chart": "^0.95.0",
"@deephaven/components": "^0.95.0",
"@deephaven/dashboard": "^0.95.0",
"@deephaven/dashboard-core-plugins": "^0.95.0",
"@deephaven/golden-layout": "^0.95.0",
"@deephaven/grid": "^0.95.0",
"@deephaven/icons": "^0.95.0",
"@deephaven/iris-grid": "^0.95.0",
"@deephaven/jsapi-bootstrap": "^0.95.0",
"@deephaven/jsapi-components": "^0.95.0",
"@deephaven/jsapi-types": "^1.0.0-dev0.35.0",
"@deephaven/jsapi-utils": "^0.91.0",
"@deephaven/log": "^0.91.0",
"@deephaven/plugin": "^0.91.0",
"@deephaven/react-hooks": "^0.91.0",
"@deephaven/redux": "^0.91.0",
"@deephaven/utils": "^0.91.0",
"@deephaven/jsapi-utils": "^0.95.0",
"@deephaven/log": "^0.95.0",
"@deephaven/plugin": "^0.95.0",
"@deephaven/react-hooks": "^0.95.0",
"@deephaven/redux": "^0.95.0",
"@deephaven/test-utils": "^0.95.0",
"@deephaven/utils": "^0.95.0",
"@fortawesome/react-fontawesome": "^0.2.0",
"@internationalized/date": "^3.5.5",
"classnames": "^2.5.1",
Expand Down
2 changes: 1 addition & 1 deletion plugins/ui/src/js/src/elements/utils/ElementUtils.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { Text } from '@deephaven/components';
import type { dh } from '@deephaven/jsapi-types';
import { TestUtils } from '@deephaven/utils';
import { TestUtils } from '@deephaven/test-utils';
import {
ELEMENT_KEY,
fetchReexportedTable,
Expand Down
2 changes: 1 addition & 1 deletion plugins/ui/src/js/src/layout/LayoutUtils.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable react/jsx-key */
import React from 'react';
import { TestUtils } from '@deephaven/utils';
import { TestUtils } from '@deephaven/test-utils';
import Column from './Column';
import {
isPanelElementNode,
Expand Down
2 changes: 1 addition & 1 deletion plugins/ui/src/js/src/layout/ReactPanel.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
WidgetDescriptor,
useListener,
} from '@deephaven/dashboard';
import { TestUtils } from '@deephaven/utils';
import { TestUtils } from '@deephaven/test-utils';
import ReactPanel from './ReactPanel';
import {
ReactPanelManager,
Expand Down
2 changes: 1 addition & 1 deletion plugins/ui/src/js/src/widget/DocumentHandler.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { WidgetDescriptor } from '@deephaven/dashboard';
import { TestUtils } from '@deephaven/utils';
import { TestUtils } from '@deephaven/test-utils';
import { render } from '@testing-library/react';
import DocumentHandler, { DocumentHandlerProps } from './DocumentHandler';
import { ReactPanelProps } from '../layout/LayoutUtils';
Expand Down
5 changes: 4 additions & 1 deletion plugins/ui/src/js/src/widget/WidgetHandler.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { act, render } from '@testing-library/react';
import { useWidget } from '@deephaven/jsapi-bootstrap';
import { dh } from '@deephaven/jsapi-types';
import { TestUtils } from '@deephaven/utils';
import { TestUtils } from '@deephaven/test-utils';
import WidgetHandler, { WidgetHandlerProps } from './WidgetHandler';
import { DocumentHandlerProps } from './DocumentHandler';
import {
Expand All @@ -15,6 +15,9 @@ import {
const mockApi = { Widget: { EVENT_MESSAGE: 'message' } };
const defaultWidgetWrapper: ReturnType<typeof useWidget> = {
widget: TestUtils.createMockProxy<dh.Widget>({
addEventListener: jest
.fn(() => jest.fn().mockName('cleanup'))
.mockName('addEventListener'),
getDataAsString: jest.fn(() => ''),
exportedObjects: [],
}),
Expand Down
2 changes: 1 addition & 1 deletion plugins/ui/src/js/src/widget/WidgetTestUtils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { WidgetDescriptor } from '@deephaven/dashboard';
import { TestUtils } from '@deephaven/utils';
import { TestUtils } from '@deephaven/test-utils';
import type { dh } from '@deephaven/jsapi-types';
import { WidgetMessageEvent } from './WidgetTypes';

Expand Down
2 changes: 1 addition & 1 deletion plugins/ui/src/js/src/widget/WidgetUtils.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import type { JSONRPCServerAndClient } from 'json-rpc-2.0';
import { Text } from '@deephaven/components';
import { TestUtils } from '@deephaven/utils';
import { TestUtils } from '@deephaven/test-utils';
import {
ELEMENT_NAME,
ELEMENT_PREFIX,
Expand Down

0 comments on commit 47ed09b

Please sign in to comment.