@ontrails/drizzle 0.2.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 ADDED
@@ -0,0 +1,267 @@
1
+ # @ontrails/drizzle
2
+
3
+ ## 0.2.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [`664e8bb`](https://github.com/outfitter-dev/trails/commit/664e8bb049e61f1d47cec1dd246606707af5d1a8): Point public installation examples at exact approved 0.2.0 versions and distinguish the prepared source release from pending npm publication.
8
+ - [`b3ddf91`](https://github.com/outfitter-dev/trails/commit/b3ddf918ada8211f44983512e2bbdfbc5b66d722): Prepare the first normal Trails release at `0.2.0` on `latest`, replacing the unpublished 1.0.0 source release. The target advances the original `0.1.0` source minor, which was never published under the current package names. Public packages remain in lockstep. Update consumer installation guidance and provide a temporary manifest bridge for old 1.0 beta sources. Published beta versions remain unchanged; minor 0.x releases may carry documented breaking changes.
9
+
10
+ The `1.0.0` section retained below records an unpublished preparation, not an npm release. Its accumulated changes are included in `0.2.0`; the section remains as source history alongside the published beta entries.
11
+
12
+ ## 1.0.0
13
+
14
+ ### Patch Changes
15
+
16
+ - [`f5c6777`](https://github.com/outfitter-dev/trails/commit/f5c6777c39ea959d2123f17bb683151fe265386c): Move adapter package workspaces from `connectors/*` to `adapters/*` as part of
17
+ the package-boundary taxonomy cutover. Package names and public APIs are
18
+ unchanged.
19
+ - [`e41c382`](https://github.com/outfitter-dev/trails/commit/e41c3829c2d692683b78c730e67fd5b17ac0ff4e): Document beta-channel install guidance in package and adapter README install snippets so consumers use explicit `@beta` (or pinned `1.0.0-beta.N`) tags instead of accidental `latest` resolution during the prerelease line. Adds the policy doc at `docs/releases/beta-channel-policy.md`, prints both `latest` and `beta` dist-tags in `bun run publish:registry-check`, and aligns plugin/skill install snippets.
20
+ - [`3395234`](https://github.com/outfitter-dev/trails/commit/33952349f2d475b170376a63587c89e50be3247a): Move store adapter-binding helpers to `@ontrails/store/adapter-support` and topographer direct database/admin helpers to `@ontrails/topographer/backend-support`, keeping root exports focused on contract-level APIs.
21
+ - [`6300f70`](https://github.com/outfitter-dev/trails/commit/6300f709bb6dffc0e6cc82479fe8d0204c52bbba): BREAKING: rename the shared store backend option type from `StoreConnectorOptions` to `StoreAdapterOptions`.
22
+ - [`49c2e7d`](https://github.com/outfitter-dev/trails/commit/49c2e7d5c7c063b9aa6abee1d2932bf3003133cc): Refresh published package README taxonomy to use adapter language instead of retired connector vocabulary.
23
+ - [`b1fbe57`](https://github.com/outfitter-dev/trails/commit/b1fbe574e6f44d1fecb5e3a000270955c0a77b7b): Publish Bun-validated package tarballs through an npm trusted-publishing adapter
24
+ binding, add exact repository metadata for each public workspace package, and
25
+ correct the native Bun release descriptor to its pack-only runtime boundary.
26
+ - [`9bf592d`](https://github.com/outfitter-dev/trails/commit/9bf592ddba46aa12e3f4e6ffc0f772f7a41ed3df): Declare verified first-party adapter metadata for Drizzle, HTTP/Bun, and Store/Jsonfile so shared adapter checks can dogfood real owner targets.
27
+ - [`df9a7d0`](https://github.com/outfitter-dev/trails/commit/df9a7d00fe4d9ebec948b6ebed6dc4525fc8e0dc): Add project-aware public export-map governance for @ontrails workspace docs,
28
+ imports, root barrels, and bin-only package surfaces.
29
+
30
+ ## 1.0.0-beta.50
31
+
32
+ ## 1.0.0-beta.49
33
+
34
+ ## 1.0.0-beta.48
35
+
36
+ ## 1.0.0-beta.47
37
+
38
+ ## 1.0.0-beta.46
39
+
40
+ ## 1.0.0-beta.45
41
+
42
+ ## 1.0.0-beta.44
43
+
44
+ ### Patch Changes
45
+
46
+ - [`b1fbe57`](https://github.com/outfitter-dev/trails/commit/b1fbe574e6f44d1fecb5e3a000270955c0a77b7b): Publish Bun-validated package tarballs through an npm trusted-publishing adapter
47
+ binding, add exact repository metadata for each public workspace package, and
48
+ correct the native Bun release descriptor to its pack-only runtime boundary.
49
+
50
+ ## 1.0.0-beta.43
51
+
52
+ ## 1.0.0-beta.42
53
+
54
+ ## 1.0.0-beta.41
55
+
56
+ ## 1.0.0-beta.40
57
+
58
+ ### Patch Changes
59
+
60
+ - [`9bf592d`](https://github.com/outfitter-dev/trails/commit/9bf592ddba46aa12e3f4e6ffc0f772f7a41ed3df): Declare verified first-party adapter metadata for Drizzle, HTTP/Bun, and Store/Jsonfile so shared adapter checks can dogfood real owner targets.
61
+
62
+ ## 1.0.0-beta.39
63
+
64
+ ## 1.0.0-beta.38
65
+
66
+ ## 1.0.0-beta.37
67
+
68
+ ## 1.0.0-beta.36
69
+
70
+ ## 1.0.0-beta.35
71
+
72
+ ## 1.0.0-beta.34
73
+
74
+ ## 1.0.0-beta.33
75
+
76
+ ## 1.0.0-beta.32
77
+
78
+ ### Patch Changes
79
+
80
+ - Updated dependencies [3e5c0fc]
81
+ - Updated dependencies [f3c4fef]
82
+ - Updated dependencies [cb0a9d8]
83
+ - Updated dependencies [21c6dda]
84
+ - Updated dependencies [fe72b84]
85
+ - @ontrails/core@1.0.0-beta.32
86
+ - @ontrails/store@1.0.0-beta.32
87
+
88
+ ## 1.0.0-beta.31
89
+
90
+ ### Patch Changes
91
+
92
+ - Updated dependencies [4cd5d4e]
93
+ - Updated dependencies [38907cc]
94
+ - @ontrails/core@1.0.0-beta.31
95
+ - @ontrails/store@1.0.0-beta.31
96
+
97
+ ## 1.0.0-beta.30
98
+
99
+ ### Patch Changes
100
+
101
+ - @ontrails/core@1.0.0-beta.30
102
+ - @ontrails/store@1.0.0-beta.30
103
+
104
+ ## 1.0.0-beta.29
105
+
106
+ ### Patch Changes
107
+
108
+ - @ontrails/core@1.0.0-beta.29
109
+ - @ontrails/store@1.0.0-beta.29
110
+
111
+ ## 1.0.0-beta.28
112
+
113
+ ### Patch Changes
114
+
115
+ - @ontrails/core@1.0.0-beta.28
116
+ - @ontrails/store@1.0.0-beta.28
117
+
118
+ ## 1.0.0-beta.27
119
+
120
+ ### Patch Changes
121
+
122
+ - @ontrails/core@1.0.0-beta.27
123
+ - @ontrails/store@1.0.0-beta.27
124
+
125
+ ## 1.0.0-beta.26
126
+
127
+ ### Patch Changes
128
+
129
+ - Updated dependencies [1307568]
130
+ - Updated dependencies [371d19e]
131
+ - @ontrails/core@1.0.0-beta.26
132
+ - @ontrails/store@1.0.0-beta.26
133
+
134
+ ## 1.0.0-beta.25
135
+
136
+ ### Patch Changes
137
+
138
+ - Updated dependencies [c36aca9]
139
+ - Updated dependencies [3befcf1]
140
+ - Updated dependencies [a4f9cf6]
141
+ - Updated dependencies [9bcf34e]
142
+ - @ontrails/core@1.0.0-beta.25
143
+ - @ontrails/store@1.0.0-beta.25
144
+
145
+ ## 1.0.0-beta.24
146
+
147
+ ### Patch Changes
148
+
149
+ - @ontrails/core@1.0.0-beta.24
150
+ - @ontrails/store@1.0.0-beta.24
151
+
152
+ ## 1.0.0-beta.23
153
+
154
+ ### Patch Changes
155
+
156
+ - @ontrails/core@1.0.0-beta.23
157
+ - @ontrails/store@1.0.0-beta.23
158
+
159
+ ## 1.0.0-beta.22
160
+
161
+ ### Patch Changes
162
+
163
+ - @ontrails/core@1.0.0-beta.22
164
+ - @ontrails/store@1.0.0-beta.22
165
+
166
+ ## 1.0.0-beta.21
167
+
168
+ ### Patch Changes
169
+
170
+ - Updated dependencies [99523f2]
171
+ - @ontrails/core@1.0.0-beta.21
172
+ - @ontrails/store@1.0.0-beta.21
173
+
174
+ ## 1.0.0-beta.20
175
+
176
+ ### Patch Changes
177
+
178
+ - Updated dependencies [851a2a3]
179
+ - @ontrails/core@1.0.0-beta.20
180
+ - @ontrails/store@1.0.0-beta.20
181
+
182
+ ## 1.0.0-beta.19
183
+
184
+ ### Patch Changes
185
+
186
+ - e41c382: Document beta-channel install guidance in package and adapter README install snippets so consumers use explicit `@beta` (or pinned `1.0.0-beta.N`) tags instead of accidental `latest` resolution during the prerelease line. Adds the policy doc at `docs/releases/beta-channel-policy.md`, prints both `latest` and `beta` dist-tags in `bun run publish:registry-check`, and aligns plugin/skill install snippets.
187
+ - Updated dependencies [e41c382]
188
+ - Updated dependencies [1eb5bdc]
189
+ - Updated dependencies [f8d80b9]
190
+ - Updated dependencies [846a597]
191
+ - Updated dependencies [223aaad]
192
+ - Updated dependencies [3125f4d]
193
+ - Updated dependencies [2494dc6]
194
+ - Updated dependencies [2d53717]
195
+ - Updated dependencies [16cb740]
196
+ - Updated dependencies [8894ecb]
197
+ - Updated dependencies [fdf7ec9]
198
+ - Updated dependencies [d76be13]
199
+ - Updated dependencies [84f56a5]
200
+ - Updated dependencies [431b04c]
201
+ - Updated dependencies [5d88104]
202
+ - Updated dependencies [f04a9ef]
203
+ - Updated dependencies [ab1c77c]
204
+ - @ontrails/core@1.0.0-beta.19
205
+ - @ontrails/store@1.0.0-beta.19
206
+
207
+ ## 1.0.0-beta.18
208
+
209
+ ### Patch Changes
210
+
211
+ - @ontrails/core@1.0.0-beta.18
212
+ - @ontrails/store@1.0.0-beta.18
213
+
214
+ ## 1.0.0-beta.17
215
+
216
+ ### Patch Changes
217
+
218
+ - Updated dependencies [3dc8254]
219
+ - @ontrails/core@1.0.0-beta.17
220
+ - @ontrails/store@1.0.0-beta.17
221
+
222
+ ## 1.0.0-beta.16
223
+
224
+ ### Patch Changes
225
+
226
+ - f5c6777: Move adapter package workspaces from `connectors/*` to `adapters/*` as part of
227
+ the package-boundary taxonomy cutover. Package names and public APIs are
228
+ unchanged.
229
+ - 3395234: Move store adapter-binding helpers to `@ontrails/store/adapter-support` and topographer direct database/admin helpers to `@ontrails/topographer/backend-support`, keeping root exports focused on contract-level APIs.
230
+ - 6300f70: BREAKING: rename the shared store backend option type from `StoreConnectorOptions` to `StoreAdapterOptions`.
231
+ - 49c2e7d: Refresh published package README taxonomy to use adapter language instead of retired connector vocabulary.
232
+ - df9a7d0: Add project-aware public export-map governance for @ontrails workspace docs,
233
+ imports, root barrels, and bin-only package surfaces.
234
+ - Updated dependencies [73622ae]
235
+ - Updated dependencies [6300f70]
236
+ - Updated dependencies [d172013]
237
+ - Updated dependencies [c3fc5c3]
238
+ - Updated dependencies [20d7a5c]
239
+ - Updated dependencies [be5fb46]
240
+ - Updated dependencies [e898cc4]
241
+ - Updated dependencies [3395234]
242
+ - Updated dependencies [bcdc484]
243
+ - Updated dependencies [6300f70]
244
+ - Updated dependencies [49c2e7d]
245
+ - Updated dependencies [331e3a9]
246
+ - Updated dependencies [4399fdb]
247
+ - Updated dependencies [4b8d13b]
248
+ - Updated dependencies [112b9f2]
249
+ - Updated dependencies [893025e]
250
+ - Updated dependencies [eec5e9d]
251
+ - Updated dependencies [ebd4434]
252
+ - Updated dependencies [863d473]
253
+ - Updated dependencies [344f2f7]
254
+ - Updated dependencies [26f9ffd]
255
+ - Updated dependencies [10eae9a]
256
+ - Updated dependencies [22c6c06]
257
+ - Updated dependencies [df9a7d0]
258
+ - @ontrails/core@1.0.0-beta.16
259
+ - @ontrails/store@1.0.0-beta.16
260
+
261
+ ## 1.0.0-beta.15
262
+
263
+ ### Patch Changes
264
+
265
+ - Updated dependencies [4ad6b25]
266
+ - @ontrails/core@1.0.0-beta.15
267
+ - @ontrails/store@1.0.0-beta.15
package/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # @ontrails/drizzle
2
+
3
+ Drizzle adapter for Trails stores. Use this package to bind a backend-agnostic `store(...)` definition from `@ontrails/store` to a concrete Drizzle runtime.
4
+
5
+ ## Usage
6
+
7
+ ```typescript
8
+ import { store } from '@ontrails/store';
9
+ import { connectDrizzle } from '@ontrails/drizzle';
10
+
11
+ const definition = store({
12
+ gists: {
13
+ schema: gistSchema,
14
+ primaryKey: 'id',
15
+ generated: ['id', 'createdAt', 'updatedAt'],
16
+ },
17
+ });
18
+
19
+ export const db = connectDrizzle(definition, {
20
+ id: 'db.main',
21
+ url: ':memory:',
22
+ });
23
+ ```
24
+
25
+ ## Installation
26
+
27
+ These commands target stable `0.2.0`. Run them after that version is published to npm.
28
+
29
+ ```bash
30
+ bun add --exact @ontrails/store@0.2.0 @ontrails/drizzle@0.2.0 zod
31
+ ```
32
+
33
+ ## Migration
34
+
35
+ <!-- warden-ignore-next-line -->
36
+ This package replaces the old `@ontrails/store/drizzle` subpath.
37
+
38
+ <!-- warden-ignore-next-line -->
39
+ - Before: `import { connectDrizzle } from '@ontrails/store/drizzle'`
40
+ - After: `import { connectDrizzle } from '@ontrails/drizzle'`
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@ontrails/drizzle",
3
+ "version": "0.2.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/outfitter-dev/trails.git",
7
+ "directory": "adapters/drizzle"
8
+ },
9
+ "files": [
10
+ "src/**/*.ts",
11
+ "!src/**/__tests__/**",
12
+ "!src/**/*.test.ts",
13
+ "!src/**/*.test-d.ts",
14
+ "README.md",
15
+ "CHANGELOG.md"
16
+ ],
17
+ "type": "module",
18
+ "exports": {
19
+ ".": "./src/index.ts",
20
+ "./package.json": "./package.json"
21
+ },
22
+ "scripts": {
23
+ "build": "tsc -b",
24
+ "test": "bun test",
25
+ "typecheck": "tsc --noEmit",
26
+ "lint": "oxlint ./src",
27
+ "clean": "rm -rf dist *.tsbuildinfo"
28
+ },
29
+ "dependencies": {
30
+ "@ontrails/core": "^0.2.0",
31
+ "drizzle-orm": "^0.45.2"
32
+ },
33
+ "peerDependencies": {
34
+ "@ontrails/store": "^0.2.0",
35
+ "zod": "^4.3.5"
36
+ },
37
+ "trails": {
38
+ "adapter": {
39
+ "target": "store"
40
+ }
41
+ }
42
+ }
package/src/index.ts ADDED
@@ -0,0 +1,9 @@
1
+ export { connectDrizzle, connectReadOnlyDrizzle } from './runtime.js';
2
+ export type {
3
+ DrizzleQueryContext,
4
+ DrizzleStoreConnection,
5
+ DrizzleStoreOptions,
6
+ DrizzleStoreResource,
7
+ DrizzleStoreSchema,
8
+ ReadOnlyDrizzleStoreConnection,
9
+ } from './types.js';