@utrecht/root-css 1.2.1 → 2.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,68 @@
1
1
  # @utrecht/root-css
2
2
 
3
+ ## 2.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 9b3cb1e: Release with npm provenance.
8
+
9
+ ## 2.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - 77438bb: # BREAKING CHANGE: Migrate from SCSS @import to @use/@forward
14
+
15
+ Migrated all SCSS files from the legacy `@import` syntax to the modern `@use` and `@forward` module system.
16
+
17
+ ## Breaking Changes
18
+
19
+ - **Import syntax changed**: `@import` statements replaced with `@use`/`@forward`
20
+ - **Namespace requirements**: Some imports now require explicit namespaces
21
+ - **File structure**: Added `_forward.scss` files for mixin exports
22
+ - **Module loading**: Modules are now loaded once and cached
23
+
24
+ ## Migration Guide
25
+
26
+ ### For CSS Classes
27
+
28
+ ```scss
29
+ // Before
30
+ @import "~@utrecht/button-css/src/index";
31
+
32
+ // After (recommended)
33
+ @use "~@utrecht/button-css/src/index";
34
+
35
+ // Note: @import still works for CSS-only files but @use is recommended
36
+ ```
37
+
38
+ ### For Mixins
39
+
40
+ ```scss
41
+ // Before
42
+ @import "~@utrecht/button-css/src/mixin";
43
+ @include utrecht-button;
44
+
45
+ // After
46
+ @use "~@utrecht/button-css/src/forward" as *;
47
+ @include utrecht-button;
48
+ ```
49
+
50
+ ### With Namespaces
51
+
52
+ ```scss
53
+ @use "~@utrecht/focus-ring-css/src/forward" as focus-ring;
54
+ @include focus-ring.utrecht-focus-visible;
55
+ ```
56
+
57
+ ## Benefits
58
+
59
+ - Better performance through module caching
60
+ - Namespace safety prevents naming conflicts
61
+ - Explicit dependencies improve maintainability
62
+ - Future-proof with modern SCSS standards
63
+
64
+ See `SCSS_MIGRATION.md` for detailed migration instructions.
65
+
3
66
  ## 1.2.1
4
67
 
5
68
  ### Patch Changes
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.1",
2
+ "version": "2.0.1",
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",
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "main": "dist/index.css",
14
14
  "devDependencies": {
15
- "@utrecht/build-utils-css": "0.0.3"
15
+ "@utrecht/build-utils-css": "0.0.4"
16
16
  },
17
17
  "keywords": [
18
18
  "nl-design-system"
@@ -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;