create-astratra-app 1.11.0 → 1.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astratra-app",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "description": "CLI generator for new Astratra SaaS applications.",
5
5
  "engines": {
6
6
  "node": ">=20"
package/src/bricks.js CHANGED
@@ -104,7 +104,7 @@ export const tenants = createTenantScope({
104
104
 
105
105
  notify: {
106
106
  package: '@astratra/notify',
107
- version: '^1.0.0',
107
+ version: '^1.1.0',
108
108
  summary: 'e-mail, SMS et notifications poussées, transport injecté',
109
109
  file: 'api/bricks/notify.js',
110
110
  contents: () => `import { createCaptureChannel, createMailer, renderEmail, renderText } from '@astratra/notify';
@@ -136,7 +136,7 @@ export async function sendWelcome(to, name) {
136
136
 
137
137
  payments: {
138
138
  package: '@astratra/payments',
139
- version: '^1.0.0',
139
+ version: '^1.1.0',
140
140
  summary: 'webhooks de paiement : signature, rejeux, exemptions',
141
141
  file: 'api/bricks/payments.js',
142
142
  contents: () => `import {
@@ -157,6 +157,9 @@ export const webhook = createWebhookHandler({
157
157
  throw new Error('Branche ici stripe.webhooks.constructEvent (ou équivalent).');
158
158
  },
159
159
  secret: () => process.env.PAYMENT_WEBHOOK_SECRET,
160
+ // Mémoire : un seul processus, perdu au redémarrage. En production, un store
161
+ // partagé qui réserve l'événement avant le traitement (claim / release /
162
+ // record, voir le README de @astratra/payments).
160
163
  eventLog: createMemoryEventLog(),
161
164
  events: {
162
165
  'checkout.session.completed': async (event, { sideEffect, unrelated }) => {
@@ -176,7 +179,7 @@ export const webhook = createWebhookHandler({
176
179
 
177
180
  privacy: {
178
181
  package: '@astratra/privacy',
179
- version: '^1.0.0',
182
+ version: '^1.0.1',
180
183
  summary: 'droit d’accès, droit à l’oubli, nettoyage des journaux',
181
184
  file: 'api/bricks/privacy.js',
182
185
  contents: () => `import {
@@ -367,7 +370,7 @@ export const passwordRules = createPasswordRules();
367
370
 
368
371
  prerender: {
369
372
  package: '@astratra/prerender',
370
- version: '^1.0.0',
373
+ version: '^1.0.1',
371
374
  summary: 'prérendu SEO + sitemap tiré de la même liste',
372
375
  file: 'astratra.prerender.config.cjs',
373
376
  contents: () => `// Lancé après le build : "vite build && astratra-prerender"
@@ -68,10 +68,10 @@ function assertCanCreate(targetDir, force) {
68
68
 
69
69
  function packageJson(projectName, template, bricks = []) {
70
70
  const dependencies = {
71
- '@astratra/ai': '^1.10.0',
71
+ '@astratra/ai': '^1.11.0',
72
72
  '@astratra/core': '^1.1.0',
73
- '@astratra/saas-kit': '^2.0.0',
74
- '@astratra/security': '^1.12.1'
73
+ '@astratra/saas-kit': '^2.0.1',
74
+ '@astratra/security': '^1.13.0'
75
75
  };
76
76
  // Scaffolded (api/stores/mongo.js, api/db/mongo.js) but not wired into
77
77
  // api/server.js by default — the project starts on the in-memory store.