@nteract/sift 0.7.0 → 0.7.1-nightly.44052033283

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -77,7 +77,7 @@ Generated by `cargo about` from `about.toml` for sift-wasm.
77
77
  | proc-macro2 | 1.0.106 | MIT OR Apache-2.0 | https://github.com/dtolnay/proc-macro2 |
78
78
  | quote | 1.0.45 | MIT OR Apache-2.0 | https://github.com/dtolnay/quote |
79
79
  | regex | 1.12.3 | MIT OR Apache-2.0 | https://github.com/rust-lang/regex |
80
- | regex-automata | 0.4.14 | MIT OR Apache-2.0 | https://github.com/rust-lang/regex |
80
+ | regex-automata | 0.4.18 | MIT OR Apache-2.0 | https://github.com/rust-lang/regex |
81
81
  | regex-syntax | 0.8.10 | MIT OR Apache-2.0 | https://github.com/rust-lang/regex |
82
82
  | ryu | 1.0.23 | Apache-2.0 OR BSL-1.0 | https://github.com/dtolnay/ryu |
83
83
  | seq-macro | 0.3.6 | MIT OR Apache-2.0 | https://github.com/dtolnay/seq-macro |
@@ -99,12 +99,12 @@ Generated by `cargo about` from `about.toml` for sift-wasm.
99
99
  | wasm-bindgen-macro | 0.2.118 | MIT OR Apache-2.0 | https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/macro |
100
100
  | wasm-bindgen-macro-support | 0.2.118 | MIT OR Apache-2.0 | https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/macro-support |
101
101
  | wasm-bindgen-shared | 0.2.118 | MIT OR Apache-2.0 | https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/shared |
102
- | zerocopy | 0.8.48 | BSD-2-Clause OR Apache-2.0 OR MIT | https://github.com/google/zerocopy |
103
- | zerocopy-derive | 0.8.48 | BSD-2-Clause OR Apache-2.0 OR MIT | https://github.com/google/zerocopy |
102
+ | zerocopy | 0.8.63 | BSD-2-Clause OR Apache-2.0 OR MIT | https://github.com/google/zerocopy |
103
+ | zerocopy-derive | 0.8.63 | BSD-2-Clause OR Apache-2.0 OR MIT | https://github.com/google/zerocopy |
104
104
  | zmij | 1.0.21 | MIT | https://github.com/dtolnay/zmij |
105
105
  | zstd | 0.13.3 | MIT | https://github.com/gyscos/zstd-rs |
106
106
  | zstd-safe | 7.2.4 | MIT OR Apache-2.0 | https://github.com/gyscos/zstd-rs |
107
- | zstd-sys | 2.0.16+zstd.1.5.7 | MIT OR Apache-2.0 | https://github.com/gyscos/zstd-rs |
107
+ | zstd-sys | 2.1.3+zstd.1.5.7 | BSD-3-Clause AND BSD-2-Clause | https://github.com/gyscos/zstd-rs |
108
108
 
109
109
  ## NOTICE files
110
110
 
@@ -433,7 +433,7 @@ Apache License
433
433
 
434
434
  ### Apache License 2.0 (Apache-2.0)
435
435
 
436
- Used by: zerocopy-derive@0.8.48, zerocopy@0.8.48
436
+ Used by: zerocopy-derive@0.8.63, zerocopy@0.8.63
437
437
 
438
438
  ```
439
439
  Apache License
@@ -849,7 +849,7 @@ Apache License
849
849
 
850
850
  ### Apache License 2.0 (Apache-2.0)
851
851
 
852
- Used by: ahash@0.8.12, base64@0.22.1, bitflags@1.3.2, bitflags@2.11.1, bumpalo@3.20.2, cfg-if@1.0.4, const-random-macro@0.1.16, const-random@0.1.18, equivalent@1.0.2, flate2@1.1.9, hashbrown@0.15.5, hashbrown@0.17.0, indexmap@2.14.0, js-sys@0.3.95, num-bigint@0.4.6, num-complex@0.4.6, num-integer@0.1.46, num-iter@0.1.45, num-rational@0.4.2, num-traits@0.2.19, num@0.4.3, once_cell@1.21.4, regex-automata@0.4.14, regex-syntax@0.8.10, regex@1.12.3, wasm-bindgen-macro-support@0.2.118, wasm-bindgen-macro@0.2.118, wasm-bindgen-shared@0.2.118, wasm-bindgen@0.2.118
852
+ Used by: ahash@0.8.12, base64@0.22.1, bitflags@1.3.2, bitflags@2.11.1, bumpalo@3.20.2, cfg-if@1.0.4, const-random-macro@0.1.16, const-random@0.1.18, equivalent@1.0.2, flate2@1.1.9, hashbrown@0.15.5, hashbrown@0.17.0, indexmap@2.14.0, js-sys@0.3.95, num-bigint@0.4.6, num-complex@0.4.6, num-integer@0.1.46, num-iter@0.1.45, num-rational@0.4.2, num-traits@0.2.19, num@0.4.3, once_cell@1.21.4, regex-automata@0.4.18, regex-syntax@0.8.10, regex@1.12.3, wasm-bindgen-macro-support@0.2.118, wasm-bindgen-macro@0.2.118, wasm-bindgen-shared@0.2.118, wasm-bindgen@0.2.118
853
853
 
854
854
  ```
855
855
  Apache License
@@ -1889,7 +1889,7 @@ limitations under the License.
1889
1889
 
1890
1890
  ### Apache License 2.0 (Apache-2.0)
1891
1891
 
1892
- Used by: flatbuffers@24.12.23, half@2.7.1, itoa@1.0.18, miniz_oxide@0.8.9, paste@1.0.15, proc-macro2@1.0.106, quote@1.0.45, ryu@1.0.23, seq-macro@0.3.6, serde_core@1.0.228, serde_derive@1.0.228, serde_json@1.0.149, serde@1.0.228, siphasher@1.0.2, syn@2.0.117, thrift@0.17.0, unicode-ident@1.0.24, zstd-safe@7.2.4, zstd-sys@2.0.16+zstd.1.5.7
1892
+ Used by: flatbuffers@24.12.23, half@2.7.1, itoa@1.0.18, miniz_oxide@0.8.9, paste@1.0.15, proc-macro2@1.0.106, quote@1.0.45, ryu@1.0.23, seq-macro@0.3.6, serde_core@1.0.228, serde_derive@1.0.228, serde_json@1.0.149, serde@1.0.228, siphasher@1.0.2, syn@2.0.117, thrift@0.17.0, unicode-ident@1.0.24, zstd-safe@7.2.4
1893
1893
 
1894
1894
  ```
1895
1895
  Apache License
@@ -2448,6 +2448,42 @@ limitations under the License.
2448
2448
  ~~~~
2449
2449
  ```
2450
2450
 
2451
+ ### BSD 2-Clause "Simplified" License (BSD-2-Clause)
2452
+
2453
+ Used by: zstd-sys@2.1.3+zstd.1.5.7
2454
+
2455
+ ```
2456
+ The decoders for legacy formats, in zstd/lib/legacy/, include code under the
2457
+ 2-clause BSD license:
2458
+
2459
+ BSD 2-Clause License
2460
+
2461
+ Copyright (C) 2013-2016, Yann Collet.
2462
+
2463
+ Redistribution and use in source and binary forms, with or without
2464
+ modification, are permitted provided that the following conditions are
2465
+ met:
2466
+
2467
+ * Redistributions of source code must retain the above copyright
2468
+ notice, this list of conditions and the following disclaimer.
2469
+ * Redistributions in binary form must reproduce the above
2470
+ copyright notice, this list of conditions and the following disclaimer
2471
+ in the documentation and/or other materials provided with the
2472
+ distribution.
2473
+
2474
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2475
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2476
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2477
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2478
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2479
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2480
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2481
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2482
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2483
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2484
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2485
+ ```
2486
+
2451
2487
  ### BSD 3-Clause "New" or "Revised" License (BSD-3-Clause)
2452
2488
 
2453
2489
  Used by:
@@ -2483,9 +2519,44 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2483
2519
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2484
2520
  ```
2485
2521
 
2522
+ ### BSD 3-Clause "New" or "Revised" License (BSD-3-Clause)
2523
+
2524
+ Used by: zstd-sys@2.1.3+zstd.1.5.7
2525
+
2526
+ ```
2527
+ BSD 3-Clause License
2528
+
2529
+ Copyright (c) 2026, Alexandre Bury
2530
+
2531
+ Redistribution and use in source and binary forms, with or without
2532
+ modification, are permitted provided that the following conditions are met:
2533
+
2534
+ 1. Redistributions of source code must retain the above copyright notice, this
2535
+ list of conditions and the following disclaimer.
2536
+
2537
+ 2. Redistributions in binary form must reproduce the above copyright notice,
2538
+ this list of conditions and the following disclaimer in the documentation
2539
+ and/or other materials provided with the distribution.
2540
+
2541
+ 3. Neither the name of the copyright holder nor the names of its
2542
+ contributors may be used to endorse or promote products derived from
2543
+ this software without specific prior written permission.
2544
+
2545
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
2546
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2547
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2548
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
2549
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2550
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
2551
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
2552
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2553
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2554
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2555
+ ```
2556
+
2486
2557
  ### Zstandard (C sources compiled by zstd-sys) (BSD-3-Clause)
2487
2558
 
2488
- Used by: Zstandard via zstd-sys@2.0.16+zstd.1.5.7
2559
+ Used by: Zstandard via zstd-sys@2.1.3+zstd.1.5.7, zstd-sys@2.1.3+zstd.1.5.7
2489
2560
 
2490
2561
  ```
2491
2562
  BSD License
@@ -2572,6 +2643,45 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2572
2643
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2573
2644
  ```
2574
2645
 
2646
+ ### BSD 3-Clause "New" or "Revised" License (BSD-3-Clause)
2647
+
2648
+ Used by: zstd-sys@2.1.3+zstd.1.5.7
2649
+
2650
+ ```
2651
+ The auto-generated bindings are under the 3-clause BSD license:
2652
+
2653
+ BSD License
2654
+
2655
+ For Zstandard software
2656
+
2657
+ Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
2658
+
2659
+ Redistribution and use in source and binary forms, with or without modification,
2660
+ are permitted provided that the following conditions are met:
2661
+
2662
+ * Redistributions of source code must retain the above copyright notice, this
2663
+ list of conditions and the following disclaimer.
2664
+
2665
+ * Redistributions in binary form must reproduce the above copyright notice,
2666
+ this list of conditions and the following disclaimer in the documentation
2667
+ and/or other materials provided with the distribution.
2668
+
2669
+ * Neither the name Facebook, nor Meta, nor the names of its contributors may
2670
+ be used to endorse or promote products derived from this software without
2671
+ specific prior written permission.
2672
+
2673
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
2674
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
2675
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2676
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
2677
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
2678
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
2679
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
2680
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2681
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
2682
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2683
+ ```
2684
+
2575
2685
  ### Creative Commons Zero v1.0 Universal (CC0-1.0)
2576
2686
 
2577
2687
  Used by: tiny-keccak@2.0.2
@@ -54,6 +54,22 @@ export type ParquetFileStatsJson = {
54
54
  /** One per top-level column, in schema order. */
55
55
  columns: ColumnFileStatsJson[];
56
56
  };
57
+ /** One column of `parquet_footer_summary`: its Arrow type and footer statistics. */
58
+ export type FooterColumnJson = ColumnFileStatsJson & {
59
+ name: string;
60
+ /** Arrow's display form, such as `Utf8`, `Int64` or `Timestamp(Microsecond, Some("UTC"))`. */
61
+ data_type: string;
62
+ nullable: boolean;
63
+ };
64
+ /** A file's footer, summarized from its tail by `parquet_footer_summary`. */
65
+ export type ParquetFooterSummaryJson = {
66
+ num_rows: number;
67
+ num_row_groups: number;
68
+ created_by: string | null;
69
+ /** One per top-level column, in schema order. */
70
+ columns: FooterColumnJson[];
71
+ column_hints: ParquetColumnHint[];
72
+ };
57
73
  /**
58
74
  * Map the snake_case wire shape onto `ColumnFileStats`. A column whose stats
59
75
  * are missing or malformed maps to `null` so a bad footer entry degrades to
@@ -75,6 +91,8 @@ export type PredicateModule = {
75
91
  arrow_ipc_column_hints_with_row_count(ipc_bytes: Uint8Array, total_rows: number): ParquetColumnHint[];
76
92
  load_parquet_row_group(parquet_bytes: Uint8Array, row_group: number, handle: number): number;
77
93
  parquet_footer_length(tail: Uint8Array): number;
94
+ /** Summarize a file from its tail without opening it. Holds no handle. */
95
+ parquet_footer_summary(tail: Uint8Array, file_len: number): ParquetFooterSummaryJson;
78
96
  parquet_open(tail: Uint8Array, file_len: number, max_rows: number, max_columns: number, max_decoded_bytes: number, truncate: boolean): number;
79
97
  parquet_file_info(file: number): ParquetFileInfo;
80
98
  /** Per-column footer statistics, computed at open. See `ParquetFileStatsJson`. */
@@ -248,6 +248,17 @@ export function parquet_file_usage(file: number): any;
248
248
  */
249
249
  export function parquet_footer_length(tail: Uint8Array): number;
250
250
 
251
+ /**
252
+ * Footer summary of a Parquet file from its tail, holding no file handle:
253
+ * `{ num_rows, num_row_groups, created_by, columns, column_hints }`. Each
254
+ * column is `{ name, data_type, nullable }` plus the fields of
255
+ * `parquet_file_column_stats`, in the same units (epoch milliseconds for
256
+ * temporal columns, scaled decimals). `tail` must end with the footer and
257
+ * hold at least `parquet_footer_length(tail) + 8` bytes; `file_len` is the
258
+ * whole file's length. Absent values are `null`.
259
+ */
260
+ export function parquet_footer_summary(tail: Uint8Array, file_len: number): any;
261
+
251
262
  /**
252
263
  * Get Parquet metadata: number of row groups and total rows.
253
264
  * Returns [num_row_groups, total_rows] as Vec<u32>.
@@ -466,6 +477,7 @@ export interface InitOutput {
466
477
  readonly parquet_file_info: (a: number) => [number, number, number];
467
478
  readonly parquet_file_usage: (a: number) => [number, number, number];
468
479
  readonly parquet_footer_length: (a: number, b: number) => [number, number, number];
480
+ readonly parquet_footer_summary: (a: number, b: number, c: number) => [number, number, number];
469
481
  readonly parquet_metadata: (a: number, b: number) => [number, number, number, number];
470
482
  readonly parquet_open: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
471
483
  readonly parquet_row_group_ranges: (a: number, b: number) => [number, number, number, number];
@@ -646,6 +646,28 @@ export function parquet_footer_length(tail) {
646
646
  return ret[0] >>> 0;
647
647
  }
648
648
 
649
+ /**
650
+ * Footer summary of a Parquet file from its tail, holding no file handle:
651
+ * `{ num_rows, num_row_groups, created_by, columns, column_hints }`. Each
652
+ * column is `{ name, data_type, nullable }` plus the fields of
653
+ * `parquet_file_column_stats`, in the same units (epoch milliseconds for
654
+ * temporal columns, scaled decimals). `tail` must end with the footer and
655
+ * hold at least `parquet_footer_length(tail) + 8` bytes; `file_len` is the
656
+ * whole file's length. Absent values are `null`.
657
+ * @param {Uint8Array} tail
658
+ * @param {number} file_len
659
+ * @returns {any}
660
+ */
661
+ export function parquet_footer_summary(tail, file_len) {
662
+ const ptr0 = passArray8ToWasm0(tail, wasm.__wbindgen_malloc);
663
+ const len0 = WASM_VECTOR_LEN;
664
+ const ret = wasm.parquet_footer_summary(ptr0, len0, file_len);
665
+ if (ret[2]) {
666
+ throw takeFromExternrefTable0(ret[1]);
667
+ }
668
+ return takeFromExternrefTable0(ret[0]);
669
+ }
670
+
649
671
  /**
650
672
  * Get Parquet metadata: number of row groups and total rows.
651
673
  * Returns [num_row_groups, total_rows] as Vec<u32>.
@@ -1140,6 +1162,10 @@ function __wbg_get_imports() {
1140
1162
  const ret = typeof(val) === 'object' && val !== null;
1141
1163
  return ret;
1142
1164
  },
1165
+ __wbg___wbindgen_is_string_6df3bf7ef1164ed3: function(arg0) {
1166
+ const ret = typeof(arg0) === 'string';
1167
+ return ret;
1168
+ },
1143
1169
  __wbg___wbindgen_is_undefined_29a43b4d42920abd: function(arg0) {
1144
1170
  const ret = arg0 === undefined;
1145
1171
  return ret;
@@ -1292,6 +1318,10 @@ function __wbg_get_imports() {
1292
1318
  const ret = new Error();
1293
1319
  return ret;
1294
1320
  },
1321
+ __wbg_new_34d45cc8e36aaead: function() {
1322
+ const ret = new Map();
1323
+ return ret;
1324
+ },
1295
1325
  __wbg_new_682678e2f47e32bc: function() {
1296
1326
  const ret = new Array();
1297
1327
  return ret;
@@ -1317,6 +1347,10 @@ function __wbg_get_imports() {
1317
1347
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
1318
1348
  arg0[arg1] = arg2;
1319
1349
  },
1350
+ __wbg_set_fde2cec06c23692b: function(arg0, arg1, arg2) {
1351
+ const ret = arg0.set(arg1, arg2);
1352
+ return ret;
1353
+ },
1320
1354
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
1321
1355
  const ret = arg1.stack;
1322
1356
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nteract/sift",
3
- "version": "0.7.0",
3
+ "version": "0.7.1-nightly.44052033283",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nteract/nteract.git",
@@ -24,7 +24,11 @@
24
24
  },
25
25
  "./style.css": "./lib/style.css",
26
26
  "./handoff.css": "./lib/handoff.css",
27
- "./sift.wasm": "./lib/wasm/sift_wasm_bg.wasm"
27
+ "./sift.wasm": "./lib/wasm/sift_wasm_bg.wasm",
28
+ "./wasm": {
29
+ "types": "./lib/wasm/sift_wasm.d.ts",
30
+ "import": "./lib/wasm/sift_wasm.js"
31
+ }
28
32
  },
29
33
  "files": [
30
34
  "lib",
@@ -65,9 +69,9 @@
65
69
  ],
66
70
  "license": "BSD-3-Clause",
67
71
  "nteractRelease": {
68
- "channel": "stable",
69
- "sourceSha": "211f11c4169910b13ac5da676a9da6718791a77a",
70
- "runId": "43345842401"
72
+ "channel": "nightly",
73
+ "sourceSha": "b90908c6850a4ca5c939c9a484807694da99e6ce",
74
+ "runId": "44052033283"
71
75
  },
72
76
  "scripts": {
73
77
  "generate": "npx tsx src/generate-data.ts",