Commit Graph

1647 Commits

Author SHA1 Message Date
Zai Shi
d89a4e3442
Neon domain (#488) 2025-03-04 02:48:38 +01:00
Konstantin Wohlwend
f3f508cbf1 Improve PATCH /users/me performance 2025-03-03 17:03:44 -08:00
devin-ai-integration[bot]
625c0abcb7
Improve documentation with minor enhancements and fixes (#466) 2025-03-03 16:50:07 -08:00
Konstantin Wohlwend
61a27c40ea More spans 2025-03-03 01:15:53 -08:00
Konstantin Wohlwend
672de18418 Add span for decoding access token 2025-03-03 00:03:58 -08:00
Konstantin Wohlwend
3754ee3370 Fix tests 2025-03-02 21:34:49 -08:00
Konsti Wohlwend
5239c10ebf
Split stack-app.ts file into multiple files (#492) 2025-03-02 21:20:42 -08:00
Konstantin Wohlwend
a9b90dfb0a Allow transaction retries in dev mode 2025-03-02 17:57:03 -08:00
Konstantin Wohlwend
3e381bdaee Fix tests 2025-03-02 17:31:33 -08:00
Konstantin Wohlwend
f1c722a6e2 Make 10% of all transactions serializable 2025-03-02 17:15:20 -08:00
Konstantin Wohlwend
b340be49ce Log concurrent requests per process in OpenTelemetry 2025-03-02 16:38:47 -08:00
Konstantin Wohlwend
2ac8cb8542 Add stack.process-id to OpenTelemetry attributes 2025-03-02 16:34:14 -08:00
Konstantin Wohlwend
30e27906ec Include status in result log 2025-03-02 16:31:14 -08:00
Konstantin Wohlwend
042745a4be Log request ID with internal server errors
Some checks failed
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Test / docker (push) Has been cancelled
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests / build (latest) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
Dev Environment Test / test (push) Has been cancelled
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-02-28 16:56:50 -08:00
Konstantin Wohlwend
cbfabe00da Fix typo 2025-02-28 12:03:52 -08:00
Konstantin Wohlwend
9dff23b3cc Disable Vercel auto job cancellation 2025-02-28 12:03:19 -08:00
Konstantin Wohlwend
d77961b96d chore: update package versions
Some checks failed
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Test / docker (push) Has been cancelled
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests / build (latest) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
Mirror main branch to main-mirror-for-wdb / lint_and_build (push) Has been cancelled
Publish Docs / run (push) Has been cancelled
Dev Environment Test / test (push) Has been cancelled
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-02-28 11:55:38 -08:00
Konstantin Wohlwend
0fc6839751 Skip event logs in CI
Some checks failed
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Test / docker (push) Has been cancelled
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests / build (latest) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
Dev Environment Test / test (push) Has been cancelled
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-02-27 22:17:53 -08:00
CactusBlue
6353baa486
Disallow template updates without custom SMTP server (#447)
* add some rudimentary checks

* add some checks on email providers as well

* add warning

* Update apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/emails/page-client.tsx

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>

* added writeFileSyncIfChanged to all the codegen

* JS lib docs (#444)

* fix creator id (#449)

* Added magic link, OTP, and OAuth examples to JS docs (#448)

* fixed syntax error

* Update page-client.tsx (#451)

Co-authored-by: CactusBlue <thecactusblue@gmail.com>

* Add custom pages/contact channel docs (#438)

* add some description about contact channels

* add some examples of password reset

* update the doc

* rename things

* split examples

* remove custom for now

* fix error message

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
Co-authored-by: Zai Shi <zaishi00@outlook.com>

* add warning

* move the check

* add warning popup

* a

* fix more

* remove dead function

* start adding some tests

* add a test case

* moar tests

* fix tests

---------

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Co-authored-by: Zai Shi <zaishi00@outlook.com>
Co-authored-by: Zayd Krunz <70227235+ShrootBuck@users.noreply.github.com>
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-02-27 19:05:27 -08:00
devin-ai-integration[bot]
9a76d10c2a
[DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485)
* Add in-source unit tests to stack-shared utilities

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix type checking and linting issues

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix lint errors in results.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix remaining lint errors in results.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix lint warnings in results.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix wait function mocking in results.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix retry function test in results.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix React.forwardRef mock in react.tsx test

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix trailing spaces in react.tsx and results.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Revert to DependenciesMap and wrap rejected promise in ignoreUnhandledRejection

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix

* Revert changes to known-errors.tsx constructor

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Make rotateRight call rotateLeft per review feedback

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Remove redundant @ts-expect-error directive in known-errors.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix import order in promises.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Fix

* Fix CI failures: add back @ts-expect-error in known-errors.tsx and revert mapResult implementation in results.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Remove unused @ts-expect-error directive in known-errors.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Add back @ts-expect-error directive with explanation in known-errors.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Change @ts-expect-error to @ts-ignore in known-errors.tsx

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* be honest

* vocabulary

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
2025-02-28 01:47:37 +00:00
CactusBlue
8b88c7a258
Add E2E tests for the JS library (#487)
* Add dependency on @stackframe/js to e2e tests

* add more

* add some additional logic for issuing api key

* more

* fix window dependency

* roll it back

* chore: update package versions

* Make Project description field non-nullable (#483)

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Run E2E API tests on Node v22 too

* Run E2E tests on latest Node.js version

* Codegen + macros for SDK docs (#456)

* add extra body

* Add link to Docker image to docs

* Permit signUpWithCredential in non-browser environments

* get the tests running

* remove

* fix

* update the interface

* Update apps/e2e/tests/js/js-helpers.ts

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>

---------

Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Zai Shi <zaishi00@outlook.com>
2025-02-27 16:32:41 -08:00
Konstantin Wohlwend
38c9ddb14e Improve backend integration docs 2025-02-27 16:15:10 -08:00
Konstantin Wohlwend
a052f94976 Permit signUpWithCredential in non-browser environments 2025-02-27 15:29:03 -08:00
Konstantin Wohlwend
c82068288c Add link to Docker image to docs 2025-02-27 14:56:04 -08:00
Zai Shi
427ab34adb
Codegen + macros for SDK docs (#456) 2025-02-27 23:12:30 +01:00
Konstantin Wohlwend
f4db6df342 Run E2E tests on latest Node.js version 2025-02-27 14:06:14 -08:00
Konstantin Wohlwend
93cbf8f7da Run E2E API tests on Node v22 too 2025-02-27 14:05:32 -08:00
devin-ai-integration[bot]
46f388342e
Make Project description field non-nullable (#483)
Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>
2025-02-27 11:32:29 -08:00
Konstantin Wohlwend
0def869ee7 chore: update package versions
Some checks failed
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Test / docker (push) Has been cancelled
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
Mirror main branch to main-mirror-for-wdb / lint_and_build (push) Has been cancelled
Publish Docs / run (push) Has been cancelled
Dev Environment Test / test (push) Has been cancelled
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-02-27 10:50:41 -08:00
CactusBlue
eb618a4596
add timeout for sending test emails (#486) 2025-02-26 18:10:33 -08:00
Zai Shi
da1b95ec3b
React SDK (#462) 2025-02-27 01:55:45 +01:00
devin-ai-integration[bot]
e63d41408d
Add inline unit tests to utility functions in stack-shared (#467)
Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
2025-02-26 16:11:30 -08:00
Konstantin Wohlwend
929c5abace Faster restart-dev-environment 2025-02-26 16:11:02 -08:00
Zai Shi
78121a6d8d support canary versions 2025-02-26 15:40:45 -08:00
devin-ai-integration[bot]
36bd601c35
Add restart-dev-environment script and GitHub action (#474)
Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>
2025-02-26 14:56:53 -08:00
CactusBlue
da22db45bd
Add CLAUDE.md (#479)
* add CLAUDE.md

* update testing guidelines
2025-02-26 14:03:52 -08:00
Konstantin Wohlwend
01014ed901 chore: update package versions 2025-02-26 11:04:13 -08:00
devin-ai-integration[bot]
eec01632b1
Add clean scripts to all packages/apps (#478)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: zai@stack-auth.com <zai@stack-auth.com>
2025-02-26 06:34:11 +01:00
Konsti Wohlwend
ec0ac15c5d
revert (#471) 2025-02-25 16:09:17 -08:00
devin-ai-integration[bot]
2170b1b839
Add hello.txt with Hello World message (#469)
* Add hello.txt with Hello World message

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Add hellostack.txt as requested in PR comments

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
2025-02-25 23:21:11 +00:00
devin-ai-integration[bot]
a1a8fb309b
Convert packages/init-stack to TypeScript (#465)
* Convert packages/init-stack to TypeScript and configure tsup for bundling

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Address PR feedback: remove esbuildPlugins, remove index.mjs, update pnpm-lock.yaml

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Add ESLint configuration to init-stack package

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Remove unnecessary no-restricted-syntax rule from init-stack ESLint config

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Add lint script to init-stack package.json

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

* Remove parserOptions from init-stack ESLint config and add typecheck script

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
2025-02-25 23:02:25 +00:00
CactusBlue
b48172e337
Add cascade to sentEmail (#463)
* add delete cascade

* add cascade to both
2025-02-25 12:14:01 -08:00
Konstantin Wohlwend
06746d8831 No longer log environment variables
Some checks failed
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Test / docker (push) Has been cancelled
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
Mirror main branch to main-mirror-for-wdb / lint_and_build (push) Has been cancelled
Publish Docs / run (push) Has been cancelled
2025-02-21 18:25:08 -08:00
Konstantin Wohlwend
582aadf480 Fix environment variables on the dashboard 2025-02-21 18:22:33 -08:00
Zai Shi
b465dddcee
Fix MS OAuth (#457) 2025-02-21 19:39:22 +01:00
CactusBlue
dfadf809eb
Implement last logged in button (#453)
* store last used in localstorage

* implement last logged in

* add last badge

* move the lastUsed

* add new schema

* wrong branch, roll it back

* rollback prisma

* fix useeffect deps

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-02-21 10:12:28 -08:00
CactusBlue
180b455d4f
Remove global legacy JWT (#450)
* remove all legacy jwt references

* fix creator id (#449)

* update snapshots

* Added magic link, OTP, and OAuth examples to JS docs (#448)

* fixed syntax error

* re-add legacy jwt on prisma schema

---------

Co-authored-by: Zai Shi <zaishi00@outlook.com>
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-02-21 10:10:56 -08:00
CactusBlue
23497e5303
Log emails into database (#455)
* log email send into database

* update the model

* rename models

* properly wrap everything

* migrate

* remove password from logging

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-02-21 10:07:18 -08:00
CactusBlue
1f069ef096
first (#459) 2025-02-21 10:05:08 -08:00
Zai Shi
dbf061fb8e
Fix webhook tests (#458) 2025-02-21 18:55:39 +01:00