github twentyhq/twenty sdk/v2.66.0

latest release: twenty/v2.66.2
one hour ago

Three breaking changes ship here. runConnectionChecks(applicationId) is replaced by connectionChecks(connectionProviderId) — update callers and drop any front-end result atoms you managed. FeatureFlagKey.IS_GETTING_STARTED_ENABLED is removed. OAuth client secrets are no longer in logic function process.env.

The main new capability is an app events system. defineEvent() declares typed events in your manifest; logic functions emit them, and eventTriggerSetting on defineLogicFunction subscribes to them. Agents and workflows can subscribe too.

defineApplication gains allowedOutboundHosts to restrict where logic functions connect. Connection providers can now declare a per-connection health check logic function. Route pages on application custom domains now carry a real origin, unblocking Stripe.js and similar browser SDKs.

⚠️ Breaking changes

  • FeatureFlagKey.IS_GETTING_STARTED_ENABLED is removed; delete any references to it — the getting-started flow is now always on. (#31570) by @etiennejouan
  • OAuth client secrets are no longer injected into logic function process.env; any code reading them there will find undefined — this is a breaking security fix. (#31818) by @FelixMalfait
  • runConnectionChecks(applicationId) mutation replaced by connectionChecks(connectionProviderId) query; update callers to pass a provider ID and remove any front-end result or in-flight atoms you managed. (#31936) by @FelixMalfait

🌟 Highlights

  • Breaking: runConnectionChecks(applicationId) mutation replaced by connectionChecks(connectionProviderId) query — update callers and drop front-end result atoms you managed yourself. (#31936)
  • Breaking: OAuth client secrets are no longer injected into logic function process.env; code reading them there will now find undefined. (#31818)
  • Breaking: FeatureFlagKey.IS_GETTING_STARTED_ENABLED is removed — delete any references in your code. (#31570)
  • New defineEvent() lets apps declare typed events in their manifest and emit them from logic functions; use eventTriggerSetting on defineLogicFunction to subscribe (see also #31745). (#31515)
  • defineApplication gains allowedOutboundHosts; list every hostname your logic functions connect to or outbound requests will be blocked. (#31838)
  • Route pages on validated application custom domains now carry a real origin, unblocking browser SDKs (Stripe.js, etc.) that refuse to initialise without window.location.origin. (#31621)

✨ New features

  • MessagingProviderManifest gains startConversationLogicFunctionUniversalIdentifier; point it at a logic function to let members start a new conversation with a Person from their record. (#29868) by @martmull
  • New defineEvent() export from twenty-sdk; use it to declare app events with a JSON schema and emit them from logic functions. (#31515) by @martmull
  • Route pages on a validated application custom domain now carry a real origin; browser SDKs that require window.location.origin (e.g. Stripe.js) will now initialise correctly. (#31621) by @prastoin
  • New setApplicationPrimaryPublicDomain(applicationId, publicDomainId) mutation; call it to control which custom domain TWENTY_FUNCTIONS_URL resolves to when multiple domains are registered. (#31713) by @prastoin
  • defineLogicFunction gains eventTriggerSetting; subscribe a logic function to an app event declared with defineEvent() — the same event can also trigger agents and workspace workflows. (#31745) by @martmull
  • defineConnectionProvider gains optional checkConnectionLogicFunctionUniversalIdentifier; point it at a logic function returning CheckConnectionResult (now exported from twenty-sdk/logic-function) to surface per-connection health banners. (#31804) by @FelixMalfait
  • IS_BETWEEN added to ViewFilterOperand, RowLevelPermissionPredicateOperand, and CoreWorkflowFilterOperand for DATE and DATE_TIME fields; pass a stringified {"start":"YYYY-MM-DD","end":"YYYY-MM-DD"} as the value. (#31817) by @FelixMalfait
  • defineApplication gains allowedOutboundHosts; provide lowercase hostnames or *.domain wildcards for every host your logic functions connect to — undeclared hosts are blocked. (#31838) by @FelixMalfait

🐛 Bug fixes

  • The CLI now reads the OS certificate trust store; HTTPS endpoints covered by an enterprise root CA are no longer reported as unreachable. (#31705) by @FelixMalfait
  • Dropdown.Section nested inside a non-scrollable parent no longer doubles its padding from 4 px to 8 px. (#31825) by @Bonapara
  • OverflowingList (chips, phones, emails, multi-select cells) no longer flickers or freezes when chip widths sum to exactly the container width. (#31839) by @thomtrp

⚡ Performance

  • Apps importing twenty-ui/primitives/data-display no longer pull in zod; front component bundles shrink if they had no other zod dependency. (#31706) by @ehconitin

🔧 Developer & API

  • twenty app init scaffolded apps now declare react and react-dom/client as shared dependencies, so front components no longer bundle their own React. (#31681) by @bosiraphael
  • twenty app apply now waits for all deferred workspace operations before returning; CI teardown scripts that call app uninstall immediately after no longer need retry loops. (#31848) by @charlesBochet
🏗️ Internal changes (4)
Full changelog (22 PRs)
  • Start a new conversation with a Person through an app messaging provider (LinkedIn) (#29868) by @martmull
  • Show chat details in the composer context card (#31444) by @Bonapara
  • Let apps declare events and emit them from logic functions (#31515) by @martmull
  • chore(onboarding): remove the IS_GETTING_STARTED_ENABLED flag and the book-call onboarding step [BREAKING_CHANGE] (#31570) by @etiennejouan
  • Serve route pages with a real origin on validated application domains (#31621) by @prastoin
  • Share React by default in new apps (#31681) by @bosiraphael
  • fix(cli): trust system certificate authorities (#31705) by @FelixMalfait
  • Keep zod out of app bundles that use twenty-ui data-display (#31706) by @ehconitin
  • Let members choose an application's primary custom domain (#31713) by @prastoin
  • chore: bump version to 2.66.0 (#31717) by @twenty-pr
  • Deliver app events to logic functions, agents and workflows (#31745) by @martmull
  • Let connection providers declare a per-connection check (#31804) by @FelixMalfait
  • Add an "Is between" operand for date filters (#31817) by @FelixMalfait
  • Keep OAuth client secrets out of logic function environments (#31818) by @FelixMalfait
  • [Add item menu 1/2] Remove nested section padding (#31825) by @Bonapara
  • Restrict logic function outbound traffic to the hosts an app declares (#31838) by @FelixMalfait
  • Fix OverflowingList flicker loop on sub-pixel widths (#31839) by @thomtrp
  • [ask-cards 2/4] Show question options as numbered list items (#31843) by @Bonapara
  • Make app apply wait for its deferred operations and refuse uninstall before any side effect (#31848) by @charlesBochet
  • Add split view as a way to open records (#31887) by @bosiraphael
  • [BREAKING_CHANGE] Check a provider's connections in one query and show one banner per provider (#31936) by @FelixMalfait
  • Add the dashboard filters feature flag (#31986) by @ehconitin

Full Changelog: sdk/v2.65.0...sdk/v2.66.0

Don't miss a new twenty release

NewReleases is sending notifications on new releases.