Commit Graph

3966 Commits

Author SHA1 Message Date
Matt Aitken 92233f2e90 Core package and move to @latest (#235)
* Changeset should ignore the example projects

* Removed note in Contributing instructions about not adding a changeset for internal

* Renamed @trigger.dev/internal to @trigger.dev/core. Set sdk and internal to be ES2020, so we don’t get errors about private identifiers

* Env vars in nextjs-example use square bracket syntax to avoid Turbo Repo errors

* Set the tsconfigs back for core and sdk

* @examples/nextjs compile error with undefined tasks

* Set the example projects to use ES2015 to avoid private modifier complaints

* package-tester example, which will use built packages

* package-tester package.json

* Created a readme for the package-tester

* Added all the packages to package-tester

* Create .env.local.example and readme instructions

* Added name to the package.json

* Upgraded @types/react and @types/react-dom everywhrre, so we can use server actions

* Upgraded @types/react and @types/react-dom everywhrre, so we can use server actions

* Reworked the react package build, so it generates separate files

* The SDK no longer bundles core

* package-tester setup with a server action and react hooks

* Added new SDK methods with logging

* Working tsup settings for client and server

* Explicit react hooks return types

* Added all the hooks for testing

* Added OpenAI step to the job to check types are still ok in integrations

* Get rid of rogue Changeset ignores

* Changeset: @trigger.dev/core is now a separate package

* Exited prerelease mode, added a changeset

* Changed @next to @latest

* Deleted seed.js, this shouldn’t be committed

* Ignore seed.js

* The webapp was importing @trigger.dev/core with a folder path rather package name…

* More webapp imports instead of @trigger.dev/core were a folder path

* Accidentally edited Stripe internal API url in the comment

* Added “sideEffects”: false so @trigger.dev/core is tree shaken by Remix
2023-07-31 18:47:34 +01:00
Ashutosh Bhadauriya efd590976c Feat: Detect if a Next.js project is running on the specified port before opening a tunnel (#214)
* Feat: Detect nextjs project

* Add check before opening tunnel

* Update dev.ts

* Add changeset
2023-07-31 16:43:44 +01:00
Matt Aitken 463cbed7df Merge pull request #226 from Chigala/feature/multiple-eventname-support
Feature/multiple eventname support in eventDispatcher
2023-07-31 16:14:25 +01:00
Matt Aitken 9138976dad Changeset: Multiple eventname support in eventDispatcher 2023-07-31 16:13:35 +01:00
Matt Aitken ace4d5f6ce Merge pull request #228 from jemiluv8/migration-contribution-guide
chore: add instructions for adding migrations to the project
2023-07-31 16:07:05 +01:00
Matt Aitken b09ecb0b06 Update CONTRIBUTING.md 2023-07-31 16:06:39 +01:00
Matt Aitken 10fef0f667 Improved the migration instructions 2023-07-31 16:06:12 +01:00
Eric Allam 3e5945fb9e Stop storing github access tokens for github authenticated users 2023-07-31 15:41:44 +01:00
Akhil fdf1b2148c feat: added git database tasks for github integration (#204)
* feat: added git database tasks for github integration

* feat: added examples for git database tasks
2023-07-31 09:50:41 +01:00
Eric Allam 7e4d72f959 Made the migration non-destructive and fixed other typechecking issues 2023-07-28 18:19:41 +01:00
Chigala 3e203ea967 Merge branch 'main' into feature/multiple-eventname-support 2023-07-28 17:53:31 +01:00
github-actions[bot] af56598a58 chore: Update version for release (next) (#234)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@trigger.dev/stripe@0.1.0-next.1 @trigger.dev/supabase@0.1.1-next.1 @trigger.dev/openai@1.0.0-next.8
2023-07-28 16:27:36 +01:00
Eric Allam 1fef1fa5f8 Adding native property to get access to underlying client in local auth only integrations 2023-07-28 16:12:41 +01:00
github-actions[bot] bd2f68a51d chore: Update version for release (next) (#233)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@trigger.dev/sdk@2.0.0-next.22
2023-07-28 14:48:57 +01:00
Eric Allam 64477f6b3a @trigger.dev/sdk: Adding some type helpers for getting the payload and IO types from jobs and triggers 2023-07-28 14:42:28 +01:00
Eric Allam 8b09dfd697 Fix pnpm lock file @trigger.dev/sdk@2.0.0-next.21 @trigger.dev/stripe@0.1.0-next.0 2023-07-27 22:14:40 +01:00
github-actions[bot] f330673143 chore: Update version for release (next) (#232)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-27 22:14:06 +01:00
Eric Allam 9351c05126 Initial @trigger.dev/stripe integration, with support for triggers and tasks (#231)
* Initial Stripe integration, with support for triggers and tasks

* Adding stripe integration to the catalog
2023-07-27 22:09:07 +01:00
Matt Aitken af722e54d8 Made the integration items capable of fitting more text 2023-07-27 19:59:20 +01:00
Matt Aitken 1eb89844f4 Added a description to the Supabase Management integration so the differences are obvious 2023-07-27 19:57:03 +01:00
Matt Aitken 004423aea3 Merge pull request #229 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
@trigger.dev/react@1.0.0-next.3
2023-07-27 17:14:03 +01:00
github-actions[bot] 369c6245ab chore: Update version for release (next) 2023-07-27 16:07:50 +00:00
Matt Aitken b8ae937966 TSUP working properly 2023-07-27 17:05:43 +01:00
Matt Aitken 3b510a4f3d Put paths back 2023-07-27 16:30:56 +01:00
Matt Aitken b3e609d53d Experimenting with bundling 2023-07-27 16:10:19 +01:00
Matt Aitken 2f07a792e9 Removed some unused vars 2023-07-27 16:10:05 +01:00
Matt Aitken 078bf2bc9c React package bundling changed 2023-07-27 15:14:01 +01:00
Matt Aitken a7c8f0b90e Merge pull request #227 from triggerdotdev/changeset-release/main
chore: Update version for release (next)
@trigger.dev/react@1.0.0-next.2 @trigger.dev/sdk@2.0.0-next.20
2023-07-27 11:18:56 +01:00
Jemilu Mohammed 495acf4319 modify step 3 of migrations instructions 2023-07-27 10:17:40 +00:00
Jemilu Mohammed dce86119d4 add instructions for adding migrations to the project 2023-07-27 10:14:49 +00:00
github-actions[bot] 2c70b7a360 chore: Update version for release (next) 2023-07-27 10:00:21 +00:00
Matt Aitken c518185947 Merge pull request #221 from triggerdotdev/react-hooks
Get the status of runs and events, using the SDK or @trigger.dev/react hooks
2023-07-27 10:58:37 +01:00
Matt Aitken b314178de2 SDK Changeset: Added getEvent(), getRun() and getRuns() methods to the client 2023-07-27 10:22:52 +01:00
Chigala e0a2cec978 Chore: Modified eventTrigger to accept a string and an array of strings. 2023-07-27 00:09:03 +01:00
Matt Aitken d3608be1a0 Improved the environments help text – it now references server API keys 2023-07-26 22:00:16 +01:00
Matt Aitken 4c79129242 authenticateApiRequest() now returns an object with the apiKey, type and environment 2023-07-26 21:54:20 +01:00
Chigala 8ac83f1d59 added multiple event name support to the eventDispatcher 2023-07-26 21:18:03 +01:00
Matt Aitken 17e6d42989 Removed unused const in RunPresenter 2023-07-26 20:49:09 +01:00
Matt Aitken 0a3bbc1caf Merge remote-tracking branch 'origin/main' into react-hooks
# Conflicts:
#	apps/webapp/app/presenters/RunPresenter.server.ts
#	examples/nextjs-example/src/app/api/trigger/route.ts
#	examples/nextjs-example/tsconfig.json
2023-07-26 20:47:07 +01:00
Matt Aitken 89e1331e49 Better error handling for the job runs endpoint 2023-07-26 18:57:11 +01:00
Matt Aitken d934a53e6d Better error handling for the runs endpoint 2023-07-26 18:57:02 +01:00
Matt Aitken 2398d60b1a Added noExternal for the @trigger.dev/internal package 2023-07-26 18:54:12 +01:00
Matt Aitken 1bd755b628 Example project: Use POST for the test event 2023-07-26 18:52:07 +01:00
Eric Allam 861d5fa1b9 Fixed pnpm lock why does this happen @trigger.dev/resend@1.0.0-next.6 @trigger.dev/sdk@2.0.0-next.19 @trigger.dev/supabase@0.1.1-next.0 2023-07-26 18:22:20 +01:00
github-actions[bot] 0239fc6773 chore: Update version for release (next) (#222)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-26 18:20:42 +01:00
Eric Allam de57592d79 @trigger.dev/resend now retries failed email sends 2023-07-26 18:17:27 +01:00
Eric Allam f70f3a0a5d Fixed doubling of the params option 2023-07-26 18:14:07 +01:00
Matt Aitken 6c96b331dd Event API endpoint safe parsing and better error handling/responses 2023-07-26 18:03:32 +01:00
Eric Allam 767e09ee18 New integration: @trigger.dev/supabase (#203)
* WIP supabase integration

* supabase oauth working

* Supabase database triggers

* Specify postgres:14

* Limit refreshOAuthToken jobs to 10 attempts

* Better displaying types and removing onChange for now

* WIP on the supabase db client

* Finishing the supabase-js integration

* Adding changeset

* Added supabase to the integration catalogs, and added an optional icon to Integrations

* Reworking how we handle types for the triggers (wip)

* Update fully over to the new way to define supabase triggers

* Go back to using the type for the event name

* Add back in the icon to the JobListPresenter since it was moved from the ProjectPresenter

* Remove unused import
2023-07-26 18:01:27 +01:00
Matt Aitken b2f3ade7c7 Renamed Secret API keys to Server API keys 2023-07-26 17:55:34 +01:00