stack/packages/stack-shared/package.json
Mantra bb277d33c9
Backend fallback (cloud run) (#1306)
- Added support for `@opentelemetry/sdk-node` in the backend.
- Updated various dependencies including AWS SDK and OpenTelemetry
packages.
- Implemented graceful shutdown handling for non-Vercel runtimes in
`prisma-client.tsx`.
- Enhanced AWS credentials retrieval to support GCP Workload Identity
Federation.
- Introduced a Dockerfile for Cloud Run deployment, optimizing the
backend build process.
- Updated `.gitignore` to include Terraform runtime files and secrets.

This commit improves the backend's observability and deployment
flexibility, particularly for Cloud Run environments.

<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* OpenTelemetry observability with dynamic provider selection per
deployment.
  * Cloud Run trusted-proxy support for accurate client IP handling.
  * Graceful shutdown that waits for in-flight background work.
* New background-task handling to improve async webhook/email delivery
reliability.
* AWS credential providers added (Vercel OIDC & GCP Workload Identity
Federation).
  * Dockerized backend image for Cloud Run / self-host deployments.

* **Chores**
  * Updated dependencies for OpenTelemetry and AWS SDK support.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
2026-04-11 00:57:37 +00:00

101 lines
2.4 KiB
JSON

{
"name": "@stackframe/stack-shared",
"version": "2.8.81",
"repository": "https://github.com/stack-auth/stack-auth",
"scripts": {
"build": "rimraf dist && tsdown",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"clean": "rimraf dist && rimraf node_modules",
"dev": "tsdown --watch",
"lint": "eslint --ext .tsx,.ts ."
},
"files": [
"README.md",
"dist",
"CHANGELOG.md",
"LICENSE"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": {
"default": "./dist/index.js"
},
"default": "./dist/esm/index.js"
},
"./config": {
"types": "./dist/config-authoring.d.ts",
"require": {
"default": "./dist/config-authoring.js"
},
"default": "./dist/esm/config-authoring.js"
},
"./dist/*": {
"types": "./dist/*.d.ts",
"require": {
"default": "./dist/*.js"
},
"default": "./dist/esm/*.js"
}
},
"peerDependencies": {
"@types/react": ">=19.0.0",
"@types/react-dom": ">=19.0.0",
"react": ">=19.0.0",
"react-dom": ">=19.0.0",
"yup": "^1.7.1"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
},
"yup": {
"optional": true
}
},
"dependencies": {
"@aws-sdk/client-kms": "^3.876.0",
"@aws-sdk/credential-provider-web-identity": "^3.972.27",
"@babel/core": "^7.28.5",
"@babel/generator": "^7.28.5",
"@babel/parser": "^7.28.5",
"@babel/traverse": "^7.28.5",
"@babel/types": "^7.28.5",
"@opentelemetry/api": "^1.9.0",
"@simplewebauthn/browser": "^11.0.0",
"@vercel/functions": "^2.0.0",
"async-mutex": "^0.5.0",
"bcryptjs": "^3.0.2",
"crc": "^4.3.2",
"elliptic": "^6.5.7",
"esbuild-wasm": "^0.20.2",
"ip-regex": "^5.0.0",
"jose": "^6.1.3",
"oauth4webapi": "^3.8.3",
"semver": "^7.6.3",
"uuid": "^9.0.1"
},
"devDependencies": {
"@sentry/nextjs": "^10.11.0",
"@simplewebauthn/types": "^11.0.0",
"@types/babel__core": "^7.20.5",
"@types/babel__generator": "^7.27.0",
"@types/babel__traverse": "^7.28.0",
"@types/bcryptjs": "^3.0.0",
"@types/elliptic": "^6.4.18",
"@types/semver": "^7.5.8",
"@types/uuid": "^9.0.8",
"react": "^19.0.1",
"react-dom": "^19.0.1",
"rimraf": "^6.1.2"
},
"packageManager": "pnpm@10.23.0"
}