@loaders.gl/schema
Advanced tools
Comparing version 4.0.0-beta.2 to 4.0.0-beta.3
@@ -29,4 +29,3 @@ export type { TypedArray, BigTypedArray, TypedArrayConstructor, BigTypedArrayConstructor, NumberArray, ArrayType, AnyArray } from './types/types'; | ||
export { getTypeInfo } from './lib/table/arrow-api/get-type-info'; | ||
export { getArrowType } from './lib/table/arrow/arrow-type-utils'; | ||
export { default as AsyncQueue } from './lib/utils/async-queue'; | ||
//# sourceMappingURL=index.d.ts.map |
import { Type } from './enum'; | ||
import { ArrowLikeField as Field } from './arrow-like-field'; | ||
export { Type } from './enum'; | ||
export type TypedIntArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Int32Array | Uint32Array | Uint8ClampedArray; | ||
export type TypedIntArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray; | ||
export type TypedFloatArray = Float32Array | Float64Array; | ||
@@ -6,0 +6,0 @@ export type TypedArray = TypedIntArray | TypedFloatArray; |
import { Schema } from './schema'; | ||
import type { RecordBatch } from 'apache-arrow'; | ||
type ApacheRecordBatch = unknown; | ||
/** | ||
@@ -18,3 +18,3 @@ * A batch of data (or metadata/schema), from a streaming loader | ||
/** If this is an arrow table. @deprecated Use `data` */ | ||
recordBatch?: RecordBatch; | ||
recordBatch?: ApacheRecordBatch; | ||
/** Length of data in this batch */ | ||
@@ -35,2 +35,3 @@ length: number; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=batch.d.ts.map |
/** Any typed array */ | ||
export type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array; | ||
export type BigTypedArray = TypedArray | BigInt64Array | BigUint64Array; | ||
export type TypedArrayConstructor = Int8ArrayConstructor | Uint8ArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor; | ||
export type TypedArrayConstructor = Int8ArrayConstructor | Uint8ArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor; | ||
export type BigTypedArrayConstructor = TypedArrayConstructor | BigInt64ArrayConstructor | BigUint64ArrayConstructor; | ||
@@ -6,0 +6,0 @@ /** Any numeric array: typed array or `number[]` */ |
{ | ||
"name": "@loaders.gl/schema", | ||
"version": "4.0.0-beta.2", | ||
"version": "4.0.0-beta.3", | ||
"description": "Table format APIs for JSON, CSV, etc...", | ||
"license": "MIT", | ||
"type": "module", | ||
"publishConfig": { | ||
@@ -22,4 +23,11 @@ "access": "public" | ||
"types": "dist/index.d.ts", | ||
"main": "dist/es5/index.js", | ||
"module": "dist/esm/index.js", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.js", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs", | ||
"types": "./dist/index.d.ts" | ||
} | ||
}, | ||
"sideEffects": false, | ||
@@ -32,4 +40,4 @@ "files": [ | ||
"scripts": { | ||
"pre-build": "npm run build-bundle", | ||
"build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/dist.min.js" | ||
"pre-build": "npm run build-bundle && npm run build-bundle -- --env=dev", | ||
"build-bundle": "ocular-bundle ./src/index.ts" | ||
}, | ||
@@ -39,3 +47,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "79c2033f755e88e11bc30a04428e3666b177b8fc" | ||
"gitHead": "7ba9621cc51c7a26c407086ac86171f35b8712af" | ||
} |
@@ -181,4 +181,3 @@ // COMMON CATEGORY | ||
export {getTypeInfo} from './lib/table/arrow-api/get-type-info'; | ||
export {getArrowType} from './lib/table/arrow/arrow-type-utils'; | ||
export {default as AsyncQueue} from './lib/utils/async-queue'; |
@@ -17,4 +17,2 @@ // This code is adapted from ArrowJS https://github.com/apache/arrow | ||
| Uint32Array | ||
| Int32Array | ||
| Uint32Array | ||
| Uint8ClampedArray; | ||
@@ -21,0 +19,0 @@ |
// loaders.gl, MIT license | ||
import {Schema} from './schema'; | ||
import type {RecordBatch} from 'apache-arrow'; | ||
// import type {RecordBatch} from 'apache-arrow'; | ||
type ApacheRecordBatch = unknown; | ||
/** | ||
@@ -21,3 +23,3 @@ * A batch of data (or metadata/schema), from a streaming loader | ||
/** If this is an arrow table. @deprecated Use `data` */ | ||
recordBatch?: RecordBatch; | ||
recordBatch?: ApacheRecordBatch; | ||
/** Length of data in this batch */ | ||
@@ -24,0 +26,0 @@ length: number; |
@@ -22,4 +22,2 @@ /** Any typed array */ | ||
| Uint32ArrayConstructor | ||
| Int32ArrayConstructor | ||
| Uint32ArrayConstructor | ||
| Float32ArrayConstructor | ||
@@ -26,0 +24,0 @@ | Float64ArrayConstructor; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Yes
482234
185
9331
1