Skip to content

Commit f5c3ab0

Browse files
committed
update package version to 2.0.0 and set module type
1 parent cec8df1 commit f5c3ab0

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

package-lock.json

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

packages/data-inference/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@msrvida/data-inference",
3-
"version": "1.2.0",
3+
"type": "module",
4+
"version": "2.0.0",
45
"description": "Infer column types in tabular data.",
56
"main": "dist/es6/index.js",
67
"repository": {

packages/data-inference/src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* Licensed under the MIT License.
44
*/
55

6-
export * from './color';
7-
export * from './inference';
8-
export * from './numeric';
9-
export * from './stats';
10-
export * from './summary';
6+
export * from './color.js';
7+
export * from './inference.js';
8+
export * from './numeric.js';
9+
export * from './stats.js';
10+
export * from './summary.js';

packages/data-inference/src/inference.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
import { Column, ColumnTypeMap } from '@msrvida/chart-types';
77
import { inferTypes } from 'vega-typings';
8-
import { checkIsColorData } from './color';
9-
import { isQuantitative } from './numeric';
10-
import { getStats } from './stats';
8+
import { checkIsColorData } from './color.js';
9+
import { isQuantitative } from './numeric.js';
10+
import { getStats } from './stats.js';
1111

1212
/**
1313
* Derive column metadata from the data array.

packages/data-inference/src/stats.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
import { Column, ColumnStats } from '@msrvida/chart-types';
77
import { TypeInference } from 'vega-typings';
8-
import { isColor } from './color';
9-
import { detectNegative, detectSequentialColumn } from './numeric';
8+
import { isColor } from './color.js';
9+
import { detectNegative, detectSequentialColumn } from './numeric.js';
1010

1111
export function getStats(data: object[] | Float64Array, columnName: string | number, columnType: TypeInference, columnQuantitative: boolean, distinctValuesCallback?: (distinctValues: string[]) => void): ColumnStats;
1212
export function getStats(data: object[], column: Column, distinctValuesCallback?: (distinctValues: string[]) => void): ColumnStats;

packages/sanddance-specs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"license": "MIT",
3131
"dependencies": {
3232
"@msrvida/chart-types": "^1",
33-
"@msrvida/data-inference": "^1",
33+
"@msrvida/data-inference": "^2",
3434
"@msrvida/search-expression": "^1",
3535
"vega-typings": "~2.1.0"
3636
}

0 commit comments

Comments
 (0)