Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@deephaven/jsapi-bootstrap
Advanced tools
This is a library to bootstrap load the JS API. It provides functionality to load the API and set it in a context object, or to set it globally to retain legacy behaviour. Will display an error if unable to load the API.
npm install --save @deephaven/jsapi-bootstrap
import { ApiBootstrap, useApi } from '@deephaven/jsapi-bootstrap';
function MyComponent() {
const api = useApi();
...
}
<ApiBootstrap apiUrl={API_URL}>
<MyComponent />
</ApiBootstrap>;
If you're using the JSAPI shim or relying on the API to be set globally, you'll need to lazily load your component first so the API is set before imports attempt to use it.
// App.tsx
import { ApiBootstrap } from '@deephaven/jsapi-bootstrap';
const MyComponent = React.lazy(() => import('./MyComponent'));
<ApiBootstrap apiUrl={API_URL} setGlobally>
<Suspense fallback={<div>Loading...</div>}>
<MyComponent />
</Suspense>
</ApiBootstrap>;
// MyComponent.tsx
import dh from '@deephaven/jsapi-shim';
function MyComponent() {
const client = new dh.CoreClient(...);
...
}
0.39.0 (2023-05-15)
IrisGrid
, Chart
, ChartBuilder
,
AdvancedFilterCreator
, GotoRow
, IrisGridModelUpdater
,
TableCSVExporter
get the JSAPI reference from the model
prop. dh
prop removed.makeApi
props in IrisGridPanel
and ChartPanel
removed.Console
, ConsoleMenu
, ConsoleStatusBar
now require
the JSAPI instance in the dh
prop.ConsoleUtils
: static methods isTableType
, isWidgetType
,
isOpenableType
, isFigureType
, isPandas
require JSAPI instance
passed in the first argument.SessionUtils
: static methods createSessionWrapper
,
loadSessionWrapper
require JSAPI instance passed in the first
argument.IrisGridModel
requires JSAPI instance passed in the
constructor args.DashboardLayout
, ObjectIcon
has to be wrapped in
ApiContext.Provider
passing the JSAPI instance.Formatter
requires the JSAPI instance as the first argument.DateTimeColumnFormatter
, DecimalColumnFormatter
,
IntegerColumnFormatter
, TableColumnFormatter
: static method
isValid
and constructor require the JSAPI instance in the first
argument.Chart
requires the JSAPI instance passed in the new prop
dh
.WidgetUtils
: methods createChartModel
, createGridModel
methods
require the JSAPI instance passed in the first argument.DateTimeOptions
, TableInput
, useViewportData
have to
be wrapped in ApiContext.Provider
passing the JSAPI instance.SettingsUtils
: methods isValidFormat
and
isFormatRuleValidForSave
require the JSAPI instance passed in the
first argument.SessionUtils
: methods createConnection
, createCoreClient
require
the JSAPI instance passed in the first argument.TableUtils
static methods applyCustomColumns
, applyFilter
,
applyNeverFilter
, applySort
converted to instance methods.DropdownFilterPanel
, Linker
now get the JSAPI instance
from redux store.DecimalFormatContextMenu.getOptions
,
IntegerFormatContextMenu.getOptions
now require the JSAPI instance in
the first argument.DateUtils
static methods makeDateWrapper
, getNextDate
,
parseDateRange
now require the JSAPI object as the first argument.IrisGridUtils
static methods dehydrateIrisGridState
,
hydrateIrisGridState
, hydrateQuickFilters
,
dehydrateAdvancedFilters
, hydrateAdvancedFilters
,
dehydrateAdvancedFilterOptions
, hydrateAdvancedFilterOptions
,
dehydratePendingDataMap
, hydratePendingDataMap
, dehydrateValue
,
hydrateValue
, dehydrateDateTime
, hydrateDateTime
, hydrateLong
,
hydrateSort
, applyTableSettings
, getFiltersFromInputFilters
,
rangeSetFromRanges
converted to instance methods. Consumers now need
to create an IrisGridUtils
instance and pass the JSAPI object to the
constructor.TableUtils
static methods makeQuickFilter
,
makeQuickFilterFromComponent
, makeQuickNumberFilter
,
makeQuickTextFilter
, makeQuickBooleanFilter
, makeQuickDateFilter
,
makeQuickDateFilterWithOperation
, makeQuickCharFilter
,
makeAdvancedFilter
, makeAdvancedValueFilter
, makeFilterValue
,
makeFilterRawValue
, makeValue
, makeSelectValueFilter
converted to
instance methods. Consumers now need to create a TableUtils
instance
and pass the JSAPI object to the constructor.IrisGridTableModel
, IrisGridTableModelTemplate
,
IrisGridProxyModel
constructors require the JSAPI object in the first
argument.IrisGridTestUtils.makeModel
, IrisGridModelFactory.makeModel
now
require the JSAPI object in the first argument.IrisGridContextMenuHandler
constructor requires the JSAPI object in
the second argument.IrisGridPanel
requires a new makeApi
prop, a function that
resolves with the JSAPI instance.CrossColumnSearch.createSearchFilter
requires the JSAPI object
argument.AdvancedFilterCreatorSelectValue
,
AdvancedFilterCreatorSelectValueList
, ChartBuilder
, GotoRow
,
IrisGrid
, IrisGridModelUpdater
, IrisGridPartitionSelector
,
PartitionSelectorSearch
, TableCSVExporter
, TableSaver
,
TreeTableViewportUpdater
, RowFormatEditor
, ColumnFormatEditor
,
ConditionEditor
now require the JSAPI object passed in the new prop
dh
.AdvancedFilterCreator
, AdvancedFilterCreatorFilterItem
require the TableUtils
instance pass in the new prop tableUtils
.ConditionalFormattingUtils
static methods getFormatColumns
,
isDateConditionValid
require the JSAPI object in the first argument.ConditionalFormattingAPIUtils
static method makeRowFormatColumn
requires the JSAPI object in the first argument.ChartUtils
class now needs to be instantiated with a JSAPI object,
most of the methods converted from static to instance methods.ChartModelFactory
methods require JSAPI object as the first
argument.FigureChartModel
constructor requires JSAPI object as the first
argument.generateEmptyKeyedItemsRange
previously required a
single count
arg, but now requires a start
and end
indexvsCircleLargeOutline
icon renamed to vsCircleLarge
FAQs
Deephaven JSAPI Bootstrap
The npm package @deephaven/jsapi-bootstrap receives a total of 1,759 weekly downloads. As such, @deephaven/jsapi-bootstrap popularity was classified as popular.
We found that @deephaven/jsapi-bootstrap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.