| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
chore(lint): move import sorting to Prettier (#6582) ## Problem We're replacing ESLint with oxlint (NAN-5769). oxlint has no `import/order` equivalent — its maintainers deliberately defer import sorting to the formatter — so import ordering needs a new home before the linter swap. ## Solution Move import ordering to Prettier via `@ianvs/prettier-plugin-sort-imports`, configured to replicate the existing `import/order` grouping exactly: builtins → external → `@nangohq/*` → `@/*` + relative → type imports, blank lines between groups, alphabetised within. The `import/order` rule (and its now-pointless migrations override) is removed from the ESLint config. Doing this first — while ESLint still runs — means the change is verifiable in isolation: format-on-save behaviour is identical for developers, and CI's existing `prettier --check` + ESLint both still gate it. Two commits: - `chore(lint): move import sorting to Prettier` — the plugin + config (this is the one to actually review) - `style: sort imports across the codebase` — the mechanical 489-file reformat (skim only; import order changes only, no logic) Part of NAN-5769. Sub-issue: NAN-5808. ## Testing - `eslint . --quiet` passes clean (exit 0) on the reformatted code - Reformat is purely mechanical — only import grouping/order changed - Spot-checked plugin output against the old `import/order` grouping; identical | 3 个月前 | |
feat(functions): support for http trigger (#7250) Functions with http trigger can now compile, be deployed and executed. `debounce` and `subscriptions` support for http trigger is not yet enabled. The shape of trigger is now zod validated. Once this PR land and CLI released, it would be possible to write, deploy and execute action-like functions Example of function that can be run: ```ts import { createFunction } from 'nango/experimental'; import * as z from 'zod'; export default createFunction({ description: '10x', trigger: { kind: 'http', }, input: z.object({ n: z.number(), }), output: z.object({ tenTimes: z.number(), }), exec: async (nango, trigger) => { nango.setLogger({ level: 'debug' }); await nango.log('Hello World!'); await nango.log('Trigger: ' + JSON.stringify(trigger)); const tenTimes = trigger.input.n * 10 await nango.log('Result: ' + tenTimes); return { tenTimes } } }); ``` <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/NangoHQ/nango/pull/7250?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. --> | 1 个月前 | |
[NAN-697] load a script from a directory that is the provider config (#1995) ## Describe your changes Allow nested directories to be used in a nango-integrations directory. There will be follow ups to update the `init` command and also add a migrate command. Allows for ``` nango-integrations/ ├── nango.yaml └── hubspot/ ├── syncs/ │ └── contacts.ts └── actions/ └── create-contact.ts ``` and is backwards compatible. ## Issue ticket number and link NAN-697 ## Checklist before requesting a review (skip if just adding/editing APIs & templates) - [x] I added tests, otherwise the reason is: - [ ] I added observability, otherwise the reason is: - [ ] I added analytics, otherwise the reason is: | 2 年前 | |
[NAN-697] load a script from a directory that is the provider config (#1995) ## Describe your changes Allow nested directories to be used in a nango-integrations directory. There will be follow ups to update the `init` command and also add a migrate command. Allows for ``` nango-integrations/ ├── nango.yaml └── hubspot/ ├── syncs/ │ └── contacts.ts └── actions/ └── create-contact.ts ``` and is backwards compatible. ## Issue ticket number and link NAN-697 ## Checklist before requesting a review (skip if just adding/editing APIs & templates) - [x] I added tests, otherwise the reason is: - [ ] I added observability, otherwise the reason is: - [ ] I added analytics, otherwise the reason is: | 2 年前 | |
[NAN-697] load a script from a directory that is the provider config (#1995) ## Describe your changes Allow nested directories to be used in a nango-integrations directory. There will be follow ups to update the `init` command and also add a migrate command. Allows for ``` nango-integrations/ ├── nango.yaml └── hubspot/ ├── syncs/ │ └── contacts.ts └── actions/ └── create-contact.ts ``` and is backwards compatible. ## Issue ticket number and link NAN-697 ## Checklist before requesting a review (skip if just adding/editing APIs & templates) - [x] I added tests, otherwise the reason is: - [ ] I added observability, otherwise the reason is: - [ ] I added analytics, otherwise the reason is: | 2 年前 | |
[NAN-697] load a script from a directory that is the provider config (#1995) ## Describe your changes Allow nested directories to be used in a nango-integrations directory. There will be follow ups to update the `init` command and also add a migrate command. Allows for ``` nango-integrations/ ├── nango.yaml └── hubspot/ ├── syncs/ │ └── contacts.ts └── actions/ └── create-contact.ts ``` and is backwards compatible. ## Issue ticket number and link NAN-697 ## Checklist before requesting a review (skip if just adding/editing APIs & templates) - [x] I added tests, otherwise the reason is: - [ ] I added observability, otherwise the reason is: - [ ] I added analytics, otherwise the reason is: | 2 年前 | |
[NAN-697] load a script from a directory that is the provider config (#1995) ## Describe your changes Allow nested directories to be used in a nango-integrations directory. There will be follow ups to update the `init` command and also add a migrate command. Allows for ``` nango-integrations/ ├── nango.yaml └── hubspot/ ├── syncs/ │ └── contacts.ts └── actions/ └── create-contact.ts ``` and is backwards compatible. ## Issue ticket number and link NAN-697 ## Checklist before requesting a review (skip if just adding/editing APIs & templates) - [x] I added tests, otherwise the reason is: - [ ] I added observability, otherwise the reason is: - [ ] I added analytics, otherwise the reason is: | 2 年前 | |
[NAN-697] load a script from a directory that is the provider config (#1995) ## Describe your changes Allow nested directories to be used in a nango-integrations directory. There will be follow ups to update the `init` command and also add a migrate command. Allows for ``` nango-integrations/ ├── nango.yaml └── hubspot/ ├── syncs/ │ └── contacts.ts └── actions/ └── create-contact.ts ``` and is backwards compatible. ## Issue ticket number and link NAN-697 ## Checklist before requesting a review (skip if just adding/editing APIs & templates) - [x] I added tests, otherwise the reason is: - [ ] I added observability, otherwise the reason is: - [ ] I added analytics, otherwise the reason is: | 2 年前 | |
[NAN-697] load a script from a directory that is the provider config (#1995) ## Describe your changes Allow nested directories to be used in a nango-integrations directory. There will be follow ups to update the `init` command and also add a migrate command. Allows for ``` nango-integrations/ ├── nango.yaml └── hubspot/ ├── syncs/ │ └── contacts.ts └── actions/ └── create-contact.ts ``` and is backwards compatible. ## Issue ticket number and link NAN-697 ## Checklist before requesting a review (skip if just adding/editing APIs & templates) - [x] I added tests, otherwise the reason is: - [ ] I added observability, otherwise the reason is: - [ ] I added analytics, otherwise the reason is: | 2 年前 | |
[NAN-697] load a script from a directory that is the provider config (#1995) ## Describe your changes Allow nested directories to be used in a nango-integrations directory. There will be follow ups to update the `init` command and also add a migrate command. Allows for ``` nango-integrations/ ├── nango.yaml └── hubspot/ ├── syncs/ │ └── contacts.ts └── actions/ └── create-contact.ts ``` and is backwards compatible. ## Issue ticket number and link NAN-697 ## Checklist before requesting a review (skip if just adding/editing APIs & templates) - [x] I added tests, otherwise the reason is: - [ ] I added observability, otherwise the reason is: - [ ] I added analytics, otherwise the reason is: | 2 年前 | |
fix(eslint): pass #11 (#2058) ## Describe your changes Continue to fix eslint rules, adding strict-type-checked found a lot of errors just about everywhere. Most of them are autofixed but I fixed some manually. | 2 年前 | |
[NAN-697] load a script from a directory that is the provider config (#1995) ## Describe your changes Allow nested directories to be used in a nango-integrations directory. There will be follow ups to update the `init` command and also add a migrate command. Allows for ``` nango-integrations/ ├── nango.yaml └── hubspot/ ├── syncs/ │ └── contacts.ts └── actions/ └── create-contact.ts ``` and is backwards compatible. ## Issue ticket number and link NAN-697 ## Checklist before requesting a review (skip if just adding/editing APIs & templates) - [x] I added tests, otherwise the reason is: - [ ] I added observability, otherwise the reason is: - [ ] I added analytics, otherwise the reason is: | 2 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 3 个月前 | ||
| 1 个月前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 |