@instantdb/admin
Advanced tools
Comparing version 0.17.0-experimental.2 to 0.17.0-experimental.3
@@ -43,10 +43,20 @@ import { tx, lookup, i, id, type TransactionChunk, type AuthToken, type Exactly, type User, type Query, type QueryResponse, type InstaQLResponse, type InstaQLParams, type InstantQuery, type InstantQueryResult, type InstantSchema, type InstantSchemaDatabase, type InstantObject, type InstantEntity, type BackwardsCompatibleSchema, type IInstantDatabase, type AttrsDefs, type CardinalityKind, type DataAttrDef, type EntitiesDef, type EntitiesWithLinks, type EntityDef, type InstantGraph, type LinkAttrDef, type LinkDef, type LinksDef, type ResolveAttrs, type ValueTypes, type InstantSchemaDef, type InstantUnknownSchema, type InstaQLEntity, type InstaQLResult, type InstantRules } from "@instantdb/core"; | ||
* @example | ||
* const db = init({ appId: "my-app-id" }) | ||
* import { init } from "@instantdb/admin" | ||
* | ||
* // You can also provide a schema for type safety and editor autocomplete! | ||
* const db = init({ | ||
* appId: "my-app-id", | ||
* adminToken: process.env.INSTANT_ADMIN_TOKEN | ||
* }) | ||
* | ||
* // TODO-now | ||
* // You can also provide a schema for type safety and editor autocomplete! | ||
* | ||
* const db = init<Schema>({ appId: "my-app-id" }) | ||
* import { init } from "@instantdb/admin" | ||
* import schema from ""../instant.schema.ts"; | ||
* | ||
* const db = init({ | ||
* appId: "my-app-id", | ||
* adminToken: process.env.INSTANT_ADMIN_TOKEN, | ||
* schema, | ||
* }) | ||
* // To learn more: https://instantdb.com/docs/modeling-data | ||
*/ | ||
@@ -56,3 +66,13 @@ declare function init<Schema extends InstantSchemaDef<any, any, any> = InstantUnknownSchema>(config: InstantConfig<Schema>): InstantAdminDatabase<Schema>; | ||
* @deprecated | ||
* TODO-now | ||
* `init_experimental` is deprecated. You can replace it with `init`. | ||
* | ||
* @example | ||
* | ||
* // Before | ||
* import { init_experimental } from "@instantdb/admin" | ||
* const db = init_experimental({ ... }); | ||
* | ||
* // After | ||
* import { init } from "@instantdb/admin" | ||
* const db = init({ ... }); | ||
*/ | ||
@@ -59,0 +79,0 @@ declare const init_experimental: typeof init; |
@@ -95,10 +95,20 @@ "use strict"; | ||
* @example | ||
* const db = init({ appId: "my-app-id" }) | ||
* import { init } from "@instantdb/admin" | ||
* | ||
* // You can also provide a schema for type safety and editor autocomplete! | ||
* const db = init({ | ||
* appId: "my-app-id", | ||
* adminToken: process.env.INSTANT_ADMIN_TOKEN | ||
* }) | ||
* | ||
* // TODO-now | ||
* // You can also provide a schema for type safety and editor autocomplete! | ||
* | ||
* const db = init<Schema>({ appId: "my-app-id" }) | ||
* import { init } from "@instantdb/admin" | ||
* import schema from ""../instant.schema.ts"; | ||
* | ||
* const db = init({ | ||
* appId: "my-app-id", | ||
* adminToken: process.env.INSTANT_ADMIN_TOKEN, | ||
* schema, | ||
* }) | ||
* // To learn more: https://instantdb.com/docs/modeling-data | ||
*/ | ||
@@ -110,3 +120,13 @@ function init(config) { | ||
* @deprecated | ||
* TODO-now | ||
* `init_experimental` is deprecated. You can replace it with `init`. | ||
* | ||
* @example | ||
* | ||
* // Before | ||
* import { init_experimental } from "@instantdb/admin" | ||
* const db = init_experimental({ ... }); | ||
* | ||
* // After | ||
* import { init } from "@instantdb/admin" | ||
* const db = init({ ... }); | ||
*/ | ||
@@ -113,0 +133,0 @@ const init_experimental = init; |
@@ -43,10 +43,20 @@ import { tx, lookup, i, id, type TransactionChunk, type AuthToken, type Exactly, type User, type Query, type QueryResponse, type InstaQLResponse, type InstaQLParams, type InstantQuery, type InstantQueryResult, type InstantSchema, type InstantSchemaDatabase, type InstantObject, type InstantEntity, type BackwardsCompatibleSchema, type IInstantDatabase, type AttrsDefs, type CardinalityKind, type DataAttrDef, type EntitiesDef, type EntitiesWithLinks, type EntityDef, type InstantGraph, type LinkAttrDef, type LinkDef, type LinksDef, type ResolveAttrs, type ValueTypes, type InstantSchemaDef, type InstantUnknownSchema, type InstaQLEntity, type InstaQLResult, type InstantRules } from "@instantdb/core"; | ||
* @example | ||
* const db = init({ appId: "my-app-id" }) | ||
* import { init } from "@instantdb/admin" | ||
* | ||
* // You can also provide a schema for type safety and editor autocomplete! | ||
* const db = init({ | ||
* appId: "my-app-id", | ||
* adminToken: process.env.INSTANT_ADMIN_TOKEN | ||
* }) | ||
* | ||
* // TODO-now | ||
* // You can also provide a schema for type safety and editor autocomplete! | ||
* | ||
* const db = init<Schema>({ appId: "my-app-id" }) | ||
* import { init } from "@instantdb/admin" | ||
* import schema from ""../instant.schema.ts"; | ||
* | ||
* const db = init({ | ||
* appId: "my-app-id", | ||
* adminToken: process.env.INSTANT_ADMIN_TOKEN, | ||
* schema, | ||
* }) | ||
* // To learn more: https://instantdb.com/docs/modeling-data | ||
*/ | ||
@@ -56,3 +66,13 @@ declare function init<Schema extends InstantSchemaDef<any, any, any> = InstantUnknownSchema>(config: InstantConfig<Schema>): InstantAdminDatabase<Schema>; | ||
* @deprecated | ||
* TODO-now | ||
* `init_experimental` is deprecated. You can replace it with `init`. | ||
* | ||
* @example | ||
* | ||
* // Before | ||
* import { init_experimental } from "@instantdb/admin" | ||
* const db = init_experimental({ ... }); | ||
* | ||
* // After | ||
* import { init } from "@instantdb/admin" | ||
* const db = init({ ... }); | ||
*/ | ||
@@ -59,0 +79,0 @@ declare const init_experimental: typeof init; |
@@ -84,10 +84,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
* @example | ||
* const db = init({ appId: "my-app-id" }) | ||
* import { init } from "@instantdb/admin" | ||
* | ||
* // You can also provide a schema for type safety and editor autocomplete! | ||
* const db = init({ | ||
* appId: "my-app-id", | ||
* adminToken: process.env.INSTANT_ADMIN_TOKEN | ||
* }) | ||
* | ||
* // TODO-now | ||
* // You can also provide a schema for type safety and editor autocomplete! | ||
* | ||
* const db = init<Schema>({ appId: "my-app-id" }) | ||
* import { init } from "@instantdb/admin" | ||
* import schema from ""../instant.schema.ts"; | ||
* | ||
* const db = init({ | ||
* appId: "my-app-id", | ||
* adminToken: process.env.INSTANT_ADMIN_TOKEN, | ||
* schema, | ||
* }) | ||
* // To learn more: https://instantdb.com/docs/modeling-data | ||
*/ | ||
@@ -99,3 +109,13 @@ function init(config) { | ||
* @deprecated | ||
* TODO-now | ||
* `init_experimental` is deprecated. You can replace it with `init`. | ||
* | ||
* @example | ||
* | ||
* // Before | ||
* import { init_experimental } from "@instantdb/admin" | ||
* const db = init_experimental({ ... }); | ||
* | ||
* // After | ||
* import { init } from "@instantdb/admin" | ||
* const db = init({ ... }); | ||
*/ | ||
@@ -102,0 +122,0 @@ const init_experimental = init; |
export default version; | ||
declare const version: "v0.17.0-experimental.2"; | ||
declare const version: "v0.17.0-experimental.3"; | ||
//# sourceMappingURL=version.d.ts.map |
// Autogenerated by publish_packages.clj | ||
const version = "v0.17.0-experimental.2"; | ||
const version = "v0.17.0-experimental.3"; | ||
export default version; | ||
//# sourceMappingURL=version.js.map |
export default version; | ||
declare const version: "v0.17.0-experimental.2"; | ||
declare const version: "v0.17.0-experimental.3"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// Autogenerated by publish_packages.clj | ||
const version = "v0.17.0-experimental.2"; | ||
const version = "v0.17.0-experimental.3"; | ||
exports.default = version; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@instantdb/admin", | ||
"version": "v0.17.0-experimental.2", | ||
"version": "v0.17.0-experimental.3", | ||
"description": "Admin SDK for Instant DB", | ||
@@ -28,4 +28,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@instantdb/core": "v0.17.0-experimental.2" | ||
"@instantdb/core": "v0.17.0-experimental.3" | ||
} | ||
} |
@@ -171,3 +171,2 @@ import { | ||
/** | ||
@@ -180,10 +179,20 @@ * | ||
* @example | ||
* const db = init({ appId: "my-app-id" }) | ||
* import { init } from "@instantdb/admin" | ||
* | ||
* // You can also provide a schema for type safety and editor autocomplete! | ||
* const db = init({ | ||
* appId: "my-app-id", | ||
* adminToken: process.env.INSTANT_ADMIN_TOKEN | ||
* }) | ||
* | ||
* // TODO-now | ||
* // You can also provide a schema for type safety and editor autocomplete! | ||
* | ||
* const db = init<Schema>({ appId: "my-app-id" }) | ||
* import { init } from "@instantdb/admin" | ||
* import schema from ""../instant.schema.ts"; | ||
* | ||
* const db = init({ | ||
* appId: "my-app-id", | ||
* adminToken: process.env.INSTANT_ADMIN_TOKEN, | ||
* schema, | ||
* }) | ||
* // To learn more: https://instantdb.com/docs/modeling-data | ||
*/ | ||
@@ -198,5 +207,15 @@ function init< | ||
* @deprecated | ||
* TODO-now | ||
* `init_experimental` is deprecated. You can replace it with `init`. | ||
* | ||
* @example | ||
* | ||
* // Before | ||
* import { init_experimental } from "@instantdb/admin" | ||
* const db = init_experimental({ ... }); | ||
* | ||
* // After | ||
* import { init } from "@instantdb/admin" | ||
* const db = init({ ... }); | ||
*/ | ||
const init_experimental = init; | ||
const init_experimental = init; | ||
@@ -203,0 +222,0 @@ /** |
// Autogenerated by publish_packages.clj | ||
const version = "v0.17.0-experimental.2"; | ||
const version = "v0.17.0-experimental.3"; | ||
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
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
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
210924
3232