From b5051f2c3216f356c1cc1f0843131ff9fde86a15 Mon Sep 17 00:00:00 2001 From: Alberto Schiabel Date: Thu, 14 Dec 2023 14:04:39 +0100 Subject: [PATCH] feat(query-engine-wasm): fix example (#4562) * feat(query-engine-wasm): fix example * chore: merge main, fix conflicts --- .../query-engine-wasm/example/example.js | 4 - .../query-engine-wasm/example/package.json | 8 +- .../query-engine-wasm/example/pnpm-lock.yaml | 74 +++++++++---------- 3 files changed, 41 insertions(+), 45 deletions(-) diff --git a/query-engine/query-engine-wasm/example/example.js b/query-engine/query-engine-wasm/example/example.js index 5d3449010865..c320b442b777 100644 --- a/query-engine/query-engine-wasm/example/example.js +++ b/query-engine/query-engine-wasm/example/example.js @@ -76,10 +76,6 @@ async function main() { await queryEngine.disconnect('trace') // console.log('after disconnect') - // console.log('before close') - await driverAdapter.close() - // console.log('after close') - // console.log('before free') queryEngine.free() // console.log('after free') diff --git a/query-engine/query-engine-wasm/example/package.json b/query-engine/query-engine-wasm/example/package.json index a697fb909b5f..215e7d075a37 100644 --- a/query-engine/query-engine-wasm/example/package.json +++ b/query-engine/query-engine-wasm/example/package.json @@ -6,9 +6,9 @@ }, "dependencies": { "@libsql/client": "0.4.0-pre.2", - "@prisma/adapter-libsql": "5.7.0", - "@prisma/client": "5.7.0", - "@prisma/driver-adapter-utils": "5.7.0", - "prisma": "5.7.0" + "@prisma/adapter-libsql": "5.8.0-dev.24", + "@prisma/client": "5.8.0-dev.24", + "@prisma/driver-adapter-utils": "5.8.0-dev.24", + "prisma": "5.8.0-dev.24" } } diff --git a/query-engine/query-engine-wasm/example/pnpm-lock.yaml b/query-engine/query-engine-wasm/example/pnpm-lock.yaml index 2fa73721dea7..4d44ac1e96b1 100644 --- a/query-engine/query-engine-wasm/example/pnpm-lock.yaml +++ b/query-engine/query-engine-wasm/example/pnpm-lock.yaml @@ -9,17 +9,17 @@ dependencies: specifier: 0.4.0-pre.2 version: 0.4.0-pre.2 '@prisma/adapter-libsql': - specifier: 5.7.0 - version: 5.7.0(@libsql/client@0.4.0-pre.2) + specifier: 5.8.0-dev.24 + version: 5.8.0-dev.24(@libsql/client@0.4.0-pre.2) '@prisma/client': - specifier: 5.7.0 - version: 5.7.0(prisma@5.7.0) + specifier: 5.8.0-dev.24 + version: 5.8.0-dev.24(prisma@5.8.0-dev.24) '@prisma/driver-adapter-utils': - specifier: 5.7.0 - version: 5.7.0 + specifier: 5.8.0-dev.24 + version: 5.8.0-dev.24 prisma: - specifier: 5.7.0 - version: 5.7.0 + specifier: 5.8.0-dev.24 + version: 5.8.0-dev.24 packages: @@ -127,20 +127,20 @@ packages: resolution: {integrity: sha512-kTPhdZyTQxB+2wpiRcFWrDcejc4JI6tkPuS7UZCG4l6Zvc5kU/gGQ/ozvHTh1XR5tS+UlfAfGuPajjzQjCiHCw==} dev: false - /@prisma/adapter-libsql@5.7.0(@libsql/client@0.4.0-pre.2): - resolution: {integrity: sha512-6axvgzMpbMQueWXwJmnqkpJO4AiLAL5uF6rkt/NZ9JKa5cRn/5Yxvk+cq+vS2kmcD3P9oY27Dt4CWhEqSKXyRA==} + /@prisma/adapter-libsql@5.8.0-dev.24(@libsql/client@0.4.0-pre.2): + resolution: {integrity: sha512-QilsHGrKl157IG21QtXvGYk7AW1m0Pcf6isBATExHhVLTE7MnN7her93f+HezG7v/lF/wqnyhk0ZuPZONyWryA==} peerDependencies: '@libsql/client': ^0.3.5 dependencies: '@libsql/client': 0.4.0-pre.2 - '@prisma/driver-adapter-utils': 5.7.0 + '@prisma/driver-adapter-utils': 5.8.0-dev.24 async-mutex: 0.4.0 transitivePeerDependencies: - supports-color dev: false - /@prisma/client@5.7.0(prisma@5.7.0): - resolution: {integrity: sha512-cZmglCrfNbYpzUtz7HscVHl38e9CrUs31nrVoGUK1nIPXGgt8hT4jj2s657UXcNdQ/jBUxDgGmHyu2Nyrq1txg==} + /@prisma/client@5.8.0-dev.24(prisma@5.8.0-dev.24): + resolution: {integrity: sha512-QMQWOk1zXML60SCPKsrpX1nI1I5qzB1Uvvyd1d7Ra3cToOnu//h8YCEpquQO2nIf74Blf/iNs5tUA15vySYhdQ==} engines: {node: '>=16.13'} requiresBuild: true peerDependencies: @@ -149,47 +149,47 @@ packages: prisma: optional: true dependencies: - prisma: 5.7.0 + prisma: 5.8.0-dev.24 dev: false - /@prisma/debug@5.7.0: - resolution: {integrity: sha512-tZ+MOjWlVvz1kOEhNYMa4QUGURY+kgOUBqLHYIV8jmCsMuvA1tWcn7qtIMLzYWCbDcQT4ZS8xDgK0R2gl6/0wA==} + /@prisma/debug@5.8.0-dev.24: + resolution: {integrity: sha512-W+4q24HgAD5mNbrFkyz02GAIH9RHCLcXaF6bwMPapCUECopmleLQV4bW9oEDAH1sDrmESnKEge+gSpXWkHKfjw==} dev: false - /@prisma/driver-adapter-utils@5.7.0: - resolution: {integrity: sha512-GNVOIRS5SEVRfvgoYmWKMtKc7FOm0LYFiDUQYjfcc/FJAiY1XpzRPLPs8q/qW7RaQ7IDKYdOKngepWCRfH0sTw==} + /@prisma/driver-adapter-utils@5.8.0-dev.24: + resolution: {integrity: sha512-8JP85cE452Nyjl6sxk5c4azh+k7SLca+cmKy2O8DB4DOpijmI6p1TyKyH/c/DiUHPmMikJS2f5/DNxHUcKe4AQ==} dependencies: debug: 4.3.4 transitivePeerDependencies: - supports-color dev: false - /@prisma/engines-version@5.7.0-41.79fb5193cf0a8fdbef536e4b4a159cad677ab1b9: - resolution: {integrity: sha512-V6tgRVi62jRwTm0Hglky3Scwjr/AKFBFtS+MdbsBr7UOuiu1TKLPc6xfPiyEN1+bYqjEtjxwGsHgahcJsd1rNg==} + /@prisma/engines-version@5.8.0-12.762b2b2e1b7f5bce1218201614a21e1a3251c84a: + resolution: {integrity: sha512-p153UhTKiQ7CUT+RX6jlkGOtD5yPsw1sC+o3SvvVSKDzmqS0h1C143IBI/08kTVI+ZZQtmQygrbxxRoq6wvNFg==} dev: false - /@prisma/engines@5.7.0: - resolution: {integrity: sha512-TkOMgMm60n5YgEKPn9erIvFX2/QuWnl3GBo6yTRyZKk5O5KQertXiNnrYgSLy0SpsKmhovEPQb+D4l0SzyE7XA==} + /@prisma/engines@5.8.0-dev.24: + resolution: {integrity: sha512-G29K2Vxo18HyqzraB8+omvXY8J/KUVtZJCkoknLVT2shveVOx0VTnLBITCDPPupukYkZpnreEWSHlqh+o0uoCQ==} requiresBuild: true dependencies: - '@prisma/debug': 5.7.0 - '@prisma/engines-version': 5.7.0-41.79fb5193cf0a8fdbef536e4b4a159cad677ab1b9 - '@prisma/fetch-engine': 5.7.0 - '@prisma/get-platform': 5.7.0 + '@prisma/debug': 5.8.0-dev.24 + '@prisma/engines-version': 5.8.0-12.762b2b2e1b7f5bce1218201614a21e1a3251c84a + '@prisma/fetch-engine': 5.8.0-dev.24 + '@prisma/get-platform': 5.8.0-dev.24 dev: false - /@prisma/fetch-engine@5.7.0: - resolution: {integrity: sha512-zIn/qmO+N/3FYe7/L9o+yZseIU8ivh4NdPKSkQRIHfg2QVTVMnbhGoTcecbxfVubeTp+DjcbjS0H9fCuM4W04w==} + /@prisma/fetch-engine@5.8.0-dev.24: + resolution: {integrity: sha512-iutyqFyd2532YyqeahFIGUmgeevrheCYfIjAVd3M8L4QLMlz7S7wX8zSg4r7Bq5+C/VM/W8GNm3lvGS4sqDGUA==} dependencies: - '@prisma/debug': 5.7.0 - '@prisma/engines-version': 5.7.0-41.79fb5193cf0a8fdbef536e4b4a159cad677ab1b9 - '@prisma/get-platform': 5.7.0 + '@prisma/debug': 5.8.0-dev.24 + '@prisma/engines-version': 5.8.0-12.762b2b2e1b7f5bce1218201614a21e1a3251c84a + '@prisma/get-platform': 5.8.0-dev.24 dev: false - /@prisma/get-platform@5.7.0: - resolution: {integrity: sha512-ZeV/Op4bZsWXuw5Tg05WwRI8BlKiRFhsixPcAM+5BKYSiUZiMKIi713tfT3drBq8+T0E1arNZgYSA9QYcglWNA==} + /@prisma/get-platform@5.8.0-dev.24: + resolution: {integrity: sha512-sCOHLB+gjodp006QI0W7LKe3Ry6I4b3kwPYYqI+H8k8m3d1EKj+VK0O699yPVPfZJDR5kB7/U5euBsbBXLP0VA==} dependencies: - '@prisma/debug': 5.7.0 + '@prisma/debug': 5.8.0-dev.24 dev: false /@types/node-fetch@2.6.9: @@ -342,13 +342,13 @@ packages: formdata-polyfill: 4.0.10 dev: false - /prisma@5.7.0: - resolution: {integrity: sha512-0rcfXO2ErmGAtxnuTNHQT9ztL0zZheQjOI/VNJzdq87C3TlGPQtMqtM+KCwU6XtmkoEr7vbCQqA7HF9IY0ST+Q==} + /prisma@5.8.0-dev.24: + resolution: {integrity: sha512-i+vIMbNpXKk93ex+37qvr9oeGCT7GT46l9hVrg9+X0PSa8goLo3cs10q8mRpneBDaIPgKBbZ/nWBcl9ym3D5gQ==} engines: {node: '>=16.13'} hasBin: true requiresBuild: true dependencies: - '@prisma/engines': 5.7.0 + '@prisma/engines': 5.8.0-dev.24 dev: false /tr46@0.0.3: