@pgflow/edge-worker 0.1.12 → 0.1.13

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.
package/dist/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @pgflow/edge-worker
2
2
 
3
+ ## 0.1.13
4
+
5
+ ### Patch Changes
6
+
7
+ - 2a2a7bc: Add debug statements to find logger issue
8
+ - @pgflow/core@0.1.13
9
+ - @pgflow/dsl@0.1.13
10
+
3
11
  ## 0.1.12
4
12
 
5
13
  ### Patch Changes
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgflow/edge-worker",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "license": "AGPL-3.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1 +1 @@
1
- {"version":3,"file":"DenoAdapter.d.ts","sourceRoot":"","sources":["../../src/platform/DenoAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAI1E;;GAEG;AACH,qBAAa,WAAY,YAAW,eAAe;IACjD,OAAO,CAAC,gBAAgB,CAAuB;IAC/C,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,MAAM,CAAS;IAGvB,OAAO,CAAC,cAAc,CAA0B;;IAoBhD;;;OAGG;IACG,WAAW,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAM1D,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAMjC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAIpC;;OAEG;IACH,mBAAmB,IAAI,MAAM;IAI7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;YAcV,oBAAoB;IA8BlC,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,oBAAoB;IAY5B;;;;;;OAMG;IACH,OAAO,CAAC,4BAA4B;IAMpC,OAAO,CAAC,mBAAmB;CAwB5B"}
1
+ {"version":3,"file":"DenoAdapter.d.ts","sourceRoot":"","sources":["../../src/platform/DenoAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAI1E;;GAEG;AACH,qBAAa,WAAY,YAAW,eAAe;IACjD,OAAO,CAAC,gBAAgB,CAAuB;IAC/C,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,MAAM,CAAS;IAGvB,OAAO,CAAC,cAAc,CAA0B;;IAuBhD;;;OAGG;IACG,WAAW,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAM1D,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAMjC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAIpC;;OAEG;IACH,mBAAmB,IAAI,MAAM;IAI7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;YAcV,oBAAoB;IA8BlC,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,oBAAoB;IAY5B;;;;;;OAMG;IACH,OAAO,CAAC,4BAA4B;IAMpC,OAAO,CAAC,mBAAmB;CAwB5B"}
@@ -18,9 +18,12 @@ export class DenoAdapter {
18
18
  }
19
19
  // Set initial log level
20
20
  const logLevel = this.getEnvVarOrThrow('EDGE_WORKER_LOG_LEVEL') || 'info';
21
+ console.log(`--- DenoAdapter: Raw log level from env: ${logLevel} ---`); // Raw console log
21
22
  this.loggingFactory.setLogLevel(logLevel);
23
+ console.log('--- DenoAdapter: Log level set in factory ---'); // Raw console log
22
24
  // startWorker logger with a default module name
23
25
  this.logger = this.loggingFactory.createLogger('DenoAdapter');
26
+ this.logger.info('DenoAdapter logger instance created and working.'); // Use the created logger
24
27
  }
25
28
  /**
26
29
  * startWorker the platform adapter with a worker factory function
@@ -1 +1 @@
1
- {"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../src/platform/logging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC;;GAEG;AACH,wBAAgB,oBAAoB;2BAcJ,MAAM,KAAG,MAAM;4BAuDd,MAAM,KAAG,IAAI;+BAOV,MAAM,KAAG,IAAI;EAShD"}
1
+ {"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../src/platform/logging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC;;GAEG;AACH,wBAAgB,oBAAoB;2BAcJ,MAAM,KAAG,MAAM;4BA2Dd,MAAM,KAAG,IAAI;+BAOV,MAAM,KAAG,IAAI;EAShD"}
@@ -13,18 +13,21 @@ export function createLoggingFactory() {
13
13
  * Creates a new logger for a specific module
14
14
  */
15
15
  const createLogger = (module) => {
16
+ console.log('--- createLoggingFactory CALLED ---'); // See how many times this appears
16
17
  // Create a logger that directly references the shared state
17
18
  const logger = {
18
19
  debug: (message, ...args) => {
19
20
  const levelValue = levels[logLevel] ?? levels.info;
20
21
  if (levelValue >= levels.debug) {
21
- console.debug(`worker_id=${sharedWorkerId} module=${module} ${message}`, ...args);
22
+ // Use console.log for debug messages since console.debug isn't available in Supabase
23
+ console.log(`[DEBUG] worker_id=${sharedWorkerId} module=${module} ${message}`, ...args);
22
24
  }
23
25
  },
24
26
  info: (message, ...args) => {
25
27
  const levelValue = levels[logLevel] ?? levels.info;
26
28
  if (levelValue >= levels.info) {
27
- console.info(`worker_id=${sharedWorkerId} module=${module} ${message}`, ...args);
29
+ // Use console.log for info messages since console.info isn't available in Supabase
30
+ console.log(`[INFO] worker_id=${sharedWorkerId} module=${module} ${message}`, ...args);
28
31
  }
29
32
  },
30
33
  warn: (message, ...args) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgflow/edge-worker",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "license": "AGPL-3.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,8 +19,8 @@
19
19
  "dependencies": {
20
20
  "@henrygd/queue": "^1.0.7",
21
21
  "postgres": "3.4.5",
22
- "@pgflow/core": "0.1.12",
23
- "@pgflow/dsl": "0.1.12"
22
+ "@pgflow/core": "0.1.13",
23
+ "@pgflow/dsl": "0.1.13"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/deno": "npm:@teidesu/deno-types@1.45.2",