Skip to main content

flutterflow_cloud_core 0.3.0-dev.1 copy "flutterflow_cloud_core: ^0.3.0-dev.1" to clipboard
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, plus celFieldsRead), rules.dart (evaluateRule over plain maps, with an optional operation, Principal, RuleDecision), query.dart (queryMatches, compareQueryValues, sortQueryRows, bindQueryClauses with the owner clause) and ids.dart (newRecordId, isClientRecordId). test/fixtures/cel_vectors.json holds the vectors the rules-engine runs too.
  • recordExists (409) maps to FFXRecordExistsError, an FFXConflictError whose userMessage is This item already exists.; localDataNotEnabled maps to FFXNotFoundError. FFXApiError.ruleMessage carries a rule's own message (null when blank), which userMessage shows when access is refused. needsConnectionError, localDataFullError and localDataUnavailableError build the device-side problems, each with plain copy. ffxBatchOperation.create takes an optional recordId.
  • The generator keeps the local-data names flutterflow_cloud will export free (FFXLocalData, FFXLocalDataStatus, FFXLocalDataState, FFXLocalDataOptions, FFXRefusal, FFXDeviceTable, FFXStoreBackend, FFXMemoryStoreBackend, FFXRecordExistsError); a model named after one gets a trailing $. A config's localData section and rule messages change no generated byte.
  • FFX-CEL can evaluate exactly as the platform does. CelEnvironment and evaluateRule take the model's declared field types (fieldTypes, built by celFieldTypes; also claimTypes and paramTypes). With them, a timestamp field is an instant whatever its fraction digits (…00Z equals …00.000000Z), a double field's whole number is a double (the web reads 10.0 as an int), any other whole number is an integer, instants count whole milliseconds (.000456Z is the same instant as Z, as Date.parse reads 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.
  • queryMatches decides 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. New queryOrderPresent: a row without a value for an orderBy field is not in FFX's answer.
  • bindQueryClauses takes the query's paramTypes and binds a timestamp param in FFX's six-digit form (normalizeWireTimestamp), so DateTime.toIso8601String()'s .000Z meets stored values.
  • The generated FlutterFlowCloud extension never names a table getter localData; 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 own dart format (any language version or page width) leaves them as generated and generate --check doesn't report drift. Bindings written before this line still pass --check until the app regenerates.

  • Backend errors now distinguish sign-in and app setup problems from actions that might already have saved changes.

  • Breaking: BatchOperation and BatchResult gain the BatchCheckOperation and BatchCheckResult cases (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" for ctx.admin, and contracts accept minRuntimeAbi: "ffx-functions-v3". Choosing full admin access and exact serviceGrants together fails at capabilities/serviceGrants.

  • Function contracts also accept capabilities.ai: true for a function that calls drip AI through ctx.ai.

  • functionBackendLimitExceeded is a Function error (#2397): an FFXFunctionError whose userMessage is the problem's detail and fix.

  • The generator keeps the new exported names free (FFXErrorCode, FFXFieldError, FFXRetry, FFXFileStatus, FFXSignInProvider, BatchCheckOperation, BatchCheckResult, and flutterflow_cloud's FFXAi, FFXPasskeyAuthenticator and PasskeyInfo): a model named after one gets a trailing $.

  • Add ffxLinkAdminPathPrefix (/__edge/, the link host's own admin surface) and isLinkAdminPath, which reads a path leniently (any case, percent-encoded, doubled slashes) and says whether it is under the prefix. The generator keeps FFXReservedLinkPath free too.

  • userMessage has person-facing copy for the passkey codes (passkeyNotRecognized, passkeyVerificationFailed, lastSignInMethod, …), ending in the code.

  • Add FFXErrorCode, one static const per platform error code, generated from the problem registry: error.code == FFXErrorCode.emailAlreadyExists. code stays a String.

  • FFXApiError adds retryClass (the new FFXRetry enum: never, afterBackoff, afterRetryAfterDelay; a missing or unknown value is never), isRetryable, and fieldErrors (the new FFXFieldError: pointer, code, message, String? fix; a malformed entry is dropped). retry and errors are unchanged.

  • Add FFXSignInProvider (guest, emailPassword, google, apple, passkey, and unknown for a provider added later) and FFXFileStatus (uploading, ready, deleted).

  • FFXUser adds isFullAccount, isEmailVerified, signInProviders and createdAtTime, updatedAtTime and lastSignInAtTime as DateTimes beside its existing string members, which are unchanged.

  • FFXFile adds fileStatus, isReady and isUploading beside its status string.

  • Add BatchCheckOperation, BatchCheckResult and the ffxBatchOperation.check builder for read-only version guards. Include the new check case in exhaustive switches over BatchOperation and BatchResult.

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 takes FFXStoreCall (0.10.0), FFXPurchasesPage (0.9.0), FFXAppLogs or the sign-in names (FFXAppleAuthorization, FFXAppleSignInAuthorizer, FFXAppleSignInAvailability, FFXSystemAppleSignInAuthorizer, FFXGoogleSignInBrowser, FFXSystemGoogleSignInBrowser); a model named after one gets a trailing $.
  • purchaseRecipientChanged (409) maps to FFXConflictError, 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: scheduled with its schedule and delivery is a delivery kind beside callable and HTTP, and parseFunctionCron (exported by function_contracts.dart) parses its five-field cron expression. A callable or HTTP function that declares schedule or delivery fails 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 in userMessage, with the code in parentheses. providerAlreadyLinked maps to FFXConflictError and linkingBlocked to FFXPermissionDeniedError.
  • Map connectorRefused, a connected service turning the request down, to FFXValidationError with end-user copy of its own.
  • The generator keeps the log name for cloud.log: a model whose plural is log gets the getter <model>Collection (logCollection for a log model) instead of log.

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 FFXDynamicLinksNotConfiguredError and map the dynamicLinks* problem codes, with end-user copy.
  • The generator reserves the Dynamic Links FFX… type names; a dynamicLink model keeps its dynamicLinks getter.

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.
1
likes
150
points
48.8k
downloads

Documentation

API reference

Publisher

verified publisherflutterflow.io

Weekly Downloads

Pure Dart Cloud values, errors and strict function contract codecs.

Repository (GitHub)

License

MIT (license)

More

Packages that depend on flutterflow_cloud_core