@teacss/classes 0.10.11 → 0.10.12
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 +3 -4
- package/dist/generated/merge-policy.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -205,7 +205,7 @@ Standard family declares its footprints in the `MERGE` table of
|
|
|
205
205
|
|
|
206
206
|
Rust tests bind every row to its family's rules and compile the tables into one
|
|
207
207
|
policy, written as the snapshot
|
|
208
|
-
`crates/teacss-engine/tests/snapshots/
|
|
208
|
+
`crates/teacss-engine/tests/snapshots/main__merge_policy__policy.snap`.
|
|
209
209
|
`packages/classes/scripts/gen-merge-policy.mjs` only encodes that snapshot into
|
|
210
210
|
`packages/classes/src/generated/merge-policy.ts`; which classes conflict, and
|
|
211
211
|
which one wins, is decided in Rust. The runtime keeps three steps carried from
|
|
@@ -213,15 +213,14 @@ which one wins, is decided in Rust. The runtime keeps three steps carried from
|
|
|
213
213
|
scrollbar-color and box-shadow parts are sequenced with `!`, the combined sizing
|
|
214
214
|
families, and the fallback for a prefix the policy does not know. A conflict
|
|
215
215
|
change is therefore a change to a Rust table, followed by
|
|
216
|
-
`INSTA_UPDATE=always cargo test -p teacss-engine --test merge_policy
|
|
216
|
+
`INSTA_UPDATE=always cargo test -p teacss-engine --test main merge_policy::` and
|
|
217
217
|
`node packages/classes/scripts/gen-merge-policy.mjs`.
|
|
218
218
|
|
|
219
219
|
The token parser, class-list splitter and group expansion that `cn` runs first
|
|
220
220
|
are copied from 0.10.1. `packages/classes/scripts/gen-syntax-parity.mjs` writes
|
|
221
221
|
their output for about 15,000 cases to
|
|
222
222
|
`crates/teacss-syntax/tests/data/classes-syntax.json`, and a Rust test asserts
|
|
223
|
-
that the engine's `teacss-syntax` crate returns the same
|
|
224
|
-
inputs where Rust group expansion differs and the reason for each.
|
|
223
|
+
that the engine's `teacss-syntax` crate returns the same on every input.
|
|
225
224
|
|
|
226
225
|
The package has no runtime dependencies and does not load the engine.
|
|
227
226
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by packages/classes/scripts/gen-merge-policy.mjs from crates/teacss-engine/tests/snapshots/
|
|
1
|
+
// Generated by packages/classes/scripts/gen-merge-policy.mjs from crates/teacss-engine/tests/snapshots/main__merge_policy__policy.snap. Do not edit.
|
|
2
2
|
// E: same importance, later deletes earlier. I: important deletes ordinary.
|
|
3
3
|
// Every descriptor's self edge is implicit. Row zero is empty.
|
|
4
4
|
function numbers(value) {
|
package/package.json
CHANGED