@cedarjs/record 3.1.2-next.0 → 3.1.2-next.128
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 +1 -1
- package/dist/cjs/index.js +5 -5
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ There is also an `errors.js` file which contains all error messages that Redwood
|
|
|
22
22
|
|
|
23
23
|
### Tasks
|
|
24
24
|
|
|
25
|
-
RedwoodRecord depends on reading the Prisma schema file to determine relations to other tables. In order to avoid the `async` wait when parsing the schema with Prisma's built-in function, we have a task which parses the schema file and then saves out a JSON version to the cache `.
|
|
25
|
+
RedwoodRecord depends on reading the Prisma schema file to determine relations to other tables. In order to avoid the `async` wait when parsing the schema with Prisma's built-in function, we have a task which parses the schema file and then saves out a JSON version to the cache `.cedar` directory. This task also creates an `index.js` file in your `api/src/models` directory that imports the models themselves and also adds some configuration to support relations without a circular dependency. The models are then re-exported.
|
|
26
26
|
|
|
27
27
|
This task is run with:
|
|
28
28
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -26,22 +26,22 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var index_exports = {};
|
|
30
|
+
__export(index_exports, {
|
|
31
31
|
Core: () => import_Core.default,
|
|
32
32
|
RedwoodRecord: () => import_RedwoodRecord.default,
|
|
33
33
|
Reflection: () => import_Reflection.default,
|
|
34
34
|
RelationProxy: () => import_RelationProxy.default,
|
|
35
35
|
ValidationMixin: () => import_ValidationMixin.default
|
|
36
36
|
});
|
|
37
|
-
module.exports = __toCommonJS(
|
|
38
|
-
__reExport(
|
|
37
|
+
module.exports = __toCommonJS(index_exports);
|
|
38
|
+
__reExport(index_exports, require("./errors"), module.exports);
|
|
39
39
|
var import_Core = __toESM(require("./redwoodrecord/Core"), 1);
|
|
40
40
|
var import_Reflection = __toESM(require("./redwoodrecord/Reflection"), 1);
|
|
41
41
|
var import_RelationProxy = __toESM(require("./redwoodrecord/RelationProxy"), 1);
|
|
42
42
|
var import_ValidationMixin = __toESM(require("./redwoodrecord/ValidationMixin"), 1);
|
|
43
43
|
var import_RedwoodRecord = __toESM(require("./redwoodrecord/RedwoodRecord"), 1);
|
|
44
|
-
__reExport(
|
|
44
|
+
__reExport(index_exports, require("./tasks/parse"), module.exports);
|
|
45
45
|
// Annotate the CommonJS export names for ESM import in node:
|
|
46
46
|
0 && (module.exports = {
|
|
47
47
|
Core,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/record",
|
|
3
|
-
"version": "3.1.2-next.
|
|
3
|
+
"version": "3.1.2-next.128+165de00ea8",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"test:watch": "vitest watch"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cedarjs/api": "3.1.2-next.
|
|
33
|
-
"@cedarjs/project-config": "3.1.2-next.
|
|
34
|
-
"@prisma/client": "7.
|
|
32
|
+
"@cedarjs/api": "3.1.2-next.128+165de00ea8",
|
|
33
|
+
"@cedarjs/project-config": "3.1.2-next.128+165de00ea8",
|
|
34
|
+
"@prisma/client": "7.7.0",
|
|
35
35
|
"camelcase": "6.3.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@cedarjs/framework-tools": "3.1.2-next.
|
|
39
|
-
"@prisma/internals": "7.
|
|
40
|
-
"esbuild": "0.
|
|
38
|
+
"@cedarjs/framework-tools": "3.1.2-next.128",
|
|
39
|
+
"@prisma/internals": "7.7.0",
|
|
40
|
+
"esbuild": "0.27.7",
|
|
41
41
|
"publint": "0.3.18",
|
|
42
42
|
"tsx": "4.21.0",
|
|
43
43
|
"vitest": "3.2.4"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "165de00ea86321332d0905102862b1165bcb726f"
|
|
52
52
|
}
|