@instantdb/react
Advanced tools
Comparing version 0.12.23 to 0.12.24-experimental.0
@@ -1,2 +0,2 @@ | ||
import { id, tx, lookup, i, type QueryResponse, type InstantObject, type User, type AuthState, type Query, type Config } from "@instantdb/core"; | ||
import { id, tx, lookup, i, type QueryResponse, type InstantQuery, type InstantQueryResult, type InstantObject, type User, type AuthState, type Query, type Config } from "@instantdb/core"; | ||
import { InstantReact } from "./InstantReact"; | ||
@@ -6,3 +6,3 @@ import { InstantReactWeb } from "./InstantReactWeb"; | ||
import { Cursors } from "./Cursors"; | ||
export { id, tx, lookup, init, init_experimental, InstantReactWeb, Cursors, InstantReact, Config, Query, QueryResponse, InstantObject, User, AuthState, i, }; | ||
export { id, tx, lookup, init, init_experimental, InstantReactWeb, Cursors, i, InstantReact, Config, Query, QueryResponse, InstantObject, User, AuthState, InstantQuery, InstantQueryResult, }; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.i = exports.InstantReact = exports.Cursors = exports.InstantReactWeb = exports.init_experimental = exports.init = exports.lookup = exports.tx = exports.id = void 0; | ||
exports.InstantReact = exports.i = exports.Cursors = exports.InstantReactWeb = exports.init_experimental = exports.init = exports.lookup = exports.tx = exports.id = void 0; | ||
const core_1 = require("@instantdb/core"); | ||
@@ -5,0 +5,0 @@ Object.defineProperty(exports, "id", { enumerable: true, get: function () { return core_1.id; } }); |
@@ -1,2 +0,2 @@ | ||
import { Config, Query, Exactly, AuthState, InstantClient, TransactionChunk, Auth, LifecycleSubscriptionState, PresenceOpts, PresenceResponse, RoomSchemaShape, Storage, InstaQLQueryParams, ConfigWithSchema, i } from "@instantdb/core"; | ||
import { InstantClient, Auth, Storage, i, type AuthState, type Config, type Query, type Exactly, type TransactionChunk, type LifecycleSubscriptionState, type PresenceOpts, type PresenceResponse, type RoomSchemaShape, type InstaQLQueryParams, type ConfigWithSchema, type IDatabase } from "@instantdb/core"; | ||
import { KeyboardEvent } from "react"; | ||
@@ -98,3 +98,3 @@ export type PresenceHandle<PresenceShape, Keys extends keyof PresenceShape> = PresenceResponse<PresenceShape, Keys> & { | ||
} | ||
export declare abstract class InstantReact<Schema extends i.InstantGraph<any, any> | {} = {}, RoomSchema extends RoomSchemaShape = {}, WithCardinalityInference extends boolean = false> { | ||
export declare abstract class InstantReact<Schema extends i.InstantGraph<any, any> | {} = {}, RoomSchema extends RoomSchemaShape = {}, WithCardinalityInference extends boolean = false> implements IDatabase { | ||
tx: import("@instantdb/core").TxChunk<Schema extends i.InstantGraph<any, any, {}> ? Schema : i.InstantGraph<any, any, {}>>; | ||
@@ -101,0 +101,0 @@ auth: Auth; |
@@ -1,2 +0,2 @@ | ||
import { id, tx, lookup, i, type QueryResponse, type InstantObject, type User, type AuthState, type Query, type Config } from "@instantdb/core"; | ||
import { id, tx, lookup, i, type QueryResponse, type InstantQuery, type InstantQueryResult, type InstantObject, type User, type AuthState, type Query, type Config } from "@instantdb/core"; | ||
import { InstantReact } from "./InstantReact"; | ||
@@ -6,3 +6,3 @@ import { InstantReactWeb } from "./InstantReactWeb"; | ||
import { Cursors } from "./Cursors"; | ||
export { id, tx, lookup, init, init_experimental, InstantReactWeb, Cursors, InstantReact, Config, Query, QueryResponse, InstantObject, User, AuthState, i, }; | ||
export { id, tx, lookup, init, init_experimental, InstantReactWeb, Cursors, i, InstantReact, Config, Query, QueryResponse, InstantObject, User, AuthState, InstantQuery, InstantQueryResult, }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -6,5 +6,5 @@ import { id, tx, lookup, i, } from "@instantdb/core"; | ||
import { Cursors } from "./Cursors"; | ||
export { id, tx, lookup, init, init_experimental, InstantReactWeb, Cursors, | ||
export { id, tx, lookup, init, init_experimental, InstantReactWeb, Cursors, i, | ||
// internal | ||
InstantReact, i, }; | ||
InstantReact, }; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import { Config, Query, Exactly, AuthState, InstantClient, TransactionChunk, Auth, LifecycleSubscriptionState, PresenceOpts, PresenceResponse, RoomSchemaShape, Storage, InstaQLQueryParams, ConfigWithSchema, i } from "@instantdb/core"; | ||
import { InstantClient, Auth, Storage, i, type AuthState, type Config, type Query, type Exactly, type TransactionChunk, type LifecycleSubscriptionState, type PresenceOpts, type PresenceResponse, type RoomSchemaShape, type InstaQLQueryParams, type ConfigWithSchema, type IDatabase } from "@instantdb/core"; | ||
import { KeyboardEvent } from "react"; | ||
@@ -98,3 +98,3 @@ export type PresenceHandle<PresenceShape, Keys extends keyof PresenceShape> = PresenceResponse<PresenceShape, Keys> & { | ||
} | ||
export declare abstract class InstantReact<Schema extends i.InstantGraph<any, any> | {} = {}, RoomSchema extends RoomSchemaShape = {}, WithCardinalityInference extends boolean = false> { | ||
export declare abstract class InstantReact<Schema extends i.InstantGraph<any, any> | {} = {}, RoomSchema extends RoomSchemaShape = {}, WithCardinalityInference extends boolean = false> implements IDatabase { | ||
tx: import("@instantdb/core").TxChunk<Schema extends i.InstantGraph<any, any, {}> ? Schema : i.InstantGraph<any, any, {}>>; | ||
@@ -101,0 +101,0 @@ auth: Auth; |
{ | ||
"name": "@instantdb/react", | ||
"version": "v0.12.23", | ||
"version": "v0.12.24-experimental.0", | ||
"description": "Instant DB for React", | ||
@@ -34,4 +34,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@instantdb/core": "v0.12.23" | ||
"@instantdb/core": "v0.12.24-experimental.0" | ||
} | ||
} |
@@ -9,2 +9,4 @@ import { | ||
type QueryResponse, | ||
type InstantQuery, | ||
type InstantQueryResult, | ||
type InstantObject, | ||
@@ -30,2 +32,3 @@ type User, | ||
Cursors, | ||
i, | ||
@@ -42,3 +45,4 @@ // internal | ||
AuthState, | ||
i, | ||
InstantQuery, | ||
InstantQueryResult, | ||
}; |
import { | ||
// types | ||
Config, | ||
Query, | ||
Exactly, | ||
AuthState, | ||
InstantClient, | ||
TransactionChunk, | ||
Auth, | ||
LifecycleSubscriptionState, | ||
PresenceOpts, | ||
PresenceResponse, | ||
RoomSchemaShape, | ||
Storage, | ||
txInit, | ||
InstaQLQueryParams, | ||
ConfigWithSchema, | ||
_init_internal, | ||
i, | ||
_init_internal, | ||
type AuthState, | ||
type Config, | ||
type Query, | ||
type Exactly, | ||
type TransactionChunk, | ||
type LifecycleSubscriptionState, | ||
type PresenceOpts, | ||
type PresenceResponse, | ||
type RoomSchemaShape, | ||
type InstaQLQueryParams, | ||
type ConfigWithSchema, | ||
type IDatabase, | ||
} from "@instantdb/core"; | ||
@@ -289,3 +290,4 @@ import { | ||
WithCardinalityInference extends boolean = false, | ||
> { | ||
> implements IDatabase | ||
{ | ||
public tx = | ||
@@ -292,0 +294,0 @@ txInit< |
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 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
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
411560
7331