Skip to content

Conversation

@Fellmonkey
Copy link
Owner

No description provided.

stnguyen90 and others added 30 commits October 8, 2025 16:58
Install the dependencies so that the full analysis options are used when formatting.
…tter-pub-dev-score

chore: ensure the full analysis options are used when formatting
feat: add `DeprecationWarning` decorator support Python language
At the moment, if a cookie isn't set, only the local storage cookie fallback is used for realtime authentication. This means sessions using client.setSession() will be unauthenticated when using realtime.

This PR makes realtime use this.config.session (which is set with client.setSession()) if it exists.
Fixed an issue where array deserialization in Model.cs.twig failed when
System.Text.Json creates Object[] instead of List<T>. Added a new ToList<T>
extension method that properly handles JsonElement, Object[], List<T>, and
IEnumerable<T> types, ensuring robust array deserialization across all scenarios.
Updated DotNet.php to return the element type instead of List<T> wrapper,
and simplified Model.cs.twig to use typeName directly with the ToList<T>
extension method.
Introduces a ToEnumerable extension method to unify array and enumerable conversions in generated .NET code. Updates code generation logic to use ToEnumerable for array properties, simplifying and improving type safety. Also adds necessary using statement for Extensions in generated model files.
Introduces comprehensive test templates for the .NET SDK, including unit tests for client, models, enums, converters, exceptions, and utility classes. Updates the DotNet language generator to support test file generation and adds new Twig filters and functions to facilitate test code creation.
Introduces a 'Run Tests' step in the sdk-build-validation workflow for multiple SDKs. This step runs the appropriate test command for each SDK and handles cases where no tests are available.
Update InputFileTests to account for platform-specific filename handling by checking the OS and adjusting the expected filename accordingly.
Updated IDTest to assert the length of generated IDs. Refactored QueryTest to decode JSON output and assert on individual fields instead of string comparison, improving test robustness. Enhanced ServiceTest to automatically import and use enum types for parameters, ensuring correct usage in service method calls.
Updated parameter handling in PHP templates to cast enum parameters to string when building API paths and parameters. Adjusted ServiceTest template to improve test data initialization for location and webAuth method types.
Updated parameter handling in PHP templates to cast enum parameters to string when building API paths and parameters. Adjusted ServiceTest template to improve test data initialization for location and webAuth method types.
Updated parameter handling in PHP templates to cast enum parameters to string when building API paths and parameters. Adjusted ServiceTest template to improve test data initialization for location and webAuth method types.
Updated PHP templates to cast enum parameters to string when building API params and paths. Also improved test generation logic for array return types and adjusted request handling for 'location' and 'webAuth' method types.
Updated PHP templates to cast enum parameters to string when building API params and paths. Also improved test generation logic for array return types and adjusted request handling for 'location' and 'webAuth' method types.
Enhances the test template to handle methods returning arrays by initializing $data as an empty array. Also adjusts the mock call argument for webAuth methods to improve test accuracy.
Extended conditional logic in API request and service test templates to handle both 'webAuth' and 'location' method types. This ensures correct parameter passing and mocking for methods returning arrays or requiring location handling.
Replaces reflection-based service initialization in AppwriteManager with direct instantiation for better performance and AOT compatibility. Adds thread safety to CookieContainer with locking, improves cookie loading/saving, and clarifies platform-specific behavior. Enhances Realtime to support client/session updates and controlled reconnect logic. Minor fixes include exception type consistency and improved debug messages in OAuth and other templates. Adds Operator.cs to Unity SDK file list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.