pull/715/head
Travis Fischer 2025-06-01 20:02:02 +07:00
rodzic dd795be893
commit d809560257
5 zmienionych plików z 8 dodań i 5 usunięć

Wyświetl plik

@ -11,9 +11,9 @@ jobs:
fail-fast: true fail-fast: true
matrix: matrix:
node-version: node-version:
- 18
- 22 - 22
- 23 - 23
- 24
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

Wyświetl plik

@ -29,7 +29,8 @@ import { stripe } from '@/lib/external/stripe'
* The `project` will be updated in the DB with any changes. * The `project` will be updated in the DB with any changes.
* *
* The `deployment` is readonly and will not be updated, since all Stripe * The `deployment` is readonly and will not be updated, since all Stripe
* resources persist on its Project in case they're the same across deployments. * resources persist on its Project so they can be reused if possible across
* deployments.
* *
* @note This function assumes that the deployment's pricing config has already * @note This function assumes that the deployment's pricing config has already
* been validated. * been validated.

Wyświetl plik

@ -9,7 +9,7 @@
}, },
"packageManager": "pnpm@10.11.0", "packageManager": "pnpm@10.11.0",
"engines": { "engines": {
"node": ">=18" "node": ">=22"
}, },
"type": "module", "type": "module",
"scripts": { "scripts": {

Wyświetl plik

@ -476,14 +476,16 @@ export const pricingPlanSchema = z
name: z name: z
.string() .string()
.nonempty() .nonempty()
.describe('Human-readable name for the pricing plan') .describe(
'Human-readable name for the pricing plan (eg, "Free", "Starter Monthly", "Pro Annual", etc)'
)
.openapi('name', { example: 'Starter Monthly' }), .openapi('name', { example: 'Starter Monthly' }),
slug: z slug: z
.string() .string()
.nonempty() .nonempty()
.describe( .describe(
'PricingPlan slug ("free", "starter-monthly", "pro-annual", etc). Should be lower-cased and kebab-cased. Should be stable across deployments.' 'PricingPlan slug (eg, "free", "starter-monthly", "pro-annual", etc). Should be lower-cased and kebab-cased. Should be stable across deployments.'
) )
.openapi('slug', { example: 'starter-monthly' }), .openapi('slug', { example: 'starter-monthly' }),