From 3d30f0a847442ee71ff130060b4a53f78b08bdfd Mon Sep 17 00:00:00 2001 From: Ivan S Glazunov Date: Mon, 16 Sep 2024 19:57:06 +0000 Subject: [PATCH] 0.0.531 --- README.md | 3 +++ imports/client.tsx | 4 ++-- package.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 01505212..c4c69703 100644 --- a/README.md +++ b/README.md @@ -193,4 +193,7 @@ const readed = await packages.read(process.cwd()); // { [name@version]: Package } const imported = await packages.import(readed); // { [name@version]: Package } // possible Package.errors + +// shorthand +await deep.Packages().write(process.cwd(), await deep.Packages().export()); ``` \ No newline at end of file diff --git a/imports/client.tsx b/imports/client.tsx index bff46cdb..3f62aa0d 100644 --- a/imports/client.tsx +++ b/imports/client.tsx @@ -2909,7 +2909,7 @@ export type WriteOptions = Options & { containerId?: Id; } -const Subscription = memo(function Subscription({ query, options, interval, onChange }: any) { +export const Subscription = memo(function Subscription({ query, options, interval, onChange }: any) { const deep = useDeep(); const result: any = deep[interval ? 'useQuery' : 'useSubscription'](query, options); useEffect(() => { @@ -2935,7 +2935,7 @@ const Subscription = memo(function Subscription({ query, options, interval, onCh return null; }, isEqual); -const Query = memo(function Query({ query, options, onChange }: any) { +export const Query = memo(function Query({ query, options, onChange }: any) { const deep = useDeep(); const result: any = deep.useQuery(query, options); if (result?.error?.message) console.error(result.error.message); diff --git a/package.json b/package.json index 9553a60e..346ecfd4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@deep-foundation/deeplinks", - "version": "0.0.530", + "version": "0.0.531", "license": "Unlicense", "type": "module", "main": "import.js",