Repository navigation
fix(deps): update dependency node-appwrite to v31 - autoclosed - #150
renovate-appwrite[bot] wants to merge 1 commit into
Conversation
Code review
Updates the server-side Note Not approving while a bug finding is open: node-appwrite 31 removes the Database constructor Findings (1)
Fix with agent prompt### Issue 1
package-lock.json:545
**node-appwrite 31 removes the Database constructor**
The new SDK exports `Databases`, not `Database`, so the checked-in `helpers/setup.js` throws `TypeError: sdk.Database is not a constructor` at line 11 before creating its collection (`node helpers/setup.js` reproduces this). Please migrate that helper to the current service/API along with the dependency bump.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Walkthrough (2)
Reviewed Tip Comment |
51638a5 to
878f675
Compare
878f675 to
ccc4ebd
Compare
| "version": "14.0.0", | ||
| "resolved": "https://registry.npmjs.org/node-appwrite/-/node-appwrite-14.0.0.tgz", | ||
| "integrity": "sha512-pPynEAmhep1rNHpv2UqsZfM7FbtDX7y+nRRZS/IP5CMDznMu8PBqzFD2WbbQIvVCv3MEDRY5xpXbPfyxbysCPQ==", | ||
| "version": "31.3.0", |
There was a problem hiding this comment.
node-appwrite 31 removes the Database constructor
The new SDK exports Databases, not Database, so the checked-in helpers/setup.js throws TypeError: sdk.Database is not a constructor at line 11 before creating its collection (node helpers/setup.js reproduces this). Please migrate that helper to the current service/API along with the dependency bump.
Prompt To Fix With AI
This is a comment left during a code review.
Path: package-lock.json
Line: 545
Comment:
**node-appwrite 31 removes the Database constructor**
The new SDK exports `Databases`, not `Database`, so the checked-in `helpers/setup.js` throws `TypeError: sdk.Database is not a constructor` at line 11 before creating its collection (`node helpers/setup.js` reproduces this). Please migrate that helper to the current service/API along with the dependency bump.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.🟡 Minor · bug · Reply if this doesn't apply.

This PR contains the following updates:
14.0.0→31.3.0Release Notes
appwrite/sdk-for-node (node-appwrite)
v31.3.0Compare Source
account.createLDAPSessionfor LDAP sign-inproject.updateLDAPandproject.createLDAPTestto configure and test a project's LDAP directory, theProjectLDAPEncryptionenum andldap*fields onProjectproject.updateOAuth2Naver, theOAuth2Navermodel andOAuthProvider.Naverproject.deletePasswordsto force every user to reset their passwordsites.updateAnalyticsandanalyticsEnabledandanalyticsPropertyIdonSitereasononDomainPrice, set when a domain was not priced for the requested registration typeImageFormat.AutoonStorage.getFilePreviewand the avatar endpoints, serving avif or webp when theAcceptheader supports itfunctions.updateacceptnullX-Appwrite-Response-Format: 2.7.2v31.2.0Compare Source
project.listEnvironments,project.createEnvironment,project.getEnvironment,project.updateEnvironmentreturnEnvironmentmodels instead ofProjectaccount.createDevice,account.getDevice,account.deleteDeviceandaccount.updateDeviceSession, and theDevicemodelproject.updateAccountDevicesPolicy,ProjectPolicyId.Accountdevicesand thePolicyAccountDevicesmodelproject.updateOAuth2Vipps,project.updateOAuth2VippsSandboxand theOAuth2VippsmodelOAuthProvider.VippsandOAuthProvider.VippsSandboxproxy.updateFunctionRule,proxy.updateRedirectRuleandproxy.updateSiteRulescheduleonwafrule create and update methods and onWafRule*modelsproject.getPrefsandproject.updatePrefsfor project preferencesClient.setEnvironmentto act in a project environmentAppwriteMigrationResource.Projectpreferencesto migrate project preferencesmonitors.read,monitors.write,alerts.read,alerts.write,reviews.readandreviews.writetoProjectKeyScopesOrganization.budgetNotify,budgetCriticalandeducationExpiresAtProject.environmentId,Session.userNameandActivityEvent.reasonProxyRule.expireAtandcertificateStatus2.7.1; README targets Appwrite 2.7.xv31.1.0Compare Source
Migrationsservice to run Appwrite, Firebase, NHost, Supabase, CSV and JSON migrations, plus retries and listingAppwriteMigrationResource,FirebaseMigrationResource,NHostMigrationResource,SupabaseMigrationResourceandOnDuplicateenumsproject.updateDenyRealtimeGuestsPolicy,Models.PolicyDenyRealtimeGuestsandProjectPolicyId.Denyrealtimeguestsproject.deleteSessionsto sign out every user in the projectBillingPlan.deploymentRetention,deploymentRetentionMaxanddeploymentsRetentionCountpython-3.15,deno-2.9,go-1.27andrust-1.99toRuntimeandBuildRuntimeX-Appwrite-Response-Format: 2.6.2; README targets Appwrite 2.6.xAppwriteExceptionnaming theLocation.and..throwAppwriteExceptioninstead of changing the request URLeslint,typescript-eslint,prettierand@types/noderefreshedv31.0.0Compare Source
tablesDB,documentsDBandvectorsDBcreateandupdatetakedescriptionbeforespecificationfunctions.updatetakesdescriptionbeforeemailEnabledcreateQueryondatabases,documentsDBandtablesDBto send list queries in the request bodyaccount.listMembershipsdescriptionon create and update for databases, collections, tables, attributes, columns, indexes, buckets, functions, sites, variables, topics, webhooks and keysdescriptionon the matching modelstotalon list methods inactivities,backups,domains,mongo,mysqlandpostgresqlemailsonmessaging.createEmailandmessaging.updateEmaildenyListonproject.updatePasswordDictionaryPolicy,updatePasswordPersonalDataPolicyand their policy modelsBillingPlan.functionsAllowCronstripMetadataonstorage.createBucket,updateBucketand theBucketmodelpackage.jsondeclaresengines.node>=20.0.0v30.0.1Compare Source
X-Appwrite-Response-Format: 2.5.0; responses follow the 2.5 shapesaccount.listLogs,users.listLogsand theModels.Log/Models.LogListmodelsorganization.createKey,getKey,listKeys,updateKeyanddeleteKey, andOrganizationKeyScopes; useorganization.listProjectKeys,getProjectKey,updateProjectKeyanddeleteProjectKeyinsteadClient.setDevKey,Models.DevKeyandProject.devKeysBillingPlanGroup.Starter; useBillingPlanGroup.FreelistSpecificationsreturns each specification's prices and overage rates on the row itself. Removed the list-levelpricingfield and theDedicatedDatabaseSpecificationPricingmodelBlockfieldsreason,projectName,region,organizationName,organizationIdandbillingPlanresourceparams now takestring[]project.updateOAuth2KakaotakesenabledbeforepromptBackupRestoration.optionsis now an objectT | null; some became optional, such asBillingPlan.usageTopichelper to build MQTT topics for push messagesmongo,mysqlandpostgresqlpromoteRestoration,restoreMode,targetNameandautoPromoteoncreateRestoration, andDedicatedDatabaseRestoration.restoreModeproxy.createSMTPRule, theProxyRuleProtocolenum andProxyRule.protocolemailEnabledonfunctions.updateandFunction, andExecutionTrigger.EmailQueryaggregates (count,countDistinct,sum,avg,min,maxand more),groupBy,having,distinct, joins,relationship,covers,spatialEqualsandpageQuery.builder()to chain queries into a listnull, such asqoson topics and the Appwrite providerpromptand native fields,PlatformAndroid.fingerprintsandIdentity.providerIdTokenare always returned{}instead of[]v30.0.0Compare Source
v29.4.0Compare Source
domainsservice to manage domains, DNS records, email presets, prices, transfer status and zoneswafservice with bypass, challenge, deny, rate-limit and redirect rulesaccount.createEmailVerificationOTP,updateEmailVerificationOTP,createRecoveryOTPandupdateRecoveryOTPaccount.createIdTokenSessionandIdentity.providerIdTokenoauth2.introspectproject.createEnvironment,getEnvironment,listEnvironments,updateEnvironmentanddeleteEnvironmentorganization.createEphemeralProjectKey,listProjectKeys,getProjectKey,updateProjectKeyanddeleteProjectKeyproject.updateOAuth2Kakao,updateOAuth2TikTokandupdateOAuth2Webflowprompton the Auth0, Discord, GitHub, Microsoft, Okta, Salesforce and Zoho OAuth2 settings, and native client IDs on Apple and Googleproject.updatePasswordPwnedPolicy,project.updatePasswordRotationPolicyandUser.passwordPwnedmessaging.createAppwriteProviderandmessaging.updateAppwriteProviderreplyToEmailandreplyToNameon email messages,channelIdon push messages, andqosandexpiryon topicsavatars.updatePhotoandavatars.deletePhotodurationonaccount.createEmailPasswordSession,currentonaccount.deleteSessions,membershipIdonteams.createMembershipandfingerprintson Android platformstotalon the locale, transaction, runtime, specification and framework listsdart-3.13andflutter-3.47runtimes, thejasprframework, thetrigramindex type,autoimage gravity, thededicatedDatabaseproxy rule resource type, OTP email templates and new key scopesBillingPlan,DedicatedDatabase,DedicatedDatabaseSpecification,ProjectandTopic, andfreeandstartinBillingPlanGroupv29.3.1Compare Source
ProjectAuthMethodId.Passkey, soproject.updateAuthMethodcan enable passkeysProjectPolicyId.Passkeyand theModels.PolicyPasskeymodel, sogetPolicyandlistPoliciesreturn the passkey policyv29.3.0Compare Source
accountpasskey methodslistPasskeys,createPasskey,getPasskey,updatePasskey,deletePasskeyandupdatePasskeyVerificationaccount.createPasskeyTokenandaccount.updatePasskeyTokenfor passkey sign-inusers.listPasskeys,users.getPasskey,users.updatePasskeyandusers.deletePasskeyproject.updatePasskeyPolicyto configure passkey sign-inPasskey,PasskeyList,PasskeyChallengeandTokenSecretmodelsv29.2.0Compare Source
intervalparameter onfunctions.createandfunctions.updateto run a function every N minutesintervalon theFunctionmodel andfunctionsIntervalMinimumon theBillingPlanmodelv29.1.0Compare Source
stateparameter oncreateOAuth2Token, returned unchanged on the success and failure URLsv29.0.0Compare Source
mysql,postgresql,mongo,documentsDB, andvectorsDBservices, previously released as release candidatestablesDB.cutoverMigrationis renamed totablesDB.createCutoverExecution.functionIdis replaced byresourceIdandresourceType, covering function and site executionsusageAggregateOnlyMetricson theBillingPlanmodeltransactionIdis accepted again bydocumentsDBandvectorsDBcreateDocumentandcreateDocumentsX-Appwrite-Response-Formatis now2.0.0FrameworkAdapter.fallbackFileis now optionalv28.0.0Compare Source
account.createJWT; useusers.createJWTinstead. A leaked JWT could mint further JWTs, letting a credential outlive its own expiry — a session cannot duplicate itself to live forever eitherproject.createKey. A leaked key could mint further hidden keys, making a compromise far harder to contain and revokeactivities.listEventsqueriesnow takes an array instead of a stringembeddingsservice withcreateTextEmbeddings, plus theEmbeddingModelenumlistMigrations,createMigration,getMigration,deleteMigration,cutoverMigration, andlistOperationsproxy.createInvalidationfor purging cached edge responses, plus theInvalidationTypeenumapps.deleteInstallationusers.getMFAChallengeand theMfaChallengeSecretmodelproject.updateMFAFactorsPolicyand thePolicyMfaFactorsmodelclient.setOrganizationfor organization-scoped requestsfolderparameter tostorage.createFilesyncModeparameter totablesDB.createandtablesDB.update, andspecificationtotablesDB.updateinstallationScopesparameter toproject.updateOAuth2Servercustomauthentication factor,node-26runtime,mfa-factorsproject policy, and theembeddings.writeandproxy.invalidations.writekey scopes1.9.6v27.1.0Compare Source
Appsservice for managing OAuth2 applications, keys, and installationsOAuth2service with authorize, grant, device authorization, and consent flowslistConsents,getConsent,deleteConsent, and consent token methodsOrganizationandTeamsservicesinstallationAccessTokenDurationparameter toproject.updateOAuth2Servertokenparameter tosites.getDeploymentDownloadoauth2.introspectand organization installation key scopesv27.0.0Compare Source
Healthservice, health enums, and health response modelsUsageservice andUsageEvent/UsageGaugemodelslistMessageLogs,listProviderLogs,listSubscriberLogs,listTopicLogsmethodsOrganizationget,update,delete, and membership CRUD methodsQuery.vectorCosine,Query.vectorDot,Query.vectorEuclideanvector filtersClient.setBearerfor OAuth access token authenticationupdateOAuth2AppwriteandupdateDenyCorporateEmailPolicyproject methodspromptandmaxAgeparams toupdateOAuth2Oidc,defaultScopestoupdateOAuth2Servertokenparam togetDeploymentDownload,typetolistSpecificationsnewSpecificationparam tocreateRestoration,specificationtotablesDB.createBillingPlanGroup,DatabaseStatus,OAuth2OidcPrompt,ProjectOAuth2OidcPromptenumsAppwriteOAuth provider,stagesandproject.oauth2key scopesOrganization,BillingPlan,OAuth2Appwrite,PolicyDenyCorporateEmailmodelsxdefaulttypes narrowed tonumber[]/any[][]v26.2.0Compare Source
verificationUrl,userCodeLength,userCodeFormat,deviceCodeDuration) toupdateOAuth2ServerauthorizationDetailsTypes(RFC 9396) param toupdateOAuth2ServerinprojectuserAccessedAtparam toupdateMembershipPrivacyPolicyinprojectemailCanonical,emailIsFree,emailIsDisposable,emailIsCorporate,emailIsCanonical) toUseruserAccessedAtattribute toMembershipdedicatedDatabases.executetoProjectKeyScopesundicifor requests and self-signed certsv26.1.0Compare Source
createSesProviderandupdateSesProvidertomessagingupdateOAuth2Servertoprojectfor OAuth2 server settingsupdatePasswordStrengthPolicyandPolicyPasswordStrengthtoprojectgetAuditsDBhealth check tohealthpassword-strengthtoProjectPolicyIdapps.readandapps.writetoProjectKeyScopesv26.0.0Compare Source
presencesservice methodsgithubImagineandgoogleImaginefromProjectOAuthProviderIddeno-1.21,deno-1.24, anddeno-1.35fromRuntimeandBuildRuntimeStatusCoderedirect membersOrganizationservice for managing projects and API keysPolicyDenyAliasedEmail,PolicyDenyDisposableEmail, andPolicyDenyFreeEmailpolicy modelsdeny-aliased-email,deny-disposable-email, anddeny-free-emailtoProjectPolicyIdBrowserTheme,HealthQueueName,OrganizationKeyScopes, andRegionenumsdart-3.12andflutter-3.44runtimesProjectListmodel and new attributes onFunction,Site, andUsageGaugefunctions,sites,usage,health, andavatarsservicesupdatePresencetoupdatein thepresencesservicev25.2.0Compare Source
What's Changed
Full Changelog: appwrite/sdk-for-node@25.1.0...25.2.0
v25.1.0Compare Source
What's Changed
sizeActualproperty to file model for actual stored size after compressionDeno121,Deno124, andDeno135runtime options toBuildRuntimeandRuntimeenumsFull Changelog: appwrite/sdk-for-node@25.0.0...25.1.0
v25.0.0Compare Source
AuthMethodenum toProjectAuthMethodIdEmailTemplateTypetoProjectEmailTemplateIdandEmailTemplateLocaletoProjectEmailTemplateLocaleServiceIdtoProjectServiceId,ProtocolIdtoProjectProtocolId,SecuretoProjectSMTPSecure,ProjectPolicytoProjectPolicyIdScopesenum withProjectKeyScopesfor project key endpointsupdateDenyCanonicalEmailPolicy; replaced withupdateDenyAliasedEmailPolicy,updateDenyDisposableEmailPolicy, andupdateDenyFreeEmailPolicyAuthProvidermodel; use newProjectOAuthProviderIdenum insteadProject.getmethod to fetch current project detailsAdvisor,Presences, andUsageservicesInsight,Presence,Report,UsageEvent, andUsageGaugemodels with list variantsProjectAuthMethod,ProjectProtocol, andProjectServicemodelsProjectOAuthProviderIdandProjectOAuth2GooglePromptenumsProject,Database, andOAuth2Googlemodel schemasX-Appwrite-Response-Formatheader to1.9.5v24.1.0Compare Source
bigintcreate/update APIs for legacy Databases attributesbigintcreate/update APIs forTablesDBcolumnskey,resourceType,resourceId, andsecretv24.0.0Compare Source
security→tls,httpUser→authUsername,httpPass→authPassword,signatureKey→secretsecurity→tls,httpUser→authUsername,httpPass→authPasswordWebhooks.updateSignature()toWebhooks.updateSecret()with new optionalsecretparameterClient.getHeaders()method to retrieve request headerssecretparameter to Webhook create and update methodsxOAuth provider toOAuthProviderenumuserTypefield toLogmodelpurgeparameter toupdateCollectionandupdateTablefor cache invalidationKey,KeyList,Project,DevKey,MockNumber,AuthProvider,PlatformAndroid,PlatformApple,PlatformLinux,PlatformList,PlatformWeb,PlatformWindows,BillingLimits,BlockPlatformType,ProtocolId,ServiceIdBuildRuntime,Runtimeenums withdart-3.11andflutter-3.41Scopesenum withkeysRead,keysWrite,platformsRead,platformsWriteX-Appwrite-Response-Formatheader to1.9.1v23.1.0Compare Source
getHeaders()method toClientto expose current request headerspackage-lock.jsonto track dependency lockfile in version controlv23.0.0Compare Source
$sequencetype fromnumbertostringforRowandDocumentmodelsIndexTypeenum: split intoDatabasesIndexType(with newSpatialvalue) andTablesDBIndexTypespecificationparameter withbuildSpecificationandruntimeSpecificationinFunctions.create(),Functions.update(),Sites.create(),Sites.update()Projectservice with full CRUD for project-level environment variablesWebhooksservice with full CRUD for project webhooks (includingupdateSignature)Users.updateImpersonator()method for enabling/disabling user impersonationsetImpersonateUserId(),setImpersonateUserEmail(),setImpersonateUserPhone()onClientimpersonatorandimpersonatorUserIdoptional fields toUsermodeldeploymentRetentionparameter to Functions and Sites create/updatestartCommandparameter to Sites create/updateWebhookandWebhookListmodelsDocumentsdb,Vectorsdbvalues toBackupServicesandDatabaseTypeenumsWebhooksRead,WebhooksWrite,ProjectRead,ProjectWritescopestoString()on response data usingJSONbig.stringifyfor BigInt supportgetQueueBillingProjectAggregation,getQueueBillingTeamAggregation,getQueuePriorityBuilds,getQueueRegionManager,getQueueThreatsfromHealthserviceLogmodel field descriptions to clarify impersonation behaviorX-Appwrite-Response-Formatheader to1.9.0v22.1.3Compare Source
What's Changed
Release version 22.1.3
Full Changelog: appwrite/sdk-for-node@22.1.2...22.1.3
v22.1.2Compare Source
v22.1.1Compare Source
v22.1.0Compare Source
What's Changed
Full Changelog: appwrite/sdk-for-node@22.0.0...22.1.0
v22.0.0Compare Source
permissions: BrowserPermission[]).Outputenum has been removed; useImageFormatinstead.getQueueAuditssupport toHealthservice.DatabasesandTablesDBservices.v21.1.0Compare Source
v21.0.0Compare Source
VCSDeploymentTypeenum toVCSReferenceTypecreateTemplateDeploymentmethod signature: replaceversionparameter withtype(TemplateReferenceType) andreferenceparametersgetScreenshotmethod toAvatarsserviceTheme,TimezoneandOutputenumsv20.3.0Compare Source
totalparameter to list queries allowing skipping counting rows in a table for improved performanceOperatorclass for atomic modification of rows via update, bulk update, upsert, and bulk upsert operationscreateResendProviderandupdateResendProvidermethods toMessagingservicev20.2.1Compare Source
v20.1.0Compare Source
createVerificationmethod inAccountservicecreateEmailVerificationmethod inAccountservicev20.0.0Compare Source
What's Changed
Full Changelog: appwrite/sdk-for-node@19.1.0...20.0.0
v19.1.0Compare Source
What's Changed
orderRandomquery support by @abnegate in #123Full Changelog: appwrite/sdk-for-node@19.0.0...19.1.0
v19.0.0Compare Source
What's Changed
CreditCardenum valueUnionChinaPaytoUnionPayFull Changelog: appwrite/sdk-for-node@18.0.0...19.0.0
v18.0.0Compare Source
What's Changed
Features
Before (positional parameters):
After (object parameters):
TablesDBservice with standardized conventions likecreateRow,createColumnetc. Learn MorenotContains,notSearch,notBetweenetc.Improvements
Databaseservice and its methodsFull Changelog: appwrite/sdk-for-node@17.2.0...18.0.0
v17.2.0Compare Source
incrementDocumentAttributeanddecrementDocumentAttributesupport toDatabasesserviceDocumentmodel even when generic is passedv17.1.0Compare Source
upsertDocumentmethoddart-3.8andflutter-3.32runtimesgifimage formatv17.0.0Compare Source
REGIONto doc examples due to the new multi region endpointscreateDocuments,deleteDocumentsetc.SitesserviceTokensserviceBuildRuntime,Adapter,Framework,DeploymentDownloadTypeandVCSDeploymentTyperuntimeswith Pythonml312, Dart219, Flutter327 and Flutter329tokenparam togetFilePreviewandgetFileViewfor File tokens usagequeriesandsearchparams tolistMembershipsmethodsearchparam fromlistExecutionsmethodv16.0.0Compare Source
updateFloatAttributeandupdateIntegerAttributemethods (changes their positioning in method definition)v15.0.1Compare Source
AppwriteExceptionresponse is always stringv15.0.0Compare Source
v14.2.0Compare Source
v14.1.0Compare Source
Configuration
📅 Schedule: (UTC)
* * * * 1)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.