@rocss/sass-architecture 1.0.0 → 1.1.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/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @rocss/sass-architecture
2
+
3
+ ## 1.1.0
4
+
5
+ ### Patch Changes
6
+
7
+ - a5c9a0b: `sass-architecture --help` affiche la version lue dans `package.json` au lieu de « v0.1 » codé en dur.
package/README.fr.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) · **Français**
4
4
 
5
- **Architecture de référence**, version 1.0.0, ciblant ROCS 1.0.
5
+ **Architecture de référence**, stable depuis la 1.0.0, ciblant ROCS 1.0.
6
6
  Ce package est essentiellement documentaire. Il fournit aussi un vérificateur
7
7
  statique optionnel (`sass-architecture check`) ; il ne fournit aucun mixin Sass.
8
8
 
@@ -73,7 +73,7 @@ revue est arbitrée dans sa section « Arbitrage ».
73
73
 
74
74
  La 1.0.0 fige la spécification et les identifiants de règles (`I1`…`I23`).
75
75
  Le vérificateur reste **heuristique** : voir les limites ci-dessus.
76
- L'implémentation de référence `@rocss/sass` est elle aussi stable (1.0.0).
76
+ L'implémentation de référence `@rocss/sass` est elle aussi stable depuis la 1.0.0.
77
77
 
78
78
  Politique : une nouvelle vérification est introduite en avertissement et ne
79
79
  devient une erreur qu'à la version majeure suivante, afin qu'une mise à jour
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  **English** · [Français](README.fr.md)
4
4
 
5
- **Reference architecture** for ROCS-compatible Sass, version 1.0.0,
5
+ **Reference architecture** for ROCS-compatible Sass, stable since 1.0.0,
6
6
  targeting ROCS 1.0. This package is mostly documentation.
7
7
  It also ships an optional static checker (`sass-architecture check`); it
8
8
  provides no Sass mixins (see [`@rocss/sass`](https://github.com/NCAC/ROCS-CSS/tree/main/packages/sass#readme)).
@@ -70,7 +70,7 @@ constraints are not obligations for every ROCS application.
70
70
 
71
71
  1.0.0 freezes the specification and the rule identifiers (`I1`…`I23`). The
72
72
  checker remains **heuristic**: see the limits above. The reference
73
- implementation `@rocss/sass` is also stable (1.0.0).
73
+ implementation `@rocss/sass` is also stable since 1.0.0.
74
74
 
75
75
  Policy: a new check is introduced as a warning and only becomes an error at the
76
76
  next major version, so that a minor update does not break existing projects.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocss/sass-architecture",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Reference Sass architecture for ROCS with a heuristic static checker",
5
5
  "keywords": [
6
6
  "rocs",
@@ -26,7 +26,8 @@
26
26
  "docs/",
27
27
  "LICENSE",
28
28
  "README.md",
29
- "README.fr.md"
29
+ "README.fr.md",
30
+ "CHANGELOG.md"
30
31
  ],
31
32
  "exports": {
32
33
  ".": "./src/checker.js",
package/src/cli.js CHANGED
@@ -1,10 +1,14 @@
1
+ import { readFileSync } from 'node:fs';
1
2
  import { parseArgs } from 'node:util';
2
3
  import process from 'node:process';
3
4
  import { checkArchitecture, LAYERS } from './checker.js';
4
5
  import { checkEmission } from './emission.js';
5
6
 
7
+ // Version affichée : lue depuis le manifeste du package, jamais codée en dur.
8
+ const { version } = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
9
+
6
10
  const HELP = `
7
- ROCS Sass Architecture Checker — v0.1
11
+ ROCS Sass Architecture Checker — v${version}
8
12
  Vérifie statiquement les invariants de l'architecture Sass de référence.
9
13
 
10
14
  Usage: