@utrecht/root-css 1.2.1 → 2.0.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 CHANGED
@@ -1,5 +1,62 @@
1
1
  # @utrecht/root-css
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 77438bb: # BREAKING CHANGE: Migrate from SCSS @import to @use/@forward
8
+
9
+ Migrated all SCSS files from the legacy `@import` syntax to the modern `@use` and `@forward` module system.
10
+
11
+ ## Breaking Changes
12
+
13
+ - **Import syntax changed**: `@import` statements replaced with `@use`/`@forward`
14
+ - **Namespace requirements**: Some imports now require explicit namespaces
15
+ - **File structure**: Added `_forward.scss` files for mixin exports
16
+ - **Module loading**: Modules are now loaded once and cached
17
+
18
+ ## Migration Guide
19
+
20
+ ### For CSS Classes
21
+
22
+ ```scss
23
+ // Before
24
+ @import "~@utrecht/button-css/src/index";
25
+
26
+ // After (recommended)
27
+ @use "~@utrecht/button-css/src/index";
28
+
29
+ // Note: @import still works for CSS-only files but @use is recommended
30
+ ```
31
+
32
+ ### For Mixins
33
+
34
+ ```scss
35
+ // Before
36
+ @import "~@utrecht/button-css/src/mixin";
37
+ @include utrecht-button;
38
+
39
+ // After
40
+ @use "~@utrecht/button-css/src/forward" as *;
41
+ @include utrecht-button;
42
+ ```
43
+
44
+ ### With Namespaces
45
+
46
+ ```scss
47
+ @use "~@utrecht/focus-ring-css/src/forward" as focus-ring;
48
+ @include focus-ring.utrecht-focus-visible;
49
+ ```
50
+
51
+ ## Benefits
52
+
53
+ - Better performance through module caching
54
+ - Namespace safety prevents naming conflicts
55
+ - Explicit dependencies improve maintainability
56
+ - Future-proof with modern SCSS standards
57
+
58
+ See `SCSS_MIGRATION.md` for detailed migration instructions.
59
+
3
60
  ## 1.2.1
4
61
 
5
62
  ### Patch Changes
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.1",
2
+ "version": "2.0.0",
3
3
  "author": "Community for NL Design System",
4
4
  "description": "Root component for the Municipality of Utrecht based on the NL Design System architecture",
5
5
  "license": "EUPL-1.2",
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2020-2024 Frameless B.V.
4
+ * Copyright (c) 2021-2024 Gemeente Utrecht
5
+ */
6
+
7
+ @forward "./mixin";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2020-2024 Frameless B.V.
4
+ * Copyright (c) 2021-2024 Gemeente Utrecht
5
+ */
6
+
7
+ @forward "./mixin";
@@ -4,7 +4,7 @@
4
4
  * Copyright (c) 2021-2024 Gemeente Utrecht
5
5
  */
6
6
 
7
- @import "../mixin";
7
+ @use "../mixin" as *;
8
8
 
9
9
  @mixin utrecht-html-html {
10
10
  html {
@@ -4,6 +4,6 @@
4
4
  * Copyright (c) 2021-2024 Gemeente Utrecht
5
5
  */
6
6
 
7
- @import "./mixin";
7
+ @use "./mixin" as *;
8
8
 
9
9
  @include utrecht-html-root;
package/src/index.scss CHANGED
@@ -4,7 +4,7 @@
4
4
  * Copyright (c) 2021-2024 Gemeente Utrecht
5
5
  */
6
6
 
7
- @import "./mixin";
7
+ @use "./mixin" as *;
8
8
 
9
9
  .utrecht-root {
10
10
  @include utrecht-root;