From 63c288fc116a5fddb3527b3302c9d6285a9cbb0b Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Thu, 14 Dec 2023 18:17:38 -0500 Subject: [PATCH 1/2] fix package exports --- templates/package.json | 77 ++++++++++++++++++++++++------------------ 1 file changed, 44 insertions(+), 33 deletions(-) diff --git a/templates/package.json b/templates/package.json index 325d92a4..802e21e2 100644 --- a/templates/package.json +++ b/templates/package.json @@ -24,50 +24,61 @@ "arrow" ], "exports": { + "./bundler/arrow1": { + "types": "./bundler/arrow1.d.ts", + "default": "./bundler/arrow1.js" + }, + "./esm/arrow1": { + "types": "./esm/arrow1.d.ts", + "default": "./esm/arrow1.js" + }, + "./esm2/arrow1": { + "types": "./esm2/arrow1.d.ts", + "default": "./esm2/arrow1.js" + }, + "./node/arrow1": { + "types": "./node/arrow1.d.ts", + "default": "./node/arrow1.js" + }, + "./bundler/arrow2": { + "types": "./bundler/arrow2.d.ts", + "default": "./bundler/arrow2.js" + }, + "./esm/arrow2": { + "types": "./esm/arrow2.d.ts", + "default": "./esm/arrow2.js" + }, + "./esm2/arrow2": { + "types": "./esm2/arrow2.d.ts", + "default": "./esm2/arrow2.js" + }, + "./node/arrow2": { + "types": "./node/arrow2.d.ts", + "default": "./node/arrow2.js" + }, "./arrow1": { - "import": { - "types": "./esm/arrow1.d.ts", - "import": "./esm/arrow1.js" - }, - "browser": { - "types": "./esm/arrow1.d.ts", - "import": "./esm/arrow1.js" - }, "node": { "types": "./node/arrow1.d.ts", - "require": "./node/arrow1.js", - "import": "./node/arrow1.js" - } + "default": "./node/arrow1.js" + }, + "types": "./esm/arrow1.d.ts", + "default": "./esm/arrow1.js" }, "./arrow2": { - "import": { - "types": "./esm/arrow2.d.ts", - "import": "./esm/arrow2.js" - }, - "browser": { - "types": "./esm/arrow2.d.ts", - "import": "./esm/arrow2.js" - }, "node": { "types": "./node/arrow2.d.ts", - "require": "./node/arrow2.js", - "import": "./node/arrow2.js" - } + "default": "./node/arrow2.js" + }, + "types": "./esm/arrow2.d.ts", + "default": "./esm/arrow2.js" }, ".": { - "import": { - "types": "./esm/arrow1.d.ts", - "import": "./esm/arrow1.js" - }, - "browser": { - "types": "./esm/arrow1.d.ts", - "import": "./esm/arrow1.js" - }, "node": { "types": "./node/arrow1.d.ts", - "require": "./node/arrow1.js", - "import": "./node/arrow1.js" - } + "default": "./node/arrow1.js" + }, + "types": "./esm/arrow1.d.ts", + "import": "./esm/arrow1.js" } } } From a8398d6087700e0fd8c37b51fddafe43706ab32b Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Fri, 12 Apr 2024 13:34:14 -0400 Subject: [PATCH 2/2] bump to beta.3 --- Cargo.lock | 2 +- Cargo.toml | 15 +++------------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 40a28e4a..5df8bf21 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1064,7 +1064,7 @@ dependencies = [ [[package]] name = "parquet-wasm" -version = "0.6.0-beta.2" +version = "0.6.0-beta.3" dependencies = [ "arrow", "arrow-wasm", diff --git a/Cargo.toml b/Cargo.toml index c2837b0f..605cd2dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "parquet-wasm" -version = "0.6.0-beta.2" +version = "0.6.0-beta.3" authors = ["Kyle Barron "] edition = "2021" description = "WebAssembly Parquet reader and writer." @@ -39,13 +39,7 @@ lz4 = ["parquet/lz4"] all_compressions = ["brotli", "gzip", "snappy", "zstd", "lz4"] # Full list of available features -full = [ - "async", - "debug", - "all_compressions", - "reader", - "writer", -] +full = ["async", "debug", "all_compressions", "reader", "writer"] [dependencies] wasm-bindgen = { version = "0.2.88", features = ["serde-serialize"] } @@ -70,10 +64,7 @@ thiserror = "1.0" arrow-wasm = { git = "https://github.com/kylebarron/arrow-wasm", rev = "1d9bee7851d812f10a43a7376f01480375c2d8a2" } # arrow-wasm = { path = "/Users/kyle/github/rust/arrow-wasm" } -arrow = { version = "50", default-features = false, features = [ - "ipc", - "ffi", -] } +arrow = { version = "50", default-features = false, features = ["ipc", "ffi"] } parquet = { version = "50", default-features = false, features = [ "arrow", "base64",