create-astratra-app 1.6.0 → 1.7.0

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.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "CLI generator for new Astratra SaaS applications.",
5
5
  "engines": {
6
6
  "node": ">=20"
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: '^0.4.0',
25
+ version: '^1.0.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: '^0.5.0',
74
+ version: '^1.0.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: '^0.3.0',
107
+ version: '^1.0.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: '^0.2.0',
139
+ version: '^1.0.0',
140
140
  summary: 'webhooks de paiement : signature, rejeux, exemptions',
141
141
  file: 'api/bricks/payments.js',
142
142
  contents: () => `import {
@@ -176,7 +176,7 @@ export const webhook = createWebhookHandler({
176
176
 
177
177
  privacy: {
178
178
  package: '@astratra/privacy',
179
- version: '^0.3.0',
179
+ version: '^1.0.0',
180
180
  summary: 'droit d’accès, droit à l’oubli, nettoyage des journaux',
181
181
  file: 'api/bricks/privacy.js',
182
182
  contents: () => `import {
@@ -220,7 +220,7 @@ export const erasure = createErasureWorkflow({
220
220
 
221
221
  resilience: {
222
222
  package: '@astratra/resilience',
223
- version: '^0.2.0',
223
+ version: '^1.0.0',
224
224
  summary: 'disjoncteur, cache TTL, relance avec brouillage',
225
225
  file: 'api/bricks/resilience.js',
226
226
  contents: () => `import { createCache, createCircuitBreaker, retry } from '@astratra/resilience';
@@ -247,7 +247,7 @@ export async function fetchWithGuards(key, call) {
247
247
 
248
248
  'i18n-server': {
249
249
  package: '@astratra/i18n-server',
250
- version: '^0.2.0',
250
+ version: '^1.0.0',
251
251
  summary: 'messages du serveur traduits, audit de lisibilité',
252
252
  file: 'api/bricks/i18n.js',
253
253
  contents: () => `import {
@@ -277,7 +277,7 @@ export const translation = createTranslationMiddleware({ catalog, resolver });
277
277
 
278
278
  pdf: {
279
279
  package: '@astratra/pdf',
280
- version: '^0.2.0',
280
+ version: '^1.0.0',
281
281
  summary: 'texte borné, tableaux qui se paginent, planches de cartes (PDFKit)',
282
282
  file: 'api/bricks/pdf.js',
283
283
  contents: () => `import { drawTable, keepTogether, line } from '@astratra/pdf';
@@ -310,7 +310,7 @@ export function renderInvoice(doc, invoice) {
310
310
 
311
311
  closure: {
312
312
  package: '@astratra/closure',
313
- version: '^0.1.0',
313
+ version: '^1.0.0',
314
314
  summary: 'clôture de période et archives sans identifiants',
315
315
  file: 'api/bricks/closure.js',
316
316
  contents: () => `import { createArchiveBuilder, createClosureChecklist, createScrubber } from '@astratra/closure';
@@ -336,7 +336,7 @@ export const archive = createArchiveBuilder({
336
336
 
337
337
  client: {
338
338
  package: '@astratra/client',
339
- version: '^0.3.0',
339
+ version: '^1.0.0',
340
340
  summary: 'session sur 401, garde de route, mots de passe, file hors ligne',
341
341
  file: 'web/src/lib/client.js',
342
342
  contents: () => `import { createPasswordRules, createRouteGuard, createSessionClient } from '@astratra/client';
@@ -367,7 +367,7 @@ export const passwordRules = createPasswordRules();
367
367
 
368
368
  prerender: {
369
369
  package: '@astratra/prerender',
370
- version: '^0.2.0',
370
+ version: '^1.0.0',
371
371
  summary: 'prérendu SEO + sitemap tiré de la même liste',
372
372
  file: 'astratra.prerender.config.cjs',
373
373
  contents: () => `// Lancé après le build : "vite build && astratra-prerender"
@@ -68,7 +68,7 @@ function assertCanCreate(targetDir, force) {
68
68
 
69
69
  function packageJson(projectName, template, bricks = []) {
70
70
  const dependencies = {
71
- '@astratra/ai': '^1.4.0',
71
+ '@astratra/ai': '^1.6.0',
72
72
  '@astratra/core': '^1.1.0',
73
73
  '@astratra/saas-kit': '^1.6.0',
74
74
  '@astratra/security': '^1.11.0'
@@ -9,8 +9,8 @@
9
9
  "test": "node --test features/*.test.mjs"
10
10
  },
11
11
  "dependencies": {
12
- "@astratra/client": "^0.3.0",
13
- "@astratra/native": "^0.3.0",
12
+ "@astratra/client": "^1.0.0",
13
+ "@astratra/native": "^1.0.0",
14
14
  "@shopify/react-native-skia": "2.2.12",
15
15
  "expo": "^54.0.0",
16
16
  "expo-blur": "~15.0.8",