hazo_testing 0.3.1 → 0.4.1
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/CHANGE_LOG.md +31 -0
- package/dist/index.client.d.ts +1 -0
- package/dist/index.client.js +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -0
- package/dist/locales/en.json +1 -0
- package/package.json +9 -11
package/CHANGE_LOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# hazo_testing changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.1 — 2026-09-19
|
|
4
|
+
|
|
5
|
+
### Added — i18n future-proofing plumbing (no behavior change)
|
|
6
|
+
|
|
7
|
+
hazo_testing is a zero-string package today (dev/test infra — no rendered
|
|
8
|
+
UI text; the only string literals are internal `HazoError` codes/messages
|
|
9
|
+
for developers). Verified this during adoption and made no call-site
|
|
10
|
+
changes. Added minimal plumbing so a real catalog can be dropped in later
|
|
11
|
+
without touching consumers:
|
|
12
|
+
|
|
13
|
+
- `src/locales/en.json` — empty flat catalog (`{}`).
|
|
14
|
+
- `t` export (both `.` and `./client` entry points) wired through the
|
|
15
|
+
canonical `createPackageT` bridge from `hazo_core/i18n`.
|
|
16
|
+
- `hazo_i18n` added as an optional peer dependency (`^0.5.0`) — this
|
|
17
|
+
package never imports it directly; `hazo_core/i18n` probes for it at
|
|
18
|
+
runtime and registers the (currently empty) catalog as a side effect if
|
|
19
|
+
present.
|
|
20
|
+
- Autotest: added an `i18n` scenario group to the test-app's
|
|
21
|
+
`/autotest` page asserting `typeof t === 'function'` from
|
|
22
|
+
`hazo_testing/client`.
|
|
23
|
+
|
|
24
|
+
## 0.4.0 — 2026-08-04
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
Dropped the `optional` flag on `react`, `vitest` in `peerDependenciesMeta`. They are
|
|
29
|
+
imported statically and this package cannot render without them, so marking
|
|
30
|
+
them optional understated a hard requirement. They stay a peer — the host controls the
|
|
31
|
+
version and a single instance must be shared.
|
|
32
|
+
|
|
33
|
+
|
|
3
34
|
## 0.3.0 — 2026-06-12
|
|
4
35
|
|
|
5
36
|
### Added — Permissioned user factory (FR-001)
|
package/dist/index.client.d.ts
CHANGED
package/dist/index.client.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
// src/index.client.ts
|
|
2
2
|
// Purpose: client-safe barrel (no Node imports).
|
|
3
|
+
import en from "./locales/en.json" with { type: "json" };
|
|
4
|
+
import { createPackageT } from "hazo_core/i18n";
|
|
3
5
|
export { TestProviders, useTestContext } from "./components/test_providers.js";
|
|
6
|
+
// Module-scope translator — see hazo_core/i18n's createPackageT. hazo_testing
|
|
7
|
+
// is a zero-string package today (no rendered UI text); this is
|
|
8
|
+
// future-proofing plumbing so a real catalog can be dropped in later without
|
|
9
|
+
// touching call sites. English-only consumers (no hazo_i18n installed) see
|
|
10
|
+
// no behavior change.
|
|
11
|
+
export const t = createPackageT("hazo_testing", en);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const HAZO_TESTING_VERSION = "0.3.0";
|
|
2
|
+
export declare const t: import("hazo_core/i18n").TFunc;
|
|
2
3
|
export { DockerNotSupported, UnmappedLlmCall } from "./errors.js";
|
|
3
4
|
export { augmentAdapter } from "./db/augmented_adapter.js";
|
|
4
5
|
export type { AugmentedAdapter } from "./db/augmented_adapter.js";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
// hazo_testing public server barrel.
|
|
3
|
+
import en from "./locales/en.json" with { type: "json" };
|
|
4
|
+
import { createPackageT } from "hazo_core/i18n";
|
|
3
5
|
export const HAZO_TESTING_VERSION = "0.3.0";
|
|
6
|
+
// Module-scope translator — see hazo_core/i18n's createPackageT. hazo_testing
|
|
7
|
+
// is a zero-string package today (dev/test infra, no rendered UI text); this
|
|
8
|
+
// is future-proofing plumbing so a real catalog can be dropped in later
|
|
9
|
+
// without touching call sites. English-only consumers (no hazo_i18n
|
|
10
|
+
// installed) see no behavior change.
|
|
11
|
+
export const t = createPackageT("hazo_testing", en);
|
|
4
12
|
export { DockerNotSupported, UnmappedLlmCall } from "./errors.js";
|
|
5
13
|
export { augmentAdapter } from "./db/augmented_adapter.js";
|
|
6
14
|
export { createTestDatabase, createTestDatabaseSqlite, createTestDatabaseDocker, } from "./db/test_database.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hazo_testing",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Shared test infrastructure for hazo apps: SQLite test DB, real-package wiring, auth factories, apiTestClient, fixtures, Jest + Vitest presets.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -85,12 +85,13 @@
|
|
|
85
85
|
"peerDependencies": {
|
|
86
86
|
"@playwright/test": "^1.0.0",
|
|
87
87
|
"@testing-library/react": "^16.0.0",
|
|
88
|
-
"hazo_auth": "^10.
|
|
89
|
-
"hazo_connect": "^3.
|
|
90
|
-
"hazo_core": "^
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
88
|
+
"hazo_auth": "^10.19.0",
|
|
89
|
+
"hazo_connect": "^4.3.0",
|
|
90
|
+
"hazo_core": "^2.4.0",
|
|
91
|
+
"hazo_i18n": "^0.5.0",
|
|
92
|
+
"hazo_jobs": "^0.19.0",
|
|
93
|
+
"hazo_llm_api": "^2.6.0",
|
|
94
|
+
"hazo_notify": "^6.3.0",
|
|
94
95
|
"next": "^14.0.0 || ^16.0.0",
|
|
95
96
|
"next-intl": "^4.0.0",
|
|
96
97
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -110,13 +111,10 @@
|
|
|
110
111
|
"next-intl": {
|
|
111
112
|
"optional": true
|
|
112
113
|
},
|
|
113
|
-
"react": {
|
|
114
|
-
"optional": true
|
|
115
|
-
},
|
|
116
114
|
"react-dom": {
|
|
117
115
|
"optional": true
|
|
118
116
|
},
|
|
119
|
-
"
|
|
117
|
+
"hazo_i18n": {
|
|
120
118
|
"optional": true
|
|
121
119
|
}
|
|
122
120
|
},
|