duckdb 0.10.3-dev0.0 → 0.10.3-dev3.0

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.
@@ -115,15 +115,77 @@ jobs:
115
115
  shell: bash
116
116
  run: ./scripts/node_build.sh ${{ matrix.node }}
117
117
 
118
- osx-nodejs:
119
- if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' || github.repository != 'duckdb/duckdb-node'
118
+ osx-nodejs-arm64:
120
119
  name: node.js OSX
121
- runs-on: macos-latest
120
+ runs-on: macos-14
122
121
  needs: set-up-npm
123
122
  continue-on-error: ${{ matrix.node != '18' && matrix.node != '20' && matrix.node != '21' }}
124
123
  strategy:
125
124
  matrix:
126
- target_arch: [ x64, arm64 ]
125
+ target_arch: [ arm64 ]
126
+ node: [ '16', '17', '18', '19', '20', '21', '22']
127
+ isRelease:
128
+ - ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' }}
129
+ exclude:
130
+ - isRelease: false
131
+ node: 12
132
+ - isRelease: false
133
+ node: 14
134
+ - isRelease: false
135
+ node: 16
136
+ - isRelease: false
137
+ node: 17
138
+ - isRelease: false
139
+ node: 19
140
+ - target_arch: arm64
141
+ node: 12
142
+ - target_arch: arm64
143
+ node: 14
144
+ # these older versions of NodeJS don't have M1 support
145
+
146
+ env:
147
+ TARGET_ARCH: ${{ matrix.target_arch }}
148
+ DUCKDB_NODE_BUILD_CACHE: 0
149
+ steps:
150
+ - uses: actions/checkout@v3
151
+ with:
152
+ fetch-depth: 0
153
+
154
+ # Default Python (3.12) doesn't have support for distutils
155
+ - uses: actions/setup-python@v4
156
+ with:
157
+ python-version: '3.11'
158
+
159
+ - name: Setup Ccache
160
+ uses: hendrikmuhs/ccache-action@main
161
+ with:
162
+ key: ${{ github.job }}-${{ matrix.target_arch }}
163
+ save: ${{ ( github.ref == 'refs/heads/main' || github.repository != 'duckdb/duckdb-node' ) && ( matrix.node == '19' ) }}
164
+
165
+ - name: Downgrade curl # fixes a bug with the brew curl that lead to failed downloads
166
+ shell: bash
167
+ run: |
168
+ brew uninstall --ignore-dependencies curl
169
+ which curl
170
+
171
+ - name: Setup
172
+ shell: bash
173
+ run: ./scripts/node_version.sh
174
+ env:
175
+ NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
176
+
177
+ - name: Node ${{ matrix.node }}
178
+ shell: bash
179
+ run: ./scripts/node_build.sh ${{ matrix.node }}
180
+
181
+ osx-nodejs-x64:
182
+ name: node.js OSX
183
+ runs-on: macos-13
184
+ needs: set-up-npm
185
+ continue-on-error: ${{ matrix.node != '18' && matrix.node != '20' && matrix.node != '21' }}
186
+ strategy:
187
+ matrix:
188
+ target_arch: [ x64 ]
127
189
  node: [ '16', '17', '18', '19', '20', '21', '22']
128
190
  isRelease:
129
191
  - ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' }}
@@ -251,3 +313,32 @@ jobs:
251
313
  - name: Node
252
314
  shell: bash
253
315
  run: ./scripts/node_build_win.sh
316
+
317
+ test_matrix:
318
+ needs:
319
+ - linux-nodejs
320
+ - osx-nodejs-arm64
321
+ - osx-nodejs-x64
322
+ - win-nodejs
323
+ strategy:
324
+ matrix:
325
+ os: [windows-latest, ubuntu-latest, ubuntu-22.04, ubuntu-20.04, windows-2019, macos-12, macos-13, macos-14]
326
+ version: [20]
327
+ runs-on: ${{ matrix.os }}
328
+ steps:
329
+ - uses: actions/setup-node@v4
330
+ with:
331
+ node-version: ${{ matrix.version }}
332
+
333
+ - uses: actions/checkout@v3
334
+ with:
335
+ sparse-checkout: examples
336
+
337
+ - name: Install duckdb
338
+ run: |
339
+ npm install duckdb@next
340
+
341
+ - name: Run minor test
342
+ shell: bash
343
+ run: |
344
+ node examples/example.js
@@ -0,0 +1,10 @@
1
+ var duckdb = require('duckdb');
2
+
3
+ var db = new duckdb.Database(':memory:'); // or a file name for a persistent DB
4
+
5
+ db.all('SELECT 42 AS fortytwo', function(err, res) {
6
+ if (err) {
7
+ console.warn(err);
8
+ }
9
+ console.log(res[0].fortytwo)
10
+ });
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
4
  "types": "./lib/duckdb.d.ts",
5
- "version": "0.10.3-dev0.0",
5
+ "version": "0.10.3-dev3.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {