Skip to content

fix(deps): update dependency node-appwrite to v32 - #41

Open
renovate-appwrite[bot] wants to merge 1 commit into
masterfrom
renovate/node-appwrite-32.x
Open

renovate-appwrite[bot] wants to merge 1 commit into
masterfrom
renovate/node-appwrite-32.x

Conversation

@renovate-appwrite

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
node-appwrite (source) ^21.1.0 → ^32.0.0 age confidence

Release Notes

appwrite/sdk-for-node (node-appwrite)

v32.0.0

Compare Source

  • Breaking: emailEnabled moved after the new provider params in positional functions.update calls
  • Added: providerComments, providerDeployments and providerStatuses on function and site create and update, and on Function and Site
  • Added: teams.getPhoto, teams.updatePhoto and teams.deletePhoto
  • Added: project OAuth2 settings for Atlassian, Instagram, LINE, Linear, Netlify, Patreon, Railway, Reddit, Roblox, Strava, Vercel, VK and WorkOS

v31.3.0

Compare Source

  • Added: account.createLDAPSession for LDAP sign-in
  • Added: project.updateLDAP and project.createLDAPTest to configure and test a project's LDAP directory, the ProjectLDAPEncryption enum and ldap* fields on Project
  • Added: project.updateOAuth2Naver, the OAuth2Naver model and OAuthProvider.Naver
  • Added: project.deletePasswords to force every user to reset their password
  • Added: sites.updateAnalytics and analyticsEnabled and analyticsPropertyId on Site
  • Added: reason on DomainPrice, set when a domain was not priced for the requested registration type
  • Added: ImageFormat.Auto on Storage.getFilePreview and the avatar endpoints, serving avif or webp when the Accept header supports it
  • Updated: optional params on functions.update accept null
  • Updated: requests send X-Appwrite-Response-Format: 2.7.2

v31.2.0

Compare Source

  • Updated: project.listEnvironments, project.createEnvironment, project.getEnvironment, project.updateEnvironment return Environment models instead of Project
  • Added: account.createDevice, account.getDevice, account.deleteDevice and account.updateDeviceSession, and the Device model
  • Added: project.updateAccountDevicesPolicy, ProjectPolicyId.Accountdevices and the PolicyAccountDevices model
  • Added: project.updateOAuth2Vipps, project.updateOAuth2VippsSandbox and the OAuth2Vipps model
  • Added: OAuthProvider.Vipps and OAuthProvider.VippsSandbox
  • Added: proxy.updateFunctionRule, proxy.updateRedirectRule and proxy.updateSiteRule
  • Added: optional schedule on waf rule create and update methods and on WafRule* models
  • Added: project.getPrefs and project.updatePrefs for project preferences
  • Added: Client.setEnvironment to act in a project environment
  • Added: AppwriteMigrationResource.Projectpreferences to migrate project preferences
  • Added: monitors.read, monitors.write, alerts.read, alerts.write, reviews.read and reviews.write to ProjectKeyScopes
  • Added: Organization.budgetNotify, budgetCritical and educationExpiresAt
  • Added: Project.environmentId, Session.userName and ActivityEvent.reason
  • Added: ProxyRule.expireAt and certificateStatus
  • Updated: requests send response format 2.7.1; README targets Appwrite 2.7.x

v31.1.0

Compare Source

  • Added: Migrations service to run Appwrite, Firebase, NHost, Supabase, CSV and JSON migrations, plus retries and listing
  • Added: AppwriteMigrationResource, FirebaseMigrationResource, NHostMigrationResource, SupabaseMigrationResource and OnDuplicate enums
  • Added: project.updateDenyRealtimeGuestsPolicy, Models.PolicyDenyRealtimeGuests and ProjectPolicyId.Denyrealtimeguests
  • Added: project.deleteSessions to sign out every user in the project
  • Added: BillingPlan.deploymentRetention, deploymentRetentionMax and deploymentsRetentionCount
  • Added: python-3.15, deno-2.9, go-1.27 and rust-1.99 to Runtime and BuildRuntime
  • Updated: requests send X-Appwrite-Response-Format: 2.6.2; README targets Appwrite 2.6.x
  • Updated: redirects are no longer followed; a 3xx throws AppwriteException naming the Location
  • Fixed: path parameters . and .. throw AppwriteException instead of changing the request URL
  • Updated: dev dependencies eslint, typescript-eslint, prettier and @types/node refreshed

v31.0.0

Compare Source

  • Breaking: positional tablesDB, documentsDB and vectorsDB create and update take description before specification
  • Breaking: positional functions.update takes description before emailEnabled
  • Added: createQuery on databases, documentsDB and tablesDB to send list queries in the request body
  • Added: account.listMemberships
  • Added: optional description on create and update for databases, collections, tables, attributes, columns, indexes, buckets, functions, sites, variables, topics, webhooks and keys
  • Added: description on the matching models
  • Added: total on list methods in activities, backups, domains, mongo, mysql and postgresql
  • Added: emails on messaging.createEmail and messaging.updateEmail
  • Added: denyList on project.updatePasswordDictionaryPolicy, updatePasswordPersonalDataPolicy and their policy models
  • Added: BillingPlan.functionsAllowCron
  • Added: stripMetadata on storage.createBucket, updateBucket and the Bucket model
  • Updated: package.json declares engines.node >=20.0.0

v30.0.1

Compare Source

  • Breaking: requests send X-Appwrite-Response-Format: 2.5.0; responses follow the 2.5 shapes
  • Breaking: removed account.listLogs, users.listLogs and the Models.Log/Models.LogList models
  • Breaking: removed organization.createKey, getKey, listKeys, updateKey and deleteKey, and OrganizationKeyScopes; use organization.listProjectKeys, getProjectKey, updateProjectKey and deleteProjectKey instead
  • Breaking: removed Client.setDevKey, Models.DevKey and Project.devKeys
  • Breaking: removed BillingPlanGroup.Starter; use BillingPlanGroup.Free
  • Breaking: listSpecifications returns each specification's prices and overage rates on the row itself. Removed the list-level pricing field and the DedicatedDatabaseSpecificationPricing model
  • Breaking: removed Block fields reason, projectName, region, organizationName, organizationId and billingPlan
  • Breaking: OAuth2 resource params now take string[]
  • Breaking: project.updateOAuth2Kakao takes enabled before prompt
  • Breaking: BackupRestoration.options is now an object
  • Breaking: nullable response fields are typed T | null; some became optional, such as BillingPlan.usage
  • Added: Topic helper to build MQTT topics for push messages
  • Added: mongo, mysql and postgresql promoteRestoration, restoreMode, targetName and autoPromote on createRestoration, and DedicatedDatabaseRestoration.restoreMode
  • Added: proxy.createSMTPRule, the ProxyRuleProtocol enum and ProxyRule.protocol
  • Added: emailEnabled on functions.update and Function, and ExecutionTrigger.Email
  • Added: Query aggregates (count, countDistinct, sum, avg, min, max and more), groupBy, having, distinct, joins, relationship, covers, spatialEquals and page
  • Added: Query.builder() to chain queries into a list
  • Updated: nullable request params accept null, such as qos on topics and the Appwrite provider
  • Updated: missing response fields fall back to their documented defaults
  • Updated: OAuth2 prompt and native fields, PlatformAndroid.fingerprints and Identity.providerIdToken are always returned
  • Fixed: list and object defaults filled into a response are copied per model, and object defaults are {} instead of []

v30.0.0

Compare Source

v29.4.0

Compare Source

  • Added: domains service to manage domains, DNS records, email presets, prices, transfer status and zones
  • Added: waf service with bypass, challenge, deny, rate-limit and redirect rules
  • Added: account.createEmailVerificationOTP, updateEmailVerificationOTP, createRecoveryOTP and updateRecoveryOTP
  • Added: account.createIdTokenSession and Identity.providerIdToken
  • Added: oauth2.introspect
  • Added: project environments with project.createEnvironment, getEnvironment, listEnvironments, updateEnvironment and deleteEnvironment
  • Added: organization.createEphemeralProjectKey, listProjectKeys, getProjectKey, updateProjectKey and deleteProjectKey
  • Added: Kakao, TikTok and Webflow OAuth2 providers with project.updateOAuth2Kakao, updateOAuth2TikTok and updateOAuth2Webflow
  • Added: optional prompt on the Auth0, Discord, GitHub, Microsoft, Okta, Salesforce and Zoho OAuth2 settings, and native client IDs on Apple and Google
  • Added: project.updatePasswordPwnedPolicy, project.updatePasswordRotationPolicy and User.passwordPwned
  • Added: messaging.createAppwriteProvider and messaging.updateAppwriteProvider
  • Added: optional replyToEmail and replyToName on email messages, channelId on push messages, and qos and expiry on topics
  • Added: avatars.updatePhoto and avatars.deletePhoto
  • Added: optional duration on account.createEmailPasswordSession, current on account.deleteSessions, membershipId on teams.createMembership and fingerprints on Android platforms
  • Added: optional total on the locale, transaction, runtime, specification and framework lists
  • Added: dart-3.13 and flutter-3.47 runtimes, the jaspr framework, the trigram index type, auto image gravity, the dedicatedDatabase proxy rule resource type, OTP email templates and new key scopes
  • Added: optional fields on BillingPlan, DedicatedDatabase, DedicatedDatabaseSpecification, Project and Topic, and free and start in BillingPlanGroup

v29.3.1

Compare Source

  • Fixed: added ProjectAuthMethodId.Passkey, so project.updateAuthMethod can enable passkeys
  • Fixed: added ProjectPolicyId.Passkey and the Models.PolicyPasskey model, so getPolicy and listPolicies return the passkey policy

v29.3.0

Compare Source

  • Added: account passkey methods listPasskeys, createPasskey, getPasskey, updatePasskey, deletePasskey and updatePasskeyVerification
  • Added: account.createPasskeyToken and account.updatePasskeyToken for passkey sign-in
  • Added: users.listPasskeys, users.getPasskey, users.updatePasskey and users.deletePasskey
  • Added: project.updatePasskeyPolicy to configure passkey sign-in
  • Added: Passkey, PasskeyList, PasskeyChallenge and TokenSecret models

v29.2.0

Compare Source

  • Added: optional interval parameter on functions.create and functions.update to run a function every N minutes
  • Added: interval on the Function model and functionsIntervalMinimum on the BillingPlan model

v29.1.0

Compare Source

  • Added: optional state parameter on createOAuth2Token, returned unchanged on the success and failure URLs

v29.0.0

Compare Source

  • Stable release of the dedicated database APIs: mysql, postgresql, mongo, documentsDB, and vectorsDB services, previously released as release candidates
  • Breaking: tablesDB.cutoverMigration is renamed to tablesDB.createCutover
  • Breaking: Execution.functionId is replaced by resourceId and resourceType, covering function and site executions
  • Added: Cloudflare, Resend, and Hugging Face OAuth providers
  • Added: usageAggregateOnlyMetrics on the BillingPlan model
  • Fixed: transactionId is accepted again by documentsDB and vectorsDB createDocument and createDocuments
  • Updated: X-Appwrite-Response-Format is now 2.0.0
  • Updated: FrameworkAdapter.fallbackFile is now optional

v28.0.0

Compare Source

  • Breaking: removed account.createJWT; use users.createJWT instead. A leaked JWT could mint further JWTs, letting a credential outlive its own expiry — a session cannot duplicate itself to live forever either
  • Breaking: removed project.createKey. A leaked key could mint further hidden keys, making a compromise far harder to contain and revoke
  • Breaking: activities.listEvents queries now takes an array instead of a string
  • Added: embeddings service with createTextEmbeddings, plus the EmbeddingModel enum
  • Added: TablesDB migration methods listMigrations, createMigration, getMigration, deleteMigration, cutoverMigration, and listOperations
  • Added: proxy.createInvalidation for purging cached edge responses, plus the InvalidationType enum
  • Added: apps.deleteInstallation
  • Added: users.getMFAChallenge and the MfaChallengeSecret model
  • Added: project.updateMFAFactorsPolicy and the PolicyMfaFactors model
  • Added: client.setOrganization for organization-scoped requests
  • Added: folder parameter to storage.createFile
  • Added: syncMode parameter to tablesDB.create and tablesDB.update, and specification to tablesDB.update
  • Added: installationScopes parameter to project.updateOAuth2Server
  • Added: custom authentication factor, node-26 runtime, mfa-factors project policy, and the embeddings.write and proxy.invalidations.write key scopes
  • Updated: response format to 1.9.6

v27.1.0

Compare Source

  • Added: Apps service for managing OAuth2 applications, keys, and installations
  • Added: OAuth2 service with authorize, grant, device authorization, and consent flows
  • Added: account OAuth2 consent methods listConsents, getConsent, deleteConsent, and consent token methods
  • Added: app installation management methods to Organization and Teams services
  • Added: installationAccessTokenDuration parameter to project.updateOAuth2Server
  • Added: token parameter to sites.getDeploymentDownload
  • Added: oauth2.introspect and organization installation key scopes

v27.0.0

Compare Source

  • Breaking: removed Health service, health enums, and health response models
  • Breaking: removed Usage service and UsageEvent/UsageGauge models
  • Breaking: removed messaging listMessageLogs, listProviderLogs, listSubscriberLogs, listTopicLogs methods
  • Added: Organization get, update, delete, and membership CRUD methods
  • Added: Query.vectorCosine, Query.vectorDot, Query.vectorEuclidean vector filters
  • Added: Client.setBearer for OAuth access token authentication
  • Added: updateOAuth2Appwrite and updateDenyCorporateEmailPolicy project methods
  • Added: prompt and maxAge params to updateOAuth2Oidc, defaultScopes to updateOAuth2Server
  • Added: token param to getDeploymentDownload, type to listSpecifications
  • Added: newSpecification param to createRestoration, specification to tablesDB.create
  • Added: BillingPlanGroup, DatabaseStatus, OAuth2OidcPrompt, ProjectOAuth2OidcPrompt enums
  • Added: Appwrite OAuth provider, stages and project.oauth2 key scopes
  • Added: Organization, BillingPlan, OAuth2Appwrite, PolicyDenyCorporateEmail models
  • Fixed: URL-encoded path parameters in organization key/project endpoints
  • Updated: spatial attribute/column xdefault types narrowed to number[]/any[][]

v26.2.0

Compare Source

  • Added: Device Authorization Grant params (verificationUrl, userCodeLength, userCodeFormat, deviceCodeDuration) to updateOAuth2Server
  • Added: authorizationDetailsTypes (RFC 9396) param to updateOAuth2Server in project
  • Added: userAccessedAt param to updateMembershipPrivacyPolicy in project
  • Added: email classification attributes (emailCanonical, emailIsFree, emailIsDisposable, emailIsCorporate, emailIsCanonical) to User
  • Added: userAccessedAt attribute to Membership
  • Added: dedicatedDatabases.execute to ProjectKeyScopes
  • Updated: Replaced HTTP transport with undici for requests and self-signed certs

v26.1.0

Compare Source

  • Added: createSesProvider and updateSesProvider to messaging
  • Added: updateOAuth2Server to project for OAuth2 server settings
  • Added: updatePasswordStrengthPolicy and PolicyPasswordStrength to project
  • Added: getAuditsDB health check to health
  • Added: password-strength to ProjectPolicyId
  • Added: apps.read and apps.write to ProjectKeyScopes

v26.0.0

Compare Source

  • Breaking: Removed generic type parameters from presences service methods
  • Breaking: Removed githubImagine and googleImagine from ProjectOAuthProviderId
  • Breaking: Removed deno-1.21, deno-1.24, and deno-1.35 from Runtime and BuildRuntime
  • Breaking: Dropped numeric suffixes from StatusCode redirect members
  • Added: Organization service for managing projects and API keys
  • Added: PolicyDenyAliasedEmail, PolicyDenyDisposableEmail, and PolicyDenyFreeEmail policy models
  • Added: deny-aliased-email, deny-disposable-email, and deny-free-email to ProjectPolicyId
  • Replaced: BrowserTheme, HealthQueueName, OrganizationKeyScopes, and Region enums
  • Added: dart-3.12 and flutter-3.44 runtimes
  • Added: ProjectList model and new attributes on Function, Site, and UsageGauge
  • Updated: functions, sites, usage, health, and avatars services
  • Updated: Renamed updatePresence to update in the presences service

v25.2.0

Compare Source

What's Changed

Full Changelog: appwrite/sdk-for-node@25.1.0...25.2.0

v25.1.0

Compare Source

What's Changed

  • Added sizeActual property to file model for actual stored size after compression
  • Added Deno121, Deno124, and Deno135 runtime options to BuildRuntime and Runtime enums
  • Updated advisor authentication examples to use API key instead of session
  • Updated billing limits properties to be optional in project models

Full Changelog: appwrite/sdk-for-node@25.0.0...25.1.0

v25.0.0

Compare Source

  • Breaking: Renamed AuthMethod enum to ProjectAuthMethodId
  • Breaking: Renamed EmailTemplateType to ProjectEmailTemplateId and EmailTemplateLocale to ProjectEmailTemplateLocale
  • Breaking: Renamed ServiceId to ProjectServiceId, ProtocolId to ProjectProtocolId, Secure to ProjectSMTPSecure, ProjectPolicy to ProjectPolicyId
  • Breaking: Replaced Scopes enum with ProjectKeyScopes for project key endpoints
  • Breaking: Removed updateDenyCanonicalEmailPolicy; replaced with updateDenyAliasedEmailPolicy, updateDenyDisposableEmailPolicy, and updateDenyFreeEmailPolicy
  • Breaking: Removed AuthProvider model; use new ProjectOAuthProviderId enum instead
  • Added: Project.get method to fetch current project details
  • Added: Advisor, Presences, and Usage services
  • Added: Insight, Presence, Report, UsageEvent, and UsageGauge models with list variants
  • Added: ProjectAuthMethod, ProjectProtocol, and ProjectService models
  • Added: ProjectOAuthProviderId and ProjectOAuth2GooglePrompt enums
  • Updated: Project, Database, and OAuth2Google model schemas
  • Updated: X-Appwrite-Response-Format header to 1.9.5

v24.1.0

Compare Source

  • Added: Introduced bigint create/update APIs for legacy Databases attributes
  • Added: Introduced bigint create/update APIs for TablesDB columns
  • Updated: Extended key-list query filters with key, resourceType, resourceId, and secret

v24.0.0

Compare Source

  • [BREAKING] Renamed Webhook model fields: security → tls, httpUser → authUsername, httpPass → authPassword, signatureKey → secret
  • [BREAKING] Renamed Webhook service parameters to match: security → tls, httpUser → authUsername, httpPass → authPassword
  • [BREAKING] Renamed Webhooks.updateSignature() to Webhooks.updateSecret() with new optional secret parameter
  • Added Client.getHeaders() method to retrieve request headers
  • Added secret parameter to Webhook create and update methods
  • Added x OAuth provider to OAuthProvider enum
  • Added userType field to Log model
  • Added purge parameter to updateCollection and updateTable for cache invalidation
  • Added Project service: platform CRUD, key CRUD, protocol/service status management
  • Added new models: Key, KeyList, Project, DevKey, MockNumber, AuthProvider, PlatformAndroid, PlatformApple, PlatformLinux, PlatformList, PlatformWeb, PlatformWindows, BillingLimits, Block
  • Added new enums: PlatformType, ProtocolId, ServiceId
  • Updated BuildRuntime, Runtime enums with dart-3.11 and flutter-3.41
  • Updated Scopes enum with keysRead, keysWrite, platformsRead, platformsWrite
  • Updated X-Appwrite-Response-Format header to 1.9.1
  • Updated TTL description for list caching in Databases and TablesDB

v23.1.0

Compare Source

  • Added: Added getHeaders() method to Client to expose current request headers
  • Added: Added package-lock.json to track dependency lockfile in version control
  • Updated: Improved MFA authenticator test data with realistic TOTP secret and URI values

v23.0.0

Compare Source

  • [BREAKING] Changed $sequence type from number to string for Row and Document models
  • [BREAKING] Renamed IndexType enum: split into DatabasesIndexType (with new Spatial value) and TablesDBIndexType
  • [BREAKING] Replaced specification parameter with buildSpecification and runtimeSpecification in Functions.create(), Functions.update(), Sites.create(), Sites.update()
  • Added new Project service with full CRUD for project-level environment variables
  • Added new Webhooks service with full CRUD for project webhooks (including updateSignature)
  • Added Users.updateImpersonator() method for enabling/disabling user impersonation
  • Added impersonation support: setImpersonateUserId(), setImpersonateUserEmail(), setImpersonateUserPhone() on Client
  • Added impersonator and impersonatorUserId optional fields to User model
  • Added deploymentRetention parameter to Functions and Sites create/update
  • Added startCommand parameter to Sites create/update
  • Added Webhook and WebhookList models
  • Added Documentsdb, Vectorsdb values to BackupServices and DatabaseType enums
  • Added WebhooksRead, WebhooksWrite, ProjectRead, ProjectWrite scopes
  • Added custom toString() on response data using JSONbig.stringify for BigInt support
  • Removed getQueueBillingProjectAggregation, getQueueBillingTeamAggregation, getQueuePriorityBuilds, getQueueRegionManager, getQueueThreats from Health service
  • Updated Log model field descriptions to clarify impersonation behavior
  • Updated X-Appwrite-Response-Format header to 1.9.0

v22.1.3

Compare Source

What's Changed

Release version 22.1.3

Full Changelog: appwrite/sdk-for-node@22.1.2...22.1.3

v22.1.2

Compare Source

  • Fix very large double values (for example 1.7976931348623157e+308) from being expanded into giant integer literals

v22.1.1

Compare Source

  • Removed unused BigNumber import from src/client.ts to clean up dependencies
  • Updated documentation examples to include the new encrypt option for text-like attributes (encrypt: false) across multiple examples
  • Updated README to specify Appwrite server compatibility with 1.8.x
  • Repo cleanup: removed obsolete GitHub workflow and issue template files as part of repository cleanup (non-breaking)

v22.1.0

Compare Source

What's Changed

Full Changelog: appwrite/sdk-for-node@22.0.0...22.1.0

v22.0.0

Compare Source

  • Add array-based enum parameters (e.g., permissions: BrowserPermission[]).
  • Breaking change: Output enum has been removed; use ImageFormat instead.
  • Add getQueueAudits support to Health service.
  • Add longtext/mediumtext/text/varchar attribute and column helpers to Databases and TablesDB services.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Only on Monday (* * * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@appwrite

appwrite Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Code review

Commit Status Tier Verdict Details
e0d89b4 Reviewed Reviewed 🟡 B · Needs changes before merging 🛑 Changes requested View review

The SDK upgrade breaks the remaining IndexType call sites, and the documented Docker path uses a Node version below the new SDK requirement.

This updates the direct node-appwrite dependency from ^21.1.0 to ^32.0.0 and refreshes the npm lockfile with the SDK's JSON and HTTP transport dependencies. The new SDK declares Node.js 20 or newer as its runtime requirement.

Findings (2)
Finding Where
🟠 The upgrade removes IndexType, which the playground still uses package-lock.json:88
🟡 The new SDK requirement conflicts with the Docker image's Node 16 package-lock.json:97
Fix with agent prompt
### Issue 1
package-lock.json:88
**The upgrade removes `IndexType`, which the playground still uses**

The SDK's v23 release renamed `IndexType` to `DatabasesIndexType` and `TablesDBIndexType`; this v32 upgrade therefore leaves `IndexType` undefined. `src/app.js:1` imports it, and `src/app.js:137` and `:925` access `IndexType.Key`, so `runAllTasks()` throws when it first creates an index and never reaches the remaining examples.

### Issue 2
package-lock.json:97
**The new SDK requirement conflicts with the Docker image's Node 16**

This SDK now requires Node.js >=20, but `Dockerfile:1` still uses `node:16.0-alpine`; the README documents Docker as a supported way to run the playground. That path will run the SDK outside its declared runtime support and can fail on SDK calls; please align the image with the new requirement or retain a compatible SDK version.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Walkthrough (2)
File Change
package.json Raises the node-appwrite dependency range to v32.
package-lock.json Locks node-appwrite v32 and its new transitive dependencies and engine requirement.

Reviewed e0d89b4

Tip

Comment @appwrite review to re-run, or mention @appwrite with a question.

@appwrite appwrite Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Tier B · 1 blocking finding to address. Summary

Comment thread package-lock.json
"version": "21.1.0",
"resolved": "https://registry.npmjs.org/node-appwrite/-/node-appwrite-21.1.0.tgz",
"integrity": "sha512-HRK5BzN19vgvaH/EeNsigK24t4ngJ1AoiltK5JtahxP6uyMRztzkD8cXP+z9jj/xOjz7ySfQ9YypNyhNr6zVkA==",
"version": "32.0.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The upgrade removes IndexType, which the playground still uses

The SDK's v23 release renamed IndexType to DatabasesIndexType and TablesDBIndexType; this v32 upgrade therefore leaves IndexType undefined. src/app.js:1 imports it, and src/app.js:137 and :925 access IndexType.Key, so runAllTasks() throws when it first creates an index and never reaches the remaining examples.

Prompt To Fix With AI
This is a comment left during a code review.
Path: package-lock.json
Line: 88

Comment:
**The upgrade removes `IndexType`, which the playground still uses**

The SDK's v23 release renamed `IndexType` to `DatabasesIndexType` and `TablesDBIndexType`; this v32 upgrade therefore leaves `IndexType` undefined. `src/app.js:1` imports it, and `src/app.js:137` and `:925` access `IndexType.Key`, so `runAllTasks()` throws when it first creates an index and never reaches the remaining examples.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

🟠 Major · bug · Reply if this doesn't apply.

Comment thread package-lock.json
"undici": "^6.27.0"
},
"engines": {
"node": ">=20.0.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new SDK requirement conflicts with the Docker image's Node 16

This SDK now requires Node.js >=20, but Dockerfile:1 still uses node:16.0-alpine; the README documents Docker as a supported way to run the playground. That path will run the SDK outside its declared runtime support and can fail on SDK calls; please align the image with the new requirement or retain a compatible SDK version.

Prompt To Fix With AI
This is a comment left during a code review.
Path: package-lock.json
Line: 97

Comment:
**The new SDK requirement conflicts with the Docker image's Node 16**

This SDK now requires Node.js >=20, but `Dockerfile:1` still uses `node:16.0-alpine`; the README documents Docker as a supported way to run the playground. That path will run the SDK outside its declared runtime support and can fail on SDK calls; please align the image with the new requirement or retain a compatible SDK version.

---

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants