@avi2dg/checks 0.59.0 → 0.60.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 +8 -0
- package/docs/design.md +2 -1
- package/docs/gates/checks-browser.md +1 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Every release of `@avi2dg/checks`, newest first, written by the release from its conventional commits.
|
|
4
4
|
|
|
5
|
+
## 0.60.0
|
|
6
|
+
|
|
7
|
+
Released 2026-10-31.
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **browser:** export the screen sizes for a site to import [#21](https://github.com/avi2d/checks/pull/21)
|
|
12
|
+
|
|
5
13
|
## 0.59.0
|
|
6
14
|
|
|
7
15
|
Released 2026-10-31.
|
package/docs/design.md
CHANGED
|
@@ -84,10 +84,11 @@ Nothing would then say which gate a helper serves.
|
|
|
84
84
|
A mutation runner's default scope covers `src/`, so the kit's own Stryker run mutates its source with no `mutate` list.
|
|
85
85
|
The testing directory is named `testing` rather than `tests`, because a `src/tests/` beside the root `tests/` would read as a second suite.
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
Seven `exports` keys name a path the file does not sit at, because consumers resolve them by that name.
|
|
88
88
|
`@avi2dg/checks/scripts/test-skips.ts`, `@avi2dg/checks/scripts/comment-matchers.ts` and `@avi2dg/checks/scripts/prose-matchers.ts` point at their files under `src/`.
|
|
89
89
|
`@avi2dg/checks/browser-hooks.ts` points at `src/quality/browser/hooks.ts`, whose types a product's browser hooks import.
|
|
90
90
|
`@avi2dg/checks/browser-checks.json` points at `src/quality/browser/browser-checks.json`, the starter a product copies.
|
|
91
|
+
`@avi2dg/checks/screen-sizes.ts` points at `src/quality/browser/screen-sizes.ts`, whose sizes a product imports.
|
|
91
92
|
`@avi2dg/checks/templates/*` points at `dist/templates/`.
|
|
92
93
|
A path read without the resolver, such as `node_modules/@avi2dg/checks/scripts/test-skips.ts`, does not exist.
|
|
93
94
|
|
|
@@ -161,6 +161,7 @@ A product runs the anchor set on every pull request and the full set at night.
|
|
|
161
161
|
Each size in a set is a viewport named for its device and its size, with `device` set, and each phone also sets `touch`.
|
|
162
162
|
A preset sits beside a product's own viewports.
|
|
163
163
|
A name both declare is refused as declared twice, and so is a size that two listed presets both hold.
|
|
164
|
+
A product's own code takes the sizes by importing `SCREEN_SIZES`, `screenSizeName` and `ENLARGED_TEXT_PX` from `@avi2dg/checks/screen-sizes.ts`.
|
|
164
165
|
|
|
165
166
|
<!-- generated screen-sizes: bun run build writes it from SCREEN_SIZES in src/quality/browser/screen-sizes.ts and scripts/doc-blocks.ts -->
|
|
166
167
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avi2dg/checks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.0",
|
|
4
4
|
"description": "Deterministic checks shared across a set of TypeScript repositories",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "avi2d",
|
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
"./tsconfig.effect.json": "./tsconfig.effect.json",
|
|
143
143
|
"./browser-hooks.ts": "./src/quality/browser/hooks.ts",
|
|
144
144
|
"./browser-checks.json": "./src/quality/browser/browser-checks.json",
|
|
145
|
+
"./screen-sizes.ts": "./src/quality/browser/screen-sizes.ts",
|
|
145
146
|
"./oxlint": {
|
|
146
147
|
"types": "./dist/presets/oxlint.d.ts",
|
|
147
148
|
"default": "./dist/presets/oxlint.js"
|