flutterflow_cloud_core 0.3.0-dev.1
flutterflow_cloud_core: ^0.3.0-dev.1 copied to clipboard
Pure Dart Cloud values, errors and strict function contract codecs.
Changelog #
0.3.0-dev.1 #
A prerelease of 0.3.0 for testing, from drip main at e38c91065e: what Unreleased and 0.3.0 list below.
Unreleased #
- Local data's shared engines, for the app SDK's device store and the
emulator:
cel.dart(the FFX-CEL engine, moved here from the emulator unchanged, pluscelFieldsRead),rules.dart(evaluateRuleover plain maps, with an optionaloperation,Principal,RuleDecision),query.dart(queryMatches,compareQueryValues,sortQueryRows,bindQueryClauseswith the owner clause) andids.dart(newRecordId,isClientRecordId).test/fixtures/cel_vectors.jsonholds the vectors the rules-engine runs too. recordExists(409) maps toFFXRecordExistsError, anFFXConflictErrorwhoseuserMessageisThis item already exists.;localDataNotEnabledmaps toFFXNotFoundError.FFXApiError.ruleMessagecarries a rule's own message (null when blank), whichuserMessageshows when access is refused.needsConnectionError,localDataFullErrorandlocalDataUnavailableErrorbuild the device-side problems, each with plain copy.ffxBatchOperation.createtakes an optionalrecordId.- The generator keeps the local-data names
flutterflow_cloudwill export free (FFXLocalData,FFXLocalDataStatus,FFXLocalDataState,FFXLocalDataOptions,FFXRefusal,FFXDeviceTable,FFXStoreBackend,FFXMemoryStoreBackend,FFXRecordExistsError); a model named after one gets a trailing$. A config'slocalDatasection and rulemessages change no generated byte. - FFX-CEL can evaluate exactly as the platform does.
CelEnvironmentandevaluateRuletake the model's declared field types (fieldTypes, built bycelFieldTypes; alsoclaimTypesandparamTypes). With them, a timestamp field is an instant whatever its fraction digits (…00Zequals…00.000000Z), a double field's whole number is a double (the web reads10.0as an int), any other whole number is an integer, instants count whole milliseconds (.000456Zis the same instant asZ, asDate.parsereads it), and strings order by UTF-16 code units. Without them nothing changes: the emulator's schema-free reading keeps microseconds and code-point order. queryMatchesdecides a range clause as FFX does: only two numbers or two strings compare, so a null or absent value, a null param, booleans and mixed types never match. NewqueryOrderPresent: a row without a value for anorderByfield is not in FFX's answer.bindQueryClausestakes the query'sparamTypesand binds atimestampparam in FFX's six-digit form (normalizeWireTimestamp), soDateTime.toIso8601String()'s.000Zmeets stored values.- The generated
FlutterFlowCloudextension never names a table getterlocalData; such a table gets<model>Collection.
0.3.0 #
For flutterflow_cloud_admin 0.5.0 and flutterflow_cloud 0.12.0.
flutterflow_cloud_emulator 0.4.0 supports core 0.2.x and 0.3.x.
-
Generated bindings carry
// dart format off, so an app's owndart format(any language version or page width) leaves them as generated andgenerate --checkdoesn't report drift. Bindings written before this line still pass--checkuntil the app regenerates. -
Backend errors now distinguish sign-in and app setup problems from actions that might already have saved changes.
-
Breaking:
BatchOperationandBatchResultgain theBatchCheckOperationandBatchCheckResultcases (below), so an exhaustive switch over either needs a case for them. -
Function contracts accept full admin access (#2296, #2346): a function declares
capabilities.admin: "full"forctx.admin, and contracts acceptminRuntimeAbi: "ffx-functions-v3". Choosing full admin access and exactserviceGrantstogether fails atcapabilities/serviceGrants. -
Function contracts also accept
capabilities.ai: truefor a function that calls drip AI throughctx.ai. -
functionBackendLimitExceededis a Function error (#2397): anFFXFunctionErrorwhoseuserMessageis the problem's detail and fix. -
The generator keeps the new exported names free (
FFXErrorCode,FFXFieldError,FFXRetry,FFXFileStatus,FFXSignInProvider,BatchCheckOperation,BatchCheckResult, andflutterflow_cloud'sFFXAi,FFXPasskeyAuthenticatorandPasskeyInfo): a model named after one gets a trailing$. -
Add
ffxLinkAdminPathPrefix(/__edge/, the link host's own admin surface) andisLinkAdminPath, which reads a path leniently (any case, percent-encoded, doubled slashes) and says whether it is under the prefix. The generator keepsFFXReservedLinkPathfree too. -
userMessagehas person-facing copy for the passkey codes (passkeyNotRecognized,passkeyVerificationFailed,lastSignInMethod, …), ending in the code. -
Add
FFXErrorCode, onestatic constper platform error code, generated from the problem registry:error.code == FFXErrorCode.emailAlreadyExists.codestays aString. -
FFXApiErroraddsretryClass(the newFFXRetryenum:never,afterBackoff,afterRetryAfterDelay; a missing or unknown value isnever),isRetryable, andfieldErrors(the newFFXFieldError:pointer,code,message,String? fix; a malformed entry is dropped).retryanderrorsare unchanged. -
Add
FFXSignInProvider(guest,emailPassword,google,apple,passkey, andunknownfor a provider added later) andFFXFileStatus(uploading,ready,deleted). -
FFXUseraddsisFullAccount,isEmailVerified,signInProvidersandcreatedAtTime,updatedAtTimeandlastSignInAtTimeasDateTimes beside its existing string members, which are unchanged. -
FFXFileaddsfileStatus,isReadyandisUploadingbeside itsstatusstring. -
Add
BatchCheckOperation,BatchCheckResultand theffxBatchOperation.checkbuilder for read-only version guards. Include the new check case in exhaustive switches overBatchOperationandBatchResult.
0.2.1 #
For flutterflow_cloud 0.10.0. Published from 0.2.0's source plus these two
changes alone.
- The generator keeps every name
flutterflow_cloud's libraries export free: no generated type takesFFXStoreCall(0.10.0),FFXPurchasesPage(0.9.0),FFXAppLogsor the sign-in names (FFXAppleAuthorization,FFXAppleSignInAuthorizer,FFXAppleSignInAvailability,FFXSystemAppleSignInAuthorizer,FFXGoogleSignInBrowser,FFXSystemGoogleSignInBrowser); a model named after one gets a trailing$. purchaseRecipientChanged(409) maps toFFXConflictError, with copy for the buyer: "The person signed in changed, so nothing was recorded." A purchase call was made for one end user and reached drip after someone else signed in.
0.2.0 #
For flutterflow_cloud 0.8.0 and flutterflow_cloud_emulator 0.3.0. It carries
everything in 0.1.1 and 0.2.0-dev.1.
- Add the Dynamic Links values, as in 0.2.0-dev.1 (below).
- Validate scheduled Functions:
kind: scheduledwith itsscheduleanddeliveryis a delivery kind beside callable and HTTP, andparseFunctionCron(exported byfunction_contracts.dart) parses its five-field cron expression. A callable or HTTP function that declaresscheduleordeliveryfails at that key; event triggers stay unsupported. The generator emits no client for a scheduled function. - Sign-in problem codes (
providerNotEnabled,redirectUriNotAllowed,grantCodeInvalid,credentialAlreadyLinked,providerAlreadyLinked,linkingBlocked,userDisabled,invalidCredentials,emailAlreadyExists,weakPassword,accountLocked,challengeRequired) have end-user copy of their own inuserMessage, with the code in parentheses.providerAlreadyLinkedmaps toFFXConflictErrorandlinkingBlockedtoFFXPermissionDeniedError. - Map
connectorRefused, a connected service turning the request down, toFFXValidationErrorwith end-user copy of its own. - The generator keeps the
logname forcloud.log: a model whose plural isloggets the getter<model>Collection(logCollectionfor alogmodel) instead oflog.
0.2.0-dev.1 #
A prerelease for flutterflow_cloud 0.8.0-dev.1. It builds on 0.1.0 and does
not carry 0.1.1's changes.
- Add the Dynamic Links values (
package:flutterflow_cloud_core/dynamic_links.dart, also exported by the main library):FFXDynamicLink,FFXLinkCampaign, the short-code, location and "Open in app" URL rules, and the build define names. - Add
FFXDynamicLinksNotConfiguredErrorand map thedynamicLinks*problem codes, with end-user copy. - The generator reserves the Dynamic Links
FFX…type names; adynamicLinkmodel keeps itsdynamicLinksgetter.
0.1.1 #
- Accept a Function's
capabilities.connectors, so a project whose Functions call a connector generates. - A Function that fails validation now reports its path and fix, instead of "Could not read project.json or options.json".
0.1.0 #
- Initial release of shared pure Dart record, query, auth, file and batch values.
- Strict Functions JSON codecs and contract validation.
- Project generation, including typed callable Functions clients.