@harnessed-ts/config 0.2.0 → 0.3.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/package.json +3 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # @harnessed-ts/config
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 66deb00: Page objects. `PageHarness` (new package `@harnessed-ts/page`) replaces
8
+ `RouteHarness`: a page is a screen composed of component harnesses and other
9
+ pages, that constructs under every driver, knows when it has arrived
10
+ (`expectReady()` / `isReady()`), optionally owns a URL (`path` + `goto()`), and
11
+ hands back the page an action leads to (`transitionTo()`).
12
+
13
+ - `@harnessed-ts/route` is now a deprecated shim re-exporting `PageHarness` as
14
+ `RouteHarness`. It is removed in the next minor. Two source-level changes
15
+ reach existing routes through it: `path` is no longer abstract, so under
16
+ `noImplicitOverride` a `get path()` needs the `override` modifier; and
17
+ `goto()` now wraps a failed `waitForReady()` as `<Page> did not become ready.`
18
+ with the original error as `cause`.
19
+ - `@ChildHarness` and `childHarness()` accept any harness, so pages nest pages.
20
+ - Matchers accept any harness with a host, pages included.
21
+ - **Breaking config rename:** `layout.screens` → `layout.pages`,
22
+ `layout.screenHarnesses` → `layout.pageHarnesses`, `testIdPattern.screen` →
23
+ `testIdPattern.page` (default `page-<kebab>`). An old `harnessed.config.ts`
24
+ is a compile error until updated. The `@harnessed-ts/claude` CLI flags rename
25
+ likewise (`--pages`, `--page-harnesses`, `--page-testid`).
26
+ - New `strict`-only rule `no-component-harness-in-test`: tests enter through a
27
+ page. Runtime-agnostic via `testFiles` globs; a file that renders the component
28
+ itself is exempt.
29
+ - `require-wait-for-ready` now checks `PageHarness` (and the deprecated
30
+ `RouteHarness`).
31
+ - Conformance: `routeSpecs` became `pageSpecs` (every driver) and `urlSpecs`
32
+ (navigating drivers).
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [b2d1130]
37
+ - Updated dependencies [66deb00]
38
+ - @harnessed-ts/core@0.3.0
39
+
3
40
  ## 0.2.0
4
41
 
5
42
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessed-ts/config",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Loads harnessed.config.ts, so the runtime, the linter, and the docs generator read one file.",
5
5
  "keywords": [
6
6
  "testing",
@@ -47,12 +47,11 @@
47
47
  "node": ">=22.12.0"
48
48
  },
49
49
  "dependencies": {
50
- "@harnessed-ts/core": "^0.2.0",
50
+ "@harnessed-ts/core": "^0.3.0",
51
51
  "jiti": "^2.4.2"
52
52
  },
53
53
  "publishConfig": {
54
- "access": "public",
55
- "provenance": true
54
+ "access": "public"
56
55
  },
57
56
  "scripts": {
58
57
  "build": "tsup",