diff --git a/arrow/package.json b/arrow/package.json index cb7166f0..da5445b4 100644 --- a/arrow/package.json +++ b/arrow/package.json @@ -27,7 +27,7 @@ "@dpkit/file": "workspace:*", "@dpkit/table": "workspace:*", "csv-sniffer": "^0.1.1", - "nodejs-polars": "^0.21.2" + "nodejs-polars": "^0.22.1" }, "devDependencies": { "@dpkit/test": "workspace:*" diff --git a/cli/package.json b/cli/package.json index 7d705950..24aabefc 100644 --- a/cli/package.json +++ b/cli/package.json @@ -37,7 +37,7 @@ "es-toolkit": "^1.39.10", "exit-hook": "^4.0.0", "ink": "^6.3.1", - "nodejs-polars": "^0.21.2", + "nodejs-polars": "^0.22.1", "picocolors": "^1.1.1", "react": "^19.1.1", "react-devtools-core": "^6.1.2", diff --git a/csv/package.json b/csv/package.json index 4bbc5bb2..3efbb24e 100644 --- a/csv/package.json +++ b/csv/package.json @@ -27,7 +27,7 @@ "@dpkit/file": "workspace:*", "@dpkit/table": "workspace:*", "csv-sniffer": "^0.1.1", - "nodejs-polars": "^0.21.2" + "nodejs-polars": "^0.22.1" }, "devDependencies": { "@dpkit/test": "workspace:*" diff --git a/database/package.json b/database/package.json index 946b69e4..12d344d1 100644 --- a/database/package.json +++ b/database/package.json @@ -29,7 +29,7 @@ "libsql": "^0.6.0-pre.20", "lru-cache": "^11.2.1", "mysql2": "^3.14.4", - "nodejs-polars": "^0.21.2", + "nodejs-polars": "^0.22.1", "pg": "^8.16.3" }, "devDependencies": { diff --git a/docs/package.json b/docs/package.json index ba1ae2d1..09e2196a 100644 --- a/docs/package.json +++ b/docs/package.json @@ -12,7 +12,7 @@ "@astrojs/starlight": "0.36.0", "astro": "5.14.1", "dpkit": "workspace:*", - "nodejs-polars": "0.21.2", + "nodejs-polars": "0.22.1", "sharp": "0.34.2", "starlight-changelogs": "0.1.1", "starlight-github-alerts": "0.1.0", diff --git a/inline/package.json b/inline/package.json index ee187bfa..4b7c9363 100644 --- a/inline/package.json +++ b/inline/package.json @@ -23,8 +23,8 @@ "build": "tsc" }, "dependencies": { - "nodejs-polars": "^0.21.2", "@dpkit/core": "workspace:*", - "@dpkit/table": "workspace:*" + "@dpkit/table": "workspace:*", + "nodejs-polars": "^0.22.1" } } diff --git a/json/package.json b/json/package.json index b6f3daf1..5a3e669b 100644 --- a/json/package.json +++ b/json/package.json @@ -27,7 +27,7 @@ "@dpkit/file": "workspace:*", "@dpkit/table": "workspace:*", "csv-sniffer": "^0.1.1", - "nodejs-polars": "^0.21.2" + "nodejs-polars": "^0.22.1" }, "devDependencies": { "@dpkit/test": "workspace:*" diff --git a/ods/package.json b/ods/package.json index 638b2561..8e63831d 100644 --- a/ods/package.json +++ b/ods/package.json @@ -26,7 +26,7 @@ "@dpkit/core": "workspace:*", "@dpkit/file": "workspace:*", "@dpkit/table": "workspace:*", - "nodejs-polars": "^0.21.2", + "nodejs-polars": "^0.22.1", "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz" }, "devDependencies": { diff --git a/parquet/package.json b/parquet/package.json index 0eb18655..c545d4fd 100644 --- a/parquet/package.json +++ b/parquet/package.json @@ -27,7 +27,7 @@ "@dpkit/file": "workspace:*", "@dpkit/table": "workspace:*", "csv-sniffer": "^0.1.1", - "nodejs-polars": "^0.21.2" + "nodejs-polars": "^0.22.1" }, "devDependencies": { "@dpkit/test": "workspace:*" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4e5b54b7..f7781795 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -71,8 +71,8 @@ importers: specifier: ^0.1.1 version: 0.1.1 nodejs-polars: - specifier: ^0.21.2 - version: 0.21.2 + specifier: ^0.22.1 + version: 0.22.1 devDependencies: '@dpkit/test': specifier: workspace:* @@ -115,8 +115,8 @@ importers: specifier: ^6.3.1 version: 6.3.1(@types/react@19.1.9)(react-devtools-core@6.1.5)(react@19.2.0) nodejs-polars: - specifier: ^0.21.2 - version: 0.21.2 + specifier: ^0.22.1 + version: 0.22.1 picocolors: specifier: ^1.1.1 version: 1.1.1 @@ -177,8 +177,8 @@ importers: specifier: ^0.1.1 version: 0.1.1 nodejs-polars: - specifier: ^0.21.2 - version: 0.21.2 + specifier: ^0.22.1 + version: 0.22.1 devDependencies: '@dpkit/test': specifier: workspace:* @@ -205,8 +205,8 @@ importers: specifier: ^3.14.4 version: 3.15.1 nodejs-polars: - specifier: ^0.21.2 - version: 0.21.2 + specifier: ^0.22.1 + version: 0.22.1 pg: specifier: ^8.16.3 version: 8.16.3 @@ -243,8 +243,8 @@ importers: specifier: workspace:* version: link:../dpkit nodejs-polars: - specifier: 0.21.2 - version: 0.21.2 + specifier: 0.22.1 + version: 0.22.1 sharp: specifier: 0.34.2 version: 0.34.2 @@ -362,8 +362,8 @@ importers: specifier: workspace:* version: link:../table nodejs-polars: - specifier: ^0.21.2 - version: 0.21.2 + specifier: ^0.22.1 + version: 0.22.1 json: dependencies: @@ -380,8 +380,8 @@ importers: specifier: ^0.1.1 version: 0.1.1 nodejs-polars: - specifier: ^0.21.2 - version: 0.21.2 + specifier: ^0.22.1 + version: 0.22.1 devDependencies: '@dpkit/test': specifier: workspace:* @@ -478,8 +478,8 @@ importers: specifier: workspace:* version: link:../table nodejs-polars: - specifier: ^0.21.2 - version: 0.21.2 + specifier: ^0.22.1 + version: 0.22.1 xlsx: specifier: https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz version: https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz @@ -503,8 +503,8 @@ importers: specifier: ^0.1.1 version: 0.1.1 nodejs-polars: - specifier: ^0.21.2 - version: 0.21.2 + specifier: ^0.22.1 + version: 0.22.1 devDependencies: '@dpkit/test': specifier: workspace:* @@ -546,8 +546,8 @@ importers: specifier: workspace:* version: link:../core nodejs-polars: - specifier: ^0.21.2 - version: 0.21.2 + specifier: ^0.22.1 + version: 0.22.1 test: dependencies: @@ -573,8 +573,8 @@ importers: specifier: workspace:* version: link:../table nodejs-polars: - specifier: ^0.21.2 - version: 0.21.2 + specifier: ^0.22.1 + version: 0.22.1 xlsx: specifier: https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz version: https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz @@ -3323,56 +3323,56 @@ packages: node-mock-http@1.0.3: resolution: {integrity: sha512-jN8dK25fsfnMrVsEhluUTPkBFY+6ybu7jSB1n+ri/vOGjJxU8J9CZhpSGkHXSkFjtUhbmoncG/YG9ta5Ludqog==} - nodejs-polars-android-arm64@0.21.2: - resolution: {integrity: sha512-LUavVQS6kIywk8Jdr8IS+9KbPAI+dxC86v4/7n/FRbZgivzJzIct3NxXJJHlry84OoBChA8RZ4+30YedfY3Axg==} + nodejs-polars-android-arm64@0.22.1: + resolution: {integrity: sha512-X/vAj0GIp6c6k/Y5NZvrt/ZfNLJZFLOjP1N1uMiMUNMaeNPjevfv7Yt6Exsc/1DBfNB455e+9wgw7kE8jbkDRw==} engines: {node: '>= 16'} cpu: [arm64] os: [android] - nodejs-polars-darwin-arm64@0.21.2: - resolution: {integrity: sha512-KTelkb8bEQWm/g56sC6oEBLsWHQRdZZHWRxkUNlZpe+EVMPxrbBc2S5/6v+Vu2gpXjC5tJkg1FIzH7v/ovDr/g==} + nodejs-polars-darwin-arm64@0.22.1: + resolution: {integrity: sha512-6sHu3WrYo91aU1d7Ze+pIu9+QDctkrJyIhhZiSL0ApSwwfzTRqqXePi+3URwRvNNZIem9aOAkkoGpCmG0XKe/A==} engines: {node: '>= 16'} cpu: [arm64] os: [darwin] - nodejs-polars-darwin-x64@0.21.2: - resolution: {integrity: sha512-a+5XNj077t43UAHMVrxcwJfbipSJNljkUXjYoRWh1xTQInA2oo98E72oeeJOTmpK0sohr3Y05qIZuFhit3wc/g==} + nodejs-polars-darwin-x64@0.22.1: + resolution: {integrity: sha512-tyz6ZibPhCiLN40mwe7XhTniSKn/mcZMCURweZVjo8b1Mj3xyfS49Yy+s1JyHEZilCb6jylcS6bg4ibDEcu1OQ==} engines: {node: '>= 16'} cpu: [x64] os: [darwin] - nodejs-polars-linux-arm64-gnu@0.21.2: - resolution: {integrity: sha512-7oBtaFQ0JhryXCG7YPazBxhubtxbqKjgKx+hmv9qp+3s2vYtp2TI+hlfoYa1xrFuKDpqvCQwuFWHTN5fZwH+9A==} + nodejs-polars-linux-arm64-gnu@0.22.1: + resolution: {integrity: sha512-Fn6XDgsOr9/yojBj0olUCNArglHkl8817JpNyCUyFfWFKR1u24xIfn5Tj5uytToqcpTOkRO1/DSqGo5lWS/Rfg==} engines: {node: '>= 16'} cpu: [arm64] os: [linux] - nodejs-polars-linux-arm64-musl@0.21.2: - resolution: {integrity: sha512-FU26Hj8B2/hNxTiWADoWLlGNDnNyqaDMUOhGTknXZKZM6XL4tok+Nca9AwiSuIUNR7ga27JgmZZ0AlDOWnOYXQ==} + nodejs-polars-linux-arm64-musl@0.22.1: + resolution: {integrity: sha512-uJVkq5YT1LyBsV5C3O3qVgKPdmcfmhi6NYOwhI4Ku7Noo+EUTN+NyOrOjWtS0vHpgkmn+eBaU7+PpKkCSNG+Qg==} engines: {node: '>= 16'} cpu: [arm64] os: [linux] - nodejs-polars-linux-x64-gnu@0.21.2: - resolution: {integrity: sha512-tjhF1useVeDHeWCl7BB4GQ8AT1ykIBCO4BRBhMdQzKhs53MfXv452eCsApOcV35SabZoTGidFnkKep9DIDCWLg==} + nodejs-polars-linux-x64-gnu@0.22.1: + resolution: {integrity: sha512-Uh294xCNkg4wNqPB5YIEyJNT76gHJWqwlF/G6VHRiObZUCBDZQEDVDcLqZsaOe9AXksMAlaXDx3dV/VIBgW+LA==} engines: {node: '>= 16'} cpu: [x64] os: [linux] - nodejs-polars-linux-x64-musl@0.21.2: - resolution: {integrity: sha512-U8WyZW1QKKEl4KO4gHKYHdjz7lgBbhxNmr1RRzA08nzynMa5Th5e9+OQd0AkK/YC5OA2GDiEhXLY0PF3j6qe1Q==} + nodejs-polars-linux-x64-musl@0.22.1: + resolution: {integrity: sha512-dTLsidOoWHY7+GqCg97qOPlrbwXhStoMm8ZvR8/l4NhlYIfKkkG9iUQ5Eu1LolfqCK8zYfSlQl+voL4AqGiOkA==} engines: {node: '>= 16'} cpu: [x64] os: [linux] - nodejs-polars-win32-x64-msvc@0.21.2: - resolution: {integrity: sha512-KX8fNcCGagBcXi5aKhus6gNL6lRo+HpPAqF8+0Qrz7Kc+TXwX2hvFFZ/JPPMjEduH/GO70iwksqBLi2ackVHJw==} + nodejs-polars-win32-x64-msvc@0.22.1: + resolution: {integrity: sha512-7pFP029b4rlIEJk5pdRHPcSLHPAZHbItR+ZFRKSfPQssjwrYnt31kFKrWeW57KkUVKA50m1QgLfNlCv9bkezmw==} engines: {node: '>= 16'} cpu: [x64] os: [win32] - nodejs-polars@0.21.2: - resolution: {integrity: sha512-nQhNI1x85p7ctb786QdoK8zgovnGOokGb91BHcJZr0WlTexI4sEr+eG24r/4id9d9e6dE3y/FJR7YmWBso8XhA==} + nodejs-polars@0.22.1: + resolution: {integrity: sha512-RP8mhb84u5zCc8/22SyS01UNzIk6z2NFtM1mqjK7LCrg8yyqTh+zQKpM0JAY9yBQ8d3wl2wyHCqduhRn+xRsKA==} engines: {node: '>= 20'} normalize-package-data@6.0.2: @@ -8076,40 +8076,40 @@ snapshots: node-mock-http@1.0.3: {} - nodejs-polars-android-arm64@0.21.2: + nodejs-polars-android-arm64@0.22.1: optional: true - nodejs-polars-darwin-arm64@0.21.2: + nodejs-polars-darwin-arm64@0.22.1: optional: true - nodejs-polars-darwin-x64@0.21.2: + nodejs-polars-darwin-x64@0.22.1: optional: true - nodejs-polars-linux-arm64-gnu@0.21.2: + nodejs-polars-linux-arm64-gnu@0.22.1: optional: true - nodejs-polars-linux-arm64-musl@0.21.2: + nodejs-polars-linux-arm64-musl@0.22.1: optional: true - nodejs-polars-linux-x64-gnu@0.21.2: + nodejs-polars-linux-x64-gnu@0.22.1: optional: true - nodejs-polars-linux-x64-musl@0.21.2: + nodejs-polars-linux-x64-musl@0.22.1: optional: true - nodejs-polars-win32-x64-msvc@0.21.2: + nodejs-polars-win32-x64-msvc@0.22.1: optional: true - nodejs-polars@0.21.2: + nodejs-polars@0.22.1: optionalDependencies: - nodejs-polars-android-arm64: 0.21.2 - nodejs-polars-darwin-arm64: 0.21.2 - nodejs-polars-darwin-x64: 0.21.2 - nodejs-polars-linux-arm64-gnu: 0.21.2 - nodejs-polars-linux-arm64-musl: 0.21.2 - nodejs-polars-linux-x64-gnu: 0.21.2 - nodejs-polars-linux-x64-musl: 0.21.2 - nodejs-polars-win32-x64-msvc: 0.21.2 + nodejs-polars-android-arm64: 0.22.1 + nodejs-polars-darwin-arm64: 0.22.1 + nodejs-polars-darwin-x64: 0.22.1 + nodejs-polars-linux-arm64-gnu: 0.22.1 + nodejs-polars-linux-arm64-musl: 0.22.1 + nodejs-polars-linux-x64-gnu: 0.22.1 + nodejs-polars-linux-x64-musl: 0.22.1 + nodejs-polars-win32-x64-msvc: 0.22.1 normalize-package-data@6.0.2: dependencies: diff --git a/table/field/types/date.spec.ts b/table/field/types/date.spec.ts index 75b3c2bd..fe9ec389 100644 --- a/table/field/types/date.spec.ts +++ b/table/field/types/date.spec.ts @@ -13,7 +13,11 @@ describe("parseDateField", () => { // Custom format ["21/11/2006", new Date(Date.UTC(2006, 10, 21)), { format: "%d/%m/%Y" }], - ["21/11/06 16:30", null, { format: "%d/%m/%y" }], + [ + "21/11/06 16:30", + new Date(Date.UTC(2006, 10, 21)), + { format: "%d/%m/%y" }, + ], ["invalid", null, { format: "%d/%m/%y" }], ["", null, { format: "%d/%m/%y" }], ["2006/11/21", new Date(Date.UTC(2006, 10, 21)), { format: "%Y/%m/%d" }], diff --git a/table/field/types/list.spec.ts b/table/field/types/list.spec.ts index 42916f6a..85c1c508 100644 --- a/table/field/types/list.spec.ts +++ b/table/field/types/list.spec.ts @@ -190,21 +190,19 @@ describe("stringifyListField", () => { }) }) - // TODO: Remove Int16Array once this issue is fixed: - // https://github.com/pola-rs/nodejs-polars/issues/362 describe("integer item type", () => { it.each([ // Integer lists to string - [new Int16Array([1, 2, 3]), "1,2,3"], - [new Int16Array([0, -1, 42]), "0,-1,42"], - [new Int16Array([-10, 0, 10]), "-10,0,10"], + [[1, 2, 3], "1,2,3"], + [[0, -1, 42], "0,-1,42"], + [[-10, 0, 10], "-10,0,10"], // Single item - [new Int16Array([42]), "42"], + [[42], "42"], - // With nulls - //[[1, null, 3], "1,,3"], - //[[null, 2, null], ",2,"], + // With nulls (nulls are filtered out) + [[1, null, 3], "1,3"], + [[null, 2, null], "2"], // Empty array [[], ""], diff --git a/table/field/types/time.spec.ts b/table/field/types/time.spec.ts index 740aca5e..0483b5d5 100644 --- a/table/field/types/time.spec.ts +++ b/table/field/types/time.spec.ts @@ -18,7 +18,7 @@ describe("parseTimeField", () => { // Custom format tests ["06:00", "06:00:00", { format: "%H:%M" }], ["06:50", null, { format: "%M:%H" }], // Invalid format - ["3:00 am", null, { format: "%H:%M" }], // Not matching the format + ["3:00 am", "03:00:00", { format: "%H:%M" }], ["some night", null, { format: "%H:%M" }], ["invalid", null, { format: "%H:%M" }], ["", null, { format: "%H:%M" }], diff --git a/table/package.json b/table/package.json index 060b12b7..988166ba 100644 --- a/table/package.json +++ b/table/package.json @@ -23,7 +23,7 @@ "build": "tsc" }, "dependencies": { - "nodejs-polars": "^0.21.2", - "@dpkit/core": "workspace:*" + "@dpkit/core": "workspace:*", + "nodejs-polars": "^0.22.1" } } diff --git a/xlsx/package.json b/xlsx/package.json index 4e7988c9..c972ad8a 100644 --- a/xlsx/package.json +++ b/xlsx/package.json @@ -26,7 +26,7 @@ "@dpkit/core": "workspace:*", "@dpkit/file": "workspace:*", "@dpkit/table": "workspace:*", - "nodejs-polars": "^0.21.2", + "nodejs-polars": "^0.22.1", "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz" }, "devDependencies": {