Skip to content
Draft
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
14 changes: 10 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: "22"
node-version: "24"
cache: pnpm
- name: Install publish scripts
run: pnpm install --frozen-lockfile --filter=publish
Expand Down Expand Up @@ -363,7 +363,8 @@ jobs:
!cancelled() &&
needs.build.result == 'success' &&
needs.docker-images.result == 'success'
runs-on: depot-ubuntu-24.04-8
# npm trusted publishing currently requires a GitHub-hosted runner.
runs-on: ubuntu-24.04
permissions:
contents: write # git tag + gh release (release only)
id-token: write
Expand All @@ -378,9 +379,11 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: "22"
node-version: "24"
registry-url: "https://registry.npmjs.org"
cache: pnpm
- name: Install OIDC-capable npm
run: npm install --global npm@11.16.0
- run: pnpm install --frozen-lockfile
- uses: ./.github/actions/docker-setup
with:
Expand Down Expand Up @@ -538,7 +541,10 @@ jobs:

- name: Publish npm packages
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# setup-node provides a dummy token value; clear it so token-only
# post-publish operations stay disabled for trusted publishing.
NODE_AUTH_TOKEN: ""
SKIP_WASM_BUILD: "1"
run: |
pnpm --filter=publish exec tsx src/ci/bin.ts publish-npm \
--tag ${{ needs.context.outputs.npm_tag }} \
Expand Down
16 changes: 15 additions & 1 deletion engine/packages/depot-client/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::{
SqliteVfsMetricsSnapshot, VfsConfig, VfsPreloadHintSnapshot,
fetch_initial_pages_for_registration,
},
worker::{SqliteWorkerFatalError, SqliteWorkerHandle},
worker::{SqliteWorkerFatalError, SqliteWorkerHandle, SqliteWorkerResult},
};

#[derive(Clone)]
Expand Down Expand Up @@ -220,6 +220,11 @@ impl NativeDatabaseHandle {
self.map_worker_result(self.worker.exec(sql).await)
}

pub async fn exec_profiled(&self, sql: String) -> Result<SqliteWorkerResult<QueryResult>> {
self.check_fatal_error()?;
self.map_worker_result(self.worker.exec_profiled(sql).await)
}

pub async fn query(&self, sql: String, params: Option<Vec<BindParam>>) -> Result<QueryResult> {
self.execute(sql, params).await.map(|result| QueryResult {
columns: result.columns,
Expand All @@ -242,6 +247,15 @@ impl NativeDatabaseHandle {
self.map_worker_result(self.worker.execute(sql, params).await)
}

pub async fn execute_profiled(
&self,
sql: String,
params: Option<Vec<BindParam>>,
) -> Result<SqliteWorkerResult<ExecuteResult>> {
self.check_fatal_error()?;
self.map_worker_result(self.worker.execute_profiled(sql, params).await)
}

pub async fn close(&self) -> Result<()> {
match self.worker.close().await {
Ok(()) => Ok(()),
Expand Down
Loading
Loading