Skip to content

Commit

Permalink
feat: upgrade to duckdb v. 0.2.7 (#102)
Browse files Browse the repository at this point in the history
* upgrade to 0.2.7

* dependency vulnerabilities fixes
  • Loading branch information
rprovodenko authored Jun 21, 2021
1 parent e66e5df commit 3832678
Show file tree
Hide file tree
Showing 4 changed files with 149 additions and 55 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
/temp
/etc
/yarn-error.log
.idea
3 changes: 2 additions & 1 deletion addon/result_iterator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ Napi::Value ResultIterator::getMappedValue(Napi::Env env, duckdb::Value value) {
case duckdb::LogicalTypeId::STRUCT: {
auto object = Napi::Object::New(env);
for (size_t i = 0; i < value.struct_value.size(); i++) {
auto &key = value.type().child_types()[i].first;
auto &child_types = duckdb::StructType::GetChildTypes(value.type());
auto &key = child_types[i].first;
auto &element = value.struct_value[i];
auto child_value = getMappedValue(env, element);
object.Set(key, child_value);
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-duckdb",
"version": "0.0.71",
"version": "0.0.72",
"private": false,
"description": "DuckDB for Node.JS",
"keywords": [
Expand Down Expand Up @@ -40,7 +40,7 @@
"clang:check": "yarn clang-format --dry-run --Werror addon/**",
"clang:fix": "yarn clang-format -i addon/**",
"cleanup:binaries": "rm -rf build prebuilds duckdb",
"download-duckdb": "rm -rf duckdb && curl -L https://github.com/cwida/duckdb/archive/6d3586322e55390fd5d9280febaf4d53fdc927c0.tar.gz > duckdb.tar.gz && tar xf duckdb.tar.gz && mv duckdb-6d3586322e55390fd5d9280febaf4d53fdc927c0 duckdb && rm duckdb.tar.gz",
"download-duckdb": "rm -rf duckdb && curl -L https://github.com/cwida/duckdb/archive/v0.2.7.tar.gz > duckdb.tar.gz && tar xf duckdb.tar.gz && mv duckdb-0.2.7 duckdb && rm duckdb.tar.gz",
"eslint:check": "eslint --ext .js,.json,.ts ./",
"eslint:fix": "eslint --fix --ext .js,.json,.ts ./",
"generate-doc": "yarn build:ts && rm -rf temp etc && mkdir etc && yarn api-extractor run --local --verbose && yarn api-documenter markdown -i temp -o docs/api && ./docs/replace.sh",
Expand All @@ -58,7 +58,8 @@
"test": "yarn build:ts && NODE_OPTIONS='--max-old-space-size=8192' jest --runInBand --testTimeout=60000"
},
"resolutions": {
"cmake-js/yargs/y18n": ">=5.0.5||>=4.0.1 <5.0.0||>=3.2.2 <4.0.0"
"cmake-js/yargs/y18n": ">=5.0.5||>=4.0.1 <5.0.0||>=3.2.2 <4.0.0",
"trim-newlines": ">=3.0.1 <4.0.0 || >=4.0.1"
},
"dependencies": {
"cmake-js": "^6.1.0",
Expand Down Expand Up @@ -99,7 +100,7 @@
"standard-version": "^9.1.1",
"ttypescript": "^1.5.12",
"typescript": "^4.0.3",
"yarn-audit-fix": "^5.0.0"
"yarn-audit-fix": "6.3.2"
},
"engines": {
"node": ">= 12.17.0"
Expand Down
Loading

0 comments on commit 3832678

Please sign in to comment.