Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARROW-17321: [JS] Update dependencies #13758

Merged
merged 7 commits into from
Aug 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions js/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ module.exports = {
"unicorn/prefer-switch": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/text-encoding-identifier-case": "off",
"unicorn/prefer-top-level-await": "off",

"unicorn/consistent-destructuring": "warn",
"unicorn/no-array-reduce": ["warn", { "allowSimpleOperations": true }],
Expand Down
2 changes: 1 addition & 1 deletion js/gulp/arrow-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import { targetDir, observableFromStreams } from './util.js';

import del from 'del';
import { deleteAsync as del } from 'del';
import gulp from 'gulp';
import mkdirp from 'mkdirp';
import gulpRename from 'gulp-rename';
Expand Down
2 changes: 1 addition & 1 deletion js/gulp/clean-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

import del from 'del';
import { deleteAsync as del } from 'del';
import { targetDir } from './util.js';
import memoizeTask from './memoize-task.js';
import { catchError } from 'rxjs/operators';
Expand Down
2 changes: 1 addition & 1 deletion js/gulp/test-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

import del from 'del';
import { deleteAsync as del } from 'del';
import path from 'path';
import mkdirp from 'mkdirp';
import { argv } from './argv.js';
Expand Down
2 changes: 1 addition & 1 deletion js/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

import del from "del";
import { deleteAsync as del } from 'del';
import os from "os";
import gulp from "gulp";
import { targets } from "./gulp/argv.js";
Expand Down
48 changes: 24 additions & 24 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"dependencies": {
"@types/command-line-args": "5.2.0",
"@types/command-line-usage": "5.0.2",
"@types/node": "^17.0.36",
"@types/node": "^18.6.4",
"@types/pad-left": "2.1.1",
"command-line-args": "5.2.1",
"command-line-usage": "6.1.3",
Expand All @@ -64,56 +64,56 @@
"tslib": "^2.4.0"
},
"devDependencies": {
"@openpgp/web-stream-tools": "0.0.10",
"@openpgp/web-stream-tools": "0.0.11",
"@rollup/plugin-alias": "3.1.9",
"@rollup/plugin-node-resolve": "13.3.0",
"@rollup/stream": "2.0.0",
"@types/benchmark": "2.1.1",
"@types/glob": "7.2.0",
"@types/jest": "27.5.1",
"@types/jest": "28.1.6",
"@types/randomatic": "3.1.3",
"@typescript-eslint/eslint-plugin": "5.27.0",
"@typescript-eslint/parser": "5.27.0",
"async-done": "1.3.2",
"@typescript-eslint/eslint-plugin": "5.32.0",
"@typescript-eslint/parser": "5.32.0",
"async-done": "2.0.0",
"benny": "3.7.1",
"cross-env": "7.0.3",
"del-cli": "4.0.1",
"esbuild": "0.14.42",
"del-cli": "5.0.0",
"esbuild": "0.14.53",
"esbuild-plugin-alias": "0.2.1",
"eslint": "8.16.0",
"eslint-plugin-jest": "26.4.6",
"eslint-plugin-unicorn": "42.0.0",
"eslint": "8.21.0",
"eslint-plugin-jest": "26.7.0",
"eslint-plugin-unicorn": "43.0.2",
"esm": "https://github.com/jsg2021/esm/releases/download/v3.x.x-pr883/esm-3.x.x-pr883.tgz",
"glob": "8.0.3",
"google-closure-compiler": "20220502.0.0",
"google-closure-compiler": "20220719.0.0",
"gulp": "4.0.2",
"gulp-esbuild": "0.10.3",
"gulp-esbuild": "0.10.4",
"gulp-json-transform": "0.4.8",
"gulp-rename": "2.0.0",
"gulp-replace": "1.1.3",
"gulp-sourcemaps": "3.0.0",
"gulp-terser": "2.1.0",
"gulp-typescript": "5.0.1",
"gulp-vinyl-size": "1.1.3",
"ix": "4.5.2",
"jest": "28.1.0",
"ix": "5.0.0",
"jest": "28.1.3",
"jest-silent-reporter": "0.5.0",
"lerna": "5.0.0",
"memfs": "3.4.4",
"lerna": "5.3.0",
"memfs": "3.4.7",
"mkdirp": "1.0.4",
"multistream": "4.1.0",
"randomatic": "3.1.1",
"rollup": "2.75.4",
"rxjs": "7.5.5",
"ts-jest": "28.0.3",
"ts-node": "10.8.0",
"typedoc": "0.22.16",
"typescript": "4.7.2",
"rollup": "2.77.2",
"rxjs": "7.5.6",
"ts-jest": "28.0.7",
"ts-node": "10.9.1",
"typedoc": "0.23.10",
"typescript": "4.7.4",
"vinyl-buffer": "1.0.1",
"vinyl-named": "1.1.0",
"vinyl-source-stream": "2.0.0",
"web-streams-polyfill": "3.2.1",
"webpack": "5.72.1",
"webpack": "5.74.0",
"webpack-bundle-analyzer": "4.5.0",
"webpack-stream": "7.0.0",
"xml2js": "0.4.23"
Expand Down
2 changes: 1 addition & 1 deletion js/src/util/bn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function decimalToString<T extends BN<BigNumArray>>(a: T) {
base64[0] = base64[0] - base64[1] * 10;
digits = `${base64[0]}${digits}`;
} while (checks[0] || checks[1] || checks[2] || checks[3]);
return digits ? digits : `0`;
return digits ?? `0`;
}

/** @ignore */
Expand Down
23 changes: 23 additions & 0 deletions js/test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import * as arrow from './src/Arrow.dom.js'
// import * as arrow from './targets/es5/cjs'

const LENGTH = 1000000;

const lat = Float32Array.from(
{ length: LENGTH },
() => ((Math.random() - 0.5) * 2 * 90));
const lng = Float32Array.from(
{ length: LENGTH },
() => ((Math.random() - 0.5) * 2 * 90));

const table = arrow.tableFromArrays({
'lat': lat,
'lng': lng
});

let total = 0;
for (const row of table) {
total += row['lat'] + row['lng'];
}

console.log(total);
3 changes: 2 additions & 1 deletion js/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"includeVersion": true,
"exclude": [
"src/fb/*.ts",
"src/bin/*.ts"
"src/bin/*.ts",
"src/ipc/metadata/message.ts"
]
}
Loading