@unsass/breakpoint 2.5.1 → 2.6.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
@@ -2,7 +2,29 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
4
4
 
5
- ## <small>2.5.1 (2025-06-13)</small>
5
+ ## [2.6.0](https://github.com/unsass/breakpoint/compare/v2.5.1...v2.6.0) (2026-01-05)
6
+
7
+ ### Features
8
+
9
+ * use the plain-CSS if() syntax ([5c4a1ab](https://github.com/unsass/breakpoint/commit/5c4a1ab1c2a74a987d399cfbcc923d23a5cdd062))
10
+
11
+ ### Dependencies
12
+
13
+ * **deps:** bump to `@commitlint/cli` 20.1.0 ([c90fb06](https://github.com/unsass/breakpoint/commit/c90fb0686abf8c1fa829f82f6848a4302c9f6fbe))
14
+ * **deps:** bump to `sass-true` 10.0.0 ([0bdc2c8](https://github.com/unsass/breakpoint/commit/0bdc2c8e8075e54ff53100ed1296265b065e2e60))
15
+ * **deps:** bump to `sass-true` 9.0.0 ([8e77c83](https://github.com/unsass/breakpoint/commit/8e77c83b306ba7c4ab56dc8a9f9434d43cd39119))
16
+ * **deps:** bump to `sass` 1.97.1 ([3a17ad6](https://github.com/unsass/breakpoint/commit/3a17ad616fad9d87aa097b8fa6f8da823894cde8))
17
+ * **deps:** bump to `semantic-release` 24.2.7 ([14385f3](https://github.com/unsass/breakpoint/commit/14385f33516538176caf1e709d9d8e62508e885e))
18
+ * **deps:** bump to `semantic-release` 25.0.1 ([265a454](https://github.com/unsass/breakpoint/commit/265a4547bb5d07694eb4caad86984f57c4a268a4))
19
+ * **deps:** bump to `semantic-release` 25.0.2 ([54c049b](https://github.com/unsass/breakpoint/commit/54c049b5a74ee453a7b777bc7ef3781d2b960ca3))
20
+ * **deps:** bump to `stylelint-config-unsass` 2.2.0 ([3a15b5e](https://github.com/unsass/breakpoint/commit/3a15b5ebe49bf873475f410b9e9892baaedab982))
21
+ * **deps:** bump to `stylelint` 16.25.0 ([b24e4ba](https://github.com/unsass/breakpoint/commit/b24e4bac66e6739b0f807039e23cbd816d3e3613))
22
+ * **deps:** bump to `vitest` 4.0.4 ([0504a4b](https://github.com/unsass/breakpoint/commit/0504a4b76822489718bd5afdbe88264a80adb68f))
23
+ * **deps:** bump to `vitest` 4.0.6 ([71cd88f](https://github.com/unsass/breakpoint/commit/71cd88f432303724b6d744efd919edaf06f69781))
24
+ * **deps:** prevent dependencies vulnerabilities ([33e852d](https://github.com/unsass/breakpoint/commit/33e852d97301ebb66fa0ba2282828cf6e98f4aa2))
25
+ * **deps:** prevent dependencies vulnerabilities ([2ea1eb7](https://github.com/unsass/breakpoint/commit/2ea1eb7f54878f08f5a817e1c79ba42749738062))
26
+
27
+ ## 2.5.1 (2025-06-13)
6
28
 
7
29
  * fix: don't use global built-in function call ([32ae4ad](https://github.com/unsass/breakpoint/commit/32ae4ad))
8
30
  * chore(deps): bump to `vitest` 3.2.3 ([2cc12d9](https://github.com/unsass/breakpoint/commit/2cc12d9))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsass/breakpoint",
3
- "version": "2.5.1",
3
+ "version": "2.6.0",
4
4
  "description": "Sass functions and mixins to use media queries rules.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -15,20 +15,22 @@
15
15
  },
16
16
  "sass": "index.scss",
17
17
  "devDependencies": {
18
- "@commitlint/cli": "^19.8.1",
19
- "@commitlint/config-conventional": "^19.8.1",
18
+ "@commitlint/cli": "^20.3.0",
19
+ "@commitlint/config-conventional": "^20.3.0",
20
20
  "@semantic-release/changelog": "^6.0.3",
21
21
  "@semantic-release/git": "^10.0.1",
22
+ "@semantic-release/github": "^12.0.2",
23
+ "conventional-changelog-conventionalcommits": "^9.1.0",
22
24
  "husky": "^9.1.7",
23
25
  "npm-run-all": "^4.1.5",
24
- "sass-true": "^8.1.0",
25
- "semantic-release": "^24.2.5",
26
- "stylelint": "^16.20.0",
27
- "stylelint-config-unsass": "^2.0.0",
28
- "vitest": "^3.2.3"
26
+ "sass-true": "^10.1.0",
27
+ "semantic-release": "^25.0.2",
28
+ "stylelint": "^16.26.1",
29
+ "stylelint-config-unsass": "^2.2.0",
30
+ "vitest": "^4.0.16"
29
31
  },
30
32
  "dependencies": {
31
- "sass": "^1.71.1"
33
+ "sass": "^1.97.1"
32
34
  },
33
35
  "keywords": [
34
36
  "sass",
@@ -24,7 +24,7 @@
24
24
  $keys: map.keys(variables.$extend);
25
25
  $n: list.index($keys, $value);
26
26
 
27
- @return if($n < list.length($keys), list.nth($keys, $n + 1), null);
27
+ @return if(sass($n < list.length($keys)): list.nth($keys, $n + 1); else: null);
28
28
  }
29
29
 
30
30
  ///
@@ -46,7 +46,7 @@
46
46
  @function set-min($token) {
47
47
  $min: get-value($token);
48
48
 
49
- @return if($min != 0, $min, null);
49
+ @return if(sass($min != 0): $min; else: null);
50
50
  }
51
51
 
52
52
  ///
@@ -57,5 +57,5 @@
57
57
  @function set-max($token) {
58
58
  $max: get-value($token);
59
59
 
60
- @return if($max and $max > 0, $max - 1, null);
60
+ @return if(sass($max and $max > 0): $max - 1; else: null);
61
61
  }
package/src/_mixins.scss CHANGED
@@ -3,7 +3,6 @@
3
3
  // ============================================================================================= //
4
4
 
5
5
  @use "sass:map";
6
- @use "sass:string";
7
6
  @use "./functions";
8
7
  @use "./variables";
9
8