@livequery/react 1.0.95 → 1.0.96

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.
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { createContextFromHook } from './hooks/createContextFromHook';
2
+ import { createContextFromHook } from './hooks/createContextFromHook.js';
3
3
  export const [useLiveQueryContext, LiveQueryContextProvider] = createContextFromHook((props) => props);
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { createContextFromHook } from './createContextFromHook';
2
+ import { createContextFromHook } from './createContextFromHook.js';
3
3
  export const createStaticContext = () => createContextFromHook((props) => props.value);
package/build/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from "./useDocumentData";
2
- export * from './useCollectionData';
3
- export * from './useMonitor';
4
- export * from "./LiveQueryContext";
5
- export * from './hooks/createContextFromHook';
6
- export * from './hooks/createStaticContext';
1
+ export * from "./useDocumentData.js";
2
+ export * from './useCollectionData.js';
3
+ export * from './useMonitor.js';
4
+ export * from "./LiveQueryContext.js";
5
+ export * from './hooks/createContextFromHook.js';
6
+ export * from './hooks/createStaticContext.js';
package/build/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export * from "./useDocumentData";
2
- export * from './useCollectionData';
3
- export * from './useMonitor';
4
- export * from "./LiveQueryContext";
5
- export * from './hooks/createContextFromHook';
6
- export * from './hooks/createStaticContext';
1
+ export * from "./useDocumentData.js";
2
+ export * from './useCollectionData.js';
3
+ export * from './useMonitor.js';
4
+ export * from "./LiveQueryContext.js";
5
+ export * from './hooks/createContextFromHook.js';
6
+ export * from './hooks/createStaticContext.js';
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { useEffect, useMemo } from "react";
3
- import { useLiveQueryContext } from "./LiveQueryContext";
4
- import { useObservable } from "./useObservable";
3
+ import { useLiveQueryContext } from "./LiveQueryContext.js";
4
+ import { useObservable } from "./useObservable.js";
5
5
  import { CollectionObservable } from "@livequery/client";
6
6
  function assert(fn, thiss) {
7
7
  return (fn || (() => { })).bind(thiss);
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useCollectionData } from "./useCollectionData";
2
+ import { useCollectionData } from "./useCollectionData.js";
3
3
  export const useDocumentData = (ref, options) => {
4
4
  const { items, loading, error, reload, $changes } = useCollectionData(ref, options);
5
5
  return {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "url": "https://github.com/livequery/react"
5
5
  },
6
6
  "type": "module",
7
- "version": "1.0.95",
7
+ "version": "1.0.96",
8
8
  "description": "",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",