@instantdb/core
Advanced tools
Comparing version 0.17.0-experimental.4 to 0.17.0-experimental.5
@@ -727,3 +727,2 @@ import { test, expect } from "vitest"; | ||
}, | ||
rooms: {}, | ||
}); | ||
@@ -818,3 +817,2 @@ | ||
}, | ||
rooms: {}, | ||
}); | ||
@@ -875,4 +873,2 @@ | ||
}, | ||
links: {}, | ||
rooms: {}, | ||
}); | ||
@@ -939,3 +935,2 @@ | ||
}, | ||
rooms: {}, | ||
}); | ||
@@ -1022,3 +1017,2 @@ | ||
}, | ||
rooms: {}, | ||
}); | ||
@@ -1116,3 +1110,2 @@ | ||
}, | ||
rooms: {}, | ||
}); | ||
@@ -1201,3 +1194,2 @@ | ||
}, | ||
rooms: {}, | ||
}); | ||
@@ -1267,4 +1259,2 @@ const uid = uuid(); | ||
}, | ||
links: {}, | ||
rooms: {}, | ||
}); | ||
@@ -1271,0 +1261,0 @@ |
@@ -846,3 +846,2 @@ import { test, expect } from "vitest"; | ||
}, | ||
links: {}, | ||
}); | ||
@@ -1066,4 +1065,2 @@ | ||
}, | ||
links: {}, | ||
rooms: {}, | ||
}); | ||
@@ -1070,0 +1067,0 @@ |
@@ -19,3 +19,2 @@ import { test, expect } from "vitest"; | ||
}, | ||
rooms: {}, | ||
}); | ||
@@ -98,3 +97,2 @@ | ||
}, | ||
rooms: {}, | ||
}); | ||
@@ -101,0 +99,0 @@ |
@@ -76,3 +76,2 @@ import { test } from "vitest"; | ||
}, | ||
rooms: {}, | ||
}); | ||
@@ -79,0 +78,0 @@ |
@@ -58,4 +58,4 @@ import { EntityDef, DataAttrDef, InstantSchemaDef, type EntitiesDef, type AttrsDefs, type EntitiesWithLinks, type LinksDef, type RoomsDef, type UnknownRooms } from "./schemaTypes"; | ||
entities: EntitiesWithoutLinks; | ||
links: Links; | ||
rooms: Rooms; | ||
links?: Links; | ||
rooms?: Rooms; | ||
}): InstantSchemaDef<EntitiesWithLinks<EntitiesWithoutLinks, Links>, LinksDef<any>, Rooms>; | ||
@@ -62,0 +62,0 @@ export declare const i: { |
@@ -104,3 +104,5 @@ import { EntityDef, DataAttrDef, InstantSchemaDef, } from "./schemaTypes"; | ||
function schema({ entities, links, rooms, }) { | ||
return new InstantSchemaDef(enrichEntitiesWithLinks(entities, links), | ||
const linksDef = links !== null && links !== void 0 ? links : {}; | ||
const roomsDef = rooms !== null && rooms !== void 0 ? rooms : {}; | ||
return new InstantSchemaDef(enrichEntitiesWithLinks(entities, linksDef), | ||
// (XXX): LinksDef<any> stems from TypeScript’s inability to reconcile the | ||
@@ -111,3 +113,3 @@ // type EntitiesWithLinks<EntitiesWithoutLinks, Links> with | ||
// be broader or have additional properties. | ||
links, rooms); | ||
linksDef, roomsDef); | ||
} | ||
@@ -114,0 +116,0 @@ export const i = { |
export default version; | ||
declare const version: "v0.17.0-experimental.4"; | ||
declare const version: "0.17.0-experimental.5"; | ||
//# sourceMappingURL=version.d.ts.map |
// Autogenerated by publish_packages.clj | ||
const version = "v0.17.0-experimental.4"; | ||
const version = "0.17.0-experimental.5"; | ||
export default version; | ||
//# sourceMappingURL=version.js.map |
@@ -58,4 +58,4 @@ import { EntityDef, DataAttrDef, InstantSchemaDef, type EntitiesDef, type AttrsDefs, type EntitiesWithLinks, type LinksDef, type RoomsDef, type UnknownRooms } from "./schemaTypes"; | ||
entities: EntitiesWithoutLinks; | ||
links: Links; | ||
rooms: Rooms; | ||
links?: Links; | ||
rooms?: Rooms; | ||
}): InstantSchemaDef<EntitiesWithLinks<EntitiesWithoutLinks, Links>, LinksDef<any>, Rooms>; | ||
@@ -62,0 +62,0 @@ export declare const i: { |
@@ -107,3 +107,5 @@ "use strict"; | ||
function schema({ entities, links, rooms, }) { | ||
return new schemaTypes_1.InstantSchemaDef(enrichEntitiesWithLinks(entities, links), | ||
const linksDef = links !== null && links !== void 0 ? links : {}; | ||
const roomsDef = rooms !== null && rooms !== void 0 ? rooms : {}; | ||
return new schemaTypes_1.InstantSchemaDef(enrichEntitiesWithLinks(entities, linksDef), | ||
// (XXX): LinksDef<any> stems from TypeScript’s inability to reconcile the | ||
@@ -114,3 +116,3 @@ // type EntitiesWithLinks<EntitiesWithoutLinks, Links> with | ||
// be broader or have additional properties. | ||
links, rooms); | ||
linksDef, roomsDef); | ||
} | ||
@@ -117,0 +119,0 @@ exports.i = { |
export default version; | ||
declare const version: "v0.17.0-experimental.4"; | ||
declare const version: "0.17.0-experimental.5"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// Autogenerated by publish_packages.clj | ||
const version = "v0.17.0-experimental.4"; | ||
const version = "0.17.0-experimental.5"; | ||
exports.default = version; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@instantdb/core", | ||
"version": "v0.17.0-experimental.4", | ||
"version": "0.17.0-experimental.5", | ||
"description": "Instant's core local abstraction", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -164,7 +164,9 @@ import { | ||
entities: EntitiesWithoutLinks; | ||
links: Links; | ||
rooms: Rooms; | ||
links?: Links; | ||
rooms?: Rooms; | ||
}) { | ||
const linksDef = links ?? {} as Links; | ||
const roomsDef = rooms ?? {} as Rooms; | ||
return new InstantSchemaDef( | ||
enrichEntitiesWithLinks<EntitiesWithoutLinks, Links>(entities, links), | ||
enrichEntitiesWithLinks<EntitiesWithoutLinks, Links>(entities, linksDef), | ||
// (XXX): LinksDef<any> stems from TypeScript’s inability to reconcile the | ||
@@ -175,4 +177,4 @@ // type EntitiesWithLinks<EntitiesWithoutLinks, Links> with | ||
// be broader or have additional properties. | ||
links as LinksDef<any>, | ||
rooms, | ||
linksDef as LinksDef<any>, | ||
roomsDef, | ||
); | ||
@@ -179,0 +181,0 @@ } |
// Autogenerated by publish_packages.clj | ||
const version = "v0.17.0-experimental.4"; | ||
const version = "0.17.0-experimental.5"; | ||
export default version; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
2567841
8
45675