Skip to content

Commit

Permalink
apacheGH-35290: [JS] Update dependencies (apache#35291)
Browse files Browse the repository at this point in the history
Fixes apache#35290. Nothing major changes. 
* Closes: apache#35290

Authored-by: Dominik Moritz <domoritz@gmail.com>
Signed-off-by: Dominik Moritz <domoritz@gmail.com>
  • Loading branch information
domoritz authored and rtpsw committed May 16, 2023
1 parent dd040c7 commit fe2bec2
Show file tree
Hide file tree
Showing 8 changed files with 1,943 additions and 1,472 deletions.
2 changes: 1 addition & 1 deletion js/DEVELOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ You can change the target you want to test by changing the imports in `perf/inde

# Testing Bundling

The bunldes use `apache-arrow` so make sure to build it with `yarn build -t apache-arrow`. To bundle with a variety of bundlers, run `yarn test:bundle` or `yarn gulp bundle`.
The bundles use `apache-arrow` so make sure to build it with `yarn build -t apache-arrow`. To bundle with a variety of bundlers, run `yarn test:bundle` or `yarn gulp bundle`.

Run `yarn gulp bundle:webpack:analyze` to open [Webpack Bundle Analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer).

Expand Down
2 changes: 1 addition & 1 deletion js/bin/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
const fs = require('fs');
const Path = require('path');
const { promisify } = require('util');
const glob = promisify(require('glob'));
const glob = promisify(require('glob').glob);
const { zip } = require('ix/iterable/zip');
const { parse: bignumJSONParse } = require('json-bignum');
const argv = require(`command-line-args`)(cliOpts(), { partial: 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 @@ -19,7 +19,7 @@ import { targetDir, observableFromStreams } from './util.js';

import { deleteAsync as del } from 'del';
import gulp from 'gulp';
import mkdirp from 'mkdirp';
import { mkdirp } from 'mkdirp';
import gulpRename from 'gulp-rename';
import gulpReplace from 'gulp-replace';
import { memoizeTask } from './memoize-task.js';
Expand Down
2 changes: 1 addition & 1 deletion js/gulp/closure-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { targetDir, mainExport, esmRequire, gCCLanguageNames, publicModulePaths,
import fs from 'fs';
import gulp from 'gulp';
import path from 'path';
import mkdirp from 'mkdirp';
import { mkdirp } from 'mkdirp';
import sourcemaps from 'gulp-sourcemaps';
import { memoizeTask } from './memoize-task.js';
import { compileBinFiles } from './typescript-task.js';
Expand Down
4 changes: 2 additions & 2 deletions js/gulp/test-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

import { deleteAsync as del } from 'del';
import path from 'path';
import mkdirp from 'mkdirp';
import { mkdirp } from 'mkdirp';
import { argv } from './argv.js';
import { promisify } from 'util';
import globSync from 'glob';
import { globSync } from 'glob';
const glob = promisify(globSync);
import child_process from 'child_process';
import { memoizeTask } from './memoize-task.js';
Expand Down
42 changes: 21 additions & 21 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,41 +54,41 @@
"dependencies": {
"@types/command-line-args": "5.2.0",
"@types/command-line-usage": "5.0.2",
"@types/node": "18.14.5",
"@types/node": "18.15.13",
"@types/pad-left": "2.1.1",
"command-line-args": "5.2.1",
"command-line-usage": "6.1.3",
"command-line-usage": "7.0.1",
"flatbuffers": "23.3.3",
"json-bignum": "^0.0.3",
"pad-left": "^2.1.0",
"tslib": "^2.5.0"
},
"devDependencies": {
"@openpgp/web-stream-tools": "0.0.13",
"@rollup/plugin-alias": "4.0.3",
"@rollup/plugin-node-resolve": "15.0.1",
"@rollup/plugin-alias": "5.0.0",
"@rollup/plugin-node-resolve": "15.0.2",
"@rollup/stream": "3.0.0",
"@types/benchmark": "2.1.2",
"@types/glob": "8.1.0",
"@types/jest": "29.4.0",
"@types/jest": "29.5.1",
"@types/randomatic": "3.1.3",
"@typescript-eslint/eslint-plugin": "5.54.0",
"@typescript-eslint/parser": "5.54.0",
"@typescript-eslint/eslint-plugin": "5.59.0",
"@typescript-eslint/parser": "5.59.0",
"async-done": "2.0.0",
"benny": "3.7.1",
"cross-env": "7.0.3",
"del": "7.0.0",
"del-cli": "5.0.0",
"esbuild": "0.17.10",
"esbuild": "0.17.17",
"esbuild-plugin-alias": "0.2.1",
"eslint": "8.35.0",
"eslint": "8.39.0",
"eslint-plugin-jest": "27.2.1",
"eslint-plugin-unicorn": "46.0.0",
"esm": "https://github.com/jsg2021/esm/releases/download/v3.x.x-pr883/esm-3.x.x-pr883.tgz",
"glob": "9.2.1",
"google-closure-compiler": "20220905.0.0",
"glob": "10.2.1",
"google-closure-compiler": "20230411.0.0",
"gulp": "4.0.2",
"gulp-esbuild": "0.11.0",
"gulp-esbuild": "0.11.1",
"gulp-json-transform": "0.4.8",
"gulp-rename": "2.0.0",
"gulp-replace": "1.1.4",
Expand All @@ -97,24 +97,24 @@
"gulp-typescript": "5.0.1",
"gulp-vinyl-size": "1.1.3",
"ix": "5.0.0",
"jest": "29.4.3",
"jest": "29.5.0",
"jest-silent-reporter": "0.5.0",
"lerna": "6.5.1",
"memfs": "3.4.13",
"mkdirp": "2.1.4",
"lerna": "6.6.1",
"memfs": "3.5.1",
"mkdirp": "3.0.0",
"multistream": "4.1.0",
"randomatic": "3.1.1",
"rollup": "3.18.0",
"rollup": "3.20.7",
"rxjs": "7.8.0",
"ts-jest": "29.0.5",
"ts-jest": "29.1.0",
"ts-node": "10.9.1",
"typedoc": "0.23.26",
"typescript": "4.9.5",
"typedoc": "0.24.4",
"typescript": "5.0.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.76.0",
"webpack": "5.80.0",
"webpack-bundle-analyzer": "4.8.0",
"webpack-stream": "7.0.0",
"xml2js": "0.5.0"
Expand Down
5 changes: 3 additions & 2 deletions js/src/builder/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ export class ListBuilder<T extends DataType = any, TNull = any> extends Variable
if (typeof value === 'undefined') {
offsets.set(index, 0);
} else {
const n = value.length;
const v = value as T['TValue'];
const n = v.length;
const start = offsets.set(index, n).buffer[index];
for (let i = -1; ++i < n;) {
child.set(start + i, value[i]);
child.set(start + i, v[i]);
}
}
}
Expand Down

0 comments on commit fe2bec2

Please sign in to comment.