css-calipers 0.15.0 → 1.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/README.md +12 -22
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -62,9 +62,7 @@ If you prefer, you can also import unit helpers from dedicated subpaths. For exa
|
|
|
62
62
|
|
|
63
63
|
## Status & support
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
- Status: early `0.x` release. Backwards compatibility is not guaranteed until `1.0.0`.
|
|
65
|
+
- Status: stable `1.0` release of the measurement layer, part of the [CSS-Bookends](https://github.com/slafleche/css-bookends) umbrella.
|
|
68
66
|
- Questions or bugs: open an issue on GitHub (see the repository link at the top of this page or in `package.json`).
|
|
69
67
|
- Tooling: tested primarily with TypeScript 5.6+ on Node 18+.
|
|
70
68
|
- Support: this is a solo, early-stage project. If it saves you time, you can [buy me a coffee](https://buymeacoffee.com/slafleche) to support continued work.
|
|
@@ -73,25 +71,17 @@ If you prefer, you can also import unit helpers from dedicated subpaths. For exa
|
|
|
73
71
|
|
|
74
72
|
## Media queries
|
|
75
73
|
|
|
76
|
-
Media queries
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
- **Switch to CSS-Bookends** and add `@css-bookends/media-queries` alongside
|
|
89
|
-
`css-calipers`. Same helper, now maintained in the umbrella.
|
|
90
|
-
- **Or stay on `css-calipers@0.14`**, which still bundles the media query helper
|
|
91
|
-
and remains the `latest` release for now.
|
|
92
|
-
|
|
93
|
-
CSS-Bookends is the long-term home for everything beyond measurement (spacing,
|
|
94
|
-
colours, borders, and more), so moving over is the recommended path.
|
|
74
|
+
Media queries are not part of CSS-Calipers, which is purely the measurement
|
|
75
|
+
layer. They live in
|
|
76
|
+
[`@css-bookends/media-queries`](https://www.npmjs.com/package/@css-bookends/media-queries),
|
|
77
|
+
a book in the [CSS-Bookends](https://github.com/slafleche/css-bookends) umbrella
|
|
78
|
+
that builds on this lexicon.
|
|
79
|
+
|
|
80
|
+
**Upgrading to v1?** The only change is media queries. If you never used the media
|
|
81
|
+
query helper, v1 is a drop-in, nothing to change, no functional difference. If you
|
|
82
|
+
did use it, switch to [CSS-Bookends](https://github.com/slafleche/css-bookends),
|
|
83
|
+
which has the same measurement layer plus the media query helper and the rest of
|
|
84
|
+
the umbrella.
|
|
95
85
|
|
|
96
86
|
---
|
|
97
87
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "css-calipers",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Compile-time unit safety for numeric, unit-bearing CSS values via typed measurements.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -97,4 +97,4 @@
|
|
|
97
97
|
"test:factory:dist": "npm run test:factory:cjs && npm run test:factory:esm",
|
|
98
98
|
"test:internal": "tsc -p tsconfig.internal.json --noEmit"
|
|
99
99
|
}
|
|
100
|
-
}
|
|
100
|
+
}
|