@fuzdev/fuz_app 0.91.0 → 0.93.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/dist/actions/action_rpc.d.ts.map +1 -1
- package/dist/actions/action_rpc.js +2 -2
- package/dist/actions/perform_action.d.ts.map +1 -1
- package/dist/actions/perform_action.js +6 -6
- package/dist/actions/transports_ws.d.ts.map +1 -1
- package/dist/actions/transports_ws.js +2 -1
- package/dist/actions/transports_ws_backend.d.ts.map +1 -1
- package/dist/actions/transports_ws_backend.js +2 -1
- package/dist/auth/bootstrap_routes.d.ts.map +1 -1
- package/dist/auth/bootstrap_routes.js +2 -1
- package/dist/auth/cell_actions.d.ts.map +1 -1
- package/dist/auth/cell_actions.js +2 -4
- package/dist/db/fact_disk_storage.d.ts.map +1 -1
- package/dist/db/fact_disk_storage.js +2 -1
- package/dist/db/fact_store.d.ts.map +1 -1
- package/dist/db/fact_store.js +2 -1
- package/dist/db/migrate.d.ts.map +1 -1
- package/dist/db/migrate.js +2 -1
- package/dist/db/status.d.ts.map +1 -1
- package/dist/db/status.js +2 -1
- package/dist/http/error_schemas.d.ts +5 -3
- package/dist/http/error_schemas.d.ts.map +1 -1
- package/dist/http/error_schemas.js +5 -3
- package/dist/http/jsonrpc_errors.d.ts +21 -0
- package/dist/http/jsonrpc_errors.d.ts.map +1 -1
- package/dist/http/jsonrpc_errors.js +22 -0
- package/dist/http/route_spec.d.ts.map +1 -1
- package/dist/http/route_spec.js +11 -8
- package/dist/runtime/deno.d.ts.map +1 -1
- package/dist/runtime/deno.js +2 -1
- package/dist/server/env.d.ts.map +1 -1
- package/dist/server/env.js +2 -1
- package/dist/testing/CLAUDE.md +27 -0
- package/dist/testing/cross_backend/create_dual_spawn_global_setup.d.ts +64 -0
- package/dist/testing/cross_backend/create_dual_spawn_global_setup.d.ts.map +1 -0
- package/dist/testing/cross_backend/{create_schema_parity_global_setup.js → create_dual_spawn_global_setup.js} +1 -1
- package/dist/testing/cross_backend/default_backend_configs.d.ts +12 -0
- package/dist/testing/cross_backend/default_backend_configs.d.ts.map +1 -1
- package/dist/testing/cross_backend/default_backend_configs.js +12 -0
- package/dist/testing/cross_backend/default_spine_surface.d.ts.map +1 -1
- package/dist/testing/cross_backend/default_spine_surface.js +9 -2
- package/dist/testing/cross_backend/login_security.d.ts +11 -0
- package/dist/testing/cross_backend/login_security.d.ts.map +1 -0
- package/dist/testing/cross_backend/login_security.js +130 -0
- package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts +17 -0
- package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts.map +1 -1
- package/dist/testing/cross_backend/rust_spine_stub_backend_config.js +7 -2
- package/dist/testing/cross_backend/ts_spine_backend_config.d.ts +11 -0
- package/dist/testing/cross_backend/ts_spine_backend_config.d.ts.map +1 -1
- package/dist/testing/cross_backend/ts_spine_backend_config.js +23 -7
- package/dist/testing/db.d.ts.map +1 -1
- package/dist/testing/db.js +2 -1
- package/dist/ui/AdminSurface.svelte +3 -1
- package/dist/ui/AdminSurface.svelte.d.ts.map +1 -1
- package/dist/ui/async_slot.svelte.d.ts.map +1 -1
- package/dist/ui/async_slot.svelte.js +2 -1
- package/dist/ui/auth_state.svelte.d.ts.map +1 -1
- package/dist/ui/auth_state.svelte.js +4 -3
- package/dist/ui/table_state.svelte.d.ts.map +1 -1
- package/dist/ui/table_state.svelte.js +2 -1
- package/package.json +4 -3
- package/dist/testing/cross_backend/create_schema_parity_global_setup.d.ts +0 -59
- package/dist/testing/cross_backend/create_schema_parity_global_setup.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fuzdev/fuz_app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.93.0",
|
|
4
4
|
"description": "fullstack app library",
|
|
5
5
|
"glyph": "🗝",
|
|
6
6
|
"logo": "logo.svg",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"test:cross:ts": "FUZ_TEST_CROSS_BACKEND=1 vitest run --project cross_backend_ts_node --project cross_backend_ts_deno --project cross_backend_ts_bun",
|
|
18
18
|
"test:cross:rust-spine-stub": "FUZ_TEST_CROSS_BACKEND=1 vitest run --project cross_backend_rust_spine_stub",
|
|
19
19
|
"test:cross:parity": "FUZ_TEST_CROSS_BACKEND=1 vitest run --project cross_backend_parity",
|
|
20
|
+
"test:cross:security": "FUZ_TEST_CROSS_BACKEND=1 vitest run --project cross_backend_security",
|
|
20
21
|
"benchmark:cross-impl": "gro run src/benchmarks/cross_impl.bench.ts",
|
|
21
22
|
"preview": "vite preview",
|
|
22
23
|
"deploy": "gro deploy"
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
"peerDependencies": {
|
|
29
30
|
"@electric-sql/pglite": ">=0.4",
|
|
30
31
|
"@fuzdev/blake3_wasm": ">=0.1.0",
|
|
31
|
-
"@fuzdev/fuz_util": ">=0.65.
|
|
32
|
+
"@fuzdev/fuz_util": ">=0.65.2",
|
|
32
33
|
"@hono/node-server": ">=1",
|
|
33
34
|
"@hono/node-ws": ">=1",
|
|
34
35
|
"@node-rs/argon2": ">=2",
|
|
@@ -72,7 +73,7 @@
|
|
|
72
73
|
"@fuzdev/fuz_code": "^0.46.1",
|
|
73
74
|
"@fuzdev/fuz_css": "^0.63.2",
|
|
74
75
|
"@fuzdev/fuz_ui": "^0.205.1",
|
|
75
|
-
"@fuzdev/fuz_util": "^0.65.
|
|
76
|
+
"@fuzdev/fuz_util": "^0.65.2",
|
|
76
77
|
"@fuzdev/gro": "^0.204.0",
|
|
77
78
|
"@fuzdev/mdz": "^0.1.0",
|
|
78
79
|
"@hono/node-server": "^1.19.14",
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import '../assert_dev_env.js';
|
|
2
|
-
/**
|
|
3
|
-
* Vitest `globalSetup` factory for cross-impl **schema-parity** projects.
|
|
4
|
-
*
|
|
5
|
-
* The per-backend `create_cross_backend_global_setup` spawns one backend
|
|
6
|
-
* (derived from the project name). A schema-parity gate instead needs
|
|
7
|
-
* *two* backends alive at once so the test process can capture each one's
|
|
8
|
-
* schema (via `capture_schema_snapshot`) and diff them with
|
|
9
|
-
* `assert_schema_snapshots_equal`. This factory spawns + bootstraps both
|
|
10
|
-
* configs and `provide`s both serialized handles.
|
|
11
|
-
*
|
|
12
|
-
* A consumer's parity `global_setup.ts` collapses to:
|
|
13
|
-
*
|
|
14
|
-
* ```ts
|
|
15
|
-
* import {create_schema_parity_global_setup} from
|
|
16
|
-
* '@fuzdev/fuz_app/testing/cross_backend/create_schema_parity_global_setup.js';
|
|
17
|
-
* import {deno_backend_config, rust_backend_config} from './my_backend_config.js';
|
|
18
|
-
* import './cross_test_types.js'; // augments the two provide keys
|
|
19
|
-
*
|
|
20
|
-
* export default create_schema_parity_global_setup({
|
|
21
|
-
* configs: {a: deno_backend_config, b: rust_backend_config},
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* The parity `.cross.test.ts` `inject`s both keys, rebuilds each with
|
|
26
|
-
* `reconstruct_bootstrapped_handle`, and asserts. Run this project in a
|
|
27
|
-
* later `groupOrder` than the single-backend projects (or with distinct
|
|
28
|
-
* ports) — it reuses both configs' ports, so it must not run concurrently
|
|
29
|
-
* with the per-backend projects.
|
|
30
|
-
*
|
|
31
|
-
* @module
|
|
32
|
-
*/
|
|
33
|
-
import type { TestProject } from 'vitest/node';
|
|
34
|
-
import type { BackendConfig } from './backend_config.js';
|
|
35
|
-
export interface SchemaParityGlobalSetupOptions {
|
|
36
|
-
/**
|
|
37
|
-
* The two backend config factories to spawn. `a` is spawned first; on
|
|
38
|
-
* its success `b` is spawned (with `a` torn down if `b` throws). Label
|
|
39
|
-
* them in the parity test via `assert_schema_snapshots_equal`'s labels.
|
|
40
|
-
*/
|
|
41
|
-
readonly configs: {
|
|
42
|
-
readonly a: () => BackendConfig;
|
|
43
|
-
readonly b: () => BackendConfig;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* `project.provide` keys for the two serialized handles (read by
|
|
47
|
-
* `inject` in the parity test). Default `parity_handle_a` /
|
|
48
|
-
* `parity_handle_b`. Augment vitest's `ProvidedContext` for them.
|
|
49
|
-
*/
|
|
50
|
-
readonly provide_keys?: {
|
|
51
|
-
readonly a: string;
|
|
52
|
-
readonly b: string;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Build a vitest `globalSetup` default export that spawns both backends.
|
|
57
|
-
*/
|
|
58
|
-
export declare const create_schema_parity_global_setup: ({ configs, provide_keys, }: SchemaParityGlobalSetupOptions) => ((project: TestProject) => Promise<() => Promise<void>>);
|
|
59
|
-
//# sourceMappingURL=create_schema_parity_global_setup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create_schema_parity_global_setup.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/create_schema_parity_global_setup.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAE7C,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAIvD,MAAM,WAAW,8BAA8B;IAC9C;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE;QAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,aAAa,CAAC;QAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,aAAa,CAAA;KAAC,CAAC;IACrF;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE;QAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC;CACjE;AAED;;GAEG;AACH,eAAO,MAAM,iCAAiC,GAAI,4BAG/C,8BAA8B,KAAG,CAAC,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAmB1F,CAAC"}
|