Skip to content
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
10 changes: 1 addition & 9 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,7 @@
"bin": {
"compas": "src/compas/index.js"
},
"keywords": [
"compas",
"cli",
"lint",
"test",
"help",
"docker",
"coverage"
],
"keywords": ["compas", "cli", "lint", "test", "help", "docker", "coverage"],
"license": "MIT",
"dependencies": {
"@compas/stdlib": "0.22.0",
Expand Down
8 changes: 1 addition & 7 deletions packages/code-gen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
"./package.json": "./package.json"
},
"type": "module",
"keywords": [
"compas",
"generate",
"router",
"validation",
"code-gen"
],
"keywords": ["compas", "generate", "router", "validation", "code-gen"],
"license": "MIT",
"dependencies": {
"@compas/stdlib": "0.22.0"
Expand Down
8 changes: 1 addition & 7 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
"./package.json": "./package.json"
},
"type": "module",
"keywords": [
"compas",
"koa",
"api",
"http",
"backend"
],
"keywords": ["compas", "koa", "api", "http", "backend"],
"license": "MIT",
"dependencies": {
"@compas/stdlib": "0.22.0",
Expand Down
7 changes: 1 addition & 6 deletions packages/stdlib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
"./package.json": "./package.json"
},
"type": "module",
"keywords": [
"compas",
"stdlib",
"standard",
"logger"
],
"keywords": ["compas", "stdlib", "standard", "logger"],
"license": "MIT",
"dependencies": {
"@types/node": "25.6.0",
Expand Down
14 changes: 9 additions & 5 deletions packages/store/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @typedef {import("postgres").Sql<{}>} Postgres
* @typedef {import("postgres").Sql<{}>|import("postgres").TransactionSql<{}>} Postgres
*/

/**
Expand All @@ -22,25 +22,29 @@

/**
* @template Type
* @typedef {import("./types/advanced-types.js").WrappedQueryResult<Type>} WrappedQueryResult
* @typedef {import("./types/advanced-types.js").WrappedQueryResult<Type>}
* WrappedQueryResult
*/

/**
* @template Base
* @template Expansion
* @typedef {import("./types/advanced-types.js").QueryBuilderDefinition<Base, Expansion>} QueryBuilderDefinition
* @typedef {import("./types/advanced-types.js").QueryBuilderDefinition<Base, Expansion>}
* QueryBuilderDefinition
*/

/**
* @template DefinitionType
* @template QueryBuilder
* @template {string} OptionalJoins
* @typedef {import("./types/advanced-types.js").QueryBuilderResolver<DefinitionType, QueryBuilder, OptionalJoins>} QueryBuilderResolver
* @typedef {import("./types/advanced-types.js").QueryBuilderResolver<DefinitionType,
* QueryBuilder, OptionalJoins>} QueryBuilderResolver
*/

/**
* @template Expansion
* @typedef {import("./types/advanced-types.js").ResolveOptionalJoins<Expansion>} ResolveOptionalJoins
* @typedef {import("./types/advanced-types.js").ResolveOptionalJoins<Expansion>}
* ResolveOptionalJoins
*/

/**
Expand Down
9 changes: 2 additions & 7 deletions packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
"./package.json": "./package.json"
},
"type": "module",
"keywords": [
"compas",
"s3",
"postgres",
"persistence"
],
"keywords": ["compas", "s3", "postgres", "persistence"],
"license": "MIT",
"dependencies": {
"@aws-sdk/client-s3": "3.1042.0",
Expand All @@ -27,7 +22,7 @@
"is-animated": "2.0.2",
"jws": "4.0.1",
"mime-types": "3.0.2",
"postgres": "3.4.7",
"postgres": "3.4.9",
"sharp": "0.34.5"
},
"author": {
Expand Down
2 changes: 1 addition & 1 deletion packages/store/src/migrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ async function runMigration(sql, migration) {
}

/**
* @param {import("postgres").Sql<{}>} sql
* @param {import("../index.js").Postgres} sql
* @param {MigrationFile} migration
*/
function runInsert(sql, migration) {
Expand Down
6 changes: 3 additions & 3 deletions packages/store/src/queue-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
}

/**
* @param {import("postgres").Sql<{}>} sql
* @param {import("../index.js").Postgres} sql
* @param {QueueWorkerCronOptions["jobs"]} jobs
*/
async function queueWorkerRemoveUnknownCronJobs(sql, jobs) {
Expand All @@ -351,7 +351,7 @@
* Try to update a cron job with the new expression and priority. Creates a new job if no
* record is updated.
*
* @param {import("postgres").Sql<{}>} sql
* @param {import("../index.js").Postgres} sql
* @param {QueueWorkerCronOptions["jobs"][0]} job
* @returns {Promise<void>}
*/
Expand Down Expand Up @@ -487,7 +487,7 @@

/**
* @param {import("@compas/stdlib").Logger} logger
* @param {import("postgres").Sql<{}>} sql
* @param {import("../index.js").Postgres} sql
* @param {QueueWorkerInternalOptions} options
* @param {import("./generated/common/types.d.ts").StoreJob} job
*/
Expand Down Expand Up @@ -581,7 +581,7 @@
_compasSentryExport.captureException(e);
}

event.log.error({

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (24, 16)

{ type: 'queue_handler', id: 18 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:40.188Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:467:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:63:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (24, 16)

{ type: 'queue_handler', id: 17 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:40.178Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:437:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:63:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (24, 16)

{ type: 'queue_handler', id: 12 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:40.129Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:274:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:63:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (24, 16)

{ type: 'queue_handler', id: 11 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:40.111Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:245:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:63:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (25, 16)

{ type: 'queue_handler', id: 23 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:45.448Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:467:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:65:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (25, 16)

{ type: 'queue_handler', id: 22 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:45.430Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:437:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:65:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (25, 16)

{ type: 'queue_handler', id: 17 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:45.383Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:274:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:65:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (25, 16)

{ type: 'queue_handler', id: 16 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:45.366Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:245:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:65:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (24, 17)

{ type: 'queue_handler', id: 21 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:47.438Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:467:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:63:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (24, 17)

{ type: 'queue_handler', id: 20 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:47.420Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:437:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:63:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (24, 17)

{ type: 'queue_handler', id: 15 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:47.363Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:274:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:63:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (24, 17)

{ type: 'queue_handler', id: 14 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:47.339Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:245:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:63:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (25, 17)

{ type: 'queue_handler', id: 23 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:52.559Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:467:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:65:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (25, 17)

{ type: 'queue_handler', id: 22 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:52.543Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:437:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:65:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (25, 17)

{ type: 'queue_handler', id: 17 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:52.492Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:274:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:65:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }

Check failure on line 584 in packages/store/src/queue-worker.js

View workflow job for this annotation

GitHub Actions / test (25, 17)

{ type: 'queue_handler', id: 16 } { type: 'job_error', name: 'test', scheduledAt: '2026-05-05T11:06:52.477Z', retryCount: 0, error: { key: 'error.server.internal', status: 500, info: {}, stack: [ 'at AppError.serverError (file:///home/runner/work/compas/compas/packages/stdlib/src/error.js:96:12)', 'at test (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.test.js:245:28)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:573:19', 'at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:65:14)', 'at file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:567:39', 'at result (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:261:21)', 'at new Promise (<anonymous>)', 'at scope (file:///home/runner/work/compas/compas/node_modules/postgres/src/index.js:260:24)', 'at process.processTicksAndRejections (node:internal/process/task_queues:104:5)', 'at async exec (file:///home/runner/work/compas/compas/packages/store/src/queue-worker.js:566:7)' ] } }
type: "job_error",
name: job.name,
scheduledAt: job.scheduledAt,
Expand Down
4 changes: 2 additions & 2 deletions packages/store/src/testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
/**
* If set, new databases are derived from this database
*
* @type {import("@compas/store").Postgres|undefined}
* @type {import("postgres").Sql<{}>|undefined}
*/
let testDatabase = undefined;

Expand Down Expand Up @@ -61,7 +61,7 @@ export async function cleanupPostgresDatabaseTemplate() {
* verboseSql?: boolean
* }} [options] If verboseSql is true, creates a new logger and prints all
* queries.
* @returns {Promise<import("@compas/store").Postgres>}
* @returns {Promise<import("postgres").Sql<{}>>}
*/
export async function createTestPostgresDatabase(rawOpts, options = {}) {
const connectionOptions = buildAndCheckOpts(rawOpts);
Expand Down
2 changes: 1 addition & 1 deletion src/testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from "@compas/store";

/**
* @type {import("@compas/store").Postgres}
* @type {import("postgres").Sql<{}>}
*/
export let sql;

Expand Down
Loading