Skip to content

Commit

Permalink
Merge branch 'master' into sam/24_11_17/feat/connection-create-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Nov 27, 2024
2 parents fe1f07a + c61780c commit f9a6d73
Show file tree
Hide file tree
Showing 23 changed files with 204 additions and 52 deletions.
54 changes: 54 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,59 @@

All notable changes to this project will be documented in this file.

## [v0.45.1] - 2024-11-27

### Added

- Trigger pre connection deletion script on connection deletion (#3027) by @TBonnin
- *(webapp)* Surface all connection error counts (#3026) by @nalanj
- Add docs for on-events scripts (#3047) by @TBonnin
- *(integrations)* Add support for Tapclicks (#3052) by @hassan254-prog
- *(server)* Add missing fields column for integrations to db (#3045) by @nalanj
- *(ui)* Add missing page titles (#3066) by @bodinsamuel
- *(webhooks)* Send end user on connection creation (#3065) by @bodinsamuel

### Changed

- Clean up errors (#3024) by @bodinsamuel
- Update pull_request_template (#3033) by @TBonnin
- Fix docs redirects (#3055) by @bastienbeurier
- Improve Salesforce API docs (#3058) by @rguldener
- Improve authorization guide (#3064) by @bastienbeurier

### Fixed

- *(getting-started)* Feedback (#3023) by @bodinsamuel
- *(docs)* Plain update (#3029) by @khaliqgant
- *(connect-ui)* Handle two_step, and various (#3030) by @bodinsamuel
- *(connectionConfig)* Ensure user's connectionConfig takes precedence (#3031) by @hassan254-prog
- *(logs)* Correctly logs request headers, redac headers and url, log verification (#3022) by @bodinsamuel
- *(connect-ui)* Enforce session token integrations (#3032) by @bodinsamuel
- *(server)* Update query for counting errors to ensure distinct connections (#3034) by @nalanj
- *(webapp)* Layout bug on app integration settings page (#3038) by @nalanj
- *(jobs)* Execute close only once (#3036) by @TBonnin
- *(connect)* Improve greenhouse support (#3039) by @bodinsamuel
- AcquireTimeoutMillis to equal statement timeout (#3043) by @TBonnin
- Db pool acquireTimeoutMillis cannot be zero (#3046) by @TBonnin
- *(webapp)* Show separate icons for connection error types (#3040) by @nalanj
- *(ui)* Improve endpoints ordering (#3041) by @bodinsamuel
- *(docs)* Docs cleanup (#3051) by @khaliqgant
- *(docs)* Link fixes (#3053) by @khaliqgant
- Not using setInterval for otlp export config refresh (#3056) by @TBonnin
- *(server)* Remove secrets from in app integration api response (#3048) by @nalanj
- *(webapp, server)* Fix custom auth issues (#3042) by @nalanj
- *(integration-templates)* Automated commit updating flows.yaml based on changes in https://github.com/NangoHQ/integration-templates/commit/f3ce0b10745b4b814759f7ff77d7f7fb05e8b043 by Khaliq. Commit message: fix(docusign): fix username (#122) by @github-actions[bot]
- Improve on-events script logs (#3049) by @TBonnin
- *(runner)* Remove setInterval from providers reload (#3057) by @nalanj
- *(docs)* Fix some typos in docs (#3059) by @nalanj
- *(webapp)* Missing delete button (#3061) by @hassan254-prog
- *(runner)* Always truncate errors (#3063) by @bodinsamuel
- *(integration-templates)* Automated commit updating flows.yaml based on changes in https://github.com/NangoHQ/integration-templates/commit/d718b188f9d3e40f2dd1ec269ac9a0de4ec40e09 by Hassan_Wari. Commit message: fix(salesforce): remove last_name as it might not be configured on all salesforce accounts (#124) by @github-actions[bot]
- *(integration-templates)* Automated commit updating flows.yaml based on changes in https://github.com/NangoHQ/integration-templates/commit/6d5d24dd5d972ba7b3653cdbf0f73f89b484b56e by Khaliq. Commit message: fix(sym-links): Add support for symlinked nango.yaml so it stays in sync (#121) by @github-actions[bot]
- *(integration-templates)* Automated commit updating flows.yaml based on changes in https://github.com/NangoHQ/integration-templates/commit/0b4c7696fc1a009c3a3f921639efb80af00bd09f by Khaliq. Commit message: fix(aliases): Fix upload alias (#125) by @github-actions[bot]
- *(authorization)* Authorization url encoding (#3062) by @hassan254-prog
- Missing .js extension (#3070) by @bodinsamuel

## [v0.45.0] - 2024-11-21

### Added
Expand Down Expand Up @@ -2358,6 +2411,7 @@ All notable changes to this project will be documented in this file.
- Update Zendesk Chat configuration file (#161) by @Frenchcooc
- APIs using client_credentials as grant type (#165) by @Frenchcooc

[v0.45.1]: https://github.com/NangoHQ/nango/compare/v0.45.0..v0.45.1
[v0.45.0]: https://github.com/NangoHQ/nango/compare/v0.44.0..v0.45.0
[v0.44.0]: https://github.com/NangoHQ/nango/compare/v0.43.0..v0.44.0
[v0.43.0]: https://github.com/NangoHQ/nango/compare/v0.42.22..v0.43.0
Expand Down
49 changes: 25 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cli/lib/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const NANGO_VERSION = '0.45.0';
export const NANGO_VERSION = '0.45.1';
8 changes: 4 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nango",
"version": "0.45.0",
"version": "0.45.1",
"description": "Nango's CLI tool.",
"type": "module",
"main": "dist/index.js",
Expand All @@ -24,8 +24,8 @@
"@babel/parser": "^7.22.5",
"@babel/traverse": "^7.22.5",
"@babel/types": "^7.22.5",
"@nangohq/nango-yaml": "0.45.0",
"@nangohq/shared": "^0.45.0",
"@nangohq/nango-yaml": "0.45.1",
"@nangohq/shared": "^0.45.1",
"@swc/core": "^1.5.25",
"ajv": "^8.12.0",
"ajv-errors": "^3.0.0",
Expand Down Expand Up @@ -55,7 +55,7 @@
"@babel/core": "^7.22.1",
"@babel/preset-env": "^7.22.4",
"@babel/preset-typescript": "^7.21.5",
"@nangohq/types": "0.45.0",
"@nangohq/types": "0.45.1",
"@types/babel__traverse": "^7.20.1",
"@types/babel-traverse": "^6.25.7",
"@types/commander": "^2.12.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('node:path');
const fs = require('node:fs');
const yaml = require('js-yaml');

exports.up = async function (knex) {
let providers;
const providersPath = path.join(__dirname, '..', '..', '..', 'shared', 'providers.yaml');
try {
providers = yaml.load(fs.readFileSync(providersPath, 'utf8'));
} catch (e) {
console.error(
`Warning: Failed to load providers.yaml. Skipping migration. Missing fields on existing integrations will not show warnings in the dashboard until they are saved again. Underlying error: ${e.message}. `
);
return;
}

const needsClientId = ['OAUTH1', 'OAUTH2', 'TBA', 'APP'];
const clientIdProviders = Object.entries(providers)
.filter(([_, config]) => needsClientId.includes(config.auth_mode))
.map(([name]) => name);
await knex
.queryBuilder()
.from('_nango_configs')
.whereIn('provider', clientIdProviders)
.whereRaw("NOT (missing_fields @> '{oauth_client_id}')")
.update({ missing_fields: knex.raw("array_append(missing_fields, 'oauth_client_id')") });

const needsClientSecret = ['OAUTH1', 'OAUTH2', 'TBA', 'APP'];
const clientSecretProviders = Object.entries(providers)
.filter(([_, config]) => needsClientSecret.includes(config.auth_mode))
.map(([name]) => name);
await knex
.queryBuilder()
.from('_nango_configs')
.whereIn('provider', clientSecretProviders)
.whereRaw("NOT (missing_fields @> '{oauth_client_secret}')")
.update({ missing_fields: knex.raw("array_append(missing_fields, 'oauth_client_secret')") });

const needsAppLink = ['APP'];
const appLinkProviders = Object.entries(providers)
.filter(([_, config]) => needsAppLink.includes(config.auth_mode))
.map(([name]) => name);
await knex
.queryBuilder()
.from('_nango_configs')
.whereIn('provider', appLinkProviders)
.whereRaw("NOT (missing_fields @> '{app_link}')")
.update({ missing_fields: knex.raw("array_append(missing_fields, 'app_link')") });
};

exports.down = function () {
// do nothing
};
1 change: 1 addition & 0 deletions packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"keywords": [],
"dependencies": {
"@nangohq/utils": "file:../utils",
"js-yaml": "4.1.0",
"knex": "3.1.0",
"pg": "8.11.3",
"tarn": "3.0.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nangohq/frontend",
"version": "0.45.0",
"version": "0.45.1",
"description": "Nango's frontend library for OAuth handling.",
"type": "module",
"main": "dist/index.js",
Expand All @@ -15,7 +15,7 @@
"license": "SEE LICENSE IN LICENSE FILE IN GIT REPOSITORY",
"scripts": {},
"devDependencies": {
"@nangohq/types": "0.45.0"
"@nangohq/types": "0.45.1"
},
"files": [
"dist/**/*.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/nango-yaml/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nangohq/nango-yaml",
"version": "0.45.0",
"version": "0.45.1",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand All @@ -17,7 +17,7 @@
"ms": "3.0.0-canary.1"
},
"devDependencies": {
"@nangohq/types": "0.45.0",
"@nangohq/types": "0.45.1",
"vitest": "1.6.0"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/node-client/lib/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const NANGO_VERSION = '0.45.0';
export const NANGO_VERSION = '0.45.1';
Loading

0 comments on commit f9a6d73

Please sign in to comment.