@zuplo/runtime 6.65.3 → 6.65.5

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.
@@ -5098,6 +5098,8 @@ declare interface LogField {
5098
5098
  declare type LogFormat = "pretty" | "json" | "gcp" | "cloudflare";
5099
5099
 
5100
5100
  /**
5101
+ * Logger to be used in the runtime via context.log.
5102
+ * You can set per-request properties that will be included in all log entries for this request.
5101
5103
  * @beta
5102
5104
  */
5103
5105
  export declare interface Logger extends SystemLogger {
@@ -5120,7 +5122,9 @@ export declare interface Logger extends SystemLogger {
5120
5122
  * }
5121
5123
  * ```
5122
5124
  */
5123
- setLogProperties(properties: Record<string, string | number | boolean>): void;
5125
+ setLogProperties?(
5126
+ properties: Record<string, string | number | boolean>
5127
+ ): void;
5124
5128
  }
5125
5129
 
5126
5130
  /* Excluded from this release type: LoggingContext */
@@ -8755,7 +8759,17 @@ export declare interface SupabaseJwtInboundPolicyOptions {
8755
8759
 
8756
8760
  /* Excluded from this release type: SYSTEM_LOGGER */
8757
8761
 
8758
- /* Excluded from this release type: SystemLogger */
8762
+ /**
8763
+ * Base logger interface with methods for each log level.
8764
+ * @beta
8765
+ */
8766
+ export declare interface SystemLogger {
8767
+ debug(...messages: unknown[]): void;
8768
+ info(...messages: unknown[]): void;
8769
+ log(...messages: unknown[]): void;
8770
+ warn(...messages: unknown[]): void;
8771
+ error(...messages: unknown[]): void;
8772
+ }
8759
8773
 
8760
8774
  /* Excluded from this release type: SystemRouteName */
8761
8775
 
@@ -1,3 +1,15 @@
1
+ /**
2
+ * Base logger interface with methods for each log level.
3
+ * @beta
4
+ */
5
+ declare interface BaseLogger {
6
+ debug(...messages: unknown[]): void;
7
+ info(...messages: unknown[]): void;
8
+ log(...messages: unknown[]): void;
9
+ warn(...messages: unknown[]): void;
10
+ error(...messages: unknown[]): void;
11
+ }
12
+
1
13
  /**
2
14
  * @public
3
15
  */
@@ -787,9 +799,11 @@ declare type JsonPrimitive = string | number | boolean | null;
787
799
  declare type JsonValue = JsonPrimitive | JsonObject | JsonArray;
788
800
 
789
801
  /**
802
+ * Logger to be used in the runtime via context.log.
803
+ * You can set per-request properties that will be included in all log entries for this request.
790
804
  * @beta
791
805
  */
792
- declare interface Logger extends SystemLogger {
806
+ declare interface Logger extends BaseLogger {
793
807
  /**
794
808
  * Set properties that will be included in all subsequent log entries for this request.
795
809
  * Properties are merged with existing properties and any static fields configured in the logging plugin.
@@ -809,7 +823,9 @@ declare interface Logger extends SystemLogger {
809
823
  * }
810
824
  * ```
811
825
  */
812
- setLogProperties(properties: Record<string, string | number | boolean>): void;
826
+ setLogProperties?(
827
+ properties: Record<string, string | number | boolean>
828
+ ): void;
813
829
  }
814
830
 
815
831
  /**
@@ -1556,8 +1572,6 @@ declare interface RouteConfiguration
1556
1572
  raw<T = any>(): T;
1557
1573
  }
1558
1574
 
1559
- /* Excluded from this release type: SystemLogger */
1560
-
1561
1575
  declare type UserDataDefault = any;
1562
1576
 
1563
1577
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "6.65.3",
4
+ "version": "6.65.5",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {