Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: twilio/twilio-node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 10e7a9b4452a1356469f5454189b99c1b977d54a
Choose a base ref
...
head repository: twilio/twilio-node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2a51f837687f7be5a15ad8a28639312b86d321fd
Choose a head ref

Commits on Oct 14, 2021

  1. Update Axios package (#695)

    Axios 0.21.1 is insecure, see: https://www.cvedetails.com/cve/CVE-2021-3749/
    houmark authored Oct 14, 2021
    Copy the full SHA
    977c814 View commit details
  2. Copy the full SHA
    9d256dd View commit details

Commits on Oct 18, 2021

  1. Copy the full SHA
    3bbfbfd View commit details
  2. Release 3.70.0

    twilio-dx committed Oct 18, 2021
    Copy the full SHA
    7ce31ab View commit details

Commits on Oct 27, 2021

  1. Copy the full SHA
    9c4ee82 View commit details
  2. chore: update test badge

    eshanholtz committed Oct 27, 2021
    Copy the full SHA
    1f0a03f View commit details

Commits on Oct 29, 2021

  1. Copy the full SHA
    345c980 View commit details

Commits on Nov 3, 2021

  1. Copy the full SHA
    b7f0933 View commit details
  2. Release 3.71.0

    twilio-dx committed Nov 3, 2021
    Copy the full SHA
    6fe2771 View commit details
  3. Copy the full SHA
    8839482 View commit details
  4. Copy the full SHA
    e43767e View commit details
  5. Copy the full SHA
    2570d2a View commit details
  6. Copy the full SHA
    ae44939 View commit details
  7. Copy the full SHA
    5d09755 View commit details
  8. Release 3.71.1

    twilio-dx committed Nov 3, 2021
    Copy the full SHA
    a04a68f View commit details
  9. Copy the full SHA
    4879754 View commit details
  10. Copy the full SHA
    770b0a0 View commit details

Commits on Nov 4, 2021

  1. Copy the full SHA
    c3c99e1 View commit details

Commits on Nov 10, 2021

  1. fix: make ttl optional in ClientCapabilityOptions (#707)

    Resolve issue #699 by making ttl optional in ClientCapabilityOptions
    since the constructor doesn't require a value and provides a default.
    ghmeier authored Nov 10, 2021
    Copy the full SHA
    11f728a View commit details

Commits on Nov 17, 2021

  1. Copy the full SHA
    63852de View commit details
  2. Release 3.71.2

    twilio-dx committed Nov 17, 2021
    Copy the full SHA
    624368f View commit details

Commits on Dec 1, 2021

  1. Copy the full SHA
    c95e99a View commit details
  2. Release 3.71.3

    twilio-dx committed Dec 1, 2021
    Copy the full SHA
    21abb2c View commit details

Commits on Dec 13, 2021

  1. feat: run tests before deploying (#712)

    childish-sambino authored Dec 13, 2021
    Copy the full SHA
    cef79e6 View commit details

Commits on Dec 15, 2021

  1. Copy the full SHA
    358384a View commit details
  2. Release 3.72.0

    twilio-dx committed Dec 15, 2021
    Copy the full SHA
    db533d8 View commit details

Commits on Jan 6, 2022

  1. Copy the full SHA
    8314b1b View commit details

Commits on Jan 7, 2022

  1. feat: add GitHub release step during deploy (#720)

    childish-sambino authored Jan 7, 2022
    Copy the full SHA
    7e2c296 View commit details

Commits on Jan 12, 2022

  1. chore: add sonarcloud analysis for twilio-node (#721)

    * chore: add sonarcloud analysis for twilio-node
    Bilal Boussayoud authored Jan 12, 2022
    Copy the full SHA
    4d0b569 View commit details
  2. Copy the full SHA
    fb52d8d View commit details
  3. Release 3.73.0

    twilio-dx committed Jan 12, 2022
    Copy the full SHA
    31c1813 View commit details

Commits on Jan 19, 2022

  1. Copy the full SHA
    83960a6 View commit details

Commits on Jan 26, 2022

  1. Copy the full SHA
    c4bee9e View commit details
  2. Release 3.73.1

    twilio-dx committed Jan 26, 2022
    Copy the full SHA
    871116c View commit details

Commits on Jan 27, 2022

  1. Copy the full SHA
    1a3e3e1 View commit details

Commits on Feb 2, 2022

  1. Copy the full SHA
    c48286c View commit details

Commits on Feb 4, 2022

  1. chore: make Slack message consistent across all repos

    Sam Harrison committed Feb 4, 2022
    Copy the full SHA
    f33ce23 View commit details

Commits on Feb 8, 2022

  1. chore: upgrade supported language versions (#736)

    childish-sambino authored Feb 8, 2022
    Copy the full SHA
    b626084 View commit details

Commits on Feb 9, 2022

  1. Copy the full SHA
    66582e5 View commit details
  2. Release 3.74.0

    twilio-dx committed Feb 9, 2022
    Copy the full SHA
    40fc1f2 View commit details

Commits on Feb 22, 2022

  1. Copy the full SHA
    946b286 View commit details

Commits on Feb 23, 2022

  1. Copy the full SHA
    7645544 View commit details
  2. Release 3.75.0

    twilio-dx committed Feb 23, 2022
    Copy the full SHA
    3dd6140 View commit details

Commits on Feb 28, 2022

  1. Copy the full SHA
    b6dab02 View commit details

Commits on Mar 9, 2022

  1. Copy the full SHA
    ae9e7bf View commit details
  2. Release 3.75.1

    twilio-dx committed Mar 9, 2022
    Copy the full SHA
    8bb3827 View commit details

Commits on Mar 15, 2022

  1. Copy the full SHA
    0dc93fd View commit details

Commits on Mar 21, 2022

  1. Copy the full SHA
    42fd697 View commit details

Commits on Mar 23, 2022

  1. Copy the full SHA
    1fa2e30 View commit details
  2. Release 3.76.0

    twilio-dx committed Mar 23, 2022
    Copy the full SHA
    85e4783 View commit details
Showing 2,138 changed files with 295,910 additions and 556,487 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -117,7 +117,7 @@
],
"quotes": [
2,
"single"
"double"
],
"indent": [
2,
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Feature Request
description: Suggest an idea for twilio-node
title: "[Feature Request]: "
labels: "type: community enhancement"
body:
- type: checkboxes
attributes:
label: Preflight Checklist
description: Please ensure you've completed all of the following.
options:
- label: I have read the [Contributing Guidelines](https://github.com/twilio/twilio-node/blob/main/CONTRIBUTING.md) for this project.
required: true
- label: I agree to follow the [Code of Conduct](https://github.com/twilio/twilio-node/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
required: true
- label: I have searched the [issue tracker](https://github.com/twilio/twilio-node/issues) for a feature request that matches the one I want to file, without success.
required: true
- label: This is not a general Twilio feature request or bug report. It is a feature request for the twilio-node JavaScript package.
required: true
- type: textarea
attributes:
label: Problem Description
description: Please add a clear and concise description of the problem you are seeking to solve with this feature request.
validations:
required: true
- type: textarea
attributes:
label: Proposed Solution
description: Describe the solution you would like in a clear and concise manner.
validations:
required: true
- type: textarea
attributes:
label: Alternatives Considered
description: A clear and concise description of any alternative solutions or features you have considered.
validations:
required: true
- type: textarea
attributes:
label: Additional Information
description: Add any other context about the problem here.
validations:
required: false
21 changes: 21 additions & 0 deletions .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint PR
on:
pull_request_target:
types: [ opened, edited, synchronize, reopened ]

jobs:
validate:
name: Validate title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
with:
types: |
chore
docs
fix
feat
misc
test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122 changes: 122 additions & 0 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
name: Test and Deploy
on:
push:
branches: [ '*' ]
tags: [ '*' ]
pull_request:
branches: [ main ]
schedule:
# Run automatically at 8AM PST Monday-Friday
- cron: '0 15 * * 1-5'
workflow_dispatch:

jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
matrix:
node: [ 14, 16, 18 ]
steps:
- name: Checkout twilio-node
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

- run: npm install
- name: Run Unit Tests
run: npm run ci

- name: Run Cluster Tests
if: (!github.event.pull_request.head.repo.fork)
env:
TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
TWILIO_API_KEY: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY}}
TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
TWILIO_FROM_NUMBER: ${{ secrets.TWILIO_FROM_NUMBER }}
TWILIO_TO_NUMBER: ${{ secrets.TWILIO_TO_NUMBER }}
run: |
npm pack
tar -xzf twilio*.tgz
cd spec/cluster
npm install
npm run test
- name: SonarCloud Scan
if: ${{ (github.event_name == 'pull_request' || github.ref_type == 'branch') && matrix.node == '18' && !github.event.pull_request.head.repo.fork }}
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

deploy:
name: Deploy
if: success() && github.ref_type == 'tag'
needs: [ test ]
runs-on: ubuntu-latest
steps:
- name: Checkout twilio-node
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18

- run: npm install

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_AUTH_TOKEN }}

# The expression strips off the shortest match from the front of the string to yield just the tag name as the output
- name: Get tagged version
run: echo "GITHUB_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Create GitHub Release
uses: sendgrid/dx-automator/actions/release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push image
run: make docker-build && make docker-push

- name: Publish to NPM
run: |
npm config set //registry.npmjs.org/:_authToken ${NODE_AUTH_TOKEN}
npm publish --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Submit metric to Datadog
uses: sendgrid/dx-automator/actions/datadog-release-metric@main
env:
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}

notify-on-failure:
name: Slack notify on failure
if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')
needs: [ test, deploy ]
runs-on: ubuntu-latest
steps:
- uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: failure
SLACK_ICON_EMOJI: ':github:'
SLACK_MESSAGE: ${{ format('Test *{0}*, Deploy *{1}*, {2}/{3}/actions/runs/{4}', needs.test.result, needs.deploy.result, github.server_url, github.repository, github.run_id) }}
SLACK_TITLE: Action Failure - ${{ github.repository }}
SLACK_USERNAME: GitHub Actions
SLACK_MSG_AUTHOR: twilio-dx
SLACK_FOOTER: Posted automatically using GitHub Actions
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
MSG_MINIMAL: true
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Logs ###
### Logs ###
logs
*.log

@@ -14,13 +14,13 @@ pids
node_modules

### Test coverage ###
spec/coverage
coverage

### Custom ignores ###
config.js
.idea

### jsdoc dir ###
### typedoc dir ###
docs

### ide / editors ###
@@ -29,3 +29,6 @@ docs
### Libraries don't need locks files ###
yarn.lock
package-lock.json

**/.openapi-generator*
lib
2 changes: 1 addition & 1 deletion .jshintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
spec/integration/**
lib/**/*.d.ts
lib/**/*
index.d.ts
7 changes: 5 additions & 2 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@
"newcap": true,

// Enforce use of single quotation marks for strings.
"quotmark": "single",
"quotmark": "double",

// Enforce placing 'use strict' at the top function scope
"strict": true,
@@ -61,5 +61,8 @@
*/

// Suppress warnings about == null comparisons.
"eqnull": true
"eqnull": true,

// Supress errors regarding the use of bracket notation over dot notation
"sub": true
}
2 changes: 1 addition & 1 deletion .nycrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"exclude": [
"lib/rest/**/*.js",
"src/rest/**/*.js",
"**/*.spec.js"
],
"reporter": [
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.github
coverage
lib
docs

babel.config.js
*.md
*.json
45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

Loading