Skip to content

fix(create-twilio-function): fix hello-world template #531

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 24, 2025
Merged

Conversation

AndreLars
Copy link
Contributor

Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

Copy link

changeset-bot bot commented Jan 24, 2025

🦋 Changeset detected

Latest commit: 141da11

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
create-twilio-function Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@AndreLars AndreLars merged commit b18bbec into main Jan 24, 2025
10 checks passed
@AndreLars AndreLars deleted the FRIDGE-2040 branch January 24, 2025 13:53
@github-actions github-actions bot mentioned this pull request Jan 24, 2025
mikefaille added a commit to mikefaille/serverless-toolkit that referenced this pull request Apr 18, 2025
Upgrades core Twilio dependencies to v5.5.2 across the workspace.
Resolves associated type conflicts using peer dependencies.
Includes enhancements for create-twilio-function and twilio-run.

Dependency & Type Alignment:
- Upgraded `twilio` dependency to `5.5.2` in `runtime-handler`.
- Changed `twilio` from a direct dependency to a `peerDependency (^5.5.2)`
  in `serverless-runtime-types` and `twilio-run`.
- This enforces the use of the single root `twilio` instance, resolving
  type identity conflicts (TS2322/TS2352).
- Updated type definitions within `serverless-runtime-types` (`types.d.ts`)
  to align with [email protected], primarily using `ClientOpts`.
- Added compatibility export `ClientOpts as TwilioClientOptions`.
- Updated `@twilio/test-dep` alias to `npm:[email protected]`.
- Added root-level `peerDependency` for `twilio` for workspace checks.

Package Enhancements:
- `create-twilio-function`: Bumped to v3.5.0, updated default dependencies
  (`twilio`, `typescript`, `serverlessRuntimeTypes`), fixed TS template (twilio-labs#531).
- `twilio-run`: fixed `require`->`import` conversion.

Requires a clean install (removing node_modules and lockfile) after merging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants