@ontrails/store 1.0.0-beta.42 → 1.0.0-beta.45
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 +20 -0
- package/README.md +1 -1
- package/package.json +7 -2
- package/src/trails/crud.ts +3 -3
- package/src/trails/utils.ts +1 -1
- package/src/types.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @ontrails/store
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.45
|
|
4
|
+
|
|
5
|
+
## 1.0.0-beta.44
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [`b1fbe57`](https://github.com/outfitter-dev/trails/commit/b1fbe574e6f44d1fecb5e3a000270955c0a77b7b): Publish Bun-validated package tarballs through an npm trusted-publishing adapter
|
|
10
|
+
binding, add exact repository metadata for each public workspace package, and
|
|
11
|
+
correct the native Bun release descriptor to its pack-only runtime boundary.
|
|
12
|
+
|
|
13
|
+
## 1.0.0-beta.43
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [`88a6a62`](https://github.com/outfitter-dev/trails/commit/88a6a62a9e9e230ca6d368fa78dc3ece6c816204): Complete the v1 classification-first cutover from projection/project vocabulary
|
|
18
|
+
to derive/derived for contract-owned fact production and render/rendered for
|
|
19
|
+
surface presentation. Public type, helper, rule, relation, and report names move
|
|
20
|
+
without compatibility aliases; ordinary repository/project nouns remain
|
|
21
|
+
explicit preserves or structured review inventory.
|
|
22
|
+
|
|
3
23
|
## 1.0.0-beta.42
|
|
4
24
|
|
|
5
25
|
## 1.0.0-beta.41
|
package/README.md
CHANGED
|
@@ -245,7 +245,7 @@ export const readonly = connectReadOnlyDrizzle(definition, {
|
|
|
245
245
|
});
|
|
246
246
|
```
|
|
247
247
|
|
|
248
|
-
The root package still owns the authored persistence model; adapter packages
|
|
248
|
+
The root package still owns the authored persistence model; adapter packages render that model into runnable resources.
|
|
249
249
|
|
|
250
250
|
## Schema export for external tooling
|
|
251
251
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ontrails/store",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.45",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/outfitter-dev/trails.git",
|
|
7
|
+
"directory": "packages/store"
|
|
8
|
+
},
|
|
4
9
|
"files": [
|
|
5
10
|
"src/**/*.ts",
|
|
6
11
|
"!src/**/__tests__/**",
|
|
@@ -26,7 +31,7 @@
|
|
|
26
31
|
"clean": "rm -rf dist *.tsbuildinfo"
|
|
27
32
|
},
|
|
28
33
|
"dependencies": {
|
|
29
|
-
"@ontrails/core": "^1.0.0-beta.
|
|
34
|
+
"@ontrails/core": "^1.0.0-beta.45"
|
|
30
35
|
},
|
|
31
36
|
"peerDependencies": {
|
|
32
37
|
"zod": "^4.3.5"
|
package/src/trails/crud.ts
CHANGED
|
@@ -43,8 +43,8 @@ type GeneratedFieldsOf<TTable extends AnyStoreTable> =
|
|
|
43
43
|
: readonly [];
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Input type `deriveTrail`
|
|
47
|
-
* store table. Uses `TableEntity<TTable>` so the
|
|
46
|
+
* Input type `deriveTrail` derives for a given CRUD operation against a
|
|
47
|
+
* store table. Uses `TableEntity<TTable>` so the derived input
|
|
48
48
|
* structurally matches the entity-backed derivation path in
|
|
49
49
|
* `@ontrails/core`'s `deriveTrail`.
|
|
50
50
|
*/
|
|
@@ -58,7 +58,7 @@ type DerivedInput<
|
|
|
58
58
|
>;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
* Output type `deriveTrail`
|
|
61
|
+
* Output type `deriveTrail` derives for a given CRUD operation against a
|
|
62
62
|
* store table.
|
|
63
63
|
*/
|
|
64
64
|
type DerivedOutput<
|
package/src/trails/utils.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { AnyStoreTable } from '../types.js';
|
|
|
12
12
|
/**
|
|
13
13
|
* The entity type produced by {@link createTableEntity} for a given store
|
|
14
14
|
* table. Threads the table's name, schema shape, and identity through the
|
|
15
|
-
* entity generics so downstream `deriveTrail()` calls
|
|
15
|
+
* entity generics so downstream `deriveTrail()` calls derive concrete
|
|
16
16
|
* input/output types instead of widening back to
|
|
17
17
|
* `Entity<string, z.ZodRawShape, string>` (the `AnyEntity` alias).
|
|
18
18
|
*/
|
package/src/types.ts
CHANGED
|
@@ -141,7 +141,7 @@ export type StoreFixtureRow<
|
|
|
141
141
|
export type StoreSearchDefinition = Readonly<Record<string, unknown>>;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
|
-
* Change signals
|
|
144
|
+
* Change signals derived from one store entity definition.
|
|
145
145
|
*/
|
|
146
146
|
export interface StoreTableSignals<TPayload> {
|
|
147
147
|
readonly created: Signal<TPayload>;
|
|
@@ -640,7 +640,7 @@ export type StoreMockSeed<TDef extends AnyStoreDefinition> = Partial<{
|
|
|
640
640
|
*
|
|
641
641
|
* Concrete adapters extend this shape with their backend-specific fields
|
|
642
642
|
* (e.g. `url`, `dir`). Aligning the authored surface here lets the framework
|
|
643
|
-
* reason about adapter options uniformly — one shape, many
|
|
643
|
+
* reason about adapter options uniformly — one shape, many renderings.
|
|
644
644
|
*/
|
|
645
645
|
export interface StoreAdapterOptions<TDef extends AnyStoreDefinition> {
|
|
646
646
|
/** Optional resource id override. Defaults to `"store"`. */
|