create-astratra-app 1.11.4 → 1.12.1

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,9 +1,9 @@
1
1
  {
2
2
  "name": "create-astratra-app",
3
- "version": "1.11.4",
3
+ "version": "1.12.1",
4
4
  "description": "CLI generator for new Astratra SaaS applications.",
5
5
  "engines": {
6
- "node": ">=20"
6
+ "node": ">=22"
7
7
  },
8
8
  "type": "module",
9
9
  "bin": {
package/src/bricks.js CHANGED
@@ -22,7 +22,7 @@ const FULLSTACK_ONLY = new Set(['client', 'prerender']);
22
22
  const BRICKS = {
23
23
  credentials: {
24
24
  package: '@astratra/credentials',
25
- version: '^1.1.0',
25
+ version: '^1.2.0',
26
26
  summary: 'clés de service chiffrées en base, modifiables sans redémarrage',
27
27
  file: 'api/bricks/credentials.js',
28
28
  contents: () => `import { createFieldCipher } from '@astratra/security';
@@ -71,7 +71,7 @@ export const hydrator = createEnvHydrator({ vault });
71
71
 
72
72
  entitlements: {
73
73
  package: '@astratra/entitlements',
74
- version: '^1.0.0',
74
+ version: '^1.1.0',
75
75
  summary: 'plans, droits d’accès, isolation par locataire, invitations',
76
76
  file: 'api/bricks/entitlements.js',
77
77
  contents: () => `import { createFeatureGuard, createPlanCatalog, createTenantScope } from '@astratra/entitlements';
@@ -104,7 +104,7 @@ export const tenants = createTenantScope({
104
104
 
105
105
  notify: {
106
106
  package: '@astratra/notify',
107
- version: '^1.1.0',
107
+ version: '^1.2.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.1.0',
139
+ version: '^1.2.0',
140
140
  summary: 'webhooks de paiement : signature, rejeux, exemptions',
141
141
  file: 'api/bricks/payments.js',
142
142
  contents: () => `import {
@@ -179,7 +179,7 @@ export const webhook = createWebhookHandler({
179
179
 
180
180
  privacy: {
181
181
  package: '@astratra/privacy',
182
- version: '^1.0.1',
182
+ version: '^1.1.0',
183
183
  summary: 'droit d’accès, droit à l’oubli, nettoyage des journaux',
184
184
  file: 'api/bricks/privacy.js',
185
185
  contents: () => `import {
@@ -223,7 +223,7 @@ export const erasure = createErasureWorkflow({
223
223
 
224
224
  resilience: {
225
225
  package: '@astratra/resilience',
226
- version: '^1.1.0',
226
+ version: '^1.2.0',
227
227
  summary: 'disjoncteur, cache TTL, relance avec brouillage',
228
228
  file: 'api/bricks/resilience.js',
229
229
  contents: () => `import { createCache, createCircuitBreaker, retry } from '@astratra/resilience';
@@ -250,7 +250,7 @@ export async function fetchWithGuards(key, call) {
250
250
 
251
251
  'i18n-server': {
252
252
  package: '@astratra/i18n-server',
253
- version: '^1.0.0',
253
+ version: '^1.1.0',
254
254
  summary: 'messages du serveur traduits, audit de lisibilité',
255
255
  file: 'api/bricks/i18n.js',
256
256
  contents: () => `import {
@@ -280,7 +280,7 @@ export const translation = createTranslationMiddleware({ catalog, resolver });
280
280
 
281
281
  pdf: {
282
282
  package: '@astratra/pdf',
283
- version: '^1.0.0',
283
+ version: '^1.1.0',
284
284
  summary: 'texte borné, tableaux qui se paginent, planches de cartes (PDFKit)',
285
285
  file: 'api/bricks/pdf.js',
286
286
  contents: () => `import { drawTable, keepTogether, line } from '@astratra/pdf';
@@ -313,7 +313,7 @@ export function renderInvoice(doc, invoice) {
313
313
 
314
314
  closure: {
315
315
  package: '@astratra/closure',
316
- version: '^1.0.0',
316
+ version: '^1.1.0',
317
317
  summary: 'clôture de période et archives sans identifiants',
318
318
  file: 'api/bricks/closure.js',
319
319
  contents: () => `import { createArchiveBuilder, createClosureChecklist, createScrubber } from '@astratra/closure';
@@ -339,7 +339,7 @@ export const archive = createArchiveBuilder({
339
339
 
340
340
  client: {
341
341
  package: '@astratra/client',
342
- version: '^1.1.0',
342
+ version: '^1.2.0',
343
343
  summary: 'session sur 401, garde de route, mots de passe, file hors ligne',
344
344
  file: 'web/src/lib/client.js',
345
345
  contents: () => `import { createPasswordRules, createRouteGuard, createSessionClient } from '@astratra/client';
@@ -370,7 +370,7 @@ export const passwordRules = createPasswordRules();
370
370
 
371
371
  prerender: {
372
372
  package: '@astratra/prerender',
373
- version: '^1.0.1',
373
+ version: '^1.1.0',
374
374
  summary: 'prérendu SEO + sitemap tiré de la même liste',
375
375
  file: 'astratra.prerender.config.cjs',
376
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.13.0',
72
- '@astratra/core': '^1.1.0',
73
- '@astratra/saas-kit': '^2.0.1',
74
- '@astratra/security': '^1.13.0'
71
+ '@astratra/ai': '^2.0.0',
72
+ '@astratra/core': '^1.2.0',
73
+ '@astratra/saas-kit': '^2.1.0',
74
+ '@astratra/security': '^1.15.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.
@@ -79,13 +79,13 @@ function packageJson(projectName, template, bricks = []) {
79
79
  // real driver dependency) before the project has ever chosen to use it.
80
80
  // `npm install @astratra/store-mongo mongoose` to switch to MongoDB.
81
81
  const optionalDependencies = {
82
- '@astratra/store-mongo': '^1.1.0',
82
+ '@astratra/store-mongo': '^1.2.0',
83
83
  mongoose: '^8.17.0'
84
84
  };
85
85
  const devDependencies = {};
86
86
 
87
87
  if (template === 'fullstack') {
88
- dependencies['@astratra/saas-kit-ui'] = '^1.4.0';
88
+ dependencies['@astratra/saas-kit-ui'] = '^1.5.0';
89
89
  dependencies.react = '^19.0.0';
90
90
  dependencies['react-dom'] = '^19.0.0';
91
91
  devDependencies['@vitejs/plugin-react'] = '^4.3.4';
@@ -12,7 +12,7 @@ const ICONS: Record<string, string> = {
12
12
  home: "M3 10.5 12 3l9 7.5V21a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1V10.5Z",
13
13
  students: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm12 10v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75",
14
14
  messages: "M21 15a2 2 0 0 1-2 2H8l-5 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10Z",
15
- oracle: "M12 2 2 7l10 5 10-5-10-5ZM2 17l10 5 10-5M2 12l10 5 10-5",
15
+ assistant: "M12 2 2 7l10 5 10-5-10-5ZM2 17l10 5 10-5M2 12l10 5 10-5",
16
16
  more: "M4 7h16M4 12h16M4 17h16",
17
17
  assignments: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zM14 2v6h6",
18
18
  grades: "M18 20V10M12 20V4M6 20v-6",
@@ -9,8 +9,8 @@
9
9
  "test": "node --test features/*.test.mjs"
10
10
  },
11
11
  "dependencies": {
12
- "@astratra/client": "^1.1.0",
13
- "@astratra/native": "^1.0.0",
12
+ "@astratra/client": "^1.2.0",
13
+ "@astratra/native": "^1.1.0",
14
14
  "@shopify/react-native-skia": "2.2.12",
15
15
  "expo": "^54.0.0",
16
16
  "expo-blur": "~15.0.8",