@thi.ng/hiccup-css 2.1.36 → 2.1.39
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 +17 -1
- package/README.md +1 -1
- package/package.json +7 -7
- package/units.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2023-02-
|
|
3
|
+
- **Last updated**: 2023-02-17T20:06:13Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,22 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [2.1.39](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@2.1.39) (2023-02-17)
|
|
13
|
+
|
|
14
|
+
#### 🩹 Bug fixes
|
|
15
|
+
|
|
16
|
+
- update px() & ms() units [#383](https://github.com/thi-ng/umbrella/issues/383) ([e590d3f](https://github.com/thi-ng/umbrella/commit/e590d3f))
|
|
17
|
+
- remove pixel rounding
|
|
18
|
+
- use signed flooring for ms()
|
|
19
|
+
|
|
20
|
+
### [2.1.37](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@2.1.37) (2023-02-10)
|
|
21
|
+
|
|
22
|
+
#### 🩹 Bug fixes
|
|
23
|
+
|
|
24
|
+
- allow negative values for px ([340d542](https://github.com/thi-ng/umbrella/commit/340d542))
|
|
25
|
+
Swap use of unsigned shift for OR `0`
|
|
26
|
+
Fixes issue [#383](https://github.com/thi-ng/umbrella/issues/383)
|
|
27
|
+
|
|
12
28
|
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@2.1.0) (2021-11-17)
|
|
13
29
|
|
|
14
30
|
#### 🚀 Features
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hiccup-css",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.39",
|
|
4
4
|
"description": "CSS from nested JS data structures",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.7.
|
|
38
|
-
"@thi.ng/checks": "^3.3.
|
|
39
|
-
"@thi.ng/errors": "^2.2.
|
|
40
|
-
"@thi.ng/transducers": "^8.3.
|
|
37
|
+
"@thi.ng/api": "^8.7.2",
|
|
38
|
+
"@thi.ng/checks": "^3.3.9",
|
|
39
|
+
"@thi.ng/errors": "^2.2.11",
|
|
40
|
+
"@thi.ng/transducers": "^8.3.34"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@microsoft/api-extractor": "^7.34.2",
|
|
44
|
-
"@thi.ng/testament": "^0.3.
|
|
44
|
+
"@thi.ng/testament": "^0.3.11",
|
|
45
45
|
"rimraf": "^4.1.2",
|
|
46
46
|
"tools": "^0.0.1",
|
|
47
47
|
"typedoc": "^0.23.24",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
],
|
|
128
128
|
"year": 2016
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "7896250248d960109253215c75b115c46626293e\n"
|
|
131
131
|
}
|
package/units.js
CHANGED
|
@@ -2,10 +2,10 @@ export const em = (x) => `${x}em`;
|
|
|
2
2
|
export const ex = (x) => `${x}ex`;
|
|
3
3
|
export const rem = (x) => `${x}rem`;
|
|
4
4
|
export const percent = (x) => `${x}%`;
|
|
5
|
-
export const px = (x) => `${x
|
|
5
|
+
export const px = (x) => `${x}px`;
|
|
6
6
|
export const vh = (x) => `${x}vh`;
|
|
7
7
|
export const vw = (x) => `${x}vw`;
|
|
8
|
-
export const ms = (x) => `${x
|
|
8
|
+
export const ms = (x) => `${x | 0}ms`;
|
|
9
9
|
export const sec = (x) => `${x}s`;
|
|
10
10
|
export const deg = (x) => `${x}deg`;
|
|
11
11
|
export const rad = (x) => `${x}rad`;
|