@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-02-05T14:42:21Z
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
@@ -116,7 +116,7 @@ For Node.js REPL:
116
116
  const hiccupCss = await import("@thi.ng/hiccup-css");
117
117
  ```
118
118
 
119
- Package sizes (brotli'd, pre-treeshake): ESM: 1.99 KB
119
+ Package sizes (brotli'd, pre-treeshake): ESM: 2.00 KB
120
120
 
121
121
  ## Dependencies
122
122
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-css",
3
- "version": "2.1.36",
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.0",
38
- "@thi.ng/checks": "^3.3.8",
39
- "@thi.ng/errors": "^2.2.9",
40
- "@thi.ng/transducers": "^8.3.31"
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.10",
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": "50ba9c87676fac60c46d2bc0e4d2c7711a374a68\n"
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 >>> 0}px`;
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 >>> 0}ms`;
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`;