diff --git a/.github/workflows/build-images.yaml b/.github/workflows/build-images.yaml index b9f648bf9a..a03ec0400e 100644 --- a/.github/workflows/build-images.yaml +++ b/.github/workflows/build-images.yaml @@ -1,4 +1,4 @@ -name: "[Release] Build service images" +name: '[Release] Build service images' on: push: branches: diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 053161df84..9735719e79 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -35,4 +35,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - npx zx ./scripts/gitrelease.mjs ${{ inputs.version }} ${{ github.head_ref || github.ref_name }} + npx zx ./scripts/gitrelease.mjs "${{ inputs.version }}" "${{ github.head_ref || github.ref_name }}" diff --git a/CHANGELOG.md b/CHANGELOG.md index e3d9ef423c..dd63236841 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,70 @@ All notable changes to this project will be documented in this file. +## [0.39.25] - 2024-05-10 + +### Added + +- *(integrations)* Add support for dialpad (#2082) +- *(debug)* Add more details when pausing temporal schedule (#2139) +- *(sdk)* Add more caching (#2111) + +### Changed + +- Better Result types (#2116) +- *(logs)* POST /logs/search (#2063) +- *(metrics)* [NAN-664] track more usage metrics in datadog (#2136) +- Publish missing main package version in lock (#2138) +- *(release)* 0.39.25 [skip ci] +- *(release)* 0.39.25 [skip ci] + +### Fixed + +- *(release)* Automatic release publishing (#2103) +- *(sdk)* Logging null breaks script (#2140) + +### Removed + +- Remove heroku/render from self-hosted guides (#2110) +- *(server)* Remove list schedules (#2137) + +## [0.39.24] - 2024-05-10 + +### Added + +- *(oauth2cc)* Add authorization request parameters (#2053) +- *(logs)* Add more context data (#2034) +- *(integrations)* Add support for posthog api (#2102) +- *(auth)* Add span and cache 🙈 (#2114) +- *(persist)* Add error details in auth.middleware (#2113) +- *(integrations)* Add support for lessonly api (#2083) +- *(integrations)* Add support for envoy api (#2092) +- *(integration)* Add strava-web-oauth integration (#2118) +- *(integration)* Add Bland.ai (#2098) +- *(integrations)* Add support for pivotaltracker api (#2084) + +### Changed + +- Script to migrate records (#1934) +- No cap (#2104) +- *(integrations)* Add support for wealthbox (#2109) +- *(deps)* Bump ejs from 3.1.9 to 3.1.10 (#2078) + +### Fixed + +- *(persist)* Truncate big logs (#2074) +- *(api)* Handle 404 as json (#2085) +- *(db)* Slow query getSyncs (#2088) +- *(api)* Setup for e2e tests (#2090) +- *(Provider)* Proxy is optional (#2096) +- *(docker)* Set correct platform (#2101) +- *(logs)* Make it completely optional (#2100) +- *(api)* Unified context (#2097) +- Latency and type error (#2112) +- Ensure secret_key_hashed is updated when needed (#2119) +- Set secret_key_hashed when creating environment (#2122) +- Show error details from persist in activity logs (#2129) + ## [0.39.23] - 2024-05-01 ### Added @@ -1007,6 +1071,8 @@ All notable changes to this project will be documented in this file. - Remove Bearer's callback URL (#46) - Remove project link + version (#149) +[0.39.25]: https://github.com/NangoHQ/nango/compare/v0.39.24..0.39.25 +[0.39.24]: https://github.com/NangoHQ/nango/compare/v0.39.23..v0.39.24 [0.39.23]: https://github.com/NangoHQ/nango/compare/v0.39.22..v0.39.23 [0.39.22]: https://github.com/NangoHQ/nango/compare/v0.39.21..v0.39.22 [0.39.21]: https://github.com/NangoHQ/nango/compare/v0.39.20..v0.39.21 diff --git a/package-lock.json b/package-lock.json index da11858c67..2461daf732 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,10 +1,12 @@ { "name": "@nangohq/nango", + "version": "0.39.25", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@nangohq/nango", + "version": "0.39.25", "workspaces": [ "packages/cli", "packages/shared", @@ -47,8 +49,7 @@ }, "engines": { "node": ">=18.0.0 || >=20.0.0" - }, - "version": "0.39.24" + } }, "node_modules/@aashutoshrathi/word-wrap": { "version": "1.2.6", @@ -28966,14 +28967,14 @@ }, "packages/cli": { "name": "nango", - "version": "0.39.24", + "version": "0.39.25", "license": "SEE LICENSE IN LICENSE FILE IN GIT REPOSITORY", "dependencies": { "@babel/parser": "^7.22.5", "@babel/traverse": "^7.22.5", "@babel/types": "^7.22.5", "@inquirer/prompts": "^2.3.0", - "@nangohq/shared": "^0.39.24", + "@nangohq/shared": "^0.39.25", "@vercel/ncc": "^0.36.1", "ajv": "^8.12.0", "ajv-errors": "^3.0.0", @@ -29994,7 +29995,7 @@ }, "packages/frontend": { "name": "@nangohq/frontend", - "version": "0.39.24", + "version": "0.39.25", "license": "SEE LICENSE IN LICENSE FILE IN GIT REPOSITORY" }, "packages/internals": { @@ -30074,7 +30075,7 @@ }, "packages/node-client": { "name": "@nangohq/node", - "version": "0.39.24", + "version": "0.39.25", "license": "SEE LICENSE IN LICENSE FILE IN GIT REPOSITORY", "dependencies": { "axios": "^1.2.0" @@ -30193,7 +30194,7 @@ "@nangohq/logs": "file:../logs", "@nangohq/records": "file:../records", "@nangohq/shared": "file:../shared", - "@nangohq/types": "^0.39.24", + "@nangohq/types": "^0.39.25", "@nangohq/utils": "file:../utils", "@workos-inc/node": "^6.2.0", "axios": "^1.3.4", @@ -30256,7 +30257,7 @@ }, "packages/shared": { "name": "@nangohq/shared", - "version": "0.39.24", + "version": "0.39.25", "bundleDependencies": [ "@nangohq/utils" ], @@ -30265,7 +30266,7 @@ "@aws-sdk/client-s3": "3.348.0", "@datadog/datadog-api-client": "^1.16.0", "@hapi/boom": "^10.0.1", - "@nangohq/node": "^0.39.24", + "@nangohq/node": "^0.39.25", "@nangohq/utils": "file:../utils", "@sentry/node": "^7.106.0", "@temporalio/client": "^1.9.1", @@ -30304,7 +30305,7 @@ "devDependencies": { "@nangohq/logs": "file:../logs", "@nangohq/records": "file:../records", - "@nangohq/types": "^0.39.24", + "@nangohq/types": "^0.39.25", "@octokit/types": "^9.2.1", "@types/amqplib": "^0.8.2", "@types/cors": "^2.8.12", @@ -31382,7 +31383,7 @@ }, "packages/types": { "name": "@nangohq/types", - "version": "0.39.24", + "version": "0.39.25", "license": "SEE LICENSE IN LICENSE FILE IN GIT REPOSITORY" }, "packages/utils": { @@ -31427,9 +31428,9 @@ "@heroicons/react": "2.0.18", "@mantine/core": "6.0.11", "@mantine/prism": "5.10.5", - "@nangohq/frontend": "^0.39.24", + "@nangohq/frontend": "^0.39.25", "@nangohq/server": "file:../server", - "@nangohq/types": "^0.39.24", + "@nangohq/types": "^0.39.25", "@radix-ui/react-icons": "1.3.0", "@sentry/react": "7.83.0", "@tailwindcss/forms": "0.5.3", @@ -32351,6 +32352,5 @@ } } } - }, - "version": "0.39.24" + } } diff --git a/package.json b/package.json index d03d7f1ff7..5ddb893a02 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@nangohq/nango", "type": "module", - "version": "0.39.23", + "version": "0.39.25", "workspaces": [ "packages/cli", "packages/shared", diff --git a/packages/cli/package.json b/packages/cli/package.json index 1db8741b27..d943d2961d 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "nango", - "version": "0.39.24", + "version": "0.39.25", "description": "Nango's CLI tool.", "type": "module", "main": "dist/index.js", @@ -27,7 +27,7 @@ "@babel/traverse": "^7.22.5", "@babel/types": "^7.22.5", "@inquirer/prompts": "^2.3.0", - "@nangohq/shared": "^0.39.24", + "@nangohq/shared": "^0.39.25", "@vercel/ncc": "^0.36.1", "ajv": "^8.12.0", "ajv-errors": "^3.0.0", diff --git a/packages/frontend/package.json b/packages/frontend/package.json index da2bff065e..dc30621fd2 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -1,6 +1,6 @@ { "name": "@nangohq/frontend", - "version": "0.39.24", + "version": "0.39.25", "description": "Nango's frontend library for OAuth handling.", "type": "module", "main": "dist/index.js", diff --git a/packages/node-client/package.json b/packages/node-client/package.json index f9a3519e61..0b0703f512 100644 --- a/packages/node-client/package.json +++ b/packages/node-client/package.json @@ -1,6 +1,6 @@ { "name": "@nangohq/node", - "version": "0.39.24", + "version": "0.39.25", "description": "Nango's Node client.", "type": "module", "main": "dist/index.js", diff --git a/packages/server/package.json b/packages/server/package.json index fe723be338..465449a277 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -27,7 +27,7 @@ "@nangohq/logs": "file:../logs", "@nangohq/records": "file:../records", "@nangohq/shared": "file:../shared", - "@nangohq/types": "^0.39.24", + "@nangohq/types": "^0.39.25", "@nangohq/utils": "file:../utils", "@workos-inc/node": "^6.2.0", "axios": "^1.3.4", diff --git a/packages/shared/package.json b/packages/shared/package.json index 7276102417..74f09213b7 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@nangohq/shared", - "version": "0.39.24", + "version": "0.39.25", "description": "Nango's shared components.", "type": "module", "main": "dist/index.js", @@ -20,7 +20,7 @@ "@aws-sdk/client-s3": "3.348.0", "@datadog/datadog-api-client": "^1.16.0", "@hapi/boom": "^10.0.1", - "@nangohq/node": "^0.39.24", + "@nangohq/node": "^0.39.25", "@nangohq/utils": "file:../utils", "@sentry/node": "^7.106.0", "@temporalio/client": "^1.9.1", @@ -63,7 +63,7 @@ "devDependencies": { "@nangohq/logs": "file:../logs", "@nangohq/records": "file:../records", - "@nangohq/types": "^0.39.24", + "@nangohq/types": "^0.39.25", "@octokit/types": "^9.2.1", "@types/amqplib": "^0.8.2", "@types/cors": "^2.8.12", diff --git a/packages/types/package.json b/packages/types/package.json index 221ac0fa73..dbdc6b6090 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@nangohq/types", - "version": "0.39.24", + "version": "0.39.25", "description": "Types used in Nango applications", "type": "module", "typings": "dist/index.d.ts", diff --git a/packages/webapp/package.json b/packages/webapp/package.json index fa7077adaa..f858f79e9b 100644 --- a/packages/webapp/package.json +++ b/packages/webapp/package.json @@ -33,9 +33,9 @@ "@heroicons/react": "2.0.18", "@mantine/core": "6.0.11", "@mantine/prism": "5.10.5", - "@nangohq/frontend": "^0.39.24", + "@nangohq/frontend": "^0.39.25", "@nangohq/server": "file:../server", - "@nangohq/types": "^0.39.24", + "@nangohq/types": "^0.39.25", "@radix-ui/react-icons": "1.3.0", "@sentry/react": "7.83.0", "@tailwindcss/forms": "0.5.3", diff --git a/scripts/gitrelease.mjs b/scripts/gitrelease.mjs index 36f3dde148..5e8f4978d9 100755 --- a/scripts/gitrelease.mjs +++ b/scripts/gitrelease.mjs @@ -14,10 +14,24 @@ if (tagExists.stdout !== '') { } const releaseMessage = `chore(release): ${nextVersion} [skip ci]`; + +echo`Checkout out branch`; +await $`git fetch origin ${branch}`; +await $`git switch ${branch}`; + +echo`Generating changelog`; await $`npx git-cliff -o CHANGELOG.md -t ${nextVersion}`; + +echo`Adding file`; await $`git add -A package.json package-lock.json packages/**/package.json CHANGELOG.md`; -await $`git commit -am ${releaseMessage} --allow-empty`; -await $`git tag -a ${nextTag} HEAD -m ${releaseMessage}`; + +echo`Creating commit`; +await $`git -c user.name="Release Bot" -c user.email="contact@nango.dev" commit --allow-empty --author="Release Bot " -m ${releaseMessage} `; + +echo`Creating tag`; +await $`git -c user.name="Release Bot" -c user.email="contact@nango.dev" tag -a ${nextTag} HEAD -m ${releaseMessage}`; + +echo`Pushing`; await $`git push --follow-tags origin HEAD:refs/heads/${branch}`; await $`git push --tags`;