hekireki 0.41.0 → 0.42.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/README.md +8 -0
- package/dist/bin/activerecord.js +1 -1
- package/dist/bin/ajv.js +1 -1
- package/dist/bin/arktype.js +1 -1
- package/dist/bin/atlas.js +1 -1
- package/dist/bin/django.js +1 -1
- package/dist/bin/drizzle.js +1 -1
- package/dist/bin/ecto.js +1 -1
- package/dist/bin/efcore.js +1 -1
- package/dist/bin/effect.js +1 -1
- package/dist/bin/eloquent.js +1 -1
- package/dist/bin/er.js +1 -1
- package/dist/bin/exposed.js +1 -1
- package/dist/bin/gorm.js +1 -1
- package/dist/bin/hekireki.js +5 -5
- package/dist/bin/kysely.js +1 -1
- package/dist/bin/openapi.js +1 -1
- package/dist/bin/pydantic.js +1 -1
- package/dist/bin/sea-orm.js +1 -1
- package/dist/bin/seed.js +1 -1
- package/dist/bin/sqlalchemy.js +1 -1
- package/dist/bin/typebox.js +1 -1
- package/dist/bin/valibot.js +1 -1
- package/dist/bin/zod.js +1 -1
- package/dist/{bin-T1le3lMh.js → bin-CW-vHdsl.js} +834 -320
- package/dist/{discover-BaDQsKnF.js → discover-Dyzb_7x-.js} +1 -1
- package/dist/{emit-C4CeSye3.js → emit-CbBm_I0C.js} +1 -1
- package/dist/{migrate-2xlj7ayX.js → migrate-B-EMC7CC.js} +3 -3
- package/dist/{plan-B8PRmVdV.js → plan-DVBOCKsd.js} +3 -3
- package/dist/{prisma-model-DFq7AQgV.js → prisma-model-D98BBcmY.js} +12 -1
- package/dist/{run-BQlJs4wi.js → run-BKHmqvBJ.js} +4 -4
- package/dist/{schema-CfxnFLAw.js → schema-BRtObhQG.js} +1 -1
- package/dist/{sql-izRRI1Bi.js → sql-BYvD2bjK.js} +1 -1
- package/dist/{start-C7m4KyUz.js → start-KD0RjI3H.js} +128 -128
- package/dist/studio/assets/{chip-D4JuozFz.js → chip-Yqg0IG0j.js} +1 -1
- package/dist/studio/assets/{client-DTRYUhbF.js → client-C-v3Paav.js} +1 -1
- package/dist/studio/assets/{code-block-B7oBDy4S.js → code-block-CPMTXPBi.js} +1 -1
- package/dist/studio/assets/{confirm-dialog-DgDjONHy.js → confirm-dialog-CKCkchiq.js} +1 -1
- package/dist/studio/assets/{copy-CO4Wewxa.js → copy-BwEVZZV_.js} +1 -1
- package/dist/studio/assets/{copy-button-DDzfUcsZ.js → copy-button-jDpd_nhT.js} +1 -1
- package/dist/studio/assets/{docs-DyJ-qhu9.js → docs-CXORFY0Y.js} +1 -1
- package/dist/studio/assets/{enums._name-CcIWxnq0.js → enums._name-BUBU_WMt.js} +1 -1
- package/dist/studio/assets/{field-icon-DwOxCe9v.js → field-icon-C1wSRFKO.js} +1 -1
- package/dist/studio/assets/hooks-DXskM7gG.js +2 -0
- package/dist/studio/assets/{index-D2cpa83b.js → index-DzCcMC-d.js} +4 -4
- package/dist/studio/assets/{labels-BrdjOFB0.js → labels-B5gZ2suK.js} +1 -1
- package/dist/studio/assets/{lazyRouteComponent-CzElNsBd.js → lazyRouteComponent-8L8QSEt_.js} +1 -1
- package/dist/studio/assets/{lu-BwZ0uwaH.js → lu-CuC8O-Qz.js} +1 -1
- package/dist/studio/assets/{marked-text-CRUtsVYt.js → marked-text-B27DfhKS.js} +1 -1
- package/dist/studio/assets/{models._name-Drem1hqS.js → models._name-CQFgPD0T.js} +1 -1
- package/dist/studio/assets/{monaco-Doo5FK2W.js → monaco-CMwienx7.js} +1 -1
- package/dist/studio/assets/{monaco-CKCcdl6_.js → monaco-DRYJTcJl.js} +1 -1
- package/dist/studio/assets/{not-found-KT_nPOAU.js → not-found-69Bz9b3p.js} +1 -1
- package/dist/studio/assets/{prisma-4lQKwVn6.js → prisma-1nDx08Wb.js} +1 -1
- package/dist/studio/assets/{result-table-DY7sKJQq.js → result-table-0P18Nywh.js} +1 -1
- package/dist/studio/assets/routes-Bl7HRpBJ.js +1 -0
- package/dist/studio/assets/{schema-gate-Dq2l2Sh6.js → schema-gate-BmKFmHnL.js} +1 -1
- package/dist/studio/assets/schema-view-BEdx0cC2.js +9 -0
- package/dist/studio/assets/{sql-CjIkv--0.js → sql-GBZZtEKI.js} +1 -1
- package/dist/studio/assets/{table-BxRDQMeA.js → table-UZ-Yt-OH.js} +1 -1
- package/dist/studio/assets/{tabs-BwlFa2ot.js → tabs-BpZ0hh1V.js} +1 -1
- package/dist/studio/assets/{useFormValidation-DifOycKN.js → useFormValidation-CC75L7h9.js} +1 -1
- package/dist/studio/assets/{useMatch-D2UWqcDy.js → useMatch-BF6XlF2m.js} +1 -1
- package/dist/studio/assets/{useMultipleSelectionState-2b0OEWtf.js → useMultipleSelectionState-zIKA_ZNd.js} +1 -1
- package/dist/studio/index.html +9 -9
- package/package.json +10 -10
- package/dist/studio/assets/hooks-6J-1786l.js +0 -2
- package/dist/studio/assets/routes-D6hrrw5V.js +0 -1
- package/dist/studio/assets/schema-view-CnitOLrD.js +0 -9
package/README.md
CHANGED
|
@@ -103,6 +103,14 @@ needs it). What Rails works out on its own (`table_name`, `class_name`, `foreign
|
|
|
103
103
|
written: `attribute` defaults, `enum`, timestamps, associations with `dependent:` from `onDelete`,
|
|
104
104
|
and validations from the columns (`presence`, `uniqueness`, `length`).
|
|
105
105
|
|
|
106
|
+
Rails' own inflections decide what is left unsaid: `has_many :event_data` of `EventData` names
|
|
107
|
+
the class, as Rails would look for `EventDatum`. A name Rails refuses is given another: a model
|
|
108
|
+
named after a constant Ruby or Rails has already loaded (`Monitor`, `Set`, `Data`) is written as
|
|
109
|
+
`MonitorRecord`, with its table named, and a relation named after a method Active Record defines
|
|
110
|
+
on a record (`attributes`, `errors`) becomes the association Rails would name after its class
|
|
111
|
+
(`contact_attributes`), or where that is the same name, one with the model's name before it
|
|
112
|
+
(`organization_errors`).
|
|
113
|
+
|
|
106
114
|
A `/// @ar.` line on a field is a validator (`presence`, `length(maximum: 255)`) added to that
|
|
107
115
|
field's `validates`; on a model it is a Ruby line written into the class as it is
|
|
108
116
|
(`has_secure_password`, `has_many :tags, through: :post_tags`, `scope ...`). A message or name
|
package/dist/bin/activerecord.js
CHANGED
package/dist/bin/ajv.js
CHANGED
package/dist/bin/arktype.js
CHANGED
package/dist/bin/atlas.js
CHANGED
package/dist/bin/django.js
CHANGED
package/dist/bin/drizzle.js
CHANGED
package/dist/bin/ecto.js
CHANGED
package/dist/bin/efcore.js
CHANGED
package/dist/bin/effect.js
CHANGED
package/dist/bin/eloquent.js
CHANGED
package/dist/bin/er.js
CHANGED
package/dist/bin/exposed.js
CHANGED
package/dist/bin/gorm.js
CHANGED
package/dist/bin/hekireki.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Console, Data, Effect, Schema } from "effect";
|
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { CliError, Command, Flag } from "effect/cli";
|
|
8
8
|
// package.json
|
|
9
|
-
var version = "0.
|
|
9
|
+
var version = "0.42.0";
|
|
10
10
|
// src/schema/path.ts
|
|
11
11
|
/** Where Prisma looks for a schema when neither the command nor prisma.config.ts names one. */
|
|
12
12
|
const DEFAULT_SCHEMA_PATHS = ["prisma/schema.prisma", "schema.prisma"];
|
|
@@ -135,7 +135,7 @@ const studioFlags = {
|
|
|
135
135
|
function runStudio(args) {
|
|
136
136
|
return Effect.gen(function* () {
|
|
137
137
|
const schemaPath = yield* resolveSchemaPath(args.schema, [COMMAND_NAME, "studio"]);
|
|
138
|
-
const { startStudioServer } = yield* Effect.promise(() => import("../start-
|
|
138
|
+
const { startStudioServer } = yield* Effect.promise(() => import("../start-KD0RjI3H.js"));
|
|
139
139
|
const started = yield* startStudioServer({
|
|
140
140
|
schemaPath,
|
|
141
141
|
port: args.port,
|
|
@@ -183,7 +183,7 @@ const seedFlags = {
|
|
|
183
183
|
};
|
|
184
184
|
function runSeedCommand(args) {
|
|
185
185
|
return Effect.gen(function* () {
|
|
186
|
-
const { runSeed, seedBanner } = yield* Effect.promise(() => import("../run-
|
|
186
|
+
const { runSeed, seedBanner } = yield* Effect.promise(() => import("../run-BKHmqvBJ.js"));
|
|
187
187
|
const report = yield* runSeed(args, process.cwd()).pipe(Effect.mapError((error) => new CliError.UserError({ cause: error.message })));
|
|
188
188
|
yield* Console.log(seedBanner(report));
|
|
189
189
|
});
|
|
@@ -226,7 +226,7 @@ function runMigrateCheckCommand(args) {
|
|
|
226
226
|
"migrate",
|
|
227
227
|
"check"
|
|
228
228
|
]);
|
|
229
|
-
const { checkBanner, checkJson, runMigrateCheck, summarize } = yield* Effect.promise(() => import("../migrate-
|
|
229
|
+
const { checkBanner, checkJson, runMigrateCheck, summarize } = yield* Effect.promise(() => import("../migrate-B-EMC7CC.js"));
|
|
230
230
|
const report = yield* runMigrateCheck({
|
|
231
231
|
...args,
|
|
232
232
|
schemaPath,
|
|
@@ -273,7 +273,7 @@ function runMigratePlanCommand(args) {
|
|
|
273
273
|
"migrate",
|
|
274
274
|
"plan"
|
|
275
275
|
]);
|
|
276
|
-
const { checkBanner, planSql, readMigration, runMigrateCheck, summarize, writePlan } = yield* Effect.promise(() => import("../migrate-
|
|
276
|
+
const { checkBanner, planSql, readMigration, runMigrateCheck, summarize, writePlan } = yield* Effect.promise(() => import("../migrate-B-EMC7CC.js"));
|
|
277
277
|
const report = yield* runMigrateCheck({
|
|
278
278
|
...args,
|
|
279
279
|
schemaPath,
|
package/dist/bin/kysely.js
CHANGED
package/dist/bin/openapi.js
CHANGED
package/dist/bin/pydantic.js
CHANGED
package/dist/bin/sea-orm.js
CHANGED
package/dist/bin/seed.js
CHANGED
package/dist/bin/sqlalchemy.js
CHANGED
package/dist/bin/typebox.js
CHANGED
package/dist/bin/valibot.js
CHANGED
package/dist/bin/zod.js
CHANGED