@apache-arrow/esnext-umd
Advanced tools
Comparing version 4.0.1 to 5.0.0
@@ -54,3 +54,3 @@ #! /usr/bin/env node | ||
if (err) { | ||
console.error(`${err && err.stack || err}`); | ||
console.error(`${err?.stack || err}`); | ||
} | ||
@@ -131,3 +131,3 @@ return process.exitCode || 1; | ||
transform(batch, _enc, cb) { | ||
batch = !(state.schema && state.schema.length) ? batch : batch.select(...state.schema); | ||
batch = !state.schema?.length ? batch : batch.select(...state.schema); | ||
if (state.closed) { | ||
@@ -134,0 +134,0 @@ return cb(undefined, null); |
{ | ||
"version": "4.0.1", | ||
"version": "5.0.0", | ||
"name": "@apache-arrow/esnext-umd", | ||
@@ -8,2 +8,3 @@ "unpkg": "Arrow.js", | ||
"main": "Arrow.js", | ||
"type": "commonjs", | ||
"license": "Apache-2.0", | ||
@@ -26,4 +27,3 @@ "description": "Apache Arrow columnar in-memory format", | ||
"@types/flatbuffers": "^1.10.0", | ||
"@types/node": "^14.14.37", | ||
"@types/text-encoding-utf-8": "^1.0.1", | ||
"@types/node": "^15.6.1", | ||
"command-line-args": "5.1.1", | ||
@@ -34,4 +34,3 @@ "command-line-usage": "6.1.1", | ||
"pad-left": "^2.1.0", | ||
"text-encoding-utf-8": "^1.0.2", | ||
"tslib": "^2.2.0" | ||
"tslib": "^2.3.0" | ||
}, | ||
@@ -38,0 +37,0 @@ "bin": { |
@@ -150,43 +150,2 @@ <!--- | ||
### Usage with MapD Core | ||
```js | ||
import MapD from 'rxjs-mapd'; | ||
import { Table } from 'apache-arrow'; | ||
const port = 9091; | ||
const host = `localhost`; | ||
const db = `mapd`; | ||
const user = `mapd`; | ||
const password = `HyperInteractive`; | ||
MapD.open(host, port) | ||
.connect(db, user, password) | ||
.flatMap((session) => | ||
// queryDF returns Arrow buffers | ||
session.queryDF(` | ||
SELECT origin_city | ||
FROM flights | ||
WHERE dest_city ILIKE 'dallas' | ||
LIMIT 5` | ||
).disconnect() | ||
) | ||
.map(([schema, records]) => | ||
// Create Arrow Table from results | ||
Table.from([schema, records])) | ||
.map((table) => | ||
// Stringify the table to CSV with row numbers | ||
table.toString({ index: true })) | ||
.subscribe((csvStr) => | ||
console.log(csvStr)); | ||
/* | ||
Index, origin_city | ||
0, Oklahoma City | ||
1, Oklahoma City | ||
2, Oklahoma City | ||
3, San Antonio | ||
4, San Antonio | ||
*/ | ||
``` | ||
# Getting involved | ||
@@ -245,2 +204,8 @@ | ||
### Supported Browsers and Platforms | ||
The bundles we compile support moderns browser released in the last 5 years. This includes supported versions of | ||
Firefox, Chrome, Edge, and Safari. We do not actively support Internet Explorer. | ||
Apache Arrow also works on [maintained versions of Node](https://nodejs.org/en/about/releases/). | ||
# People | ||
@@ -250,4 +215,5 @@ | ||
* Brian Hulette, _committer_ | ||
* Paul Taylor, Graphistry, Inc., _committer_ | ||
* Brian Hulette, _committer_ | ||
* Paul Taylor, _committer_ | ||
* Dominik Moritz, _committer_ | ||
@@ -261,12 +227,8 @@ # Powered By Apache Arrow in JS | ||
* [Apache Arrow](https://arrow.apache.org) -- Parent project for Powering Columnar In-Memory Analytics, including affiliated open source projects | ||
* [rxjs-mapd](https://github.com/graphistry/rxjs-mapd) -- A MapD Core node-driver that returns query results as Arrow columns | ||
* [Perspective](https://github.com/jpmorganchase/perspective) -- Perspective is a streaming data visualization engine by J.P. Morgan for JavaScript for building real-time & user-configurable analytics entirely in the browser. | ||
* [Falcon](https://github.com/uwdata/falcon) is a visualization tool for linked interactions across multiple aggregate visualizations of millions or billions of records. | ||
* [Vega](https://github.com/vega) is an ecosystem of tools for interactive visualizations on the web. The Vega team implemented an [Arrow loader](https://github.com/vega/vega-loader-arrow). | ||
* [Arquero](https://github.com/uwdata/arquero) is a library for query processing and transformation of array-backed data tables. | ||
* [OmniSci](https://github.com/omnisci/mapd-connector) is a GPU database. Its JavaScript connector returns Arrow dataframes. | ||
## Companies & Organizations | ||
* [CCRi](https://www.ccri.com/) -- Commonwealth Computer Research Inc, or CCRi, is a Central Virginia based data science and software engineering company | ||
* [GOAI](https://gpuopenanalytics.com/) -- GPU Open Analytics Initiative standardizes on Arrow as part of creating common data frameworks that enable developers and statistical researchers to accelerate data science on GPUs | ||
* [Graphistry, Inc.](https://www.graphistry.com/) - An end-to-end GPU accelerated visual investigation platform used by teams for security, anti-fraud, and related investigations. Graphistry uses Arrow in its NodeJS GPU backend and client libraries, and is an early contributing member to GOAI and Arrow\[JS\] working to bring these technologies to the enterprise. | ||
# License | ||
@@ -273,0 +235,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
8
10
3512
1005418
242
1
+ Added@types/node@15.14.9(transitive)
- Removed@types/text-encoding-utf-8@^1.0.1
- Removedtext-encoding-utf-8@^1.0.2
- Removed@types/node@14.18.63(transitive)
- Removed@types/text-encoding-utf-8@1.0.5(transitive)
- Removedtext-encoding-utf-8@1.0.2(transitive)
Updated@types/node@^15.6.1
Updatedtslib@^2.3.0