diff --git a/.github/assets/logo.png b/.github/assets/logo.png index 0ba1cf944..d7112e209 100644 Binary files a/.github/assets/logo.png and b/.github/assets/logo.png differ diff --git a/.github/workflows/e2e-api-tests.yaml b/.github/workflows/e2e-api-tests.yaml index 5e314fa76..40f018031 100644 --- a/.github/workflows/e2e-api-tests.yaml +++ b/.github/workflows/e2e-api-tests.yaml @@ -65,9 +65,6 @@ jobs: - name: Create .env.test.local file for examples/supabase run: cp examples/supabase/.env.development examples/supabase/.env.test.local - - - name: Create .env.test.local file for packages/stack-proxy - run: cp packages/stack-proxy/.env.development packages/stack-proxy/.env.test.local - name: Build run: pnpm build diff --git a/.github/workflows/lint-and-build.yaml b/.github/workflows/lint-and-build.yaml index a72c46d9f..778421b90 100644 --- a/.github/workflows/lint-and-build.yaml +++ b/.github/workflows/lint-and-build.yaml @@ -64,9 +64,6 @@ jobs: - name: Create .env.production.local file for examples/supabase run: cp examples/supabase/.env.development examples/supabase/.env.production.local - - name: Create .env.production.local file for packages/stack-proxy - run: cp packages/stack-proxy/.env.development packages/stack-proxy/.env.production.local - - name: Build run: pnpm build diff --git a/.github/workflows/preview-docs.yaml b/.github/workflows/preview-docs.yaml index e362b4d06..1507212c5 100644 --- a/.github/workflows/preview-docs.yaml +++ b/.github/workflows/preview-docs.yaml @@ -54,9 +54,6 @@ jobs: - name: Create .env.production.local file for examples/supabase run: cp examples/supabase/.env.development examples/supabase/.env.production.local - - name: Create .env.production.local file for packages/stack-proxy - run: cp packages/stack-proxy/.env.development packages/stack-proxy/.env.production.local - - name: Build run: pnpm build diff --git a/.github/workflows/publish-docs.yaml b/.github/workflows/publish-docs.yaml index 39212ece7..2cb4cd48b 100644 --- a/.github/workflows/publish-docs.yaml +++ b/.github/workflows/publish-docs.yaml @@ -71,9 +71,6 @@ jobs: - name: Create .env.production.local file for examples/supabase run: cp examples/supabase/.env.development examples/supabase/.env.production.local - - - name: Create .env.production.local file for packages/stack-proxy - run: cp packages/stack-proxy/.env.development packages/stack-proxy/.env.production.local - name: Build run: pnpm build diff --git a/.github/workflows/table-of-contents.yaml b/.github/workflows/table-of-contents.yaml index 484dde25a..8e0959e88 100644 --- a/.github/workflows/table-of-contents.yaml +++ b/.github/workflows/table-of-contents.yaml @@ -10,3 +10,4 @@ jobs: - uses: technote-space/toc-generator@v4 with: TOC_TITLE: "" + TARGET_PATHS: "README*.md,CONTRIBUTING.md" diff --git a/.vscode/settings.json b/.vscode/settings.json index 8894f4951..4ff4cd924 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -62,5 +62,10 @@ "source.organizeImports": "explicit" } }, - "terminal.integrated.wordSeparators": " (){}',\"`─‘’“”|" + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit" + }, + "terminal.integrated.wordSeparators": " (){}',\"`─‘’“”|", + "editor.formatOnSave": false, + "prettier.enable": false } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2d0817059..a28fac8ca 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,6 +4,18 @@ Welcome to Stack Auth! Due to the nature of authentication, this may not be the easiest project to contribute to, so if you are looking for projects to help gain programming experience, we may not be a great match. If you're looking for projects for beginners, check out [Awesome First PR Opportunities](https://github.com/MunGell/awesome-for-beginners). +## Table of contents + + + + +- [How to contribute](#how-to-contribute) +- [Security & bug bounties](#security--bug-bounties) +- [Before creating a pull request](#before-creating-a-pull-request) + + + + ## How to contribute If you think Stack Auth is a good fit for you, follow these steps: diff --git a/README.md b/README.md index 0c56ba150..b0e324b48 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ We support Next.js frontends, along with any backend that can use our [REST API] - [🏗 Development & Contribution](#-development--contribution) - [Requirements](#requirements) - [Setup](#setup) + - [Development environment port mapping](#development-environment-port-mapping) - [Database migrations](#database-migrations) - [Chat with the codebase](#chat-with-the-codebase) - [Architecture overview](#architecture-overview) @@ -52,6 +53,8 @@ If you answered "no" to any of these questions, then that's how Stack Auth is di ## ✨ Features +To get notified first when we add new features, please subscribe to [our newsletter](https://stack-auth.beehiiv.com/subscribe). + | | | |-|:-:| |
{props.displayName.slice(0,1).toUpperCase()}
@@ -28,12 +28,12 @@ export function ProjectSwitcher(props: { currentProjectId: string }) { return (Authenticated: Yes
-Display Name: {{displayName}}
- - - -This is a protected page, only authenticated users can access it
" - ); - res.send(protectedTemplate()); -}); - -app.listen(PORT, () => { - console.log(`Server is running on http://localhost:${PORT}`); -}); diff --git a/examples/middleware/CHANGELOG.md b/examples/middleware/CHANGELOG.md index 0c59bf6cd..0302e3e83 100644 --- a/examples/middleware/CHANGELOG.md +++ b/examples/middleware/CHANGELOG.md @@ -1,4 +1,66 @@ -# middleware-demo +# @stackframe/example-middleware-demo + +## 2.6.11 + +### Patch Changes + +- fixed account settings bugs +- Updated dependencies + - @stackframe/stack@2.6.11 + +## 2.6.10 + +### Patch Changes + +- Various bugfixes +- Updated dependencies + - @stackframe/stack@2.6.10 + +## 2.6.9 + +### Patch Changes + +- - New contact channel API + - Fixed some visual gitches and typos + - Bug fixes +- Updated dependencies + - @stackframe/stack@2.6.9 + +## 2.6.8 + +### Patch Changes + +- @stackframe/stack@2.6.8 + +## 2.6.7 + +### Patch Changes + +- Updated dependencies + - @stackframe/stack@2.6.7 + +## 2.6.6 + +### Patch Changes + +- Updated dependencies + - @stackframe/stack@2.6.6 + +## 2.6.5 + +### Patch Changes + +- Minor improvements +- Updated dependencies + - @stackframe/stack@2.6.5 + +## 2.6.4 + +### Patch Changes + +- fixed small problems +- Updated dependencies + - @stackframe/stack@2.6.4 ## 2.6.3 diff --git a/examples/middleware/package.json b/examples/middleware/package.json index 638dbc9df..68e7885d2 100644 --- a/examples/middleware/package.json +++ b/examples/middleware/package.json @@ -1,6 +1,6 @@ { "name": "@stackframe/example-middleware-demo", - "version": "2.6.3", + "version": "2.6.11", "private": true, "scripts": { "dev": "next dev --port 8112", diff --git a/examples/partial-prerendering/CHANGELOG.md b/examples/partial-prerendering/CHANGELOG.md index a0c025d1a..bd74ad0b1 100644 --- a/examples/partial-prerendering/CHANGELOG.md +++ b/examples/partial-prerendering/CHANGELOG.md @@ -1,4 +1,66 @@ -# partial-prerendering +# @stackframe/example-partial-prerendering + +## 2.6.11 + +### Patch Changes + +- fixed account settings bugs +- Updated dependencies + - @stackframe/stack@2.6.11 + +## 2.6.10 + +### Patch Changes + +- Various bugfixes +- Updated dependencies + - @stackframe/stack@2.6.10 + +## 2.6.9 + +### Patch Changes + +- - New contact channel API + - Fixed some visual gitches and typos + - Bug fixes +- Updated dependencies + - @stackframe/stack@2.6.9 + +## 2.6.8 + +### Patch Changes + +- @stackframe/stack@2.6.8 + +## 2.6.7 + +### Patch Changes + +- Updated dependencies + - @stackframe/stack@2.6.7 + +## 2.6.6 + +### Patch Changes + +- Updated dependencies + - @stackframe/stack@2.6.6 + +## 2.6.5 + +### Patch Changes + +- Minor improvements +- Updated dependencies + - @stackframe/stack@2.6.5 + +## 2.6.4 + +### Patch Changes + +- fixed small problems +- Updated dependencies + - @stackframe/stack@2.6.4 ## 2.6.3 diff --git a/examples/partial-prerendering/package.json b/examples/partial-prerendering/package.json index 2746ab56e..d41db48c7 100644 --- a/examples/partial-prerendering/package.json +++ b/examples/partial-prerendering/package.json @@ -1,6 +1,6 @@ { "name": "@stackframe/example-partial-prerendering", - "version": "2.6.3", + "version": "2.6.11", "private": true, "scripts": { "dev": "next dev --port 8109", diff --git a/examples/supabase/CHANGELOG.md b/examples/supabase/CHANGELOG.md index c17e4a08d..3c68a4102 100644 --- a/examples/supabase/CHANGELOG.md +++ b/examples/supabase/CHANGELOG.md @@ -1,5 +1,67 @@ # @stackframe/example-supabase +## 2.6.11 + +### Patch Changes + +- fixed account settings bugs +- Updated dependencies + - @stackframe/stack@2.6.11 + +## 2.6.10 + +### Patch Changes + +- Various bugfixes +- Updated dependencies + - @stackframe/stack@2.6.10 + +## 2.6.9 + +### Patch Changes + +- - New contact channel API + - Fixed some visual gitches and typos + - Bug fixes +- Updated dependencies + - @stackframe/stack@2.6.9 + +## 2.6.8 + +### Patch Changes + +- @stackframe/stack@2.6.8 + +## 2.6.7 + +### Patch Changes + +- Updated dependencies + - @stackframe/stack@2.6.7 + +## 2.6.6 + +### Patch Changes + +- Updated dependencies + - @stackframe/stack@2.6.6 + +## 2.6.5 + +### Patch Changes + +- Minor improvements +- Updated dependencies + - @stackframe/stack@2.6.5 + +## 2.6.4 + +### Patch Changes + +- fixed small problems +- Updated dependencies + - @stackframe/stack@2.6.4 + ## 2.6.3 ### Patch Changes diff --git a/examples/supabase/package.json b/examples/supabase/package.json index 652ad8812..4aeda5a0e 100644 --- a/examples/supabase/package.json +++ b/examples/supabase/package.json @@ -1,9 +1,9 @@ { "name": "@stackframe/example-supabase", - "version": "2.6.3", + "version": "2.6.11", "private": true, "scripts": { - "dev": "next dev", + "dev": "next dev --port 8115", "build": "next build", "start": "next start" }, diff --git a/package.json b/package.json index 97155a184..aa616448e 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "preinstall": "npx -y only-allow pnpm", "typecheck": "only-allow pnpm && turbo typecheck", + "build:dev": "NODE_ENV=development pnpm run build", "build": "only-allow pnpm && turbo build", "build:backend": "only-allow pnpm && turbo run build --filter=@stackframe/stack-backend...", "build:dashboard": "only-allow pnpm && turbo run build --filter=@stackframe/stack-dashboard...", @@ -18,6 +19,7 @@ "start-deps:no-delay": "pnpm run deps-compose up --detach && sleep 5 && pnpm run init-db && echo \"\\nDependencies started in the background as Docker containers. 'pnpm run stop-deps' to stop them\"n", "start-deps": "POSTGRES_DELAY_MS=${POSTGRES_DELAY_MS:-20} pnpm run start-deps:no-delay", "restart-deps": "pnpm run stop-deps && pnpm run start-deps", + "restart-deps:no-delay": "pnpm run stop-deps && pnpm run start-deps:no-delay", "psql": "only-allow pnpm && pnpm run --filter=@stackframe/stack-backend psql", "prisma": "only-allow pnpm && pnpm run --filter=@stackframe/stack-backend prisma", "fern": "only-allow pnpm && pnpm run --filter=@stackframe/docs fern", diff --git a/packages/init-stack/CHANGELOG.md b/packages/init-stack/CHANGELOG.md index f937c8d4b..d7543b129 100644 --- a/packages/init-stack/CHANGELOG.md +++ b/packages/init-stack/CHANGELOG.md @@ -1,5 +1,43 @@ # @stackframe/init-stack +## 2.6.11 + +### Patch Changes + +- fixed account settings bugs + +## 2.6.10 + +### Patch Changes + +- Various bugfixes + +## 2.6.9 + +### Patch Changes + +- - New contact channel API + - Fixed some visual gitches and typos + - Bug fixes + +## 2.6.8 + +## 2.6.7 + +## 2.6.6 + +## 2.6.5 + +### Patch Changes + +- Minor improvements + +## 2.6.4 + +### Patch Changes + +- fixed small problems + ## 2.6.3 ## 2.6.2 diff --git a/packages/init-stack/package.json b/packages/init-stack/package.json index dbcab50b0..ffc2c6abe 100644 --- a/packages/init-stack/package.json +++ b/packages/init-stack/package.json @@ -1,6 +1,6 @@ { "name": "@stackframe/init-stack", - "version": "2.6.3", + "version": "2.6.11", "description": "The setup wizard for Stack. https://stack-auth.com", "main": "index.mjs", "bin": "./index.mjs", diff --git a/packages/stack-emails/CHANGELOG.md b/packages/stack-emails/CHANGELOG.md index 480dfefc8..24a10c285 100644 --- a/packages/stack-emails/CHANGELOG.md +++ b/packages/stack-emails/CHANGELOG.md @@ -1,5 +1,74 @@ # @stackframe/stack-emails +## 2.6.11 + +### Patch Changes + +- fixed account settings bugs +- Updated dependencies + - @stackframe/stack-shared@2.6.11 + - @stackframe/stack-ui@2.6.11 + +## 2.6.10 + +### Patch Changes + +- Various bugfixes +- Updated dependencies + - @stackframe/stack-shared@2.6.10 + - @stackframe/stack-ui@2.6.10 + +## 2.6.9 + +### Patch Changes + +- - New contact channel API + - Fixed some visual gitches and typos + - Bug fixes +- Updated dependencies + - @stackframe/stack-shared@2.6.9 + - @stackframe/stack-ui@2.6.9 + +## 2.6.8 + +### Patch Changes + +- Updated dependencies + - @stackframe/stack-shared@2.6.8 + - @stackframe/stack-ui@2.6.8 + +## 2.6.7 + +### Patch Changes + +- @stackframe/stack-shared@2.6.7 +- @stackframe/stack-ui@2.6.7 + +## 2.6.6 + +### Patch Changes + +- @stackframe/stack-shared@2.6.6 +- @stackframe/stack-ui@2.6.6 + +## 2.6.5 + +### Patch Changes + +- Minor improvements +- Updated dependencies + - @stackframe/stack-shared@2.6.5 + - @stackframe/stack-ui@2.6.5 + +## 2.6.4 + +### Patch Changes + +- fixed small problems +- Updated dependencies + - @stackframe/stack-shared@2.6.4 + - @stackframe/stack-ui@2.6.4 + ## 2.6.3 ### Patch Changes diff --git a/packages/stack-emails/package.json b/packages/stack-emails/package.json index b8483ec24..b53ee65fc 100644 --- a/packages/stack-emails/package.json +++ b/packages/stack-emails/package.json @@ -1,6 +1,6 @@ { "name": "@stackframe/stack-emails", - "version": "2.6.3", + "version": "2.6.11", "main": "./dist/index.js", "types": "./dist/index.d.ts", "private": true, diff --git a/packages/stack-emails/src/editor/blocks/block-text.tsx b/packages/stack-emails/src/editor/blocks/block-text.tsx index b69e257a7..bcfea964f 100644 --- a/packages/stack-emails/src/editor/blocks/block-text.tsx +++ b/packages/stack-emails/src/editor/blocks/block-text.tsx @@ -150,4 +150,4 @@ export function Text({ style, props }: TextProps) { const parsedText = parseText(text); return{parsedText}
; -} \ No newline at end of file +} diff --git a/packages/stack-emails/src/templates/email-verification.tsx b/packages/stack-emails/src/templates/email-verification.tsx index d5607834b..5d0a79a6c 100644 --- a/packages/stack-emails/src/templates/email-verification.tsx +++ b/packages/stack-emails/src/templates/email-verification.tsx @@ -128,4 +128,4 @@ export const emailVerificationTemplate: TEditorConfiguration = { } } } -}; \ No newline at end of file +}; diff --git a/packages/stack-emails/src/utils.tsx b/packages/stack-emails/src/utils.tsx index b908c541a..6fd026440 100644 --- a/packages/stack-emails/src/utils.tsx +++ b/packages/stack-emails/src/utils.tsx @@ -13,8 +13,6 @@ import { teamInvitationTemplate } from "./templates/team-invitation"; const userVars = [ { name: 'userDisplayName', label: 'User Display Name', defined: false, example: 'John Doe' }, - // TODO: rename this to userEmail - { name: 'userPrimaryEmail', label: 'User Primary Email', defined: true, example: 'example@email.com' }, ] as const; const projectVars = [ diff --git a/packages/stack-proxy/.env.development b/packages/stack-proxy/.env.development deleted file mode 100644 index 76ec17eaa..000000000 --- a/packages/stack-proxy/.env.development +++ /dev/null @@ -1,6 +0,0 @@ -# Contains the credentials for the internal project of Stack's default development environment setup. -# Do not use in a production environment, instead replace it with actual values gathered from https://app.stack-auth.com. -NEXT_PUBLIC_STACK_URL=http://localhost:8102 -NEXT_PUBLIC_STACK_PROJECT_ID=internal -NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY=this-publishable-client-key-is-for-local-development-only -STACK_SECRET_SERVER_KEY=this-secret-server-key-is-for-local-development-only diff --git a/packages/stack-proxy/.eslintrc.json b/packages/stack-proxy/.eslintrc.json deleted file mode 100644 index bffb357a7..000000000 --- a/packages/stack-proxy/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "next/core-web-vitals" -} diff --git a/packages/stack-proxy/.gitignore b/packages/stack-proxy/.gitignore deleted file mode 100644 index 852b9e6e2..000000000 --- a/packages/stack-proxy/.gitignore +++ /dev/null @@ -1,38 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js -.yarn/install-state.gz - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# local env files -.env*.local - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts - -/dist \ No newline at end of file diff --git a/packages/stack-proxy/CHANGELOG.md b/packages/stack-proxy/CHANGELOG.md deleted file mode 100644 index 7b8847bb9..000000000 --- a/packages/stack-proxy/CHANGELOG.md +++ /dev/null @@ -1,63 +0,0 @@ -# @stackframe/stack-proxy - -## 2.6.3 - -### Patch Changes - -- Updated dependencies - - @stackframe/stack@2.6.3 - -## 2.6.2 - -### Patch Changes - -- Updated dependencies - - @stackframe/stack@2.6.2 - -## 2.6.1 - -### Patch Changes - -- Updated dependencies - - @stackframe/stack@2.6.1 - -## 2.6.0 - -### Minor Changes - -- OTP login, more providers, and styling improvements - -### Patch Changes - -- Updated dependencies - - @stackframe/stack@2.6.0 - -## 2.5.37 - -### Patch Changes - -- Updated dependencies - - @stackframe/stack@2.5.37 - -## 2.5.36 - -### Patch Changes - -- added apple oauth -- Updated dependencies - - @stackframe/stack@2.5.36 - -## 2.5.35 - -### Patch Changes - -- Updated dependencies - - @stackframe/stack@2.5.35 - -## 2.5.34 - -### Patch Changes - -- Internationalization -- Updated dependencies - - @stackframe/stack@2.5.34 diff --git a/packages/stack-proxy/README.md b/packages/stack-proxy/README.md deleted file mode 100644 index d241f07d4..000000000 --- a/packages/stack-proxy/README.md +++ /dev/null @@ -1,121 +0,0 @@ -# Stack Auth Proxy - -Stack Auth Proxy is a simple one-command proxy that authenticates your HTTP requests and redirects to a pre-built sign-in page if a user is not authenticated. - -## Setup - -First, create your API keys on the [Stack Auth Dashboard](https://app.stack-auth.com) and retrieve your environment variables. Note that Stack Auth is open-source and can be self-hosted; more details are available [here](https://github.com/stack-auth/stack). - -```sh -STACK_PROJECT_ID={t("This is most likely an error in Stack. Please report it.")}