appwrite_function_context 1.1.0
appwrite_function_context: ^1.1.0 copied to clipboard
A wrapper around the Appwrite Function Context.
1.1.0 #
- Added response header support to
text,json,binary,redirect,html,success, anderrorresponses, matching the current Open Runtimes Dart runtime signatures. ExecutionResponse.binarynow acceptsList<int>instead ofUint8List, andhtml/success/errornow route through the publictext()method.ExecutionRequest.queryis nowMap<String, String>(wasMap<String, dynamic>), matching the runtime.ExecutionContext.log/errornow acceptObject?instead ofString, matching the runtime.RequestHeaders.eventis nowString?(wasdynamic);RequestHeadersmap-style accessors (values,entries,forEach) now useObject?instead ofdynamic.RequestHeaders.requireValue<T>()now gives a clearer error when the header is missing entirely, versus present with the wrong type.- Added
EnvVar.deploymentType,EnvVar.cpus,EnvVar.memory, and nullable VCS metadata getters (vcsRepositoryId,vcsRepositoryBranch,vcsCommitHash, etc.) for currently documented Appwrite environment variables. - Added
EnvVar.parseOptionalString()plus testableparseBoolValue/parseIntValue/parseDoubleValuehelpers. - Fixed example code for newer Dart syntax (untyped
main(context)parameter can no longer befinal), and gaveexample/its ownpubspec.yamlso it resolves and analyzes cleanly. - Enabled
package:lints/recommended.yamlinanalysis_options.yaml(previously present only as a comment) and added a unit test suite.
1.0.1 #
- Add optional HTTP status code parameters to ExecutionResponse helpers
- Add RequestHeaders.requireValue
- Lower minimum Dart SDK constraint to Dart 3.0.
1.0.0 #
- Initial release