Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.
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
2 changes: 1 addition & 1 deletion arrow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*"
Expand Down
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion csv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*"
Expand Down
2 changes: 1 addition & 1 deletion database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions inline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*"
Expand Down
2 changes: 1 addition & 1 deletion ods/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion parquet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*"
Expand Down
114 changes: 57 additions & 57 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion table/field/types/date.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" }],
Expand Down
16 changes: 7 additions & 9 deletions table/field/types/list.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
[[], ""],
Expand Down
2 changes: 1 addition & 1 deletion table/field/types/time.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" }],
Expand Down
4 changes: 2 additions & 2 deletions table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"build": "tsc"
},
"dependencies": {
"nodejs-polars": "^0.21.2",
"@dpkit/core": "workspace:*"
"@dpkit/core": "workspace:*",
"nodejs-polars": "^0.22.1"
}
}
Loading