@tsonic/microsoft-extensions 10.0.39 → 10.0.41

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.
Files changed (62) hide show
  1. package/Microsoft.Extensions.Caching.Distributed/internal/index.d.ts +11 -10
  2. package/Microsoft.Extensions.Caching.Hybrid/internal/index.d.ts +10 -12
  3. package/Microsoft.Extensions.Caching.Memory/internal/index.d.ts +38 -40
  4. package/Microsoft.Extensions.Configuration/internal/index.d.ts +69 -71
  5. package/Microsoft.Extensions.Configuration.CommandLine/internal/index.d.ts +6 -5
  6. package/Microsoft.Extensions.Configuration.EnvironmentVariables/internal/index.d.ts +6 -5
  7. package/Microsoft.Extensions.Configuration.Ini/internal/index.d.ts +4 -3
  8. package/Microsoft.Extensions.Configuration.Json/internal/index.d.ts +3 -2
  9. package/Microsoft.Extensions.Configuration.KeyPerFile/internal/index.d.ts +5 -4
  10. package/Microsoft.Extensions.Configuration.Memory/internal/index.d.ts +6 -5
  11. package/Microsoft.Extensions.Configuration.UserSecrets/internal/index.d.ts +3 -2
  12. package/Microsoft.Extensions.Configuration.Xml/internal/index.d.ts +5 -4
  13. package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +103 -102
  14. package/Microsoft.Extensions.DependencyInjection.Extensions/internal/index.d.ts +24 -23
  15. package/Microsoft.Extensions.Diagnostics.HealthChecks/internal/index.d.ts +22 -21
  16. package/Microsoft.Extensions.Diagnostics.Metrics/internal/index.d.ts +30 -32
  17. package/Microsoft.Extensions.Diagnostics.Metrics.Configuration/internal/index.d.ts +3 -2
  18. package/Microsoft.Extensions.FileProviders/internal/index.d.ts +6 -5
  19. package/Microsoft.Extensions.FileProviders.Composite/internal/index.d.ts +3 -2
  20. package/Microsoft.Extensions.FileProviders.Embedded/internal/index.d.ts +3 -2
  21. package/Microsoft.Extensions.FileProviders.Internal/internal/index.d.ts +3 -2
  22. package/Microsoft.Extensions.FileProviders.Physical/internal/index.d.ts +6 -5
  23. package/Microsoft.Extensions.FileSystemGlobbing/internal/index.d.ts +9 -8
  24. package/Microsoft.Extensions.FileSystemGlobbing.Abstractions/internal/index.d.ts +9 -8
  25. package/Microsoft.Extensions.FileSystemGlobbing.Internal/internal/index.d.ts +5 -4
  26. package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments/internal/index.d.ts +4 -3
  27. package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/bindings.json +230 -230
  28. package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/internal/index.d.ts +45 -44
  29. package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts.d.ts +2 -2
  30. package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns/internal/index.d.ts +3 -2
  31. package/Microsoft.Extensions.Hosting/internal/index.d.ts +30 -29
  32. package/Microsoft.Extensions.Hosting.Internal/internal/index.d.ts +3 -2
  33. package/Microsoft.Extensions.Http/internal/index.d.ts +5 -4
  34. package/Microsoft.Extensions.Http.Logging/internal/index.d.ts +12 -11
  35. package/Microsoft.Extensions.Internal/internal/index.d.ts +3 -2
  36. package/Microsoft.Extensions.Localization/internal/index.d.ts +15 -14
  37. package/Microsoft.Extensions.Logging/internal/index.d.ts +78 -77
  38. package/Microsoft.Extensions.Logging.Abstractions/bindings.json +4 -1
  39. package/Microsoft.Extensions.Logging.Abstractions/internal/index.d.ts +13 -12
  40. package/Microsoft.Extensions.Logging.Configuration/internal/index.d.ts +3 -2
  41. package/Microsoft.Extensions.Logging.Console/internal/index.d.ts +15 -17
  42. package/Microsoft.Extensions.Logging.Debug/internal/index.d.ts +3 -2
  43. package/Microsoft.Extensions.Logging.EventLog/internal/index.d.ts +12 -11
  44. package/Microsoft.Extensions.Logging.EventSource/internal/index.d.ts +3 -2
  45. package/Microsoft.Extensions.Logging.TraceSource/internal/index.d.ts +4 -3
  46. package/Microsoft.Extensions.ObjectPool/internal/index.d.ts +4 -3
  47. package/Microsoft.Extensions.Options/internal/index.d.ts +104 -103
  48. package/Microsoft.Extensions.Primitives/bindings.json +0 -20
  49. package/Microsoft.Extensions.Primitives/internal/index.d.ts +30 -33
  50. package/Microsoft.Extensions.Primitives.d.ts +1 -1
  51. package/Microsoft.Extensions.Validation/internal/index.d.ts +14 -16
  52. package/Microsoft.Extensions.WebEncoders/internal/index.d.ts +5 -4
  53. package/Microsoft.Extensions.WebEncoders.Testing/internal/index.d.ts +2 -4
  54. package/README.md +45 -15
  55. package/System.Diagnostics/internal/index.d.ts +11 -10
  56. package/System.Diagnostics.Eventing.Reader/internal/index.d.ts +7 -6
  57. package/System.Net.Http/internal/index.d.ts +3 -2
  58. package/System.Security.Cryptography/internal/index.d.ts +5 -4
  59. package/System.Security.Cryptography.Pkcs/internal/index.d.ts +48 -50
  60. package/System.Security.Cryptography.Xml/internal/index.d.ts +148 -150
  61. package/__internal/extensions/index.d.ts +186 -188
  62. package/package.json +3 -3
@@ -2,8 +2,9 @@
2
2
  // Namespace: Microsoft.Extensions.Logging.Abstractions
3
3
  // Assembly: Microsoft.Extensions.Logging.Abstractions
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
7
8
 
8
9
  // Import types from other namespaces
9
10
  import * as Microsoft_Extensions_Logging_Internal from "../../Microsoft.Extensions.Logging/internal/index.js";
@@ -27,15 +28,15 @@ export interface LogEntry_1$instance<TState> {
27
28
 
28
29
  readonly Category: string;
29
30
  readonly EventId: EventId;
30
- readonly Exception: Exception | undefined;
31
- readonly Formatter: Func_3<TState, Exception | undefined, System_Internal.String>;
31
+ readonly Exception: Exception | null;
32
+ readonly Formatter: Func_3<TState, Exception | null, System_Internal.String>;
32
33
  readonly LogLevel: LogLevel;
33
34
  readonly State: TState;
34
35
  }
35
36
 
36
37
 
37
38
  export const LogEntry_1: {
38
- new<TState>(logLevel: LogLevel, category: string, eventId: EventId, state: TState, exception: Exception, formatter: Func_3<TState, Exception, System_Internal.String>): LogEntry_1<TState>;
39
+ new<TState>(logLevel: LogLevel, category: string, eventId: EventId, state: TState, exception: Exception | null, formatter: Func_3<TState, Exception | null, System_Internal.String>): LogEntry_1<TState>;
39
40
  };
40
41
 
41
42
 
@@ -46,13 +47,13 @@ export interface BufferedLogRecord$instance {
46
47
 
47
48
  readonly ActivitySpanId: Nullable_1<ActivitySpanId>;
48
49
  readonly ActivityTraceId: Nullable_1<ActivityTraceId>;
49
- readonly Attributes: IReadOnlyList_1<KeyValuePair_2<System_Internal.String, unknown>>;
50
+ readonly Attributes: IReadOnlyList_1<KeyValuePair_2<System_Internal.String, JsValue>>;
50
51
  readonly EventId: EventId;
51
- readonly Exception: string | undefined;
52
- readonly FormattedMessage: string | undefined;
52
+ readonly Exception: string | null;
53
+ readonly FormattedMessage: string | null;
53
54
  readonly LogLevel: LogLevel;
54
55
  readonly ManagedThreadId: Nullable_1<System_Internal.Int32>;
55
- readonly MessageTemplate: string | undefined;
56
+ readonly MessageTemplate: string | null;
56
57
  readonly Timestamp: DateTimeOffset;
57
58
  }
58
59
 
@@ -70,7 +71,7 @@ export interface NullLogger$instance extends Microsoft_Extensions_Logging_Intern
70
71
 
71
72
  BeginScope<TState>(state: TState): IDisposable;
72
73
  IsEnabled(logLevel: LogLevel): boolean;
73
- Log<TState>(logLevel: LogLevel, eventId: EventId, state: TState, exception: Exception, formatter: Func_3<TState, Exception, System_Internal.String>): void;
74
+ Log<TState>(logLevel: LogLevel, eventId: EventId, state: TState, exception: Exception | null, formatter: Func_3<TState, Exception | null, System_Internal.String>): void;
74
75
  }
75
76
 
76
77
 
@@ -94,13 +95,13 @@ export interface NullLogger_1$instance<T> extends ILogger_1<T> {
94
95
 
95
96
  BeginScope<TState>(state: TState): IDisposable;
96
97
  IsEnabled(logLevel: LogLevel): boolean;
97
- Log<TState>(logLevel: LogLevel, eventId: EventId, state: TState, exception: Exception, formatter: Func_3<TState, Exception, System_Internal.String>): void;
98
+ Log<TState>(logLevel: LogLevel, eventId: EventId, state: TState, exception: Exception | null, formatter: Func_3<TState, Exception | null, System_Internal.String>): void;
98
99
  }
99
100
 
100
101
 
101
102
  export const NullLogger_1: {
102
103
  new<T>(): NullLogger_1<T>;
103
- readonly Instance: unknown;
104
+ readonly Instance: <T>() => NullLogger_1<T>;
104
105
  };
105
106
 
106
107
 
@@ -2,8 +2,9 @@
2
2
  // Namespace: Microsoft.Extensions.Logging.Configuration
3
3
  // Assembly: Microsoft.Extensions.Logging.Configuration
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
7
8
 
8
9
  // Import types from other namespaces
9
10
  import type { IConfiguration } from "../../Microsoft.Extensions.Configuration/internal/index.js";
@@ -2,11 +2,9 @@
2
2
  // Namespace: Microsoft.Extensions.Logging.Console
3
3
  // Assembly: Microsoft.Extensions.Logging.Console
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
7
 
8
- // Import support types from @tsonic/core
9
- import type { ptr } from "@tsonic/core/types.js";
10
8
 
11
9
  // Import types from other namespaces
12
10
  import type { IConfiguration } from "../../Microsoft.Extensions.Configuration/internal/index.js";
@@ -44,7 +42,7 @@ export interface IConsoleLoggerSettings$instance {
44
42
  readonly __tsonic_iface_Microsoft_Extensions_Logging_Console_IConsoleLoggerSettings: never;
45
43
 
46
44
  readonly IncludeScopes: boolean;
47
- readonly ChangeToken: IChangeToken | undefined;
45
+ readonly ChangeToken: IChangeToken | null;
48
46
  Reload(): IConsoleLoggerSettings;
49
47
  TryGetSwitch(name: string, level: LogLevel): boolean;
50
48
  }
@@ -57,8 +55,8 @@ export interface ConfigurationConsoleLoggerSettings$instance {
57
55
 
58
56
  readonly __tsonic_iface_Microsoft_Extensions_Logging_Console_IConsoleLoggerSettings: never;
59
57
 
60
- get ChangeToken(): IChangeToken | undefined;
61
- set ChangeToken(value: IChangeToken | undefined);
58
+ get ChangeToken(): IChangeToken | null;
59
+ set ChangeToken(value: IChangeToken | null);
62
60
  readonly IncludeScopes: boolean;
63
61
  Reload(): IConsoleLoggerSettings;
64
62
  TryGetSwitch(name: string, level: LogLevel): boolean;
@@ -81,7 +79,7 @@ export interface ConsoleFormatter$instance {
81
79
  readonly __tsonic_type_Microsoft_Extensions_Logging_Console_ConsoleFormatter: never;
82
80
 
83
81
  readonly Name: string;
84
- Write<TState>(logEntry: LogEntry_1<TState>, scopeProvider: IExternalScopeProvider, textWriter: TextWriter): void;
82
+ Write<TState>(logEntry: LogEntry_1<TState>, scopeProvider: IExternalScopeProvider | null, textWriter: TextWriter): void;
85
83
  }
86
84
 
87
85
 
@@ -95,8 +93,8 @@ export interface ConsoleFormatterOptions$instance {
95
93
  readonly __tsonic_type_Microsoft_Extensions_Logging_Console_ConsoleFormatterOptions: never;
96
94
 
97
95
  IncludeScopes: boolean;
98
- get TimestampFormat(): string | undefined;
99
- set TimestampFormat(value: string | undefined);
96
+ get TimestampFormat(): string | null;
97
+ set TimestampFormat(value: string | null);
100
98
  UseUtcTimestamp: boolean;
101
99
  }
102
100
 
@@ -113,14 +111,14 @@ export interface ConsoleLoggerOptions$instance {
113
111
 
114
112
  DisableColors: boolean;
115
113
  Format: ConsoleLoggerFormat;
116
- get FormatterName(): string | undefined;
117
- set FormatterName(value: string | undefined);
114
+ get FormatterName(): string | null;
115
+ set FormatterName(value: string | null);
118
116
  IncludeScopes: boolean;
119
117
  LogToStandardErrorThreshold: LogLevel;
120
118
  MaxQueueLength: int;
121
119
  QueueFullMode: ConsoleLoggerQueueFullMode;
122
- get TimestampFormat(): string | undefined;
123
- set TimestampFormat(value: string | undefined);
120
+ get TimestampFormat(): string | null;
121
+ set TimestampFormat(value: string | null);
124
122
  UseUtcTimestamp: boolean;
125
123
  }
126
124
 
@@ -147,7 +145,7 @@ export interface ConsoleLoggerProvider$instance extends Microsoft_Extensions_Log
147
145
 
148
146
  export const ConsoleLoggerProvider: {
149
147
  new(options: IOptionsMonitor_1<ConsoleLoggerOptions>): ConsoleLoggerProvider;
150
- new(options: IOptionsMonitor_1<ConsoleLoggerOptions>, formatters: IEnumerable_1<ConsoleFormatter>): ConsoleLoggerProvider;
148
+ new(options: IOptionsMonitor_1<ConsoleLoggerOptions>, formatters: IEnumerable_1<ConsoleFormatter> | null): ConsoleLoggerProvider;
151
149
  };
152
150
 
153
151
 
@@ -164,8 +162,8 @@ export interface ConsoleLoggerSettings$instance {
164
162
 
165
163
  readonly __tsonic_iface_Microsoft_Extensions_Logging_Console_IConsoleLoggerSettings: never;
166
164
 
167
- get ChangeToken(): IChangeToken | undefined;
168
- set ChangeToken(value: IChangeToken | undefined);
165
+ get ChangeToken(): IChangeToken | null;
166
+ set ChangeToken(value: IChangeToken | null);
169
167
  DisableColors: boolean;
170
168
  IncludeScopes: boolean;
171
169
  Switches: IDictionary_2<System_Internal.String, LogLevel>;
@@ -2,8 +2,9 @@
2
2
  // Namespace: Microsoft.Extensions.Logging.Debug
3
3
  // Assembly: Microsoft.Extensions.Logging.Debug
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
7
8
 
8
9
  // Import types from other namespaces
9
10
  import * as Microsoft_Extensions_Logging_Internal from "../../Microsoft.Extensions.Logging/internal/index.js";
@@ -2,8 +2,9 @@
2
2
  // Namespace: Microsoft.Extensions.Logging.EventLog
3
3
  // Assembly: Microsoft.Extensions.Logging.EventLog
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
7
8
 
8
9
  // Import types from other namespaces
9
10
  import * as Microsoft_Extensions_Logging_Internal from "../../Microsoft.Extensions.Logging/internal/index.js";
@@ -27,7 +28,7 @@ export interface EventLogLoggerProvider$instance extends Microsoft_Extensions_Lo
27
28
 
28
29
  export const EventLogLoggerProvider: {
29
30
  new(): EventLogLoggerProvider;
30
- new(settings: EventLogSettings): EventLogLoggerProvider;
31
+ new(settings: EventLogSettings | null): EventLogLoggerProvider;
31
32
  new(options: IOptions_1<EventLogSettings>): EventLogLoggerProvider;
32
33
  };
33
34
 
@@ -43,14 +44,14 @@ export type EventLogLoggerProvider = EventLogLoggerProvider$instance & __EventLo
43
44
  export interface EventLogSettings$instance {
44
45
  readonly __tsonic_type_Microsoft_Extensions_Logging_EventLog_EventLogSettings: never;
45
46
 
46
- get Filter(): Func_3<System_Internal.String, LogLevel, System_Internal.Boolean> | undefined;
47
- set Filter(value: Func_3<System_Internal.String, LogLevel, System_Internal.Boolean> | undefined);
48
- get LogName(): string | undefined;
49
- set LogName(value: string | undefined);
50
- get MachineName(): string | undefined;
51
- set MachineName(value: string | undefined);
52
- get SourceName(): string | undefined;
53
- set SourceName(value: string | undefined);
47
+ get Filter(): Func_3<System_Internal.String, LogLevel, System_Internal.Boolean> | null;
48
+ set Filter(value: Func_3<System_Internal.String, LogLevel, System_Internal.Boolean> | null);
49
+ get LogName(): string | null;
50
+ set LogName(value: string | null);
51
+ get MachineName(): string | null;
52
+ set MachineName(value: string | null);
53
+ get SourceName(): string | null;
54
+ set SourceName(value: string | null);
54
55
  }
55
56
 
56
57
 
@@ -2,8 +2,9 @@
2
2
  // Namespace: Microsoft.Extensions.Logging.EventSource
3
3
  // Assembly: Microsoft.Extensions.Logging.EventSource
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
7
8
 
8
9
  // Import types from other namespaces
9
10
  import * as Microsoft_Extensions_Logging_Internal from "../../Microsoft.Extensions.Logging/internal/index.js";
@@ -2,8 +2,9 @@
2
2
  // Namespace: Microsoft.Extensions.Logging.TraceSource
3
3
  // Assembly: Microsoft.Extensions.Logging.TraceSource
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
7
8
 
8
9
  // Import types from other namespaces
9
10
  import * as Microsoft_Extensions_Logging_Internal from "../../Microsoft.Extensions.Logging/internal/index.js";
@@ -25,7 +26,7 @@ export interface TraceSourceLoggerProvider$instance extends Microsoft_Extensions
25
26
 
26
27
  export const TraceSourceLoggerProvider: {
27
28
  new(rootSourceSwitch: SourceSwitch): TraceSourceLoggerProvider;
28
- new(rootSourceSwitch: SourceSwitch, rootTraceListener: TraceListener): TraceSourceLoggerProvider;
29
+ new(rootSourceSwitch: SourceSwitch, rootTraceListener: TraceListener | null): TraceSourceLoggerProvider;
29
30
  };
30
31
 
31
32
 
@@ -2,8 +2,9 @@
2
2
  // Namespace: Microsoft.Extensions.ObjectPool
3
3
  // Assembly: Microsoft.Extensions.ObjectPool
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
7
8
 
8
9
  // Import types from other namespaces
9
10
  import * as System_Text_Internal from "@tsonic/dotnet/System.Text/internal/index.js";
@@ -188,7 +189,7 @@ export type StringBuilderPooledObjectPolicy = StringBuilderPooledObjectPolicy$in
188
189
 
189
190
 
190
191
  export abstract class ObjectPool$instance {
191
- static Create<T>(policy?: IPooledObjectPolicy_1<T>): ObjectPool_1<T>;
192
+ static Create<T>(policy?: IPooledObjectPolicy_1<T> | null): ObjectPool_1<T>;
192
193
  }
193
194
 
194
195